/* =========================================================
   火山引擎高仿重构纯净样式 (Volcano Pure Theme)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --volc-primary: #1664FF;
    --volc-primary-hover: #0E42D2;
    --volc-primary-light: #E8F3FF;
    --volc-text-title: #1D2129;
    --volc-text-body: #4E5969;
    --volc-text-muted: #86909C;
    --volc-bg-page: #F7F8FA;
    --volc-bg-card: #FFFFFF;
    --volc-border: #E5E6EB;
    
    --volc-radius-sm: 4px;
    --volc-radius-md: 8px;
    --volc-radius-lg: 16px;
    
    --volc-shadow-card: 0 4px 10px rgba(0, 0, 0, 0.04);
    --volc-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--volc-bg-page);
    color: var(--volc-text-body);
    -webkit-font-smoothing: antialiased;
    padding-top: 0; /* 取消全局 padding-top，避免与旧版内页的 top padding 叠加产生白缝 */
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
}

/* --- 1. 顶部导航栏 (高级渐变科技版) --- */
.volc-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    /* 采用从左(极深蓝)到右(亮科技蓝)的平滑渐变，
       既能完美衬托出左侧包含白字的Logo，又让右侧充满轻盈活力，彻底消除死黑的头重脚轻感 */
    background: linear-gradient(90deg, #0A1526 0%, #0F2A5D 45%, #1664FF 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); /* 轻微悬浮阴影 */
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 32px;
}

.volc-logo img {
    height: 32px;
    margin-right: 48px;
    /* 移除之前的滤镜，100% 保持您原Logo的设计和色彩保真度！
       因为背景已经变黑，白色文字完美显现。 */
}

.volc-nav {
    display: flex;
    flex: 1;
    height: 100%;
}

.volc-nav-item {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #C9CDD4; /* 深色背景上的浅灰字，不刺眼的高级感 */
    font-size: 14px;
    font-weight: 500;
    height: 100%;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.volc-nav-item:hover {
    color: #FFFFFF; /* 悬停时文字变为纯白，提示激活 */
}

.volc-nav-item span.arrow {
    font-size: 10px;
    margin-left: 6px;
    color: #86909C;
    transition: transform 0.2s;
}

.volc-nav-item:hover span.arrow {
    transform: rotate(180deg);
}

.volc-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.volc-btn-text {
    font-size: 14px;
    color: #C9CDD4;
    transition: color 0.2s ease;
}

.volc-btn-text:hover {
    color: #FFFFFF;
}

.volc-btn-console {
    background: #1664FF; /* 在深色背景下使用显眼的火山蓝实心按钮 */
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 16px; 
    font-size: 14px;
    font-weight: 500;
}

.volc-btn-console:hover {
    background: #0E42D2;
}

/* --- Mega Menu (巨型下拉菜单) --- */
.volc-mega-menu {
    position: absolute;
    top: 64px; /* 紧贴 Header 底部 */
    left: 0;
    width: 100vw;
    background: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--volc-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    justify-content: center;
    cursor: default;
}

.volc-nav-item:hover .volc-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: flex;
    width: 100%;
    max-width: 1440px; /* 和内容区等宽 */
    min-height: 380px;
}

/* 左侧栏 (带无限延伸的高级修饰背景) */
.mega-sidebar {
    position: relative;
    width: 280px;
    padding: 40px 32px;
    flex-shrink: 0;
    z-index: 1;
}

/* 核心魔法：向左无限延伸的装饰底板，完美填补版心外的空白 */
.mega-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50vw; /* 向左延伸足足半个屏幕宽，绝对能盖住所有左侧留白 */
    /* 设计风格：充满大厂科技感的浅海冰蓝渐变，外加左下角的微弱光晕修饰 */
    background: radial-gradient(circle at bottom left, rgba(22, 100, 255, 0.06) 0%, transparent 60%),
                linear-gradient(135deg, #F4F7FC 0%, #EAF0FA 100%);
    z-index: -1;
    /* 右侧加上一道极其微弱的阴影，增加与右侧纯白菜单的立体区隔感 */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.03);
}

.mega-sidebar h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--volc-text-title);
    margin: 0 0 16px 0;
}

.mega-sidebar p {
    font-size: 13px;
    color: var(--volc-text-body);
    line-height: 1.6;
    margin: 0;
}

/* 右侧内容区 */
.mega-content {
    flex: 1;
    padding: 40px 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 仿截图的两列布局 */
    gap: 60px;
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-col-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--volc-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.mega-col-title span.arr {
    margin-left: 4px;
    font-size: 14px;
}

.mega-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.mega-item .m-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--volc-text-title);
    margin-bottom: 4px;
    transition: color 0.2s;
}

.mega-item .m-desc {
    font-size: 13px;
    color: var(--volc-text-muted);
}

.mega-item:hover .m-title {
    color: var(--volc-primary);
}

