/* 重置与全局样式 */
:root {
    --brand-primary: #1677C9;
    --brand-primary-dark: #125f9f;
    --brand-secondary: #32B8B8;
    --brand-tertiary: #A3A8E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    color: #fff;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 头部导航栏样式 */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px; /* 增加左右内边距 */
    transition: all 0.4s ease;
    background-color: transparent; /* 初始状态为透明 */
}

/* 覆盖头部的 container 限制，使其能铺得更满 */
#main-header .container {
    max-width: 1600px; /* 放宽最大宽度，让导航能更靠右 */
    width: 100%;
}

/* 滚动后的导航栏样式 */
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 1); /* 100%不透明度 */
    padding: 10px 40px; /* 保持左右内边距一致 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #281001e6;
}

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

.logo a {
    font-size: 1.8rem; /* 增大字号 */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2.2rem; /* 增大图标 */
}

nav {
    display: flex;
    align-items: center;
    gap: 30px; /* 导航和电话之间的间距 */
    margin-left: auto; /* 关键：将 nav 整体推向最右侧 */
}

.nav-links {
    display: flex;
    gap: 25px; /* 减小间距向左移 */
}

#main-header:not(.scrolled) .nav-links li a {
    color: #fff; /* 默认未滚动时为白色文字 */
}

/* 移除首页特例，所有页面统一使用白色文字和下划线 */
#main-header:not(.scrolled) .contact-text {
    color: #fff;
}

#main-header:not(.scrolled) .contact-phones {
    color: #fff;
}

.nav-links li a {
    font-size: 1.1rem; /* 增大字号 */
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
    color: #333; /* 默认深色 */
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--brand-primary) !important; /* 悬停时颜色变蓝 */
}

/* 更新后的下划线动画：从中间向两边展开 */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #fff; /* 默认白色下划线 */
    transition: width 0.3s ease-in-out;
}

#main-header.scrolled .nav-links li a::after {
    background-color: #000; /* 滚动后：黑色下划线 */
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* 顶部右侧联系方式 */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px; /* 增加间距 */
    margin-left: 20px; /* 向右推一点 */
}

.contact-text {
    font-size: 1.2rem; /* 增大字体 */
    font-weight: 900; /* 加粗 */
    color: #333; /* 默认深色 */
    letter-spacing: 1px;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem; /* 增大字体 */
    font-weight: 900; /* 加粗 */
    color: #333; /* 默认深色 */
    line-height: 1.25;
}

.consultation-btn {
    background-color: var(--brand-primary);
    color: #fff !important;
    padding: 10px 25px; /* 增大按钮 */
    border-radius: 25px;
    font-size: 1.1rem; /* 增大字体 */
    font-weight: bold;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(22, 119, 201, 0.4); /* 添加发光阴影使其显眼 */
}

.consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 119, 201, 0.55);
    animation: btnPulse 1.2s ease-in-out infinite;
}

/* 移动端汉堡菜单 */
.burger {
    display: none;
    cursor: pointer;
    z-index: 2000; /* 层级高于导航链接 */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

#main-header.scrolled .burger div {
    background-color: #000;
}

/* 汉堡菜单变为叉号动画（激活时为黑色） */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #000;
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #000;
}

/* 英雄区轮播图样式 */
.hero-slider {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 0;
    --scroll-darken: 0;
}

/* 添加一个遮罩层用于滚动变暗效果 */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--scroll-darken));
    z-index: 25; /* 确保覆盖所有内容 */
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(10px);
    /* 统一过渡规则：包含opacity+transform，避免样式分散 */
    transition: 
        opacity 1.5s ease-out, 
        transform 1.5s ease-out, 
        z-index 0s 1.5s; /* 层级延迟变化，和淡出同步 */
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4); 
    /* 初始scale=1，激活后过渡到1.1，保证放大动画丝滑 */
    transform: scale(1);
    transition: transform 5s ease-out; /* 缓慢放大，营造呼吸感 */
}

/* 激活状态：背景放大 + 幻灯片淡入复位 */
.slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2; /* 激活层置顶 */
}

.slide.active .slide-bg {
    transform: scale(1.1); /* 背景缓慢放大 */
}

/* 退出状态：仅淡出，无缩放/位移，层级中间 */
.slide.slide-exit {
    opacity: 0;
    z-index: 1; /* 退出层在激活层之下，默认层之上 */
    /* 强制继承过渡规则，避免退出时位移/缩放异常 */
    transition: 
        opacity 1.5s ease-out, 
        transform none, /* 退出时不位移，只淡出 */
        z-index 0s 1.5s;
}

/* 退出状态：背景完全关闭缩放过渡，确保不缩回 */
.slide.slide-exit .slide-bg {
    transition: transform none;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    width: 100%;
    right: 10px;
    top: 20px;
}

/* 文字进入动画 */
.slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease-out 0.2s; /* 延迟进入 */
    /* 强制初始状态生效，避免浏览器渲染优化跳过过渡 */
    will-change: transform, opacity;
}

.slide p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease-out 0.4s; /* 延迟进入 */
    will-change: transform, opacity;
}

/* 新按钮样式 */
.cta-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-weight: bold;
    border-radius: 30px; /* 胶囊圆角 */
    transform: scale(0); /* 初始隐藏/缩小 */
    opacity: 0;
    transition: all 0.5s ease; /* 标准过渡 */
    /* 进入动画由 slide active 控制 */
    transition-property: transform, opacity, background-color, color;
    transition-duration: 0.3s;
    will-change: transform, opacity;
}

