/* =========================================================
   悉脉 Xemind 官网样式 —— 对齐悉脉后台（ops.xemind.com）设计语言
   黑顶栏 / 浅色内容区 / 主色 #2f6fed / 卡片 16px 圆角 / 12px 间距
   ========================================================= */

/* ===== Design Tokens（与后台 dashboard.html 同源） ===== */
:root {
    --primary: #2f6fed;
    --primary-dark: #255cd6;
    --primary-soft: #e8f0fe;
    --cyan: #06b6d4;
    --bg: #f3f5f9;
    --card: #ffffff;
    --text: #1f2937;
    --text-sub: #6b7280;
    --text-faint: #9ca3af;
    --line: #e5e8ef;
    --line-strong: #d6dae3;
    --topbar: #000000;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 6px 18px -6px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .05);
    --shadow-lg: 0 20px 40px -16px rgba(16, 24, 40, .18);
    --radius: 16px;
    --radius-sm: 12px;
    --gap: 12px;
    --transition: all 0.25s ease;
    /* 导航条高度，以及"蓝色标签距导航条"的距离：电脑/平板 40px，手机 20px */
    --nav-h: 52px;
    --tag-gap: 40px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;   /* 每一屏对齐到屏幕顶端，见下方"整屏翻页" */
    /* 抗横向溢出必须用 clip 而不是 hidden：hidden 会让根元素变成一个独立的滚动容器，
       从而让上面的 scroll-snap 失效（表现为完全没有吸附）。hidden 仅作旧浏览器兜底 */
    overflow-x: hidden;
    overflow-x: clip;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 全站隐藏滚动条，画面干净 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

/* 轮播里的横屏图和拖拽都不能撑宽页面，否则 WebView 会整体缩放、顶栏错位 */
html {
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(47, 111, 237, 0.45);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(47, 111, 237, 0.5);
}

.btn-ghost {
    background: var(--card);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    padding: 2px 8px;        /* 字号不变，内距收到最小，边框紧贴文字 */
    font-size: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.btn-small:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Navigation（后台同款黑顶栏，52px） ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 52px;
    display: flex;
    align-items: center;
    background: var(--topbar);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-inner {
    /* 导航条贴边：logo 文字左边缘固定 24px（与 App 端后台侧栏一致），
       页面内容区仍由 .container 居中，不受影响 */
    width: calc(100% - 48px);
    margin: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* 与后台顶栏同一枚品牌 logo，尺寸也与后台一致（135px） */
.logo-img {
    width: 135px;
    height: auto;
    display: block;
    flex: none; /* 不参与 flex 压缩，窄屏下尺寸与后台保持一致 */
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
}

.logo-text {
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #fff;
}

.logo-sub {
    font-size: 12px;
    color: #7c8aa5;
    font-weight: 500;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.07) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-soft);
    border: 1px solid rgba(47, 111, 237, 0.18);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* hero 顶部的蓝色标签（正文仍是居中的，标签单独贴到导航条下方） */
.hero-tag {
    position: absolute;
    top: calc(var(--nav-h) + var(--tag-gap));
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    margin-bottom: 0;
}

.hero-slogan {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(42px, 8vw, 68px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--text-sub);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* 首屏信任提示：不塞广告、不推送打扰 —— 放在下载按钮正下方，
   是新访客最在意、也最容易误会的一点 */
.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 26px;
    padding: 6px 14px 6px 11px;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.08);
    border: 1px solid rgba(47, 111, 237, 0.18);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.trust-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 8px;
    display: block;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-hint span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(31, 41, 55, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-hint span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 16px; }
}

/* ===== Section Commons ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 4.5vw, 40px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: var(--text);
}

.section-header p {
    color: var(--text-sub);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    padding: 96px 0;
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

/* 核心能力：8 张卡片。
   桌面用 6 列栅格 —— 6 张常规卡各占 2 列（仍是每行 3 张），
   「碎片化输入」「共同的记事本」各占 3 列，并排占第三行 */
.feature-grid-8 {
    grid-template-columns: repeat(6, 1fr);
}

.feature-grid-8 > .feature-card {
    grid-column: span 2;
}

.feature-grid-8 > .feature-card-frag,
.feature-grid-8 > .feature-card-note {
    grid-column: span 3;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: rgba(47, 111, 237, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.75;
}

/* ===== 碎片化输入 / 共同的记事本：两张"重点能力"卡片（各占半行） =====
   左边是能力说明，右边是具体示例（对话气泡 / 记事条目） */
.feature-card-frag,
.feature-card-note {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(47, 111, 237, 0.07), rgba(6, 182, 212, 0.05));
    border-color: rgba(47, 111, 237, 0.22);
}

.feature-card-note {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(47, 111, 237, 0.05));
}

.frag-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.feature-icon-frag,
.feature-icon-note {
    flex: 0 0 auto;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid rgba(47, 111, 237, 0.2);
}

