/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航栏 */
.navbar {
    background-color: #0a192f;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #64ffda;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #64ffda;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(100, 255, 218, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #64ffda;
}

.banner p {
    font-size: 18px;
    color: #ccd6f6;
}

.banner-img {
    display: none;
}

/* 产品展示区域 */
.products-showcase {
    padding: 80px 0;
    background-color: #fff;
}

.products-showcase h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #0a192f;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 20px;
}

.product-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.product-content {
    flex: 1;
    padding: 30px;
}

.product-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0a192f;
}

.product-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-content .highlight {
    color: #64ffda;
    font-weight: bold;
}

.more-link {
    display: inline-block;
    color: #64ffda;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #0a192f;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(100, 255, 218, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.free-consult-btn {
    display: inline-block;
    background-color: #64ffda;
    color: #0a192f;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.free-consult-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

/* 产品分类导航 */
.product-categories {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-bottom: 1px solid #eaeaea;
}

.product-categories .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-header {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-group {
    margin-bottom: 0;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 0;
    padding: 10px 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-title:hover {
    color: #64ffda;
    border-color: #64ffda;
}

.category-group.active .category-title {
    color: #64ffda;
    background-color: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #64ffda;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-title:hover {
    color: #64ffda;
}

.category-group.active .category-title {
    color: #64ffda;
    background-color: rgba(100, 255, 218, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    display: inline-block;
    background-color: #fff;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #64ffda;
    color: #0a192f;
    border-color: #64ffda;
    transform: translateY(-2px);
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* 产品页面样式 */
.products {
    padding: 80px 0;
    background-color: #fff;
}

/* 锚点跳转偏移，使跳转位置显示在网页中间 */
.product-card {
    scroll-margin-top: 300px;
    display: none;
}

.product-card.active {
    display: block;
}

.category-items {
    display: none;
}

.category-items.active {
    display: flex;
}

/* 右侧联系我们悬浮图标 */
.contact-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.contact-icon-btn {
    width: 60px;
    height: 60px;
    background-color: #0a192f;
    color: #64ffda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 24px;
}

.contact-icon-btn:hover {
    background-color: #172a45;
    transform: scale(1.1);
}

.contact-panel {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-sidebar:hover .contact-panel {
    opacity: 1;
    visibility: visible;
}

.contact-panel h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #0a192f;
    text-align: center;
}

.contact-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #f0f0f0;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.contact-item a {
    color: #64ffda;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.products h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #0a192f;
}

.product-card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    font-weight: bold;
    color: #e0e0e0;
    line-height: 1;
}

.product-card h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0a192f;
}

.product-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.product-detail .product-img-wrapper {
    flex: 0 0 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.product-detail .product-desc {
    flex: 1;
}

.product-detail .product-desc p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.product-contact {
    position: absolute;
    left: 250px;
    bottom: 30px;
}

.contact-link {
    display: inline-block;
}

.contact-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: scale(1.1);
}

/* 服务优势 */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #0a192f;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0a192f;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contact h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #0a192f;
}

.contact-info {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info p strong {
    color: #0a192f;
}

/* 页脚 */
footer {
    background-color: #0a192f;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

footer p {
    opacity: 0.7;
}

/* 关于我们页面样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #0a192f;
}

.about-content {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.about-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0a192f;
}

.about-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 合作伙伴页面样式 */
.partners {
    padding: 80px 0;
    background-color: #fff;
}

.partners h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #0a192f;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.partner-logo {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.partner-logo h4 {
    margin-top: 20px;
    color: #0a192f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .services h3,
    .contact h3,
    .products h3,
    .about h3,
    .partners h3 {
        font-size: 28px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
    }

    .product-img-wrapper {
        flex: none;
        padding: 30px;
    }

    .product-detail {
        flex-direction: column;
    }

    .product-detail .product-img-wrapper {
        flex: none;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    /* Banner区域优化 */
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 14px;
        padding: 0 20px;
    }
    
    /* 产品分类导航优化 */
    .category-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-group {
        width: 100%;
    }
    
    .category-title {
        font-size: 16px;
        padding: 8px 12px;
        text-align: center;
    }
    
    .category-items {
        justify-content: center;
    }
    
    .category-item {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 产品卡片优化 */
    .product-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .product-number {
        font-size: 48px;
    }
    
    .product-card h4 {
        font-size: 20px;
    }
    
    .product-detail {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-img-wrapper {
        flex: none;
        padding: 20px;
    }
    
    .product-img {
        max-width: 150px;
    }
    
    .product-desc p {
        font-size: 14px;
    }
    
    /* 首页产品展示优化 */
    .products-showcase {
        padding: 40px 0;
    }
    
    .products-showcase h3 {
        font-size: 24px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-item {
        flex-direction: column;
    }
    
    .product-item .product-img-wrapper {
        padding: 20px;
    }
    
    .product-item .product-img {
        max-width: 120px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-content h4 {
        font-size: 18px;
    }
    
    .product-content p {
        font-size: 14px;
    }
    
    /* 联系我们模块优化 */
    .contact-sidebar {
        right: 10px;
        bottom: 10px;
    }
    
    .contact-icon-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-panel {
        width: 200px;
        right: 0;
        left: auto;
    }
    
    /* 页脚优化 */
    footer {
        padding: 20px 0;
    }
    
    footer p {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px 0;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .banner p {
        font-size: 13px;
    }
    
    .category-title {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .category-item {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-number {
        font-size: 36px;
    }
    
    .product-card h4 {
        font-size: 18px;
    }
    
    .product-img {
        max-width: 120px;
    }
    
    .product-desc p {
        font-size: 13px;
    }
}