/* 仅在进入时应用延迟 */
.slide.active .cta-btn {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s, opacity 0.5s ease 1s, background-color 0.3s, color 0.3s;
}

/* 内容激活状态（进入） */
.slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.slide.active p {
    transform: translateY(0);
    opacity: 1;
}

.slide.active .cta-btn {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s, 
                opacity 0.5s ease 1s, 
                background-color 0.3s, 
                color 0.3s;
}

/* 退出动画 */
.slide.slide-exit h1 {
    transform: translateY(50px); /* 向下退出 */
    opacity: 0;
    transition: all 0.8s ease-in;
}

.slide.slide-exit p {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-in 0.2s;
}

/* 按钮悬停交互 - 新样式 */
.cta-btn:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05); /* 轻微放大 */
}

/* 轮播图控制按钮 */
.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 100px; /* 根据设计调整 */
    display: flex;
    gap: 10px; /* 箭头间距 */
    z-index: 20;
}

.prev-btn, .next-btn {
    width: 50px;
    height: 50px;
    background-color: transparent; /* 移除背景 */
    color: #000; /* 黑色箭头 */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    font-size: 1.5rem;
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.2);
}

/* 轮播图指示点（右侧垂直） */
.slider-dots {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 6px; /* 更小的尺寸 */
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.5); /* 相对新尺寸轻微放大 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端菜单 - 顶部下滑，白色背景 */
    .nav-links {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        min-height: 50vh; /* 向下延伸 */
        background-color: #fff; /* 白色背景 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%); /* 初始向上隐藏 */
        transition: transform 0.5s ease-in-out;
        padding-top: 80px; /* 为汉堡按钮留出空间 */
        padding-bottom: 30px;
        z-index: 1500;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-links li a {
        color: #000; /* 黑色文字 */
        font-size: 1.2rem;
        display: block;
        margin: 15px 0;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        color: #555;
    }

    .nav-links li a::after {
        background-color: #000; /* 黑色下划线 */
    }

    /* 移动端隐藏顶部电话，或者精简 */
    .header-contact {
        display: none;
    }

    .burger {
        display: block;
        position: relative; /* 确保可点击 */
    }

    .nav-active {
        transform: translateY(0%);
    }

    /* 链接动画 */
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .slide h1 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 0.9rem;
    }

    .slider-controls {
        right: 20px;
        bottom: 20px;
    }

    .slider-dots {
        right: 10px;
    }
}

/* ================= 合作伙伴版块样式 ================= */
.partner-section {
    padding: 30px 0; /* 大幅减小上下内边距 */
    background-color: #fff; /* 确保背景不透明 */
    overflow: hidden;
    position: relative;
    z-index: 10; /* 提升层级，确保覆盖英雄区 */
}

/* 合作伙伴背景线条装饰：六边形/菱形科技网格风格 */
.partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(30deg, rgba(0, 51, 153, 0.03) 0, rgba(0, 51, 153, 0.03) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(-30deg, rgba(0, 51, 153, 0.03) 0, rgba(0, 51, 153, 0.03) 1px, transparent 1px, transparent 60px);
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
}

/* 通用滚动动画类 (仅作为 JS 观察的标记) */
.hidden-section {
}

/* 合作伙伴与产品版块的特定入场动画 */
.partner-section .container,
.product-section .container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.partner-section.visible .container,
.product-section.visible .container {
    opacity: 1;
    transform: translateY(0);
}

.partner-header {
    text-align: center;
    margin-bottom: 0; /* 移除底部间距，让地球贴紧文字 */
}

.partner-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px; /* 减小间距 */
    font-weight: 800;
}

.partner-header p.static-desc {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================= 3D 文字地球样式 ================= */
.text-globe-container {
    width: 100%;
    height: 250px; /* 大幅缩减地球容器高度，使其紧凑 */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* 3D 视角深度 */
    margin-top: 0; /* 移除上间距 */
    overflow: visible; /* 允许文字飞出边界时可见 */
}

#text-globe {
    position: relative;
    width: 200px; /* 地球的直径进一步调小 */
    height: 200px;
    transform-style: preserve-3d;
    /* 初始时不旋转，由 JS 控制类名开启 */
}

#text-globe.rotating {
    animation: rotateGlobe 20s linear infinite; /* 持续自转 */
}

/* 悬停时减速 */
#text-globe.rotating:hover {
    animation-play-state: paused; /* 或者用变慢的动画 */
}

.globe-char {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 14px;
    font-weight: bold;
    color: var(--brand-primary);
    /* 增加过渡效果，用于从初始位置飞到球面上 */
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.5s ease;
    transform-origin: center center;
    /* 让文字背面稍微暗一点或半透明，增加立体感 */
    backface-visibility: hidden; 
    text-shadow: 0 0 2px rgba(9, 104, 207, 0.3);
    /* 初始状态隐藏 */
    opacity: 0;
}

@keyframes rotateGlobe {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.partner-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partner-track {
    display: flex;
    width: max-content; /* 宽度适应内容 */
    animation: scroll 20s linear infinite; /* 无缝滚动动画 */
}

/* 悬停暂停 */
.partner-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px; /* 固定宽度 */
    height: 80px;
    margin: 0 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: all 0.3s ease;
    padding: 10px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%); /* 默认黑白 */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ddd;
    z-index: 10;
}