.frag-head-text h3 {
    margin-bottom: 4px;
}

.frag-head-text p {
    font-size: 13.5px;
    line-height: 1.65;
}

.frag-chat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    min-width: 0;
}

.chat-item {
    min-width: 0;
}

/* 你说的话：像聊天气泡 */
.chat-say {
    padding: 7px 12px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px 12px 12px 4px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

/* 悉脉的回应 */
.chat-reply {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 5px;
    padding-left: 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--primary);
}

.chat-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== 共同的记事本：共享的纪事 + 私人的备注 ===== */
.note-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    min-width: 0;
}

.note-item {
    min-width: 0;
    padding: 8px 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.note-private {
    border-left-color: #94a3b8;
}

.note-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-faint);
}

.note-chip {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(47, 111, 237, 0.1);
}

.note-chip-private {
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
}

/* 核心能力这一屏有 8 张卡片（含"碎片化输入""共同的记事本"），
   而笔记本常见视口只有 780~900 高：
   卡片内距、图标、字号统一收一档，保证这一屏仍然完整放得下 */
@media (min-width: 901px) and (max-height: 1000px) {
    section.features {
        padding-bottom: 36px;
    }

    .features .section-header {
        margin-bottom: 20px;
    }

    .features .section-header p {
        font-size: 15px;
        line-height: 1.6;
    }

    .features .feature-card {
        padding: 20px 22px;
    }

    .features .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .features .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .features .feature-card h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .features .feature-card p {
        font-size: 13px;
        line-height: 1.55;
    }

    .features .feature-card-frag,
    .features .feature-card-note {
        padding: 14px 22px;
    }

    .features .frag-head-text p {
        font-size: 13px;
    }

    .features .feature-icon-frag,
    .features .feature-icon-note {
        width: 40px;
        height: 40px;
    }

    .features .chat-say {
        font-size: 13px;
        padding: 6px 11px;
    }

    .features .chat-reply {
        font-size: 12px;
    }

    .features .note-text {
        font-size: 12.5px;
    }

    .features .note-meta {
        font-size: 11px;
    }
}

/* 更矮的视口（900 高以下的窗口、768 高的笔记本）：再收一档，
   保证两张"重点能力"卡片也不会被挤出屏幕 */
@media (min-width: 901px) and (max-height: 820px) {
    section.features {
        padding-bottom: 16px;
    }

    .features .section-header p {
        font-size: 14px;
        line-height: 1.55;
        max-width: 820px;      /* 放宽到一行，副标题不占两行高度 */
    }

    .features .section-header {
        margin-bottom: 12px;
    }

    .features .feature-card {
        padding: 16px 20px;
    }

    .features .feature-card p {
        line-height: 1.45;
    }

    .features .feature-card-frag,
    .features .feature-card-note {
        padding: 12px 20px;
    }

    .features .note-item {
        padding: 6px 9px;
    }
}

/* ===== Screenshots（真实 App 截图） ===== */
.screenshots {
    padding: 96px 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.screenshots-gallery {
    display: block;
}

/* 轮播：8 帧自动循环。舞台是正方形，边长 = 手机的高度 ——
   这样正立的竖手机、以及逆时针转 90° 后的横手机都放得下，两个姿态大小一致 */
.shot-showcase {
    --shot-vh: clamp(260px, 46vh, 520px);
    width: min(var(--shot-vh), 100%);
    margin: 0 auto;
}

.shot-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.shot-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    -webkit-user-drag: none;
}

.shot-slide.is-active {
    opacity: 1;
}

/* 帧内图片：竖版素材按舞台高度铺满并居中（手机的视觉大小 = 舞台边长） */
.shot-slide > img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    -webkit-user-drag: none;
}

/* 外框 PNG 的屏幕区是镂空的：盖在界面图上层 */
.shot-slide .shot-frame {
    z-index: 2;
}

.shot-slide .shot-screen {
    z-index: 1;
}

/* 横屏帧：素材本身就是横版（1624×790），横向铺满、竖向居中 */
.shot-slide[data-pose="land"] .shot-pose {
    width: 100%;
    height: auto;
}

.shot-caption {
    margin-top: 22px;
}

.shot-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.shot-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.shot-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.shot-arrow:disabled {
    opacity: .35;
    cursor: default;
    border-color: var(--line);
    color: var(--text-faint);
}

.shot-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.shot-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.shot-dot.is-active {
    width: 20px;
    border-radius: 4px;
    background: var(--primary);
}

.shot-rest {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-top: 52px;
}

.shot-card {
    text-align: center;
}

.shot-img {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    transition: filter .3s ease;
    -webkit-user-drag: none;
}

.shot-card:hover .shot-img {
    filter: brightness(1.06);
}

