/* ===================================================================== */
/* === 00. 全局变量与基础设置 (通用文件) === */
/* ===================================================================== */

:root {
    /* 蓝绿渐变定义 (作为强调色) */
    --brand-gradient: linear-gradient(90deg, #00BFFF 0%, #00FF87 100%);
    --color-primary: #00BFFF;
    /* 明确定义主品牌色 */

    /* 浅色模式颜色 */
    --color-bg-light: #FFFFFF;
    /* 主背景色：纯白 */
    --color-bg-secondary: #F8F9FA;
    /* 次要背景色：极浅灰 */
    --color-text-dark: #212529;
    /* 主文本颜色：深黑 */
    --color-text-subtle: #6c757d;
    /* 次要文本颜色：中灰 */
    --color-card-bg: #FFFFFF;
    /* 卡片背景：白色 */
    --color-border-light: #E9ECEF;
    /* 浅色边框 */

    --header-height: 50px;
    /* 头部高度变量 (从 Header 文件移至此，供全局使用) */
    
    /* 页脚深色 (保留变量，但样式已移除) */
    --color-footer-bg: #212529;
    --color-footer-text: #ADB5BD;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    /* 使用 var(--header-height) 计算，此处假定 Header 高度是 50px，但您在输入中设定了 100px。
       为了避免冲突，我使用 100px。如果您在 :root 中使用 --header-height: 50px，则这里应为 50px */
    padding-top: 80px;
}

/* 容器居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用区域间距和标题 */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-subtle);
    text-align: center;
    margin-bottom: 60px;
}

/* ===================================================================== */
/* === 01. 按钮样式 (Buttons) - 统一和修复圆角/渐变 === */
/* ===================================================================== */

/* 按钮基类 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    /* AUTO-REPLACE: replaced 'transition: all' with property-specific transitions */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;

    /* 统一圆角 */
    border-radius: 8px;
    border: none;
}

.btn-login {
    /* 继承自 .btn 的字体、颜色等 */
    color: var(--color-text-dark);
    font-weight: 600;
    text-decoration: none;

    /* 移除按钮的背景、边框和大部分填充，使其表现为链接 */
    background: none;
    border: none;
    padding: 10px 15px;
    /* 较小的填充，保持可点击区域 */

    transition: color 0.3s ease;
}

.btn-login:hover {
    color: var(--color-primary);
    /* 悬停时使用品牌色 */
    text-decoration: none;
}

.btn-large {
    padding: 18px 45px !important;
    font-size: 1.1rem;
}

/* 主要 CTA 按钮：蓝绿渐变背景 (用于试用/注册) */
.btn-primary {
    background: var(--brand-gradient);
    color: var(--color-bg-light);
    /* 渐变背景上的文字为白色 */
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    /* 渐变色阴影 */
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
    transform: translateY(-2px);
}

/* 次要 CTA 按钮 (btn-secondary) - 保持为蓝绿渐变背景 (用于试用/注册) */
.btn-secondary {
    background: var(--brand-gradient);
    color: var(--color-bg-light);
    /* 渐变背景上的文字为白色 */
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    /* 渐变色阴影 */
    border: none;
    /* AUTO-REPLACE: replaced 'transition: all' with property-specific transitions */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
    transform: translateY(-2px);
    color: var(--color-bg-light);
}

/* 【新增样式】: 联系/咨询销售按钮 (白色底，黑色边框) */
.btn-outline-dark {
    /* 核心样式 */
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
    /* 黑色边框 */
    box-shadow: none;

    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.btn-outline-dark:hover {
    /* 悬停效果 */
    background-color: var(--color-bg-secondary);
    /* 极浅灰背景反馈 */
    border-color: var(--color-text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: var(--color-text-dark);
}

/* ===================================================================== */
/* === 02. hero区域 (Trust Section) === */
/* ===================================================================== */

/* 焦点区域布局 */
#hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: var(--color-bg-light);
    /* 浅色背景 */
}

/* 背景 Canvas 层 */
#hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    /* 透明度要低，适应浅色背景 */
    z-index: 1;
}

/* assets/css/hero.css - 背景图片样式 (已移除灰度) */
.hero-background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 居中定位 */
    width: 100%;
    /* 宽度覆盖整个区域 */
    height: 100%;
    object-fit: cover;
    /* 确保图片覆盖整个区域，可能裁剪 */
    z-index: 0;
    /* 放置在最底层，低于 canvas 和内容 */

    /* ***** 关键样式：移除灰度，保留颜色和半透明/模糊效果 ***** */
    opacity: 0.3;
    /* 保留半透明，作为背景 */
    /* filter: blur(3px); */
    /* 仅保留轻微模糊，移除 grayscale(100%) */
    /* ----------------------------------------------------- */

    pointer-events: none;
    /* 确保图片不干扰鼠标事件 */
}