.partner-logo:hover img {
    filter: grayscale(0%); /* 悬停彩色 */
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 移动一半宽度（因为复制了一份） */
    }
}


/* ================= 产品版块样式 ================= */

/* 版块整体 */
.product-section {
    background-color: #f5f5f5; /* 产品版块恢复浅灰背景 */
    padding: 80px 0;
    color: #333;
    overflow: hidden; /* 防止内容溢出 */
    position: relative;
    z-index: 10; /* 确保覆盖英雄区 */
}

/* 头部区域 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.title-area h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c2c2c;
    line-height: 1.2;
    text-transform: uppercase;
}

.title-area p {
    font-size: 1.2rem;
    color: #888;
    margin-top: 5px;
}

/* 了解更多按钮 - 优化 */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    padding: 8px 15px; /* 增加内边距以便背景填充 */
    overflow: hidden;
    text-decoration: none;
    border-radius: 4px; /* 可选圆角 */
    /* 移除之前的下划线样式 */
}

/* 移除旧的 progress-bar 样式 */
.learn-more-btn .progress-bar {
    display: none; 
}

/* 使用伪元素实现背景填充 */
.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05); /* 半透明色块 */
    transition: width 0.4s ease; /* 0.3-0.5s */
    z-index: 0;
}

.learn-more-btn:hover::before {
    width: 100%;
}

.learn-more-btn .btn-text {
    z-index: 2;
    position: relative;
    transition: color 0.3s;
}

.learn-more-btn .btn-arrow {
    z-index: 2;
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 回弹效果需配合 keyframes 或 simple transition */
}

.learn-more-btn:hover .btn-arrow {
    /* 简单的平移，若需回弹可用 animation */
    animation: arrowBounce 0.5s ease;
}

@keyframes arrowBounce {
    0% { transform: translateX(0); }
    50% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

/* 轮播区域 */
.product-carousel {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0; /* 给阴影留空间 */
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px; /* 给hover浮动留出空间 */
}

/* 产品卡片 - 优化 */
.product-card {
    background: #fff; /* 初始浅灰/白 */
    padding: 20px;
    border-radius: 4px; 
    text-align: center;
    transition: all 0.3s ease; /* 0.3-0.4s */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: block;
    position: relative;
    overflow: hidden; /* 确保线条不溢出 */
}

/* 底部蓝色细线 */
/* 底部蓝色细线：初始状态为中心一点，hover时扩展至全宽 */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary); /* 蓝色线条 */
    /* 核心：初始为中心0宽度，hover时扩展至100% */
    transform: scaleX(0);
    transform-origin: center; /* 动画从中心向两侧展开 */
    transition: transform 0.3s ease; /* 仅控制宽度变化 */
}

/* 悬停时：线条从中心扩展至卡片全宽 */
.product-card:hover::after {
    transform: scaleX(1); /* 从0扩展到100%宽度 */
}

.product-card:hover {
    transform: translateY(-6px); /* 上浮 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* 阴影加深 */
    z-index: 10;
}

.product-card:hover::after {
    height: 4px; /* 变粗 */
    background-color: var(--brand-primary-dark); /* 高亮色 */
}