.shot-label {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.shot-desc {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 2px;
}

/* 竖屏 ↔ 横屏帧的转向：两帧同步共转，任一时刻都处于同一倾角、剪影重合，
   画面内容在旋转中段溶解替换 —— 所以到位时新画面已经稳稳在位，不是"转完了才换"。
   去程（竖→横）整体逆时针：转出帧 0° → -90°，转入帧 90° → 0°；
   回程（横→竖）整体顺时针：转出帧 0° → 90°，转入帧 -90° → 0°，一反一顺，像钟摆 */
.shot-slide.is-out {
    animation: shot-spin-out .72s cubic-bezier(.22, .61, .36, 1) forwards;
}

.shot-slide.is-in {
    animation: shot-spin-in .72s cubic-bezier(.22, .61, .36, 1) forwards;
}

/* 淡入淡出只发生在 38% ~ 62% 这一段（旋转过半时），其余时间只有一帧不透明。
   这里的 linear 只作用于透明度，转动仍走上面的缓动 —— 两帧同缓动同起点，角度才始终同步 */
@keyframes shot-spin-out {
    0% {
        opacity: 1;
        transform: rotate(var(--r0, 0deg));
    }

    38% {
        opacity: 1;
        animation-timing-function: linear;
    }

    62% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: rotate(var(--r1, 0deg));
    }
}

@keyframes shot-spin-in {
    0% {
        opacity: 0;
        transform: rotate(var(--r0, 0deg));
    }

    38% {
        opacity: 0;
        animation-timing-function: linear;
    }

    62% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: rotate(var(--r1, 0deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    .shot-slide.is-out,
    .shot-slide.is-in {
        animation: none;
    }
}

/* 手机端收紧轮播下方的间距：一屏里能同时看到整张图和它的文字说明 */
@media (max-width: 860px) {
    .shot-caption {
        margin-top: 14px;
    }

    .shot-nav {
        margin-top: 10px;
    }
}

/* ===== Demo Section ===== */
/* 这一屏要正好装满一屏。做法是纯布局解法，不做任何高度计算：
   .demo 撑满一屏 → .container 吃掉标题区后剩下的全部高度 → 网格行高 = 剩余高度 →
   手机 height:100% 填满这一行，宽度由 9:19 自动反算。
   这样无论窗口多高多矮，手机都刚好放下，不会像按固定像素那样顶破屏幕 */
.demo {
    padding: 96px 0;
    background: var(--bg);
    /* 关键：这一屏必须用 height 固定（不能只用 min-height）。
       min-height 时内容会把父级撑高，flex 反而认为"没有剩余空间"而不压缩，
       手机就按列宽撑出 900+ 像素高、顶破一屏。固定高度后 flex 才有空间可分 */
    height: var(--app-vh);
    display: flex;
    flex-direction: column;
}

.demo > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 聊天演示屏：手机在上、话题按钮在下（不再是左右两栏）。
   手机高度自适应容器剩余空间（不会高过屏幕被裁），宽度按 790:1624 的比例反推，
   水平位置由 align-items:center 决定，必然居中 */
.demo > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.demo-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* 背景框：白底卡片，左右各距屏幕边缘 12px（贴着屏边），
   框内上下留 20px，手机在框内水平居中。
   框宽/框高由 JS 按"可视宽 - 24"和"手机尺寸 + 上下内距"精确写回内联样式，
   并用 position:relative + left 把卡片摆到距屏幕左右各 12px 处 */
.demo-phone {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    position: relative;      /* 让 JS 能精确摆位 */
    width: fit-content;      /* 无脚本时的初值：框宽跟着手机走 */
    /* 不能写 max-width:100% —— 卡片要溢出容器、贴到屏幕左右各 12px 处，
       这个限制会把卡片卡在容器宽度（760）内，手机就跟着偏到一边去了 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #fff;
    border-radius: 0;        /* 四角不倒角 */
    box-shadow: var(--shadow-lg);
}

/* 手机本体：比例严格等于素材 790:1624，外框与内容图才能严丝合缝。
   高度用 vh 做初值（无脚本也能看），JS 会按剩余空间算准后覆盖 */
.demo-device {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: min(56svh, 520px);
    max-width: 100%;
    aspect-ratio: 790 / 1624;
}

/* 屏幕内容：铺满外框画布，比例与外框一致，不会裁切也不会变形 */
.demo-screen {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 任何情况下都完整显示，绝不裁切 */
    opacity: 0;
    transition: opacity .25s ease;
    -webkit-user-drag: none;
}

.demo-screen.is-on {
    opacity: 1;
}

/* 手机外框：固定框架，永远压在内容之上 */
.demo-frame {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 与内容图同比例，两层严丝合缝 */
    pointer-events: none;
    -webkit-user-drag: none;
}

/* 问答气泡叠加层：点"试一试"时浮在真实界面之上，答完自动收起。
   层级：内容图(1) < 气泡(2) < 外框(3) —— 气泡不会盖到手机边框上 */
.chat-layer {
    position: absolute;
    top: 13%;
    bottom: 27%;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    pointer-events: none;
}

.chat-layer.is-on {
    opacity: 1;
    visibility: visible;
}

.chat-layer .chat-body {
    background: transparent;   /* 透出下面的真实界面，不遮挡 */
    padding: 10px;
    height: auto;
    flex: 1 1 auto;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #111318;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 42px 16px 12px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.chat-name {
    font-weight: 700;
    font-size: 15px;
}

.chat-status {
    font-size: 12px;
    color: var(--cyan);
}

.chat-body {
    padding: 16px;
    height: calc(100% - 122px);
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.chat-msg {
    display: flex;
    animation: fadeInUp 0.4s ease forwards;
}

.chat-msg.user {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}

.chat-msg.assistant .msg-bubble {
    background: var(--card);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    color: var(--text);
}

.chat-msg.user .msg-bubble {
    background: var(--primary);
    border-bottom-right-radius: 4px;
    color: #fff;
}

.chat-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--card);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-faint);
    font-size: 13px;
}