/* --- 2. 首屏 Hero 区域 --- */
.volc-hero-section {
    padding: 96px 32px 32px 32px; /* 上边距增加 64px 补充导航栏高度，避免被固定导航栏遮挡 */
    max-width: 100%;
    margin: 0 auto;
}

.volc-hero-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 24px;
    height: 480px;
}

.volc-hero-main {
    background: linear-gradient(135deg, #F5F7FF 0%, #E6EFFF 100%);
    border-radius: 8px; /* 缩小圆角以对齐火山引擎风格 */
    position: relative;
    overflow: hidden;
}

.volc-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.volc-hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: absolute; /* 修复配图没拉伸到底的问题，统一绝对定位铺满 */
}

/* 轮播指示器 */
.volc-slider-dots {
    position: absolute;
    bottom: 32px;
    left: 60px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.volc-slider-dots .dot {
    width: 24px;
    height: 4px;
    background: rgba(22, 100, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volc-slider-dots .dot:hover {
    background: rgba(22, 100, 255, 0.5);
}

.volc-slider-dots .dot.active {
    background: var(--volc-primary);
    width: 36px;
}

.volc-hero-content {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.volc-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--volc-text-body);
    margin-bottom: 12px;
}

.volc-hero-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--volc-text-title);
    margin-bottom: 24px;
    line-height: 1.2;
}

.volc-hero-desc {
    font-size: 16px;
    color: var(--volc-text-body);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 500px;
}

.volc-hero-btn {
    display: inline-block;
    background: var(--volc-primary);
    color: #FFF;
    padding: 12px 36px;
    border-radius: var(--volc-radius-sm);
    font-size: 16px;
    font-weight: 500;
    align-self: flex-start;
}

.volc-hero-btn:hover {
    background: var(--volc-primary-hover);
    color: #FFF;
}

.volc-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 66%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 55%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 55%);
    z-index: 1;
}

/* --- 首屏右侧 3 小卡片 --- */
.volc-hero-side {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #FFFFFF; /* 融入一个整块的白色底色区域 */
    border-radius: 8px; /* 与左侧大卡片一致的硬朗小圆角 */
    padding: 0 16px;
}

.volc-side-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1; /* 自动平分 480px 的总高度 */
    padding: 0 16px;
    border-bottom: 1px solid var(--volc-border); /* 三横线分隔 */
    transition: background 0.3s ease;
}

.volc-side-card:last-child {
    border-bottom: none; /* 最后一条去掉底部分隔线 */
}

.volc-side-card:hover {
    background: #F7F8FA; /* 鼠标悬停时不再突兀上浮，而是融入底色的一丝灰度变化 */
}

.volc-side-text {
    flex: 1;
    padding-right: 24px;
}

.volc-side-text h4 {
    font-size: 16px; /* 更精致紧凑的字体 */
    font-weight: 600;
    color: var(--volc-text-title);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.volc-side-text p {
    font-size: 13px;
    color: var(--volc-text-muted);
    margin: 0;
}

.volc-side-img {
    width: 140px; /* 配图略大，呈现黄金比例长方形 */
    height: 90px;
    border-radius: 4px; /* 极小的圆角 */
    background: #F2F3F5;
    flex-shrink: 0;
    overflow: hidden;
}

.volc-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.volc-side-card:hover .volc-side-img img {
    transform: scale(1.05); /* 悬停时图片微微放大，增强交互感 */
}

/* --- 3. 模块通用 --- */
.volc-section {
    padding: 60px 32px;
    max-width: 100%;
    margin: 0 auto;
}

.volc-section-bg-white {
    background: #FFFFFF;
}

.volc-section-header {
    margin-bottom: 32px;
}

.volc-section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--volc-text-title);
    margin: 0 0 8px 0;
}