.product-img {
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.product-info p {
    font-size: 0.9rem;
    color: #999;
    transition: color 0.3s;
}

.product-card:hover .product-info h3 {
    color: var(--brand-primary-dark); /* 品牌色 */
}

.product-card:hover .product-info p {
    color: #555; /* 加深 */
}

/* 控制区域 */
.carousel-controls-area {
    margin-top: 20px;
}

.control-line {
    height: 1px;
    background-color: #ddd;
    width: 100%;
    margin-bottom: 20px;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.carousel-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 页码对齐修复 */
.page-indicator {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
    /* Flex布局对齐 */
    display: flex;
    align-items: center; 
    height: 35px; /* 与按钮高度一致 */
}

.current-page {
    color: var(--brand-primary); /* 高亮色 */
    font-size: 1.2rem; /* 保持大一点 */
    margin-right: 5px;
    /* 确保基线对齐 */
    line-height: 1;
}

.total-pages {
    font-size: 1rem;
    line-height: 1;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .carousel-slide {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .learn-more-btn {
        align-self: flex-end;
    }
}

/* ================= 核心优势版块 (Advantage) ================= */

.advantage-section {
    position: relative;
    /* 使用 Unsplash 上的物流仓库图片 */
    background-image: url('../images/index/cangku.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 视差滚动核心 */
    padding: 60px 0;
    color: #fff;
    overflow: hidden;
    z-index: 10;

    /* 关键修复：覆盖 .hidden-section 的 transform，确保 fixed 背景生效 */
    transform: none !important;
    opacity: 1 !important;
}

/* 深色遮罩 */
.advantage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* 75% 透明度黑色 */
    z-index: 1;
}

/* 内容容器 */
.advantage-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题区域 */
.advantage-header {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

.advantage-header h3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ddd;
    margin-bottom: 10px;
}

.advantage-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

/* 主要内容布局 */
.advantage-content {
    display: flex;
    gap: 80px; /* 增加整体间距，从 40px -> 80px */
    align-items: flex-start;
}

/* 左侧图标网格 */
.advantage-grid {
    flex: 1;
    display: grid;
    /* 桌面端设为 6 列网格，方便做金字塔布局 (1-2-3) */
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px;
    /* 让内容居中，但为了向左偏移，我们可以尝试 justify-content: flex-start 或者 margin-right */
    justify-content: center;
    /* 
       通过 padding-right 或 margin-right 来“挤”开与右侧面板的距离，
       或者通过 max-width 限制其宽度，使其看起来不那么靠右。
    */
    max-width: 85%; /* 限制网格最大宽度，使其整体更紧凑且偏左 */
}

/* 
   金字塔布局逻辑：
   第一层 (1个): 跨 2 列，居中 -> 偏移 2 列
   第二层 (2个): 跨 3 列 -> 实际上为了居中，我们可以让每个卡片跨 2 列，或者用 flex 居中
   
   更简单的方案：
   使用 6 列网格：
   Row 1: . . [Card] [Card] . .  (跨2列，居中) -> grid-column: 3 / span 2
   Row 2: . [Card] [Card] [Card] [Card] . (2个，每个跨3列?) -> 不对，要是 1-2-3 结构
   
   目标结构：
      [   1   ]
     [ 2 ] [ 3 ]
   [ 4 ][ 5 ][ 6 ]
   
   网格列数：6列
   第1个：居中，占2列 -> grid-column: 3 / span 2
   第2个：占2列 -> grid-column: 2 / span 2
   第3个：占2列 -> grid-column: 4 / span 2
   第4个：占2列 -> grid-column: 1 / span 2
   第5个：占2列 -> grid-column: 3 / span 2
   第6个：占2列 -> grid-column: 5 / span 2
*/

/* 通用卡片样式：默认跨 2 列 */
.adv-card {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    
    /* 初始状态 (用于入场动画) */
    opacity: 0;
    transform: translateY(30px);
    
    /* 过渡设置 */
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* 第一层：第1个卡片 (居中) */
.adv-card:nth-child(1) {
    grid-column: 3 / span 2;
}

/* 第二层：第2、3个卡片 */
.adv-card:nth-child(2) {
    grid-column: 2 / span 2;
}
.adv-card:nth-child(3) {
    grid-column: 4 / span 2;
}

/* 第三层：第4、5、6个卡片 (自然排列，占据 1-2, 3-4, 5-6 列) */
/* 不需要特殊指定，默认流式排列即可：
   第4个会自动在第3行第1列开始 (span 2 -> 1-2)
   第5个会自动在第3行第3列开始 (span 2 -> 3-4)
   第6个会自动在第3行第5列开始 (span 2 -> 5-6)
*/
.adv-card:nth-child(4) {
    grid-column: 1 / span 2;
}
.adv-card:nth-child(5) {
    grid-column: 3 / span 2;
}
.adv-card:nth-child(6) {
    grid-column: 5 / span 2;
}

.adv-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    transition: transform 0.3s ease;
}

.adv-card h4 {
    font-size: 1.1rem;
    font-weight: normal;
    color: #fff;
    margin: 0;
}

/* 卡片 Hover 交互 */
.adv-card:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-5px) !important; /* 强制覆盖入场动画的 transform */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* 右侧详情面板 */
.adv-detail-panel {
    width: 400px; /* 固定宽度 */
    background: #fff;
    color: #333;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-radius: 2px;
    
    /* 初始状态 */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.adv-detail-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.detail-divider {
    width: 50px;
    height: 4px;
    background: var(--brand-primary);
    margin-bottom: 25px;
}

.adv-detail-panel p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    text-align: justify;
}

/* 立即咨询按钮 */
.consult-btn {
    display: inline-flex;
    align-items: center;
    background: var(--brand-primary);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.consult-btn i {
    margin-left: 10px;
    font-size: 0.9rem;
}

/* 按钮 Hover 交互 */
.consult-btn:hover {
    background: var(--brand-primary-dark); /* 深红 */
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(7, 87, 173, 0.35);
}

.consult-btn:hover i {
    color: #fff !important;
}

/* 箭头回弹动画 Keyframes */
@keyframes arrow-rebound {
    0% { transform: translateX(0); }
    40% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

.consult-btn:hover i {
    animation: arrow-rebound 0.6s ease forwards;
}

/* ================= 入场动画触发 (当添加 .visible 类时) ================= */

/* 1. 标题淡入下移 */
.advantage-section.visible .advantage-header {
    opacity: 1;
    transform: translateY(0);
}

/* 2. 详情面板淡入左移 */
.advantage-section.visible .adv-detail-panel {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s; /* 稍晚于卡片开始 */
}

/* 3. 卡片依次淡入上移 - 金字塔入场动画 */
.advantage-section.visible .adv-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, border-color 0.3s ease;
}

/* 递进延迟 (Staggered Delay) - 按照 1-2-3 金字塔层级顺序 */
/* 第一层：塔尖 (1个) */
.advantage-section.visible .adv-card:nth-child(1) { transition-delay: 0.1s; }

/* 第二层：中间 (2个) */
.advantage-section.visible .adv-card:nth-child(2) { transition-delay: 0.2s; }
.advantage-section.visible .adv-card:nth-child(3) { transition-delay: 0.3s; }

/* 第三层：塔底 (3个) */
.advantage-section.visible .adv-card:nth-child(4) { transition-delay: 0.4s; }
.advantage-section.visible .adv-card:nth-child(5) { transition-delay: 0.5s; }
.advantage-section.visible .adv-card:nth-child(6) { transition-delay: 0.6s; }

/* 解决 Hover 延迟问题的关键 */
.adv-card:hover {
    transition-delay: 0s !important;
}

/* ================= 响应式适配 ================= */

/* 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .advantage-content {
        flex-direction: column; /* 垂直堆叠 */
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 列 */
        width: 100%;
    }
    
    .adv-detail-panel {
        width: 100%; /* 宽度 100% */
        margin-top: 30px;
        transform: translateY(50px); /* 入场动画改为从下方进入更自然 */
    }
    
    /* 调整入场动画方向 */
    .advantage-section.visible .adv-detail-panel {
        transform: translateY(0);
    }
}

/* 移动端 (<768px) */
@media (max-width: 768px) {
    .advantage-section {
        padding: 60px 0;
    }

    .advantage-header h2 {
        font-size: 1.8rem;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr; /* 单列 */
        gap: 15px;
    }
    
    .adv-detail-panel {
        padding: 25px;
        margin-top: 20px;
    }
    
    .adv-detail-panel h3 {
        font-size: 1.5rem;
    }
}

/* ================= 关于我们版块 (About Us) ================= */

.about-section {
    padding: 100px 0 0; /* 下方通过 .stats-section 填充 */
    background-color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* 关于我们背景线条装饰：规则方格线 + 交汇处黑点 */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 
      1. 黑色小圆点（交汇处） 
      2. 垂直方格线
      3. 水平方格线
    */
    background-image: 
        radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 51, 153, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 51, 153, 0.04) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 60px 60px;
    background-position: -1px -1px, 0 0, 0 0; /* 微调圆点位置使其精确对齐网格线交汇处 */
    z-index: -1;
    pointer-events: none;
}