.mic-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mic-btn svg {
    width: 16px;
    height: 16px;
}

/* 话题区：按钮行如果超出，由这一层负责裁剪。
   左右各留 12px 的裁切带 —— 也就是按钮被切时的切口线，距 .demo-topics 边缘各 12px，
   和上方白底卡片内手机左右的 12px 对齐，两侧对称 */
.demo-topics {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 12px;
    overflow: hidden;
    position: relative;      /* 让 JS 能把话题区与白底卡片摆到同一条基线上 */
    text-align: center;
}

.demo-topics h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

/* 六个话题按钮排成两排（每排三个），尺寸完全一致 */
.topic-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 760px;      /* 话题区与白底卡片同宽后，按钮行在中间居中，不被拉得过大 */
    margin: 0 auto;
}

.topic-btn {
    /* 每排三个：33.333% 减去 gap 的一半，六个按钮正好排成两排 */
    flex: 0 0 calc(33.333% - 4px);
    max-width: calc(33.333% - 4px);
    min-width: 0;
    text-align: center;
    padding: 7px 10px;     /* 边框紧贴文字 */
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.topic-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.topic-btn:hover,
.topic-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    padding-left: 16px;
}

.topic-btn:hover::before,
.topic-btn.active::before {
    opacity: 1;
}

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

/* ===== Video Section ===== */
.video-section {
    padding: 96px 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.video-player {
    position: relative;
    /* 宽度必须自己定下来（不能靠 stretch）：内容都是绝对定位、高度为 0，
       交叉轴尺寸若不确定，aspect-ratio 推不出高度，容器会塌成一条线。
       宽度上限同时受视口高度约束 —— 16:9 的播放器不能比一屏还高 */
    width: min(100%, calc(var(--app-vh) * 16 / 9 * 0.52));
    max-width: 900px;
    margin: 0 auto;
    flex: 0 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    background: var(--bg);
}

.video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #eefcf9 100%);
    cursor: pointer;
    z-index: 2;
}

.video-poster-content {
    text-align: center;
    z-index: 2;
}

.play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 auto 18px;
    box-shadow: 0 12px 28px -8px rgba(47, 111, 237, 0.5);
}

.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
}

.play-btn svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.video-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.video-duration {
    font-size: 14px;
    color: var(--text-sub);
}

.video-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(47, 111, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    z-index: 1;
}

.video-active {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.video-poster.hidden,
.video-active.hidden {
    display: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-sub);
}

.video-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--primary);
    margin-bottom: 14px;
}

.video-placeholder p {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.video-placeholder span {
    font-size: 14px;
}

.video-notes {
    text-align: center;
    margin-top: 20px;
    color: var(--text-faint);
    font-size: 14px;
}

.video-notes code {
    background: var(--primary-soft);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    font-family: "SF Mono", Consolas, monospace;
    font-size: 13px;
}

/* ===== Scenes ===== */
.scenes {
    padding: 96px 0;
    background: var(--bg);
}

.scene-list {
    display: grid;
    gap: var(--gap);
}

.scene-list-3 {
    grid-template-columns: repeat(3, 1fr);
}

.scene-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.scene-item:hover {
    border-color: rgba(47, 111, 237, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.scene-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-soft);
    -webkit-text-stroke: 1px var(--primary);
    line-height: 1;
    font-family: "SF Mono", "Menlo", monospace;
    margin-bottom: 14px;
}

.scene-content h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.scene-content p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== Audience ===== */
.audience {
    padding: 96px 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.audience-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.audience-card:hover {
    background: var(--card);
    border-color: rgba(47, 111, 237, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.audience-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.audience-icon svg {
    width: 24px;
    height: 24px;
}

.audience-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.65;
}

/* ===== Privacy ===== */
.privacy {
    padding: 96px 0;
    background: var(--bg);
}

.privacy-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.privacy-visual {
    display: flex;
    justify-content: center;
}

.shield {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: pulseShield 3s ease-in-out infinite;
}

.shield svg {
    width: 64px;
    height: 64px;
}

@keyframes pulseShield {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 111, 237, 0.18); }
    50% { box-shadow: 0 0 0 26px rgba(47, 111, 237, 0); }
}

.privacy-content h2 {
    font-size: 30px;
    margin-bottom: 14px;
}

.privacy-content > p {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.privacy-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.privacy-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: 14px;
}

.privacy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== Pricing ===== */
.pricing {
    padding: 96px 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    max-width: 780px;
    margin: 0 auto;
}

/* 四档套餐：免费 / 月付 / 年付（推荐）/ 永久。桌面并排四列，
   窄屏由下方 ≤900px 的规则改成横向滑动轨道（每档一屏） */
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1180px;
    gap: 16px;
}

