/* ===== 基础重置与变量定义 ===== */
:root {
    --primary-color: #0a192f;      /* 主深蓝 */
    --secondary-color: #4fc3f7;    /* 科技蓝 */
    --accent-color: #00d4aa;       /* 点缀绿 */
    --dark-color: #0c1427;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(10, 25, 47, 0.1);
    --shadow-hover: 0 15px 40px rgba(79, 195, 247, 0.15);

    /* Header：固定导航栏高度（页面顶部让位、sticky top 等都用它）
       调窄 header 时，只需要改这个值即可让页面整体“往上移”。 */
    --header-height: 60px;

    /* Footer：列间距（可在 .main-footer 或具体页面上覆盖） */
    --footer-column-gap: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* 全站链接基础样式：去下划线 + 颜色继承（如需单独页面显示下划线，可在局部样式中覆盖） */
a {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: from-font;
    text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
    text-decoration: none;
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 通用样式 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2a9df4);
    color: white;
    box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 195, 247, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* ===== 导航栏 ===== */
.main-header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 让导航栏内容横向排列（适配 components/header.html 使用的 .navbar 结构） */
.main-header .navbar {
    height: var(--header-height, 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
}

/* 当前项目里 main-nav 本身就是 ul（不是外层容器），这里确保它横向 */
.main-header .main-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-header .main-nav li {
    margin: 0;
}

.main-header .mobile-menu-btn {
    /* 桌面端隐藏，移动端再通过媒体查询显示 */
    display: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

/* 新版：logo 图片 + 公司全名同一行展示 */
.main-header .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.main-header .logo-image {
    width: 55px;
    height: auto;
}

.main-header .company-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 0;
    white-space: nowrap;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

/* 旧样式是把 .main-nav 当作容器，并对子 ul 设 flex；现在 main-nav 自己就是 ul，这里保持兼容 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.contact-btn {
    background: var(--secondary-color);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 20px;
    margin-left: 20px !important;
}

.contact-btn:hover {
    background: #3ab3e0;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* ===== 英雄区 ===== */
.hero-section {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.9)), 
                url('https://images.unsplash.com/photo-1542744095-fcf48d80b0fd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: white;
    padding: 180px 0 120px;
    margin-top: var(--header-height, 60px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(79, 195, 247, 0.2);
    z-index: -1;
}

.hero-desc {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    display: inline-block;
}

.stat-label {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-block;
    margin-left: 5px;
}

.stat-item p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== 产品展示 ===== */
.products-section {
    padding: 100px 0;
    background: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-info > p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.product-features span {
    background: var(--light-gray);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.product-features i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.product-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.product-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.product-link:hover i {
    transform: translateX(5px);
}

/* ===== 产品列表 ===== */
.solutions-section {
    padding: 100px 0;
    background: white;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.solution-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.solution-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #2a9df4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.solution-icon i {
    font-size: 1.8rem;
    color: white;
}

.solution-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.solution-card > p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.solution-card ul {
    list-style: none;
    padding-left: 0;
}

.solution-card li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    color: #555;
}

.solution-card li:last-child {
    border-bottom: none;
}

.solution-card strong {
    color: var(--primary-color);
}

/* ===== 成功案例 ===== */
.cases-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f0ff 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.case-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    display: inline-block;
}

.case-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

.partners {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.partners h4 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.partner-logos span {
    background: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.partner-logos span:hover {
    background: var(--secondary-color);
    color: white;
}

/* ===== 关于我们 ===== */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.about-text > p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-stats {
    margin: 30px 0;
}

.about-stat {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.about-stat h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.about-stat p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.about-video {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), #1a2f4d);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.video-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== 企业动态 ===== */
.news-section {
    padding: 100px 0;
    background: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.news-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
}

.news-card:hover .news-link::after {
    transform: translateX(5px);
}

/* ===== 页脚 ===== */
.main-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 10px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.qr-code p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-video {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .products-grid,
    .solutions-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 响应式：窄屏下隐藏公司全名，避免挤压导航 */
    .main-header .company-name {
        display: none;
    }

    .main-header .logo-image {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        justify-content: flex-start;
    }
}


/* ===== 产品/方案二级页面专属样式 ===== */

/* 页面标题横幅 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), #1a2f4d);
    color: white;
    text-align: center;
    padding: 100px 20px 60px;
    margin-top: var(--header-height, 60px); /* 为固定导航栏留出空间 */
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 880px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* 产品分类导航 - 关键修复：使用 sticky 定位 */
.product-category-nav {
    background: var(--light-color);
    padding: 40px 0;
    padding-bottom: 10px; /* 给下方内容留出空间，避免紧贴 */
    position: sticky;
    top: var(--header-height, 60px); /* 固定在主导航栏下方 */
    z-index: 990; /* 确保在内容上方，但在主导航下方 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 滚动时增强样式 */
.product-category-nav.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.product-category-nav .container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-link {
    padding: 12px 30px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.category-link:hover,
.category-link.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* 产品大类区块 */
.product-category {
    padding: 80px 0;
    border-bottom: 1px solid var(--light-gray);
    scroll-margin-top: var(--products-anchor-offset, 120px); /* 为粘性导航栏留出空间，避免内容被遮挡 */
}

/* 产品卡片锚点：避免跳转后被固定头部 + 粘性分类导航遮挡 */
.product-item,
.cust-card {
    scroll-margin-top: var(--products-anchor-offset, 160px);
}

.product-category:last-of-type {
    border-bottom: none;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-header h2 i {
    color: var(--secondary-color);
}

.category-header p {
    color: var(--gray-color);
    max-width: 1080px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 详细产品项布局 */
.product-item.detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
}

.product-item-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-item-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-item.detailed:hover .product-item-img img {
    transform: scale(1.03);
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-item-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.product-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-tag.hot {
    background: #ffeaa7;
    color: #e17055;
}

.product-tag.new {
    background: #a29bfe;
    color: white;
}

.product-item-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-color);
    margin-bottom: 25px;
}

.product-item-specs {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
}

.product-item-specs h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-item-specs ul {
    list-style: none;
    padding-left: 0;
}

.product-item-specs li {
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
    color: #555;
}

.product-item-specs li:last-child {
    border-bottom: none;
}

.product-item-specs strong {
    color: var(--primary-color);
    min-width: 80px;
    display: inline-block;
}

/* 紧凑型产品网格 (用于并排展示) */
.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item.compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item.compact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-item.compact .product-item-img {
    height: 200px;
    border-radius: 0;
}

.product-item.compact .product-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-item.compact h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.product-item.compact p {
    color: var(--gray-color);
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.product-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.product-link:hover i {
    transform: translateX(5px);
}
/* 产品列表横向排列*/
.solutions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 25px;
    transition: var(--transition);
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.solution-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #2a9df4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon i {
    font-size: 1.8rem;
    color: white;
}

.solution-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.solution-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.solution-content ul {
    list-style: none;
    padding-left: 0;
    font-size: 0.95rem;
}

.solution-content li {
    padding: 5px 0;
    color: #666;
}

/* （无人车更多产品和定制款驾驶舱共用）并排展示 */
.cust-card {
    width: 450px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cust-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cust-img {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cust-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cust-content {
    padding: 30px;
}

.cust-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cust-content p {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.6;
}



/* 教学产品网格 */
.edu-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.edu-product-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.edu-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.edu-product-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-product-card h4 i {
    color: var(--secondary-color);
}

.edu-product-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.text-center {
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.2rem;
    }
    .page-banner p {
        font-size: 1rem;
    }
    .product-item.detailed {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .category-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    .solutions-list {
        grid-template-columns: 1fr;
    }
    .solution-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* 移动端调整粘性定位 */
    .product-category-nav {
        top: 60px; /* 移动端导航栏可能较矮 */
    }
    .product-category {
        scroll-margin-top: var(--products-anchor-offset, 100px);
    }
}


/* ===== 首页 (index.html) 专属样式 ===== */

/* 1. 主视觉/英雄区复用 products 页的 .hero-section 样式，无需重复 */

/* 2. 核心产品聚焦 */
.featured-products {
    padding: 100px 0;
    background: white;
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-showcase-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.showcase-img {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.showcase-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.showcase-content {
    padding: 30px;
}

.showcase-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.showcase-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* .product-showcase-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
} */

/* .product-showcase-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
} */

/* .product-showcase-card:hover .product-showcase-link::after {
    transform: translateX(5px);
} */

.product-showcase-link-text {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

/* 3. 全系列产品概览 */
.solutions-overview {
    padding: 100px 0;
    background: var(--light-color);
}

.solutions-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.solution-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card-link:hover .solution-card {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #2a9df4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

.solution-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.solution-card > p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.solution-highlights {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
    text-align: left;
}

.solution-highlights li {
    color: #666;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.solution-highlights li:last-child {
    border-bottom: none;
}

.solution-highlights strong {
    color: var(--primary-color);
}

.card-cta {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.card-cta i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.solution-card-link:hover .card-cta i {
    transform: translateX(5px);
}

/* 4. 成功案例精选 */
.featured-cases {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f0ff 100%);
    text-align: center;
}

.cases-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.case-logo-item {
    background: white;
    padding: 20px 35px;
    border-radius: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    min-width: 150px;
}

.case-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color);
    color: white;
}

.cases-desc {
    color: var(--gray-color);
    max-width: 700px;
    margin: 20px auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 5. 最新动态 */
.latest-news {
    padding: 100px 0;
    background: white;
}

.news-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.news-preview-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.news-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-preview-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.news-date {
    font-weight: 600;
    color: var(--secondary-color);
}

.news-tag.company {
    background: #ffeaa7;
    color: #d63031;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.news-tag.technology {
    background: #55efc4;
    color: #1f22c7;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.news-tag.government {
    background: #4a6aca;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
/* .news-tag.industry {
    background: #a29bfe;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
} */

.news-preview-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-preview-item p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-preview-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-preview-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
}

.news-preview-item:hover .news-preview-link::after {
    transform: translateX(5px);
}

/* 6. 关于我们摘要 */
.about-teaser {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), #1a2f4d);
    color: white;
}

.about-teaser-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-teaser h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-teaser > .container > div > p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-teaser-stats {
    display: grid;
    gap: 20px;
}

.teaser-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.teaser-stat h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.teaser-stat p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .solutions-cards,
    .products-showcase,
    .news-preview {
        grid-template-columns: 1fr;
    }
    .about-teaser-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cases-logos {
        gap: 15px;
    }
    .case-logo-item {
        min-width: 120px;
        padding: 15px 20px;
        font-size: 1.5rem;
    }
    .about-teaser h2 {
        font-size: 2rem;
    }
}


/* ===== 成功案例页 (cases.html) 专属样式 ===== */

/* 客户概览 */
.clients-overview {
    padding: 80px 0;
    background: white;
}

/*
    主要客户气泡（可配置版 / 圆形）

    目标：
    - 每个气泡可单独配置大小/字体/位置
    - 文字不换行
    - 位置不再随机：通过 cases.html 中的 data-*（或直接写 CSS 变量）固定

    单个气泡可用的 CSS 变量（推荐写在 HTML 上，或用 data-* 由 script.js 写入）：
    - --bubble-x / --bubble-y：气泡中心点位置（支持 % 或 px），例如 12% / 24%
    - --bubble-size：圆形直径（例如 120px）。若不配置，可由 script.js 按文字宽度自动计算一个合适直径
    - --bubble-font-size：字体大小（例如 1.05rem）
    - --bubble-pad-x / --bubble-pad-y：用于“自动计算直径”的参考内边距（可选）
    - --float-x / --float-y / --float-duration / --float-delay：漂浮动效参数（可选）
*/
.clients-bubbles {
    position: relative;
    width: 100%;
    height: clamp(240px, 28vw, 420px);
    margin-top: 40px;
    padding: 10px 0;
}

.client-bubble {
    user-select: none;
    cursor: default;

    background: var(--light-color);
    border-radius: 50%;
    width: var(--bubble-size, 120px);
    height: var(--bubble-size, 120px);
    padding: var(--bubble-pad-y, 12px) var(--bubble-pad-x, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: var(--bubble-font-size, 1.05rem);
    letter-spacing: 0.2px;
    line-height: 1.15;

    /* 文字不换行 */
    white-space: nowrap;

    border: 1px solid transparent;
    box-shadow: var(--shadow);
    transition: var(--transition);

    position: absolute;
    left: var(--bubble-x, 50%);
    top: var(--bubble-y, 50%);
    transform: translate(-50%, -50%);
    overflow: hidden;
    will-change: transform;
    animation: client-bubble-float var(--float-duration, 9s) ease-in-out var(--float-delay, 0s) infinite;
}

/* 使用主题色做“气泡光泽”（避免引入新配色） */
@supports (background: color-mix(in srgb, var(--light-color) 50%, transparent)) {
    .client-bubble {
        background: linear-gradient(
            135deg,
            color-mix(in srgb, var(--secondary-color) 18%, transparent),
            color-mix(in srgb, var(--accent-color) 14%, transparent)
        );
        border-color: color-mix(in srgb, var(--secondary-color) 28%, transparent);
        box-shadow: var(--shadow-hover);
    }
    .client-bubble::after {
        content: '';
        position: absolute;
        top: -35%;
        left: -20%;
        width: 70%;
        height: 70%;
        border-radius: 50%;
        background: color-mix(in srgb, var(--light-color) 35%, transparent);
        transform: rotate(-20deg);
        pointer-events: none;
        opacity: 0.85;
    }
}

.client-bubble:hover {
    animation-play-state: paused;
    transform: translate(-50%, -50%) translate3d(0, -6px, 0) scale(1.04);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.client-bubble:focus-visible {
    animation-play-state: paused;
    outline: 3px solid var(--secondary-color);
    outline-offset: 4px;
}

@supports (outline: 3px solid color-mix(in srgb, var(--light-color) 50%, transparent)) {
    .client-bubble:focus-visible {
        outline-color: color-mix(in srgb, var(--secondary-color) 55%, transparent);
    }
}

@keyframes client-bubble-float {
    0% {
        transform: translate(-50%, -50%) translate3d(0, 0, 0);
    }
    50% {
        transform: translate(-50%, -50%) translate3d(var(--float-x, 10px), var(--float-y, -14px), 0);
    }
    100% {
        transform: translate(-50%, -50%) translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-bubble {
        animation: none;
    }
}

/* 案例展示 */
.cases-showcase {
    padding: 80px 0;
    background: var(--light-color);
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.case-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.case-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.case-image {
    height: 220px;
    overflow: hidden;
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.case-item:hover .case-image img {
    transform: scale(1.05);
}
.case-content {
    padding: 25px;
}
.case-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.case-content p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 价值主张 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}
.value-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.value-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .clients-bubbles {
        /* 小屏不再绝对定位，避免气泡重叠；改为流式排列 */
        height: auto;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .client-bubble {
        position: static;
        transform: none;
        animation: none;
        font-size: var(--bubble-font-size, 0.98rem);
        width: var(--bubble-size, 96px);
        height: var(--bubble-size, 96px);
        padding: var(--bubble-pad-y, 10px) var(--bubble-pad-x, 10px);
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
}



/* ===== Header 样式 ===== */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.logo-image:hover {
    opacity: 0.9;
}

/* ===== Footer 样式 ===== */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: stretch;
    column-gap: var(--footer-column-gap);
    row-gap: 40px;
    margin-bottom: 40px;
}

/* 左侧公司照片：上下撑满容器 */
.footer-image {
    flex: 0 0 400px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 12px;
}

.footer-company-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wechat-qrcode {
    margin-left: 20px;
    margin-top: 20px;
    text-align: center;
    width: 150px;
}

.footer-links {
    margin-left: 150px;
}

/* 页脚链接 */
.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* 联系信息 */
.footer-contact address p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-style: normal;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.social-links h5 {
    color: white;
    margin: 20px 0 10px;
    font-size: 1rem;
}

/* 覆盖早期全局 .social-links（旧页脚样式）对当前结构的影响 */
.footer-contact .social-links {
    display: block;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* 底部版权信息 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-image {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
    }

    .footer-right {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ===== 证书弹窗 ===== */
.certificate-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.certificate-popup.active {
    display: flex;
    opacity: 1;
}

.certificate-popup-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: popupFadeIn 0.3s;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-popup:hover {
    background-color: #f0f0f0;
}

.certificate-popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.certificate-image-container {
    margin: 20px 0;
    text-align: center;
}

.certificate-full-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.certificate-details {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.certificate-details p {
    margin: 8px 0;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.certificate-details strong {
    color: var(--primary-color);
}

/* ===== 导航栏下拉菜单（产品与方案） ===== */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-nav .dropdown-caret {
    font-size: 0.9em;
    opacity: 0.8;
    transform: translateY(-1px);
}

.main-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 260px;
    padding: 10px 0;
    margin: 0;
    list-style: none;

    /* 灰色半透明底色 + 白字 */
    background: rgba(80, 80, 80, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
    z-index: 1100;
}

/* 小三角 */
.main-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: rgba(80, 80, 80, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
}

.main-nav .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav .dropdown-menu a:hover,
.main-nav .dropdown-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.main-nav .dropdown-menu .dropdown-divider {
    height: 1px;
    margin: 8px 10px;
    background: rgba(255, 255, 255, 0.18);
}

/* 悬停/键盘聚焦展开 */
.main-nav .dropdown:hover > .dropdown-menu,
.main-nav .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 方案A：限制高度到视口一半并滚动 */
.main-nav .dropdown-menu {
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* 滚动条样式（Chrome/Edge/Safari） */
.main-nav .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.main-nav .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.main-nav .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 10px;
}

.main-nav .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox */
.main-nav .dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
    .main-nav .dropdown-menu {
        /* 移动端展开时也限制高度，避免占满屏 */
        max-height: 50vh;
    }
}