.about-container {
    margin-bottom: 80px;
}

.about-top-content {
    display: grid;
    grid-template-columns: 42% 58%; /* 左右比例 */
    gap: 60px; /* 左右间距 */
    align-items: center; /* 垂直居中对齐 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 移除不需要的伪元素 */
.about-top-content::before,
.about-top-content::after {
    display: none;
}

/* 左侧卡片 (1-5) - 纵向拉长 */
.about-card {
    position: relative;
    z-index: 1;
    /* 完整的背景图 */
    background: url('../images/index/kapian.png') center/cover no-repeat;
    /* 四个圆角 */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    
    padding-bottom: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

/* 左侧卡片遮罩 */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
    border-radius: 20px;
}

/* 移除 L 型伪元素 */
.about-card::after {
    display: none;
}

/* 红色标签 */
.red-tag {
    position: relative;
    z-index: 2;
    background: var(--brand-primary);
    color: #fff;
    padding: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
    margin: 40px 30px 40px 40px;
    box-shadow: 0 5px 15px rgba(9, 104, 207, 0.3);
    border-radius: 10px;
}

.card-items {
    position: relative;
    z-index: 2;
    padding: 0 40px 40px 40px;
}

.card-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px; /* 列表间距适中 */
}

.card-item:last-child {
    margin-bottom: 0;
}

.item-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-primary);
    line-height: 1;
    margin-top: 5px;
}

.item-text h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: bold;
}

.item-text p {
    font-size: 0.9rem;
    color: #2c2929;
    line-height: 1.6;
}

/* 右侧文字区 - 保持完全独立，还原原始样式 */
.about-text-area {
    position: relative;
    z-index: 2;
    /* 无背景，无圆角，无特殊 margin */
    padding: 0 0 0 20px; /* 稍微给点左 padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 移除之前的 grid 定位 */
    grid-column: auto;
    grid-row: auto;
    background: transparent;
    border-radius: 0;
    margin: 0;
}

/* 移除 .about-extra-items 样式，因为 HTML 已经删除了 */
.about-extra-items {
    display: none;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
    /* 闪烁动画 */
    color: #000;
    opacity: 0; /* 入场前隐藏 */
    transform: translateY(20px);
}