.pricing-grid-4 .pricing-card {
    padding: 22px 20px;
    /* 四档卡片内部改成纵向弹性布局：描述段吸收多余高度，
       让四张卡的权益列表与按钮落在同一水平线上 */
    display: flex;
    flex-direction: column;
}

/* 四档并排时高度收紧：卡内留白、列表行距、价格字号都收一档，
   整屏不会顶到屏幕底边 */
.pricing-grid-4 .pricing-price {
    font-size: 32px;
}

.pricing-grid-4 .pricing-desc {
    font-size: 13px;
    margin-bottom: 14px;
    flex: 1 0 auto;   /* 撑开多余高度，四卡的列表与按钮对齐 */
}

.pricing-grid-4 .pricing-features li {
    padding: 6px 0;
    font-size: 13px;
    gap: 8px;
}

.pricing-grid-4 .pricing-features {
    margin-bottom: 18px;
}

/* 永久会员：一次买断，用描边与微渐变跟按年付费的档次区分开 */
/* 选择器带上 .pricing-card 提升优先级，避免被后声明的 .pricing-card 背景覆盖 */
.pricing-card.pricing-lifetime {
    background: linear-gradient(180deg, #ffffff 0%, rgba(47, 111, 237, 0.06) 100%);
    border-color: rgba(47, 111, 237, 0.45);
}

.pricing-card.pricing-lifetime:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(47, 111, 237, 0.35);
    box-shadow: var(--shadow-md);
}

.pricing-highlight {
    background: var(--card);
    border-color: var(--primary);
    box-shadow: 0 12px 32px -12px rgba(47, 111, 237, 0.35);
}

.pricing-highlight:hover {
    border-color: var(--primary-dark);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-header {
    margin-bottom: 12px;
}

.pricing-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 38px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pricing-price span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    margin-left: 4px;   /* 与价格数字之间留一点呼吸，别连成一串 */
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== Download ===== */
.download {
    padding: 96px 0;
    background: var(--bg);
    text-align: center;
    position: relative;     /* 页尾的定位参照 */
}

.download-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #2456c4 100%);
    border-radius: var(--radius);
    color: #fff;
    box-shadow: 0 20px 44px -16px rgba(47, 111, 237, 0.5);
}

/* 最后一屏的金句：前面九屏讲清了"能做什么"，这句收住"用起来是什么感觉"，
   先化解"再多装一个 App"的顾虑，再落到下载按钮。
   选择器要带上 .download-card > —— 否则会被下面 .download-card > p 的字号覆盖 */
.download-card > .download-quote {
    margin: 0 0 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.97);
}

/* 下载屏 = 下载卡片 + 页尾，两者合成最后一屏。
   页尾脱离文档流、贴在屏幕底部，蓝色卡片才能真正上下居中于屏幕 */
.download > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* 蓝色卡片上下居中（左右由 margin:0 auto 居中） */
    gap: 22px;
    flex: 1 1 auto;      /* 撑满整屏高度，卡片才有"屏幕中心"可居中 */
    min-height: 0;
}

.download-card h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.download-card > p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    margin-bottom: 32px;
}

.download-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    color: #fff;
    transition: var(--transition);
    min-width: 170px;
}

.store-badge:hover {
    border-color: #fff;
    transform: translateY(-2px);
}

.store-badge svg {
    width: 26px;
    height: 26px;
}

.store-badge div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.2;
}

.store-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.download-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

/* ===== Footer ===== */
/* 页尾已并入下载屏（最后一屏），不再是独立的深色条。
   脱离文档流贴到屏幕底部：文字底边距屏幕底部 12px；
   align-items:flex-end 让文字底边与页尾底边对齐（桌面端 logo 在左、版权文字在右同一行） */
.site-footer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    width: calc(100% - 24px);
    max-width: 720px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* 页尾 logo：与顶部导航条同一枚品牌图（这里用适配浅色背景的深色文字版，
   图形与导航条完全一致，只是文字颜色反了，否则白字在浅底上看不见） */
.site-footer .logo-img {
    width: 135px;
    height: auto;
    flex: none;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-faint);
}

