* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '微软雅黑', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0A2647;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* 确保始终固定 */
    position: fixed;
    top: 0;
    will-change: transform;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

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

.logo-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.logo-link {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2C74B3;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 38, 71, 0.8), rgba(10, 38, 71, 0.8)), url('https://images.unsplash.com/photo-1592890881441-1a3a02d5a0e7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #2C74B3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #1B4D7E;
}

.section {
    padding: 5rem 5%;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #0A2647;
    margin-bottom: 3rem;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card h3 {
    color: #0A2647;
    margin-bottom: 1rem;
}

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

.footer {
    background: #0A2647;
    color: white;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer p a {
    color: #5395dc;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .product-container {
        grid-template-columns: 1fr;
    }
    
    /* 产品分类和详情布局优化 */
    .products-layout {
        flex-direction: column;
    }
    
    .product-categories {
        min-width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    /* 案例网格调整为单列 */
    .case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-item {
        width: 100%;
        margin: 0;
    }
    
    /* 关于我们区块调整 */
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        min-width: 100%;
    }
    
    .about-img {
        max-height: 250px;
    }
    
    /* 调整页脚二维码悬停效果 */
    .footer img[alt="微信公众号二维码"]:hover {
        transform: scale(2);
    }
}

.about-section {
    padding: 150px 5% 50px; /* 调整顶部间距，内容整体向下移动 */
    background-color: #f5f5f5; /* 灰色背景 */
}

.about-container {
    display: flex;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    max-width: 600px;
    margin-right: 40px;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

/* 核心产品布局样式 */
.products-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.product-categories {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    max-width: 800px; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.product-text {
    grid-column: 2;
}

.product-image {
    max-width: 280px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    width: 45%; /* 调整为45%宽度，两个图片总宽度90%+20px间隙适配父容器 */
    height: auto; /* 保持原始比例 */
    object-fit: contain;
    border-radius: 8px;
}

.product-detail {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-text {
    flex: 1;
}

.solution-content {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
    border-left: 4px solid #2C74B3;
}

.solution-content h3 {
    color: #0A2647;
    margin-bottom: 15px;
}

.solution-image {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.solution-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.close-solution {
    padding: 8px 16px;
    background: #2C74B3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-solution:hover {
    background: #1B4D7E;
}

.category-btn {
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    margin: 8px;
    color: #007bff;
    background: #f5f3ff;
    transition: all 0.3s ease;
}

.category-btn::before {
    content: attr(data-before);
    font-size: 1.2em;
    font-weight: bold;
}

.category-btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

.category-btn.active {
    background: #3b95f6;
    color: white;
    border-color: #3b95f6;
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
    transform: translateY(-2px);
}

.product-content {
    flex: 2;
}

.product-detail {
    display: none;
}

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

.product-desc {
    line-height: 1.7;
    color: #495057;
    margin-bottom: 15px;
}

.solution-link {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    margin-left: -9px;
}

.solution-link:active,
.solution-link:focus,
.solution-link:hover {
    color: #0056b3;
    text-decoration: underline;
    background-color: #f0f7ff;
}
.company-name {
    color: #007bff; /* 蓝色字体 */
    font-weight: bold;
    font-size: 1.2rem;
}

.blue-text {
    color: #007bff; /* 蓝色字体 */
    font-weight: bold;
}

.about-image {
    flex: 1;
    min-width: 500px;
}

.about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    justify-items: center;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.case-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.case-item h3 {
    color: #0A2647;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-item.active h3 {
    color: #2C74B3;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.case-item h3:hover {
    color: #0056b3;
}

.case-content {
    display: none;
    padding-top: 15px;
}

.case-item.active .case-content {
    display: block;
}

.case-image {
    max-width: 100%;
    height: 200px;
    display: block;
    margin: 0 auto 15px;
    border-radius: 6px;
}

.case-item h3 {
    color: #007bff;
    text-align: center;
    margin-bottom: 15px;
}

.case-item p {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 10px;
}

.shared-case-content {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.shared-case-content img {
    margin-top: 1rem;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.shared-case-content h3 {
    color: #0A2647;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.shared-case-content p {
    color: #34495e;
    line-height: 1.8;
    font-size: 1rem;
}

.contact-section {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-text h2 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-text p {
    line-height: 1.8;
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-text a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    .about-image {
        min-width: auto;
    }
    .about-img {
        height: 300px;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
        cursor: pointer;
        font-size: 28px;
        z-index: 100;
        color: white;
    }  
}
    
.case-image {
    height: auto;
    max-height: 200px;
}
    
.product-content {
    flex-wrap: wrap;
}
    
.product-detail {
    min-width: 100%;
    margin-bottom: 20px;
}

/* 微信公众号二维码悬停效果 */
.footer img[alt="微信公众号二维码"] {
    transition: transform 0.3s ease;
}

.footer img[alt="微信公众号二维码"]:hover {
    transform: scale(4);
    position: relative;
    z-index: 100;
}

@media (max-width: 480px) {
    .category-btn {
        font-size: 0.65rem;
        padding: 8px 12px;
    }
    .case-grid {
        grid-template-columns: 1fr !important;
    }
    .case-item {
        transform: scale(0.7);
        transform-origin: left top;
    }
    .case-item:hover {
        color: #0A2647;
    }
    .case-item.active { 
        transform: scale(0.7); 
    }
    .about-img {
        width: 85%;
        margin: 0 auto 1rem;
    }
    
    /* 移动端导航栏样式 */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        display: none;
        width: 200px;
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        position: absolute;
        right: 20px;
        top: 60px;
        border-radius: 4px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 15px 25px;
        font-size: 1.1rem;
        color: white;
    }
    .nav-links a {
        color: white;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
        cursor: pointer;
        font-size: 28px;
        z-index: 100;
        color: white;
    }  
}
.menu-toggle {
        display: none;
}