/* 内容层 */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-tagline {
    color: #00BFFF;
    /* 标签使用亮蓝色 */
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    /* 标题使用深色 */
}

.subtitle {
    font-size: 1.4rem;
    color: var(--color-text-subtle);
    margin-bottom: 40px;
}

/* ===================================================================== */
/* === 03. 信任背书区域 (Trust Section) - 修复无缝轮播 === */
/* ===================================================================== */

#trust-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-bg-light);
}

.trust-heading {
    font-size: 1.1rem;
    color: var(--color-text-subtle);
    margin-bottom: 40px;
}

/* 修复 Logo 墙动画容器 */
.logo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 10px;
}

.logo-carousel-track {
    display: flex;
    /* 关键：宽度必须是总内容的两倍，让 translateX(-50%) 精确定位到复制的起点 */
    width: fit-content;
    white-space: nowrap;
    animation: scroll-logos 40s linear infinite;
}

.logo-group {
    /* 使用 Flex 布局控制 Logo 组内的间距 */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-group img {
    height: 35px;
    margin: 0 50px;
    /* 关键：统一使用 margin 在图片之间创建间距 (50px 左右间距) */
    /* 如果您想使用 gap，请将 .logo-group 改为 `gap: 100px;` 并移除这里的 margin */
    filter: none;
    opacity: 1;
    /* 保持默认透明度 */
    /* AUTO-REPLACE: replaced 'transition: all' with property-specific transitions */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.logo-group img:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

/* --- 轮播动画修复 --- */
@keyframes scroll-logos {
    from {
        transform: translateX(0);
        /* 从第一组内容的起点开始 */
    }

    to {
        /* 关键修复：滚动距离必须是第一组内容宽度的精确负值。
         因为 HTML 中内容被复制了一次，所以滚动 -50% 相当于
         滚动了第一组内容的完整宽度。 */
        transform: translateX(-50%);
    }
}


/* ===================================================================== */
/* === 04. 核心产品概览区域 (Products Section) === */
/* ===================================================================== */

#products-section {
    padding: 80px 0;
}

/* --- 顶部介绍文字 --- */
.product-intro {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 80px auto;
}

.product-intro h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.product-intro p {
    font-size: 1.15rem;
    color: var(--color-text-subtle);
}


/* --- 左右分栏结构 --- */
.products-grid-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.products-left {
    flex: 1;
    padding-right: 30px;
}

.products-right {
    flex: 1.2;
    position: relative;
    min-height: 450px;
    /* 确保内容区不塌陷 */
}

.section-title-left {
    font-size: 2.0rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
}

.products-description {
    font-size: 1.1rem;
    color: var(--color-text-subtle);
    margin-bottom: 30px;
}

/* 特点列表 */
.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.features-list li {
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.8;
    display: flex;
    align-items: center;
}

.features-list .icon-check {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    background: var(--brand-gradient);
    border-radius: 50%;
}

/* --- 标签切换 (Tabs) --- */
.product-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    z-index: 10;
}

.tab-button {
    background: none;
    border: none;
    color: var(--color-text-subtle);
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    /* AUTO-REPLACE: replaced 'transition: all' with property-specific transitions */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: #00BFFF;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00BFFF;
}

