/* --- 全局变量与重置 --- */
:root {
    --primary: #0f172a;       /* 深岩灰/黑 */
    --accent: #0284c7;        /* 科技蓝 */
    --text-main: #334155;     /* 主要文字 */
    --text-light: #64748b;    /* 次要文字 */
    --bg-light: #f8fafc;      /* 浅灰背景 */
    --border: #e2e8f0;        /* 边框色 */
    --card-bg: rgba(255, 255, 255, 0.7);
}

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

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden; /* 防止移动端横向滚动 */
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-nav {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Section (方案二核心) --- */
.hero-opt2 {
    padding: 10rem 2rem 6rem;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* 左侧文字稍微宽一点 */
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Hero 文字部分 */
.tag-line {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title-left {
    font-size: 4.5rem; /* 大号标题 */
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.hero-subtitle-left {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 90%;
    margin-bottom: 3rem;
}

/* --- 核心按钮：默认科技蓝，悬浮变 Apple 风深灰色 --- */
.btn-tech {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent); /* 科技蓝 */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px; /* 稍微加大一点圆角，更符合现在 Apple 的审美 */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Apple 式丝滑阻尼动画 */
    margin-bottom: 3rem;
}

/* 鼠标悬浮：平滑过渡到 Apple 深灰色 */
.btn-tech:hover {
    background: #1d1d1f; /* 苹果官网标志性深灰 */
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(29, 29, 31, 0.15); /* 更柔和、通透的灰色阴影 */
}

/* --- 按钮组容器 --- */
.hero-actions {
    display: flex;
    gap: 1.5rem; /* 这里控制两个按钮之间的间距，1.5rem(约24px)非常舒适 */
    margin-bottom: 3rem; /* 保持原来与下方团队信息的距离 */
    flex-wrap: wrap; /* 当手机屏幕太窄时，按钮会自动换成上下排列 */
}

/* 因为外层加了 margin-bottom，重置内部按钮的底部边距 */
.hero-actions .btn-tech {
    margin-bottom: 0;
}

/* --- 次级线框按钮：默认蓝色线框，悬浮变 Apple 深灰实心 --- */
.btn-tech.btn-outline-tech {
    background: transparent;
    color: var(--accent); 
    border: 2px solid var(--accent); 
    box-shadow: none; 
}

/* 鼠标悬浮：平滑过渡到 Apple 深灰色 */
.btn-tech.btn-outline-tech:hover {
    background: #1d1d1f; /* 苹果官网标志性深灰 */
    color: #fff; 
    border-color: #1d1d1f; 
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(29, 29, 31, 0.15); /* 同样的柔和灰色阴影 */
}

.tech-team-info {
    border-left: 3px solid var(--border);
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.team-group {
    margin-bottom: 0.5rem;
}

.team-group strong {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Hero 右侧可视化部分 */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 简单的 CSS 动画图示占位符 */
.graph-icon-placeholder {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 1rem;
}

.node {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--accent);
    animation: pulse 3s infinite ease-in-out;
}

.n1 { top: 20%; left: 50%; }
.n2 { top: 70%; left: 20%; animation-delay: 0.5s; background: #6366f1; }
.n3 { top: 70%; left: 80%; animation-delay: 1s; background: #10b981; }

.line {
    position: absolute;
    background: #cbd5e1;
    height: 2px;
    transform-origin: 0 0;
}
.l1 { top: 20%; left: 50%; width: 120px; transform: rotate(115deg); }
.l2 { top: 20%; left: 50%; width: 120px; transform: rotate(65deg); }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.visual-caption {
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    z-index: 10;
}

/* --- 通用 Section 样式 --- */
.section {
    padding: 6rem 2rem;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); color: white; }

/* --- 移动点亮卡片 (Spotlight Cards) --- */
.cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: rgba(255, 255, 255, 0.5); /* 半透明 */
    border-radius: 12px;
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    cursor: default;
    border: 1px solid var(--border);
    overflow: hidden; /* 关键：裁剪光晕 */
}

/* 光晕层 */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(2, 132, 199, 0.15), /* 蓝色光晕 */
        transparent 40%
    );
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover::before { opacity: 1; }

.card-content {
    padding: 2.5rem;
    height: 100%;
    position: relative;
    z-index: 2; /* 确保文字在光晕上 */
    background: rgba(255,255,255,0.01); /* 极微弱背景让其可点击 */
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Methods Grid --- */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.method-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.method-box:hover { transform: translateY(-5px); }
.highlight-method { border-left: 4px solid var(--accent); }
.method-box h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--primary); }
.method-box p { font-size: 0.9rem; color: var(--text-light); }

.methods-hover-img-wrap {
    max-width: 900px;
    margin: 2rem auto 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}
.methods-hover-img-wrap.visible {
    max-height: 420px;
    opacity: 1;
}
.methods-hover-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: contain;
}

/* --- Results --- */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.result-placeholder {
    padding: 2rem;
    border-radius: 12px;
}

.result-placeholder h4 { margin-bottom: 1rem; color: var(--primary); }

.fake-chart {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-top: 1.5rem;
    font-style: italic;
}

.embed-wrap {
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0a0a0f;
    min-width: 320px;
    min-height: 520px;
}

.result-frame-wrap {
    margin-top: 1.5rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.result-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.embed-viz {
    display: block;
    width: 100%;
    min-width: 320px;
    height: 80vh;
    min-height: 520px;
    margin: 0 auto;
    border: none;
}

/* --- Application (Dark) --- */
.text-white h2, .text-white p, .text-white .section-tag { color: white !important; }
.text-white p { opacity: 0.8; }
.text-white .section-tag { color: #38bdf8 !important; }

/* --- Application intro blurb --- */
.app-intro {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #cbd5e1;
}
.app-intro h3 { color: white; font-size: 1.5rem; margin-bottom: 0.75rem; }
.app-intro p  { font-size: 1rem; color: #94a3b8; }

.media-stage {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.72)) padding-box,
        linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(99, 102, 241, 0.2), rgba(148, 163, 184, 0.12)) border-box;
    border: 1px solid transparent;
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

.media-stage-video {
    max-width: 1080px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 48%),
        linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid rgba(51, 65, 85, 0.9);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.9rem;
}
.footer-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light); /* 👈 次要文字改为灰色，保持层次感 */
    opacity: 1;
}