/* ===== 整屏翻页：每个主要区块占满一屏、垂直居中，滚动时对齐到屏幕顶端。
      用原生 CSS scroll-snap，不拦截滚动事件 —— 滚轮 / 触控板 / 触摸 / 键盘行为全部保持不变。
      （若像一些站点那样用 JS 拦 wheel 事件做翻页，触控板惯性滚动会一口气连跳好几屏，
        而且滚动条会失去意义，这里刻意不这么做） ===== */
.hero,
.features,
.screenshots,
.demo,
.video-section,
.scenes,
.audience,
.privacy,
.pricing,
.download {
    min-height: var(--app-vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;   /* 一次滑动最多翻一屏，不会连跳 */
}

/* 兜底：只要有某一屏内容比屏幕高，整站就降级为柔和吸附（这个类由 JS 加）。
   注意不能只把那一屏移出吸附 —— 那样它就不是停靠点了，滚动时会被整屏跨过去、根本停不下来。
   proximity 下每一屏仍是停靠点，只是相邻屏之间也能自由停留，超高的部分照样能滚着看完 */
html.pages-loose {
    scroll-snap-type: y proximity;
}

/* 笔记本常见视口只有 800~900 高：把上下留白收一档、轮播体积同步缩小，
   避免某一屏的内容比屏幕还高 —— 一旦高于屏幕，mandatory 会把它拉回顶部，
   下半部分就永远停在视口外看不到了 */
@media (min-width: 901px) and (max-height: 900px) {
    .hero,
    .features,
    .screenshots,
    .demo,
    .video-section,
    .scenes,
    .audience,
    .privacy,
    .pricing,
    .download {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .shot-showcase {
        --shot-vh: clamp(240px, 40vh, 440px);
    }

    /* 标题区默认要占近 200px（标题行高 + 48px 下边距），矮屏装不下 —— 一并收紧 */
    .section-header {
        margin-bottom: 28px;
    }

    .section-tag {
        margin-bottom: 10px;
    }

    .section-header h2 {
        font-size: clamp(24px, 3.6vw, 32px);
        margin-bottom: 10px;
    }
}

/* 整屏翻页用的高度基准。
   100vh 是"大视口"高度（含地址栏区域），100svh 只有新内核（Chrome 108+）才认，
   荣耀 / QQ 等基于旧内核的浏览器会直接忽略 svh 退回 vh —— 地址栏一收一放，
   屏幕高度就比可视区高，吸附点随之漂移，表现为"吸不住、一滑跨页"。
   所以这里用变量：由 JS 把 window.innerHeight（真实可视高度）实时写进来，
   桌面端恒定、移动端跟随地址栏，行为一致。老浏览器还有 vh 兜底。 */
:root {
    --app-vh: 100vh;
}

@supports (height: 100svh) {
    :root {
        --app-vh: 100svh;
    }
}

/* 不支持 scroll-snap 的老内核直接关掉吸附：与其让它卡在两屏中间，不如正常滚动 */
html.no-snap {
    scroll-snap-type: none;
}

/* 翻页由 JS 接管时关掉原生吸附：手动拖动时它会把页面拽回吸附点，手感打架 */
html.js-paging {
    scroll-snap-type: none;
}


@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        gap: 40px;
    }

    .demo-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;   /* 单列时行高交给内容 */
    }

    /* 手机端单列堆叠放不下一屏，这一屏改为自然高度，让内容完整展开 */
    .demo {
        height: auto;
        min-height: var(--app-vh);
    }

    .demo-phone {
        width: fit-content;
        max-width: 100%;
        height: auto;
    }

    .demo-topics {
        padding: 0 12px;
        flex: 0 0 auto;
    }

    .demo-topics h3 {
        text-align: center;
    }

    .privacy-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 36px 24px;
    }

    .privacy-list {
        text-align: left;
    }

    .feature-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }

    .scene-list-3 {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: center;   /* 竖排时居中（flex-end 会把文字推到右边） */
        text-align: center;
    }

    /* 手机端左右留白统一 12px */
    .container {
        width: auto;
        margin-left: 12px;
        margin-right: 12px;
    }

    /* .nav 是 flex 容器：nav-inner 作为 flex item 不能 width:auto（会收缩到内容宽，
       下载按钮被拖到中间），要显式算满父宽减去两侧留白 */
    .nav-inner {
        width: calc(100% - 24px);
        margin: 0 24px;
    }

    .shot-showcase {
        --shot-h: 420px;
    }

    .shot-rest {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .video-title {
        font-size: 18px;
    }

    .play-btn {
        width: 62px;
        height: 62px;
    }

    .play-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 520px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* 顶栏下载按钮保持紧凑，不随通栏按钮拉伸；字号不变，只把内距收到最小 */
    .nav .btn {
        width: auto;
        max-width: none;
        padding: 2px 8px;
        font-size: 12px;
        border-radius: 999px;
    }

    .hero-stats {
        gap: 28px;
    }

    .stat-number {
        font-size: 26px;
    }

    .demo-phone {
        max-width: 100%;
    }

    .download-badges {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .feature-grid-8,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .shot-showcase {
        --shot-h: 360px;
    }

    .download-card {
        padding: 36px 22px;
    }

    .download-card h2 {
        font-size: 24px;
    }
}

/* ===== 手机端：每一屏正好一屏；多卡片区域改为横向滑动的卡片轨道 =====
   手机竖屏可视高度只有 780 上下，竖着铺 6 张卡片必然超出一屏。
   改成横向滑动（一次一张、滑动切换）后，这一屏只剩一张卡的高度，放得下；
   纵向依然一屏一页，两种滑动互不干扰（不同方向、不同滚动容器） */
@media (max-width: 900px) {
    /* 留白收紧：桌面端的 96px 上下留白在手机上就是奢侈 */
    .hero,
    .features,
    .screenshots,
    .demo,
    .video-section,
    .scenes,
    .audience,
    .privacy,
    .pricing,
    .download {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-header {
        margin-bottom: 18px;
    }

    .section-tag {
        margin-bottom: 8px;
    }

    .section-header h2 {
        font-size: clamp(22px, 6.4vw, 28px);
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 14px;
        line-height: 1.65;
    }

    /* Hero 收紧 */
    .hero {
        padding: 44px 12px 40px;
    }

    .hero-slogan {
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(30px, 8.5vw, 40px);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .hero-stats {
        gap: 28px;
    }

    /* 卡片区 -> 横向滑动轨道。
       卡片宽度留出左右各 24px：一开始就正好居中显示，左右对称留白，
       滑动时下一张也吸附到正中（scroll-snap-align:center），不会一边贴边、另一边被切 */
    .feature-grid,
    .audience-grid,
    .pricing-grid,
    .scene-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        /* 关键：只允许横向滑动。overflow-x: auto 会让 overflow-y 连带变成 auto，
           卡片就能上下拖动了；这里显式锁死纵向，卡片区内部完全展开不可移动，
           纵向手势交给整页滚动（页面依然一屏一页） */
        overflow-y: hidden;
        align-items: stretch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0;
        padding: 2px 24px 8px;
    }

    .feature-grid::-webkit-scrollbar,
    .audience-grid::-webkit-scrollbar,
    .pricing-grid::-webkit-scrollbar,
    .scene-list::-webkit-scrollbar {
        display: none;
    }

    /* 价格卡的"推荐"徽章挂在卡片上沿之外 12px，而轨道是 overflow 滚动容器
       （overflow-y: hidden），超出的那截会被裁掉 —— 顶部留出徽章的高度 */
    .pricing-grid {
        padding-top: 14px;
    }

    /* 窄屏是横向滑动、每档一屏，看不到并排的四张卡，
       描述段不再撑开高度，多余空间落到按钮下方，卡内更紧凑 */
    .pricing-grid-4 .pricing-desc {
        flex: 0 0 auto;
    }

    .feature-grid > *,
    .audience-grid > *,
    .pricing-grid > *,
    .scene-list > * {
        flex: 0 0 100%;             /* 轨道左右各 24px 内边距，卡片初始即居中且左右对称 */
        min-width: 0;
        scroll-snap-align: center;
    }

    /* 碎片化输入 / 共同的记事本：窄屏改成上下堆叠，示例各占一行 */
    .feature-card-frag,
    .feature-card-note {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 14px;
    }

    .frag-chat {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .note-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pricing-grid {
        max-width: none;
    }

    .feature-card,
    .audience-card,
    .scene-item,
    .pricing-card {
        padding: 22px 20px;
    }

    /* 聊天演示屏：话题横向排一行，手机填满剩下的高度 */
    .demo {
        height: var(--app-vh);
        min-height: var(--app-vh);
    }

    .demo-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1 1 auto;
        min-height: 0;
    }

    .demo-topics {
        padding: 0 12px;
        flex: 0 0 auto;
    }

    .demo-topics h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .topic-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        overflow: visible;
        margin: 0 auto;
        padding: 2px 0 6px;
    }

    .topic-row::-webkit-scrollbar {
        display: none;
    }

    .topic-btn {
        /* 同样是每排三个（六个按钮排两排），字号与内距更紧凑一点 */
        padding: 6px 6px;
        font-size: 12.5px;
    }

    /* 移动端点按/悬停时不要把文字推偏（桌面端才有左移的强调效果） */
    .topic-btn:hover,
    .topic-btn.active {
        padding-left: 6px;
    }

    /* 手机端的手机尺寸同样交给高度自适应，不再单独指定宽度 */

    /* 隐私屏：盾牌与文案上下排，别占两列 */
    .privacy-card {
        padding: 26px 22px;
        gap: 20px;
    }

    .privacy-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* 最后一屏 = 下载卡片 + 页尾，手机上要一起塞进一屏 */
    .download-card {
        padding: 26px 20px;
    }

    .download-card h2 {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .download-card > p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .site-footer {
        padding-top: 14px;
    }
}

/* 最后一屏（下载屏）：蓝色卡片要严格上下居中于屏幕，页尾文字底边距屏底 12px。
   所以这一段不留上下 padding —— 内容区中心才等于屏幕中心；
   页尾则用绝对定位贴在距底 12px 处，不参与居中计算。
   放在文件末尾，覆盖上面各断点里 .download 的 padding 规则 */
.download {
    padding: 0;
}

/* 手机端：最后一屏的金句字号收一档，两句仍各占一行 */
@media (max-width: 520px) {
    .download-card > .download-quote {
        font-size: 19px;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }
}

/* 话题按钮：窄屏排布由 JS 按实际可用宽度决定（.topic-row.is-wrapped → 两排），
   这里只保留按钮的基础样式 */

/* ===== 蓝色标签（.section-tag）与导航条的间距 =====
   导航条是 fixed 的，高 52px；整屏翻页吸附后，每一屏的标题区贴在导航条下方：
   电脑/平板留 40px，手机留 20px。
   所以这些段改成"内容顶部对齐"（不再整屏垂直居中），段的上内边距 = 导航条高 + 间距。 */
@media (max-width: 520px) {
    :root {
        --tag-gap: 20px;   /* 只有手机是 20px，平板与电脑都是 40px */
    }
}

.features,
.screenshots,
.demo,
.video-section,
.scenes,
.audience,
.privacy,
.pricing {
    padding-top: calc(var(--nav-h) + var(--tag-gap));
    justify-content: flex-start;
}

/* 标题区固定在顶部（标签距导航条 20/40px），正文在标题区之下的剩余空间里居中，
   避免内容全挤在顶部、底部空出一大片 */
.features > .container,
.screenshots > .container,
.video-section > .container,
.scenes > .container,
.audience > .container,
.privacy > .container,
.pricing > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.features > .container > .feature-grid,
.screenshots > .container > .screenshots-gallery,
.video-section > .container > .video-player,
.scenes > .container > .scene-list,
.audience > .container > .audience-grid,
.privacy > .container > .privacy-card,
.pricing > .container > .pricing-grid {
    margin-top: auto;
    margin-bottom: auto;
}

/* hero 与下载屏的正文是整体居中的，标签用绝对定位贴到段顶，
   这样既保持正文居中，又让每一屏顶部都有统一格式的蓝色标签 */
.download > .container > .section-header {
    position: absolute;
    top: calc(var(--nav-h) + var(--tag-gap));
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    margin-bottom: 0;
}

/* ===== Typing indicator (moved out of JS to avoid inline-string escaping) ===== */
.typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(107, 114, 128, 0.6);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-5px); opacity: 1; }
}