/* 标题闪烁动画关键帧 */
@keyframes title-flash {
    0%, 100% { color: #000000; }
    50% { color: #999999; } /* 灰色过渡 */
}

.about-title.flashing {
    animation: title-flash 1.6s infinite ease-in-out; /* 间隔0.8s切换，即周期1.6s */
}

.company-name {
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.text-body {
    margin-bottom: 40px;
}

.text-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
}

/* 关于我们-特色元素区 */
.about-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid var(--brand-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.about-feature i {
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

.more-btn {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 10px 30px; /* 修正内边距 */
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    border-radius: 5px; /* 修正按钮圆角 */
    font-size: 0.9rem;
    align-self: flex-start; /* 关键：在 flex 容器中靠左对齐，不拉伸 */
    margin-top: 10px;
}

.more-btn:hover {
    background: var(--brand-primary-dark);
    color: #fff !important;
    transform: scale(1.05) translateY(0); /* 保持 hover 时的 scale 和原始位置 */
    box-shadow: 0 5px 15px rgba(7, 87, 173, 0.35);
}

/* ================= 入场动画 (Top Content) ================= */

.about-section.visible .about-card {
    opacity: 1;
    transform: translateX(0);
}

.about-section.visible .about-title {
    animation: fadeInUp 0.8s ease forwards, title-flash 1.6s infinite ease-in-out 0.8s; /* 入场后开始闪烁 */
}

.about-section.visible .company-name {
    animation: fadeInUp 0.8s ease forwards 0.1s;
}

.about-section.visible .text-body p:nth-child(1) { animation: fadeInUp 0.8s ease forwards 0.2s; }
.about-section.visible .text-body p:nth-child(2) { animation: fadeInUp 0.8s ease forwards 0.3s; }
.about-section.visible .text-body p:nth-child(3) { animation: fadeInUp 0.8s ease forwards 0.4s; }

.about-section.visible .about-features {
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.about-section.visible .more-btn {
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= 下半部分：数据展示区 (Stats) ================= */

.stats-section {
    position: relative;
    /* 建筑类背景图 (偏灰) - 添加背景色 fallback */
    background: #929191 url('../images/index/shuju.png') center/cover no-repeat;
    padding: 40px 0;
    color: #fff;
    overflow: hidden;
    
    /* 移除独立动画，跟随父级 */
    opacity: 1;
    transform: none;
    transition: none;
}

/* 顶部白色波浪纹 - 使用 SVG Mask 实现 "三个椭圆/波浪" 效果 */
.stats-section::before {
content: '';
position: absolute;
top: 0;          /* 改为贴在父容器顶部，而不是 -30px */
left: 0;
width: 100%;
height: 30px;   /* 高度改为波浪高度，而不是80px */
background-color: #fff;

/* 关键：SVG路径改为“上凸”，让白色边缘向下形成水滴 */
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q 25,50 50,0' fill='%23000'/%3E%3C/svg%3E");
-webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 50 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 Q 25,50 50,0' fill='%23000'/%3E%3C/svg%3E");

/* 调整mask-size，让波浪更密集 */
mask-size: 10% 100%;
-webkit-mask-size: 10% 100%;

mask-repeat: repeat-x;
-webkit-mask-repeat: repeat-x;

z-index: 10;
transform: none;
}

/* 移除 .stats-section.visible 规则，因为它不再需要独立入场 */

.stats-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.85); /* 深灰色遮罩 */
    z-index: 1;
}

/* 装饰元素容器 */
.stats-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    max-width: 1200px; /* 限制在容器宽度范围内 */
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

/* 白色小水滴 (CSS绘制) */
.deco-drop {
    position: absolute;
    /* 2010模块左侧: 2010大约在 0-25% 区间中心，水滴在更左侧 */
    left: 5%; 
    top: 40%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    opacity: 1;
}

/* 白色小齿轮 (CSS绘制 - 简化版圆环+齿) */
.deco-gear {
    position: absolute;
    /* 200+模块右侧: 200+大约在 75-100% 区间中心，齿轮在更右侧 */
    right: 5%;
    bottom: 35%;
    width: 18px;
    height: 18px;
    border: 2px solid #fff; /* 空心 */
    border-radius: 50%;
    opacity: 1;
}

.deco-gear::before, .deco-gear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 4px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.deco-gear::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.stats-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列等分 */
    gap: 0; /* 无间距 */
    text-align: center;
}

.stat-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ================= 新闻板块 (News) ================= */

.news-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* 新闻板块背景线条装饰 */
.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 网格线 + 微妙的对角线 */
    background-image: 
        linear-gradient(90deg, rgba(0, 51, 153, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 51, 153, 0.03) 1px, transparent 1px),
        repeating-linear-gradient(45deg, transparent, transparent 150px, rgba(0, 51, 153, 0.02) 150px, rgba(0, 51, 153, 0.02) 151px),
        repeating-linear-gradient(-45deg, transparent, transparent 150px, rgba(0, 51, 153, 0.02) 150px, rgba(0, 51, 153, 0.02) 151px);
    background-size: 80px 80px, 80px 80px, 100% 100%, 100% 100%;
    z-index: -1;
    pointer-events: none;
}

.news-section.visible {
    /* 触发内部子元素的动画 */
}

.news-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 左侧导航区 */
.news-sidebar {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    
    /* 入场动画：从左侧进入 */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.news-section.visible .news-sidebar {
    opacity: 1;
    transform: translateX(0);
}

.news-header {
    margin-bottom: 40px;
}

.news-title-en {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
    margin-bottom: 5px;
}

.news-title-cn {
    font-size: 1.2rem;
    color: #999;
    font-weight: normal;
}

.news-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.news-nav-item {
    font-size: 1.1rem;
    color: #000; /* 默认黑字 */
    padding: 15px 0 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.news-nav-item:hover {
    color: #666;
}

/* 激活状态：灰色字，左侧黑线 */
.news-nav-item.active {
    color: #999; /* 变灰 */
    border-left: 3px solid #000; /* 黑线 */
    padding-left: 25px; /* 轻微位移 */
    font-weight: bold;
}

.news-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.news-pagination-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d7dbe2;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--brand-primary);
}

.news-prev, .news-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-prev:hover, .news-next:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 右侧新闻列表区 */
.news-content {
    flex: 1;
    overflow: hidden; /* 隐藏超出部分 */
}

/* 轮播容器 */
.news-carousel {
    width: 100%;
    position: relative;
    overflow: hidden; /* 强制隐藏溢出，修复切换时的溢出问题 */
}

.news-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

/* 切换分类时的入场动画类 */
@keyframes fadeInUpSmall {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card.anim-enter {
    animation: fadeInUpSmall 0.5s ease forwards;
}

.news-slide {
    min-width: 100%;
    flex: 0 0 100%; /* 确保每个 slide 宽度为 100% 且不收缩 */
    box-sizing: border-box; /* 包含 padding */
    padding-right: 2px; /* 微调避免右侧溢出 */
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
}

.news-card {
    display: flex;
    flex-direction: row;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    min-height: 220px;
    height: 220px;
    position: relative;
    align-items: stretch;
}

.news-card:hover {
    box-shadow: none;
}

/* 移除最后一个卡片的底部边框逻辑，现在是网格不需要了 */
.news-grid .news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-section.visible .news-card {
    opacity: 1;
    transform: translateX(0);
}
.news-section.visible .news-card:hover {
    transform: translateY(-5px); /* 显示后 hover 状态覆盖位移 */
}

/* 依次延迟 */
.news-section.visible .news-card:nth-child(1) { transition-delay: 0.1s; }
.news-section.visible .news-card:nth-child(2) { transition-delay: 0.2s; }
.news-section.visible .news-card:nth-child(3) { transition-delay: 0.3s; }

/* 隐藏状态 */
.news-card.hidden {
    display: none;
}

/* 图文布局支持 */
.news-img-wrapper {
    width: 43%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-text-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding: 10px 0 10px 24px;
    min-width: 0;
    position: relative;
    z-index: 10;
    background: transparent;
}

.news-date {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: #7d8699;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 1rem;
    color: #6f7787;
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-detail-btn {
    align-self: flex-start;
    font-size: 1rem;
    font-weight: 700;
    color: #1d2230;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.news-detail-btn i {
    margin-left: 10px;
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

/* 按钮交互动画 */
.news-detail-btn:hover {
    color: var(--brand-primary);
}

.news-detail-btn:hover i {
    animation: arrow-rebound 0.6s ease forwards;
}

/* ================= 响应式适配 (News) ================= */

@media (max-width: 1024px) {
    .news-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .news-sidebar {
        flex: none;
        width: 100%;
        flex-direction: row; /* 平板端改为横向排列 */
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        /* 响应式入场方向修正 */
        transform: translateY(20px); 
    }
    
    .news-nav {
        display: flex;
        gap: 20px;
        margin: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        padding-bottom: 10px;
        margin-top: 20px;
    }
    
    .news-nav-item {
        padding: 10px 0;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .news-nav-item.active {
        padding-left: 0;
        border-left: none;
        border-bottom: 3px solid #000;
    }
    
    .news-controls {
        display: none; /* 平板端隐藏控制按钮 */
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr; /* 单列 */
        grid-template-rows: auto;
        gap: 32px;
    }
    
    .news-card {
        flex-direction: column; /* 移动端改为上下排列 */
        border-bottom: 1px solid #eee !important;
        padding-bottom: 30px !important;
    }

    .news-img-wrapper {
        width: 100%; /* 移动端图片满宽 */
        margin-right: 0;
        margin-bottom: 20px;
        height: 200px; /* 固定高度 */
    }
    
    .news-card:last-child {
        border-bottom: none !important;
    }
    
    .news-nav {
        overflow-x: auto; /* 支持横向滚动 */
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .news-nav-item {
        flex-shrink: 0;
    }
}

.stat-icon-wrapper {
    margin-bottom: 15px;
}

.stat-icon {
    font-size: 2rem; /* 适中尺寸 */
    color: #fff; /* 纯白 */
}

/* 数字样式 */
.stat-number {
    font-size: 3rem; /* 大号字体 */
    font-weight: bold;
    color: #fff; /* 纯白 */
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem; /* 小号说明文字 */
    color: #fff; /* 纯白 */
    opacity: 0.9;
}

/* Hover: 仅数字变红 (如果需要交互) - 用户未明确要求数据hover，但之前的代码有。保留以防万一，或者移除以严格匹配1:1静态还原 */
.stat-item:hover .stat-number {
    color: var(--brand-primary);
}

/* ================= 响应式适配 (About Us) ================= */

/* 平板端 (768px - 1199px) */
@media (max-width: 1199px) {
    .about-top-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;
    }
    
    .about-card {
        width: 100%; /* 宽度 100% */
        transform: translateY(-30px); /* 调整入场方向为上方 */
        grid-row: auto;
    }
    
    .about-section.visible .about-card {
        transform: translateY(0);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* 2列2行 */
        gap: 40px;
    }

    .about-extra-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 移动端 (<768px) */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0 0;
    }

    .about-title {
        font-size: 2.5rem; /* 缩小字号 */
    }
    
    .red-tag {
        margin: 20px;
        padding: 20px;
        font-size: 1rem;
    }
    
    .card-items {
        padding: 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr; /* 单列 */
        gap: 30px;
    }

    .about-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .more-btn {
        width: 100%; /* 全宽按钮 */
        text-align: center;
        padding: 15px;
    }

    .about-extra-items {
        grid-template-columns: 1fr;
    }
}

/* ================= 页脚版块 (Footer) ================= */

#main-footer {
    background-color: #1a1a1a; /* 深灰色背景，接近黑色 */
    color: #ccc;
    padding-top: 80px;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 60px;
    border-bottom: 1px solid #333; /* 底部横线 */
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* 品牌列 */
.brand-col {
    flex: 1.5; /* 稍微宽一点 */
    padding-right: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-desc {
    line-height: 1.8;
    color: #999;
}

/* 标题样式 */
.footer-heading {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
}

/* 标题下划线装饰 */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--brand-primary); /* 途瑞红 */
}

/* 链接列表 */
.footer-links, .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand-primary); /* 悬停变红 */
    padding-left: 5px; /* 悬停右移 */
}

/* 联系信息列表 */
.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #999;
    line-height: 1.6;
}

.contact-list i {
    color: var(--brand-primary); /* 图标红色 */
    margin-top: 4px;
}

/* 底部版权栏 */
.footer-bottom {
    background-color: #111; /* 更深的底色 */
    padding: 20px 0;
}

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

.copyright {
    color: #666;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 底部新增二维码区块样式 */
.footer-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-right: 25px; /* 与右侧图标保持一点距离 */
    background: transparent; /* 背景透明，与 footer 融合 */
    padding: 0; /* 移除内边距 */
    border-radius: 0;
}

.footer-qr-block img {
    width: 80px; /* 进一步缩小二维码 */
    height: 80px;
    border: none; /* 去除边框，参考图无边框 */
    border-radius: 4px;
    background-color: #fff;
    padding: 4px; /* 减小内边距 */
}

.footer-qr-block p {
    font-size: 0.85rem;
    color: #999; /* 改回原本 footer 文字的颜色 */
    line-height: 1.5;
    margin: 0;
    text-align: center;
    max-width: 140px; /* 限制宽度让文字换行 */
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--brand-primary);
    transform: translateY(-3px);
}