/* =====================================================
   SCROLLYTELLING GALLERY (Modern Showcase Card Layout)
   ===================================================== */

/* 背景容器：保持深色沉浸感，但不再强制图片铺满 */
.story-slide {
    position: relative;
    width: 100%;
    min-height: 100vh; /* 保证滚动时依然有按屏停顿的节奏感 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a; /* 深色背景与上下文融合 */
    padding: 6rem 2rem;
    box-sizing: border-box;
    border-top: none;
    overflow: hidden;
}

/* 内容主容器：控制最大宽度和进场动画 */
.story-content-wrapper {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* 配合现有的 JS 实现优雅的放大浮现动画 */
    opacity: 0.4;
    transform: translateY(40px) scale(0.96);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-slide.is-visible .story-content-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 图片外框：增加 Apple 风格的阴影和高光边框 */
.story-img-wrapper {
    width: 100%;
    max-height: 70vh; /* 🌟 关键修改：限制最大高度，大约占屏幕的 70%，给下方文字留空间 */
    border-radius: 16px;
    overflow: hidden;
    background: transparent; 
    border: none; 
    z-index: 1;
    display: flex;            /* 🌟 关键修改：启用 Flex 布局 */
    justify-content: center;  /* 🌟 关键修改：让长图在容器内水平居中 */
    align-items: center;      /* 🌟 关键修改：让长图在容器内垂直居中 */
}

/* 图片本体：完整展示，绝不裁剪 */
.story-img {
    width: 100%;
    max-height: 70vh; /* 🌟 关键修改：图片本身的高度也不能超过 70vh */
    height: auto;
    display: block;
    object-fit: contain; /* 🌟 保持缩放不裁剪。遇到纵向图时，宽度会自动缩小，两边露出底色 */
}

/* 说明文本框：上移叠在图片底边，毛玻璃质感 */
.story-caption {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 700px;
    margin-top: -3rem; /* 核心技巧：稍微遮挡一点点图片底部边缘，产生层次感 */
    padding: 2rem 2.5rem;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 24px 60px rgba(2, 6, 23, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: left;
    /* 原有的文字颜色无需改变 */
}

.story-step {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.8rem;
}

.story-caption h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.story-caption p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

/* --- 移动端完美适配 --- */
@media (max-width: 768px) {
    .story-slide {
        padding: 4rem 1.5rem;
        min-height: auto; /* 移动端解除 100vh 限制，允许自然滚动 */
    }
    
    .story-content-wrapper {
        transform: translateY(20px) scale(0.98); /* 减弱移动端动画幅度 */
    }

    .story-img-wrapper {
        border-radius: 12px;
    }

    .story-caption {
        width: 95%;
        margin-top: -1.5rem; /* 移动端重叠度减小 */
        padding: 1.5rem;
        border-radius: 16px;
    }

    .story-caption h4 { font-size: 1.25rem; }
    .story-caption p  { font-size: 0.9rem; }

    /* 缩小整体 Section 的左右留白（从 2rem 减到 1rem） */
    .section {
        padding: 4rem 1rem; 
    }

    /* 缩小 Result 卡片内部的左右留白（从 2rem 减到 1rem 或更小） */
    .result-placeholder {
        padding: 1.5rem 0.8rem; 
    }

    /* 稍微缩小标题和图表之间的间距，让移动端排版更紧凑 */
    .result-placeholder h4 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .result-placeholder p {
        font-size: 0.9rem;
    }
    
    /* 让包裹 iframe 的外框填满空间，不再因为边框显得拥挤 */
    .result-frame-wrap, .embed-wrap {
        border-radius: 8px;
        margin-top: 1rem;
    }
}

/* Progress dots – fixed, centred at bottom, only while slides are in view */
.story-dots {
    position: fixed;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.story-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}
.story-dot.active {
    background: #38bdf8;
    transform: scale(1.4);
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .story-caption {
        padding: 1.4rem 1.5rem;
        border-radius: 16px;
        margin-bottom: 2.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .story-caption h4 { font-size: 1.2rem; }
    .story-caption p  { font-size: 0.88rem; }
    .story-dots { bottom: 1rem; gap: 8px; }
}

.logo-opt1 {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.wow-icon-graph {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 4px;
}
.wow-icon-graph .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    mix-blend-mode: multiply; /* 让交叠部分颜色加深，很有质感 */
}
.dot-1 { top: 0; left: 6px; background-color: #0284c7; } /* 科技蓝 */
.dot-2 { bottom: 2px; left: 0; background-color: #38bdf8; } /* 浅天蓝 */
.dot-3 { bottom: 2px; right: 0; background-color: #818cf8; } /* 靛蓝 */

.wow-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    /* Apple 风格的文字渐变魔法 */
    background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.model-text {
    font-weight: 400;
    font-size: 1.3rem;
    color: #64748b;
    margin-left: -4px; /* 让 Model 贴紧 WOW */
}

/* --- 移动端汉堡菜单按钮（大屏幕时隐藏） --- */
.mobile-menu-toggle {
    display: none; /* 默认不显示 */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001; /* 确保按钮始终在最上层 */
}

/* 汉堡菜单的横杠 */
.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary); /* 跟随主色调 */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- 响应式适配 (当屏幕宽度 <= 768px 时生效) --- */
@media (max-width: 768px) {
    /* 1. 显示汉堡按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 2. 隐藏并重构导航链接面板 */
    .nav-links {
        position: absolute;
        top: 100%; /* 在导航栏正下方 */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px); /* 毛玻璃效果 */
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        
        /* 动画初始状态：向上平移隐藏，透明度为0 */
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        pointer-events: none; /* 隐藏时无法点击 */
    }

    /* 3. JS 触发展开后的状态 */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* 4. 汉堡按钮变成叉叉 (X) 的动画 */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0; /* 中间横杠消失 */
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-opt2 {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title-left {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-subtitle-left {
        font-size: 1.4rem;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    .btn-tech {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-text-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title-left {
        font-size: 2.2rem;
    }

    .hero-subtitle-left {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-visual {
        height: 220px;
    }

}

#application .section-header {
    margin-bottom: 2rem;
}

/* Add matching divider between demo and footer */
#demo + footer {
    border-top: 1px solid #1e293b;
}

/* 去掉 Application 和 Demo 之间的边框 */
#application + #demo {
    border-top: none;
}

/* Dark-theme divider between gallery/application images and demo */
#demo {
    border-top: 1px solid #334155;
}

/* --- 合作方 Logo 样式 --- */
.partner-logos {
    display: flex;
    align-items: center;
    gap: 16px; /* 两个logo之间的间距 */
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1.5px solid var(--border); /* 加一条浅色竖线分隔 */
    height: 28px; /* 竖线的高度 */
}

.partner-logo {
    height: 26px; /* 限制图片高度，宽度会自动等比例缩放 */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* 去除图片可能带有的白色背景瑕疵，让其完美融入导航栏 */
}

/* 针对 HDSI logo 可能需要微调大小（如果它本身视觉偏大或偏小） */
.hdsi-img {
    height: 24px; 
}

/* --- 移动端适配 (当屏幕变小时，Logo跟着变小) --- */
@media (max-width: 768px) {
    .partner-logos {
        gap: 8px;
        margin-left: 8px;
        padding-left: 10px;
        height: 20px;
    }
    
    .partner-logo {
        height: 18px;
    }
    
    .hdsi-img {
        height: 16px;
    }
    
    /* 如果手机屏幕实在太小，可以考虑隐藏 "Model" 这个词，给 Logo 留足空间 */
    .model-text {
        display: none;
    }
}

/* --- Demo 侧边注释样式 --- */
.demo-side-note {
    margin: 1rem auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    opacity: 0.9;
}

/* --- 修复 Application 标题与下方第一个卡片的过大间距 --- */
#application {
    padding-bottom: 1rem !important; /* 原本是 6rem，大幅缩小底部留白 */
    border-bottom: none; 
}

.app-intro {
    margin-bottom: 1rem; /* 原本是 3rem，缩小段落底部的间距 */
}

#slide-0 {
    padding-top: 2rem; /* 稍微缩小第一张卡片的顶部间距，让它向上贴近标题 */
    scroll-margin-top: 65px;
}

@media (max-width: 768px) {
    .story-img-wrapper, .story-img {
        max-height: 55vh; /* 移动端屏幕更小，把最大高度再压低一点，确保文字框能露出来 */
    }

    /* 强制去除固定宽高的限制，让 iframe 容器 100% 适配手机屏幕 */
    .embed-wrap {
        min-width: unset !important; /* 取消 320px 的硬性限制 */
        width: 100% !important;
        margin-top: 1rem;
        height: 70vh; /* 稍微增加高度，给底下两行菜单留出空间 */
    }

    .embed-viz {
        min-width: unset !important;
        width: 100% !important;
        height: 100% !important;
    }
}