/* ===== Password gate ===== */
.pw-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 30% 20%, rgba(47,111,237,0.08) 0, transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(6,182,212,0.07) 0, transparent 55%),
        #f3f5f9;
}
.pw-gate.pw-unlocked { display: none !important; }
.pw-box {
    width: 100%;
    max-width: 372px;
    padding: 40px 32px 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e8ef;
    border-radius: 16px;
    box-shadow: 0 20px 44px -16px rgba(16, 24, 40, 0.18);
    animation: pwRise 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pwRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pw-logo {
    width: 56px; height: 56px;
    margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    border-radius: 14px;
    font-size: 24px; font-weight: 800;
}
.pw-title { font-size: 21px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.pw-desc  { font-size: 14px; color: var(--text-sub); margin-bottom: 26px; line-height: 1.7; }
.pw-field  { position: relative; margin-bottom: 14px; }
.pw-input {
    width: 100%;
    padding: 15px 18px;
    background: #f3f5f9;
    border: 1px solid #d6dae3;
    border-radius: 10px;
    color: var(--text);
    font-size: 17px;
    text-align: center;
    letter-spacing: 5px;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
}
.pw-input::placeholder { letter-spacing: 1px; color: var(--text-faint); }
.pw-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47,111,237,0.12); }
.pw-input.pw-shake { animation: pwShake 0.4s ease; border-color: #ef4444; }
@keyframes pwShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.pw-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px; font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}
.pw-btn:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(47, 111, 237, 0.45); }
.pw-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pw-msg {
    min-height: 20px;
    margin-top: 14px;
    font-size: 13px;
    color: #ef4444;
}
.pw-msg.pw-ok { color: var(--cyan); }
.pw-hint { margin-top: 18px; font-size: 12px; color: var(--text-faint); line-height: 1.7; }

/* ===== Store badge disabled state ===== */
.store-badge.is-disabled { cursor: not-allowed; opacity: 0.5; }
.store-badge.is-disabled:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