.wechat-icon-container {
    position: relative;
    display: inline-block;
}

.wechat-qr-popup {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.wechat-qr-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.wechat-qr-popup img {
    width: 100px;
    height: 100px;
    display: block;
    margin-bottom: 5px;
}

.wechat-qr-popup span {
    color: #333;
    font-size: 0.8rem;
    white-space: nowrap;
}

.wechat-icon-container:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .brand-col {
        padding-right: 0;
    }
    
    .bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-icons {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    .footer-qr-block {
        align-items: center;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ================= 咨询弹窗样式 ================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100vw; 
    height: 100vh; 
    overflow: hidden; /* 防止出现滚动条导致跳动 */
    background-color: rgba(0,0,0,0.6); 
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px); /* 增加背景模糊效果 */
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    /* 使用相对路径时，空格不需要转义，直接用引号包裹即可 */
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(240, 248, 255, 0.9)), url('../images/index/shouye datu/DT-top1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 回弹动画 */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 20px rgba(9, 104, 207, 0.2); /* 增加发光阴影 */
    border-top: 5px solid var(--brand-primary); /* 顶部品牌色边框 */
    margin: auto; /* 辅助居中 */
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #999;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #e60012;
    transform: rotate(90deg);
}

.modal-title {
    color: var(--brand-primary); /* 使用品牌蓝 */
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 900;
}

/* 突出显示的服务文字 */
.modal-highlight-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e60012; /* 醒目红色 */
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(230, 0, 18, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(230, 0, 18, 0.3);
    /* 常亮闪烁动画 */
    animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
    0% { box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.4); background: rgba(230, 0, 18, 0.05); }
    50% { box-shadow: 0 0 15px 5px rgba(230, 0, 18, 0.1); background: rgba(230, 0, 18, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(230, 0, 18, 0); background: rgba(230, 0, 18, 0.05); }
}

.modal-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-qr {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-qr img {
    width: 180px; /* 增大二维码 */
    height: 180px;
    border: 2px solid var(--brand-primary); /* 蓝色边框 */
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-qr p {
    color: var(--brand-primary);
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-phones {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.phone-label {
    color: var(--brand-secondary); /* 醒目颜色 */
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.6rem; /* 更大字体 */
    font-weight: 900;
    color: #333;
    letter-spacing: 2px;
}

/* ================= 返回顶部按钮 ================= */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: var(--brand-primary);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: var(--brand-primary-dark);
    transform: translateY(-5px);
}

.service-btn,
.submit-btn,
.read-more-btn,
.news-control-btn:hover,
.social-icon:hover,
.page-dot.active,
.news-pagination .active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.service-btn:hover,
.submit-btn:hover,
.read-more-btn:hover {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    animation: btnPulse 1.2s ease-in-out infinite;
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}

.tag,
.news-tag,
.highlight-tag {
    background-color: rgba(163, 168, 224, 0.22) !important;
    color: var(--brand-primary) !important;
}

a:hover,
.nav-links li a:hover,
.footer-links a:hover,
.benefit-list li i,
.modal-qr p {
    color: var(--brand-primary) !important;
}

.consultation-btn,
.consultation-btn:hover,
.consultation-btn:focus,
.consultation-btn:active,
.service-btn,
.service-btn:hover,
.service-btn:focus,
.service-btn:active,
.submit-btn,
.submit-btn:hover,
.submit-btn:focus,
.submit-btn:active,
.read-more-btn,
.read-more-btn:hover,
.read-more-btn:focus,
.read-more-btn:active {
    color: #fff !important;
}