/* --- 产品卡片列表样式 (List View) --- */
.product-cards-list {
    display: none;
    position: absolute;
    /* 绝对定位，防止列表切换时出现空白 */
    top: 55px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-cards-list.active {
    display: flex;
    opacity: 1;
}

.product-card.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid var(--color-border-light);
    /* AUTO-REPLACE: replaced 'transition: all' with property-specific transitions */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card.list-item:hover {
    transform: none;
    border-color: #00BFFF;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.1);
}

.product-card.list-item .card-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.product-card.list-item .card-text {
    flex-grow: 1;
    text-align: left;
}

.product-card.list-item h3 {
    margin: 0;
    font-size: 1.2rem;
}

.product-card.list-item p {
    margin: 0;
    font-size: 0.9rem;
}

.card-price {
    flex-shrink: 0;
    font-weight: 700;
    color: #00FF87;
    /* 绿色强调价格 */
}

/* 重点卡片高亮样式（如果不需要默认高亮，请在HTML中移除.highlight类） */
.product-card.highlight {
    background-color: var(--color-bg-secondary);
    border-color: #00BFFF;
}

/* --- Products Section 响应式调整 --- */
@media (max-width: 992px) {
    .products-grid-container {
        flex-direction: column;
        gap: 40px;
    }

    .products-left {
        padding-right: 0;
    }

    .products-right {
        min-height: auto;
        position: static;
        /* 移动端取消绝对定位 */
    }

    .product-cards-list {
        position: static;
        top: auto;
        left: auto;
    }

    .section-title-left {
        text-align: center;
    }

    .product-intro {
        margin-bottom: 40px;
    }
}


/* ===================================================================== */
/* === 05. 数据指标区域 (Metrics Section) === */
/* ===================================================================== */

#metrics-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    /* 数字渐变色填充 */
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-unit {
    font-size: 1.1rem;
    color: var(--color-text-subtle);
}

/* --- Metrics Section 响应式调整 --- */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================================================== */
/* === 06. 解决方案区域 (Solutions Section) - 垂直轮播 === */
/* ===================================================================== */

.solutions-grid-container {
    display: flex;
    gap: 60px;
}

.solutions-left {
    flex: 1;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 右侧轮播容器 */
.solutions-right {
    flex: 1.5;
    max-height: 550px;
    /* 限制轮播区域的高度 */
    overflow: hidden;
    border-radius: 12px;
}

.vertical-carousel-container {
    display: flex;
    gap: 20px;
    height: 100%;
}

.carousel-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* 增大卡片之间的间距 */
    height: fit-content;
}

/* 轮播卡片样式 */
.solution-item.list-card {
    display: flex;
    align-items: center;
    padding: 35px 25px;
    border-radius: 12px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border-light);
    /* AUTO-REPLACE: replaced 'transition: all' with property-specific transitions */
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.solution-item.list-card:hover {
    transform: none;
    border-color: #00BFFF;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.1);
}

.solution-item.list-card .item-icon {
    flex-shrink: 0;
    margin-right: 20px;
    margin-top: 0;
}

.solution-item.list-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.solution-item.list-card p {
    font-size: 0.95rem;
    color: var(--color-text-subtle);
    margin: 0;
}

/* 轮播动画定义 */
@keyframes scroll-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes scroll-down {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

.column-up {
    animation: scroll-up 40s linear infinite;
}

.column-down {
    animation: scroll-down 40s linear infinite;
}

/* --- Solutions Section 响应式调整 --- */
@media (max-width: 992px) {
    .solutions-grid-container {
        flex-direction: column;
    }

    .solutions-right {
        max-height: none;
        overflow: visible;
    }

    .vertical-carousel-container {
        flex-direction: column;
    }

    .carousel-column {
        width: 100%;
        animation: none !important;
        /* 手机上禁用动画 */
    }
}


/* ===================================================================== */
/* === 07. 集成模块 (Integration Section) === */
/* ===================================================================== */

#integration-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border-light);
    /* 围绕区域添加渐变色阴影 */
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.2);
    border-radius: 12px;
}

.integration-header {
    text-align: center;
    margin-bottom: 60px;
}

.integration-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.integration-header p {
    font-size: 1.15rem;
    color: var(--color-text-subtle);
    max-width: 700px;
    margin: 0 auto;
}

/* 平台 Logo 网格容器 */
.platform-logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 强制 5 列布局 */
    gap: 50px 30px;
    justify-items: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* 单个集成项容器 */
.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.integration-item img {
    max-width: 120px;
    height: auto;
    filter: none;
    opacity: 1;
    transition: none;
    margin-bottom: 10px;
}

/* 平台名称文字样式 */
.integration-item .platform-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    line-height: 1.2;
}


/* --- Integration Section 响应式调整 --- */
@media (max-width: 992px) {
    .platform-logos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .platform-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 15px;
    }
}

@media (max-width: 480px) {
    .platform-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===================================================================== */
/* === 08. 底部行动号召区域 (Final CTA) === */
/* ===================================================================== */

#final-cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    margin-top: 10px;
}

.cta-content h2 {
    color: var(--color-text-dark);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-text-subtle);
    margin-bottom: 40px;
}


/* ===================================================================== */
/* 可访问性与性能：焦点样式与减少动画支持 */
/* ===================================================================== */

/* 明显的键盘焦点样式，便于无障碍导航 */
:focus,
:focus-visible {
    /* outline: 3px solid rgba(0, 191, 255, 0.25); */
    outline-offset: 3px;
}

/* 如果用户偏好减少动画，禁用非必要的动画与过渡 */
@media (prefers-reduced-motion: reduce) {

    .logo-carousel-track,
    .column-up,
    .column-down,
    .logo-group img,
    .btn,
    /* 移除 .mega-menu-content, .submenu 的样式，因为它们属于 header.css */
    /* .mega-menu-content, .submenu, */
    #main-header {
        animation: none !important;
        transition: none !important;
    }
}