.volc-section-subtitle {
    font-size: 14px;
    color: var(--volc-text-muted);
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* --- 3. 产品推荐 Bento 光效独立卡片流 --- */
.volc-section-bg-white {
    /* 大改背景：使用极其细腻的高级冷灰色托底，让白色独立卡片浮现出来 */
    background: #F2F3F8;
    background-image: radial-gradient(#e2e5f0 1px, transparent 1px);
    background-size: 32px 32px;
}

.volc-product-grid {
    display: grid;
    /* 恢复 4x2 的平铺布局 */
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; /* 收紧卡片间距 */
}

.volc-product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    /* 减小圆角，与首屏元素保持一致 */
    border-radius: var(--volc-radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 大厂级非对称排版：左右分栏 */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), inset 0 0 0 1px rgba(255,255,255,0.5);
}

/* 高级极光渐变背景：沉浸在右上角 */
.volc-product-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 100% 0%, rgba(26, 115, 232, 0.05) 0%, transparent 60%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 极其优雅的悬浮态：上升、光晕爆发、极光染色 */
.volc-product-card:hover {
    background: #FFFFFF;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 115, 232, 0.08), 0 1px 3px rgba(0,0,0,0.02);
    border-color: rgba(26, 115, 232, 0.1);
}

.volc-product-card:hover .volc-product-bg {
    /* 悬浮时，极光蔓延并加入一丝高级的紫光融合 */
    background: radial-gradient(circle at 100% 0%, rgba(26, 115, 232, 0.12) 0%, rgba(138, 43, 226, 0.03) 40%, transparent 80%);
    transform: scale(1.1);
}

/* 左右两列布局的容器 */
.volc-product-card-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.volc-product-card-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 撑开：上图标、下标签 */
    align-items: flex-end;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* 标题与描述 */
.volc-product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--volc-text-title);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.volc-product-card p {
    font-size: 13px;
    color: var(--volc-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* 图标设计：弱化底色，与背景极光融合 */
.volc-product-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(26, 115, 232, 0.04);
    color: var(--volc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(26, 115, 232, 0.08);
}

.volc-product-card:hover .volc-product-icon {
    transform: scale(1.1) rotate(-4deg);
    background: linear-gradient(135deg, var(--volc-primary) 0%, #0d47a1 100%);
    color: #FFF;
    border-color: var(--volc-primary);
    box-shadow: 0 8px 16px rgba(26,115,232,0.25);
}

.volc-product-icon svg {
    width: 22px;
    height: 22px;
}

/* 软著认证标签：精工胶囊 */
.volc-product-cert {
    font-size: 10px; /* 更加极致的微小修饰 */
    color: var(--volc-text-muted); /* 弱化为灰色字体 */
    background: #F7F8FA; /* 极浅的灰色底 */
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 400; /* 降低字重 */
    border: 1px solid #E5E6EB; /* 极弱边框 */
    display: flex;
    align-items: center;
}

/* 响应式，将便当盒化为移动端列表 */
@media (max-width: 992px) {
    .volc-card-xl, .volc-card-lg, .volc-card-md, .volc-card-sm {
        grid-column: span 6;
    }
}
@media (max-width: 576px) {
    .volc-card-xl, .volc-card-lg, .volc-card-md, .volc-card-sm {
        grid-column: span 12;
    }
}

/* --- 解决方案 无限轮播跑马灯 (Marquee) --- */
.volc-solution-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0; /* 给卡片阴影留空间 */
}

/* 左右渐变遮罩层，实现卡片边缘的高级消隐效果 */
.volc-solution-marquee::before,
.volc-solution-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 250px;
    z-index: 2;
    pointer-events: none;
}
.volc-solution-marquee::before {
    left: 0;
    background: linear-gradient(to right, #F7F8FA, transparent);
}
.volc-solution-marquee::after {
    right: 0;
    background: linear-gradient(to left, #F7F8FA, transparent);
}

.volc-marquee-track {
    display: flex;
    width: fit-content;
}

.volc-marquee-track:hover .volc-marquee-group {
    animation-play-state: paused; /* 鼠标悬浮时暂停所有滚动 */
}

.volc-marquee-group {
    display: flex;
    gap: 24px;
    padding-right: 24px; /* 补齐首尾衔接的缝隙 */
    flex-shrink: 0;
    /* 关键修复：动画绑定在每个克隆的 group 上，实现完美无缝衔接 */
    animation: scrollMarquee 70s linear infinite;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.volc-solution-card {
    position: relative;
    border-radius: var(--volc-radius-md);
    overflow: hidden;
    height: 300px;
    width: 380px; /* 固定宽度，确保跑马灯稳定 */
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.volc-solution-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.volc-solution-card:hover .volc-solution-bg {
    transform: scale(1.05);
}

.volc-solution-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.volc-solution-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}

.volc-solution-content h3 {
    color: #FFF;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.volc-solution-content p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* --- 底部 --- */
.volc-mega-footer {
    background: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
    color: #fff;
    padding: 60px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.volc-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr 1fr 1.5fr;
    gap: 20px;
    margin-bottom: 40px;
}

.volc-footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.volc-footer-col h4.empty-title {
    visibility: hidden;
}

.volc-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.volc-footer-col ul li {
    margin-bottom: 12px;
    display: flex;
}

.volc-footer-col ul li a,
.volc-footer-col ul li span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.volc-footer-col ul li a:hover {
    color: #1a73e8;
}

.volc-footer-contact .contact-label {
    min-width: 65px;
    color: rgba(255, 255, 255, 0.45);
}

.volc-footer-logo {
    margin-bottom: 20px;
    margin-top: -8px;
    text-align: left !important;
}

.volc-footer-logo img {
    max-width: 140px;
    opacity: 0.8;
    display: block;
    margin: 0;
}

.volc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.volc-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

.volc-footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.volc-footer-bottom a:hover {
    color: #1a73e8;
}

@media (max-width: 992px) {
    .volc-footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .volc-footer-col h4.empty-title {
        display: none;
    }
}
@media (max-width: 576px) {
    .volc-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .volc-footer-logo {
        text-align: left;
    }
}
