/* ==========================================================================
   meabot 官网样式
   设计参考：socialdatax.com（亮色极简 / 紫蓝主色 / 大留白 / 克制阴影）
   ========================================================================== */

:root {
    /* 主色 —— 与浏览器插件弹窗统一（MEABOT_UI.primary = #5746b6） */
    --brand: #5746b6;
    --brand-hover: #4a3ba0;
    --brand-soft: #f0edff;
    --brand-softer: #f7f5ff;

    /* 中性色 —— 暖白基调，不用纯白 */
    --bg: #ffffff;
    --bg-warm: #fbfaf8;
    --bg-subtle: #f7f7f6;
    --bg-muted: #fafafa;

    --text: #17151d;
    --text-body: #4c4852;
    --text-soft: #767482;
    --text-faint: #8a8990;
    --on-brand: #ffffff;

    --line: #eae9e7;
    --line-strong: #dedcd8;

    --success: #20af41;
    --warning: #d48806;

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(23, 21, 29, 0.04);
    --shadow: 0 2px 8px rgba(23, 21, 29, 0.06);
    --shadow-lg: 0 12px 32px rgba(23, 21, 29, 0.08);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* ---------------------------------------------------------------- 导航 */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 160ms var(--ease);
}

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

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
}

.nav-toggle span::before {
    top: -5px;
}

.nav-toggle span::after {
    top: 5px;
}

/* ---------------------------------------------------------------- 按钮 */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
        color 160ms var(--ease), transform 160ms var(--ease);
}

.cta-button.primary {
    background: var(--brand);
    color: var(--on-brand);
}

.cta-button.primary:hover {
    background: var(--brand-hover);
}

.cta-button.secondary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--line-strong);
}

.cta-button.secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cta-button.ghost {
    background: transparent;
    color: var(--text-body);
}

.cta-button.ghost:hover {
    color: var(--brand);
}

.cta-button.dark {
    background: var(--text);
    color: var(--on-brand);
}

.cta-button.dark:hover {
    background: #000000;
}

.cta-button.large {
    height: 46px;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 650;
}

.cta-button.full-width {
    width: 100%;
}

.cta-button:active {
    transform: translateY(1px);
}

/* ---------------------------------------------------------------- 通用块 */

.section {
    padding: 52px 0;
}

.section.alt {
    background: var(--bg-warm);
}

.section-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    max-width: 640px;
    margin-bottom: 32px;
}

.section-header.center {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text);
}

.section-description {
    font-size: 1.0625rem;
    color: var(--text-body);
    margin-top: 12px;
    line-height: 1.7;
}

/* ------------------------------------------------------------ 演示视频 */

.showcase-figure {
    margin: 0 auto;
    max-width: 980px;
}

.showcase-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #14121a;
    box-shadow: 0 18px 48px rgba(23, 21, 29, 0.16), 0 2px 6px rgba(23, 21, 29, 0.08);
}

.showcase-player__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #14121a;
}

/* 老版本微信 X5 内核不认 aspect-ratio，容器会塌成一条线，视频等于看不见。
   这里用 padding 撑高兜底，只对不支持的内核生效，新浏览器不受影响。 */
@supports not (aspect-ratio: 16 / 9) {
    .showcase-player {
        height: 0;
        padding-bottom: 56.25%;
    }

    .showcase-player__video {
        position: absolute;
        inset: 0;
    }
}

/* 未播放时压一层暗色，让播放按钮跳出来；播放后淡出，别盖住原生控件 */
.showcase-player::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(10, 8, 20, 0.04) 0%, rgba(10, 8, 20, 0.26) 100%);
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
}

.showcase-player.is-playing::after {
    opacity: 0;
}

.showcase-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px 15px 24px;
    border: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(23, 21, 29, 0.22);
    transform: translate(-50%, -50%);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), opacity 0.25s var(--ease);
}

.showcase-play svg {
    flex-shrink: 0;
    color: var(--brand);
}

.showcase-play:hover {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 12px 32px rgba(23, 21, 29, 0.28);
}

.showcase-play:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.showcase-play.is-loading {
    cursor: default;
}

.showcase-play.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.94);
}

/* 轻点画面的热区：只收手势，不画东西 */
.showcase-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 自绘控制条。默认完全不可见、不接事件 —— 这是「点播放不出条」的关键：
   一开播只有视频画面，用户轻点画面才浮出来，再点收起。 */
.showcase-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(9, 7, 18, 0.82) 0%, rgba(9, 7, 18, 0.45) 55%, rgba(9, 7, 18, 0) 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.showcase-player.is-controls .showcase-controls {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.showcase-controls__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s var(--ease);
}

.showcase-controls__btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.showcase-controls__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

/* 播放/暂停图标按状态切换 */
.showcase-controls__btn .ico-play {
    display: none;
}

.showcase-controls__btn.is-paused .ico-pause {
    display: none;
}

.showcase-controls__btn.is-paused .ico-play {
    display: block;
}

.showcase-track {
    position: relative;
    flex: 1;
    height: 18px;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

/* 轨道与进度条都居中贴在同一基线上，留出上下各 7px 当触控热区 */
.showcase-track::before,
.showcase-track__fill {
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 2px;
    transform: translateY(-50%);
    content: '';
}

.showcase-track::before {
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.28);
}

.showcase-track__fill {
    left: 0;
    width: 0;
    background: var(--brand);
}

.showcase-track:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

.showcase-controls__time {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 520px) {
    .showcase-controls {
        gap: 8px;
        padding: 22px 10px 10px;
    }

    .showcase-controls__time {
        font-size: 0.72rem;
    }
}

.showcase-caption {
    margin-top: 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-faint);
    text-align: center;
}

/* ---------------------------------------------------------------- Hero */

.hero {
    padding: 56px 0 48px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
}

.hero-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--text);
}

.hero-title .accent {
    color: var(--brand);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-body);
    margin: 20px 0 30px;
    max-width: 500px;
    line-height: 1.75;
}

.hero-description strong {
    color: var(--text);
    font-weight: 600;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 26px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--brand);
    background: var(--bg);
    border: 1px solid var(--brand-soft);
    border-radius: 100px;
}

.hero-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-badge::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-softer);
    border: 1px solid var(--brand-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235746b6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 9px 9px;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-note {
    margin-top: 22px;
    font-size: 0.875rem;
    color: var(--text-soft);
}

.hero-note a {
    color: var(--brand);
    text-decoration: none;
}

.hero-note a:hover {
    text-decoration: underline;
}

/* Hero 右侧：五张功能截图，逐层收窄叠成一摞 */
.hero-visual {
    position: relative;
}

.hero-demo {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding: 4px 0 4px;
}

/* 5 张卡片叠成的一摞 */
.demo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卡片底下的紫色柔光，避免两张图直接贴在暖白底上显得干 */
.hero-demo::before {
    content: "";
    position: absolute;
    inset: 4% -12% 2%;
    background:
        radial-gradient(52% 42% at 70% 22%, rgba(87, 70, 182, 0.15), transparent 72%),
        radial-gradient(46% 40% at 14% 74%, rgba(87, 70, 182, 0.1), transparent 74%);
    filter: blur(4px);
    pointer-events: none;
}

.demo-card {
    position: relative;
    margin: 0;
    padding: 9px 9px 2px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 26px 50px -22px rgba(23, 21, 29, 0.32), 0 10px 18px -12px rgba(23, 21, 29, 0.28),
        0 6px 16px rgba(23, 21, 29, 0.06);
    --rot: 0deg;
    --dx: 0px;
    transform: rotate(var(--rot)) translateX(var(--dx));
    transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

/* 首屏功能截图：5 张叠成一摞，最上面那张完整露出，底下 4 张各露一条边 */
.demo-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    border: 1px solid var(--line);
}

.demo-link {
    display: block;
    border-radius: 9px;
    overflow: hidden;
}

.demo-caption {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 4px 8px;
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--text-soft);
    text-align: left;
}

.demo-caption::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand);
}

.demo-hint {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
}

/* 最上面那张：完整显示 */
.demo-card--front {
    width: 90%;
    align-self: center;
    z-index: 5;
    --rot: -2.4deg;
    --dx: -5px;
}

/* 底下 4 张：一层比一层窄，每张左右边框露出来当「台阶」，
   这样才看得出是 5 张纸叠着，而不是一张花掉的大图。
   margin-top = calc(-56.25% × 自身宽度% + 定值px)：
   56.25% 是 16:9 图高，乘宽度百分比 = 卡片高度占容器宽的比例；加回的定值就是露出的厚度。
   ⚠️ 露头故意不等（62 / 70 / 58 / 66）、宽度步长也不等（87 / 83 / 79 / 75）、
   每张再带一点左右错位（--dx）：等距 + 居中是排版软件的排法，
   不等才像随手摞起来的一叠纸。改宽度必须同步重算 margin-top。 */
.demo-card--peek {
    align-self: center;
}

.demo-card:nth-child(2) {
    width: 87%;
    z-index: 4;
    --rot: -1.5deg;
    --dx: -1px;
    margin-top: calc(-48.9375% + 60.25px);
}

.demo-card:nth-child(3) {
    width: 83%;
    z-index: 3;
    --rot: -0.6deg;
    --dx: 3px;
    margin-top: calc(-46.6875% + 68.25px);
}

.demo-card:nth-child(4) {
    width: 79%;
    z-index: 2;
    --rot: 0.4deg;
    --dx: 7px;
    margin-top: calc(-44.4375% + 56.25px);
}

.demo-card:nth-child(5) {
    width: 75%;
    z-index: 1;
    --rot: 1.3deg;
    --dx: 11px;
    margin-top: calc(-42.1875% + 64.25px);
}

.hero-demo:hover .demo-card--front {
    --rot: -1.2deg;
    transform: rotate(var(--rot)) translateX(var(--dx)) translateY(-4px);
    box-shadow: 0 32px 56px -20px rgba(23, 21, 29, 0.36), 0 8px 20px rgba(23, 21, 29, 0.08);
}

/* 悬停时下面几张往下让开一点，像把一摞纸展一下 */
.hero-demo:hover .demo-card--peek {
    transform: rotate(var(--rot)) translateX(var(--dx)) translateY(5px);
}

@media (max-width: 480px) {
    .demo-card--front {
        width: 96%;
        --dx: -2px;
    }

    .demo-card:nth-child(2) {
        width: 93%;
        --dx: 0px;
        margin-top: calc(-52.3125% + 46.25px);
    }

    .demo-card:nth-child(3) {
        width: 89%;
        --dx: 2px;
        margin-top: calc(-50.0625% + 54.25px);
    }

    .demo-card:nth-child(4) {
        width: 85%;
        --dx: 4px;
        margin-top: calc(-47.8125% + 44.25px);
    }

    .demo-card:nth-child(5) {
        width: 81%;
        --dx: 6px;
        margin-top: calc(-45.5625% + 50.25px);
    }

    /* 手机端 4 个标签排 2×2：flex 自动换行会排成「3 + 1」，
       最后一行只挂一个，看着像漏了一个 */
    .hero-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-chip {
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------------------------- 首屏大图灯箱 */

/* 点首屏任意一张截图 → 在当前页放大，不跳走。
   关闭方式三个：ESC、右上角 ✕、点图片以外的遮罩区。
   换图三种：左右箭头键、两侧圆钮、手机上左右滑。
   用 visibility 而不是 display，才能淡入淡出；同时不可见时也点不到。 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(23, 21, 29, 0.84);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    /* 横向 pan 交给 JS 的滑动处理，纵向和双指缩放仍留给浏览器 */
    touch-action: pan-y pinch-zoom;
    transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: min(1180px, 100%);
    max-height: 100%;
    transform: scale(0.97);
    transition: transform 200ms var(--ease);
}

.lightbox.is-open .lightbox-figure {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.6);
    /* 手指拖动时别触发系统「存储图片」的拖拽 */
    -webkit-user-drag: none;
    user-select: none;
}

/* 换图的方向感：下一张从右侧进来，上一张从左侧进来。
   用 animation 而不是 transition —— 连按时重复触发动画不会把图卡在半透明。 */
.lightbox-img.is-next {
    animation: lightbox-in-next 260ms var(--ease) both;
}

.lightbox-img.is-prev {
    animation: lightbox-in-prev 260ms var(--ease) both;
}

@keyframes lightbox-in-next {
    from {
        opacity: 0.25;
        transform: translateX(26px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lightbox-in-prev {
    from {
        opacity: 0.25;
        transform: translateX(-26px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lightbox-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.84);
    text-align: center;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* 两侧圆钮：鼠标用户的左右切换，手机上藏掉（滑动就够了） */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.lightbox-nav svg {
    display: block;
    width: 20px;
    height: 20px;
}

.lightbox-nav--prev {
    left: 20px;
}

.lightbox-nav--next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* 灯箱开着时锁住背景滚动，否则手机上滑一下页面在底下乱跑 */
body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 16px;
    }

    .lightbox-img {
        max-height: calc(100vh - 104px);
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    /* 手机上左右滑动就是切换手势，圆钮会盖住图 */
    .lightbox-nav {
        display: none;
    }
}

/* ---------------------------------------------------------------- 平台条 */

.platforms {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.platforms-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 550;
    color: var(--text-body);
}

.platform-tag svg {
    flex-shrink: 0;
}

.platform-tag.compare-link {
    color: var(--text-soft);
}

.platform-tag.compare-link a {
    color: var(--brand);
    font-weight: 550;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 180ms var(--ease);
}

.platform-tag.compare-link a:hover {
    border-bottom-color: var(--brand);
}

/* ---------------------------------------------------------------- 平台能力卡片 */

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.platform-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
}

.platform-name {
    margin: 0 0 16px;
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
}

.platform-capabilities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.platform-capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.platform-capabilities li::before {
    flex: none;
    margin-top: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

.platform-capabilities li.yes {
    color: var(--text-body);
}

.platform-capabilities li.yes::before {
    content: "✓";
    background: var(--brand-softer);
    color: var(--brand);
}

.platform-capabilities li.no {
    color: var(--text-faint);
}

.platform-capabilities li.no::before {
    content: "×";
    background: var(--bg-subtle);
    color: var(--text-faint);
}

.compare-footnote {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-soft);
    text-align: center;
}

/* ---------------------------------------------------------------- 主线三卡片 */

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pillar {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease),
        transform 180ms var(--ease);
}

.pillar:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.pillar-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 100px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.pillar-title {
    font-size: 1.1875rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.pillar-lead {
    font-size: 0.9375rem;
    color: var(--brand);
    font-weight: 550;
    margin-bottom: 12px;
}

.pillar-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pillar-list {
    list-style: none;
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
}

.pillar-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: var(--brand);
    opacity: 0.55;
}

.pillar-list strong {
    font-weight: 600;
    color: var(--text);
}

.features-footnote {
    margin-top: 22px;
    font-size: 0.875rem;
    color: var(--text-soft);
    text-align: center;
}

.features-footnote a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.features-footnote a:hover {
    border-bottom-color: var(--brand);
}

/* ---------------------------------------------------------------- 产出三张表 */

.output-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.output-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
}

.output-title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
}

.output-desc {
    margin: 0 0 16px;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.output-fields {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.8375rem;
    line-height: 1.55;
    color: var(--text-body);
}

.output-fields li {
    display: flex;
    gap: 8px;
}

.output-fields li::before {
    content: "";
    flex: none;
    margin-top: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.5;
}

.output-shots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.output-shot {
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px 9px 4px;
    box-shadow: 0 18px 40px -26px rgba(23, 21, 29, 0.28);
}

.output-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    border: 1px solid var(--line);
}

.output-shot figcaption {
    padding: 9px 4px 7px;
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* ---------------------------------------------------------------- 功能卡片 */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease),
        transform 180ms var(--ease);
}

.feature-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-card.featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

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

.feature-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 550;
    color: var(--text-soft);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 100px;
}

/* ---------------------------------------------------------------- 步骤 */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: step;
}

.steps-cta {
    margin-top: 28px;
    text-align: center;
}

.step-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    position: relative;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 0.85rem;
    font-weight: 650;
    margin-bottom: 14px;
}

.step-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 8px;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ---------------------------------------------------------------- 场景 */

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

.audience-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.audience-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 10px;
}

.audience-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.audience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audience-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.audience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

/* ---------------------------------------------------------------- 定价 */

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

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.pricing-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 22px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 26px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--success);
}

.pricing-features li.muted {
    color: var(--text-faint);
}

.pricing-features li.muted svg {
    color: var(--line-strong);
}

.price-example {
    max-width: 720px;
    margin: 26px auto 0;
    padding: 16px 20px;
    background: var(--brand-softer);
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
    text-align: center;
}

.price-example strong {
    color: var(--text);
}

/* ---------------------------------------------------------------- FAQ */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 160ms var(--ease);
}

.faq-item.active {
    border-color: var(--brand);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-faint);
    transition: transform 220ms var(--ease);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--brand);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 520px;
}

.faq-answer-inner {
    padding: 0 20px 20px;
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.faq-answer-inner p + p {
    margin-top: 10px;
}

.faq-answer-inner ol,
.faq-answer-inner ul {
    padding-left: 20px;
    margin-top: 8px;
}

.faq-answer-inner li {
    margin-bottom: 4px;
}

.faq-answer-inner a {
    color: var(--brand);
    text-decoration: none;
}

.faq-answer-inner a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- CTA */

.cta {
    padding: 56px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 12px;
}

.cta-description {
    font-size: 1.0625rem;
    color: var(--text-body);
    margin-bottom: 28px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- 页脚 */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 52px 0 28px;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.footer-link-group h4 {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-link-group a {
    display: block;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 9px;
    transition: color 160ms var(--ease);
}

.footer-link-group a:hover {
    color: var(--brand);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--brand);
}

/* ---------------------------------------------------------------- 内页 */

.page-header {
    padding: 64px 0 56px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
}

.page-header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header-content {
    max-width: 700px;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
    margin: 14px 0 0;
}

.page-description {
    font-size: 1.0625rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-top: 14px;
}

.page-header-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 使命 */

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.mission-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.mission-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mission-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 8px;
}

.mission-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* 理念 */

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.value-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 650;
}

.value-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 6px;
}

.value-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* 故事 */

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.story-paragraph {
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 14px;
}

.story-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.story-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 8px;
}

.story-card-header h3 {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text);
}

.story-card-body p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
}

/* 联系 */

.contact-card {
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.contact-description {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 550;
}

.contact-link:hover {
    text-decoration: underline;
}

/* 文档页 */

.document-section {
    padding: 56px 0 72px;
}

.document-content {
    max-width: 760px;
    margin: 0 auto;
}

.document-content h2 {
    font-size: 1.375rem;
    font-weight: 650;
    color: var(--text);
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.document-content h2:first-child {
    margin-top: 0;
}

.document-content h3 {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
    margin: 28px 0 10px;
}

.document-content p {
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 14px;
}

.document-content ul,
.document-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
    color: var(--text-body);
    line-height: 1.85;
}

.document-content li {
    margin-bottom: 6px;
}

.document-content strong {
    color: var(--text);
    font-weight: 600;
}

.document-content a {
    color: var(--brand);
    text-decoration: none;
}

.document-content a:hover {
    text-decoration: underline;
}

.document-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875em;
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    color: var(--text);
}

/* 以下三块是给 Markdown 文章用的（blog.py 生成），以前只有行内 code。
   不加的话表格会塌成没边框的纯文字，看着像排版坏了。 */

.document-content blockquote {
    margin: 0 0 16px;
    padding: 2px 0 2px 16px;
    border-left: 3px solid var(--brand);
    color: var(--text-body);
    line-height: 1.85;
}

.document-content blockquote p {
    margin-bottom: 0;
}

.document-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 22px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* 手机上表格会撑破 760px 容器。用外层滚动容器包住，而不是给 table 加
   display:block —— 后者会让表格塌成「每行一个块」，单元格不再铺满整宽
   （实测宽度 390 但只有左半边有内容）。 */
.document-content .table-scroll {
    overflow-x: auto;
    margin: 18px 0 22px;
    -webkit-overflow-scrolling: touch;
}

.document-content .table-scroll table {
    margin: 0;
    min-width: 100%;
}

.document-content th,
.document-content td {
    border: 1px solid var(--line);
    padding: 9px 13px;
    text-align: left;
    vertical-align: top;
    color: var(--text-body);
}

.document-content th {
    background: var(--bg-subtle);
    color: var(--text);
    font-weight: 600;
}

.document-content pre {
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.document-content pre code {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.document-content hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}


/* 下载页 */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.download-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.download-card.featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
}

.download-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-title {
    font-size: 1.0625rem;
    font-weight: 650;
    color: var(--text);
}

.download-version {
    color: var(--text-faint);
    font-size: 0.8rem;
    margin-top: 2px;
}

.download-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 18px;
}

.download-description a {
    color: var(--brand);
    text-decoration: none;
}

.download-description a:hover {
    text-decoration: underline;
}

.download-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

.download-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.download-features svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--success);
}

.download-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-info {
    margin-top: 16px;
    padding: 13px 15px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.download-info strong {
    color: var(--text-body);
}

.download-mirror {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.download-mirror a {
    color: var(--primary);
    text-decoration: none;
}

.download-mirror a:hover {
    text-decoration: underline;
}

.install-guide-section {
    padding: 72px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
}

.install-guide-content {
    max-width: 820px;
    margin: 0 auto;
}

.install-guide-block {
    margin-bottom: 30px;
}

.install-guide-title {
    font-size: 1.125rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 12px;
}

.install-guide-list {
    list-style: none;
    counter-reset: guide;
}

.install-guide-list a {
    color: var(--brand);
    text-decoration: none;
}

.install-guide-list a:hover {
    text-decoration: underline;
}

.install-guide-list li {
    color: var(--text-body);
    line-height: 1.8;
    padding-left: 34px;
    position: relative;
    margin-bottom: 11px;
    counter-increment: guide;
}

.install-guide-list li::before {
    content: counter(guide);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 650;
}

/* 安装步骤配图 */
.install-guide-figure {
    margin: 18px 0 0;
}

/* 安装步骤末尾的「下一步」卡片 */
.install-next {
    margin-top: 36px;
    padding: 26px 28px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.install-next-title {
    font-size: 1.125rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 10px;
}

.install-next-desc {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 18px;
}

.install-guide-shot {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.install-guide-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.install-guide-caption {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-faint);
    line-height: 1.6;
}

.install-guide-caption code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95em;
    color: var(--text-body);
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
}

.system-requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}

.system-requirement-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.system-requirement-icon {
    color: var(--brand);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.system-requirement-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 7px;
}

.system-requirement-description {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

.faq-section {
    padding: 72px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
}

.faq-content {
    max-width: 760px;
    margin: 0 auto;
}

.faq-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 10px;
}

.faq-card-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 7px;
}

.faq-card-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        max-width: none;
    }

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

    /* 三栏在 1024 以下开始挤，第三张卡换行独占一行更耐读 */
    .pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars .pillar:last-child {
        grid-column: 1 / -1;
    }

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

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

    .story-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .system-requirements-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-links {
        align-items: center;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 0;
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 44px 0;
    }

    .hero {
        padding: 44px 0 40px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .features-grid,
    .audience-grid,
    .pricing-grid,
    .values-grid,
    .downloads-grid,
    .output-grid,
    .output-shots,
    .platform-grid,
    .pillars {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-actions {
        flex-direction: column;
    }

    .hero-buttons .cta-button,
    .cta-actions .cta-button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .section-container,
    .hero-container,
    .footer-container,
    .cta-inner,
    .page-header-container,
    .platforms-inner {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-chips {
        gap: 6px;
    }

    .hero-chip {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .cta-button.large {
        height: 44px;
        padding: 0 20px;
        font-size: 0.95rem;
    }

    .pricing-card,
    .feature-card,
    .step-card,
    .audience-card,
    .mission-card,
    .download-card {
        padding: 22px;
    }

    .showcase-player {
        border-radius: 10px;
        box-shadow: 0 10px 26px rgba(23, 21, 29, 0.14);
    }

    .showcase-play {
        gap: 8px;
        padding: 12px 20px 12px 17px;
        font-size: 0.9rem;
    }

    .showcase-play svg {
        width: 17px;
        height: 17px;
    }

    .showcase-caption {
        margin-top: 12px;
        font-size: 0.78rem;
        text-align: left;
    }
}

/* ---------------------------------------------------------------- 小工具 */

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.tool-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.tool-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.tool-head h2 {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text);
}

.tool-count {
    font-size: 0.78rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.tool-textarea {
    width: 100%;
    flex: 1;
    min-height: 300px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-warm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.92rem;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.tool-textarea::placeholder {
    color: var(--text-faint);
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.tool-actions {
    display: flex;
    gap: 10px;
}

.tool-btn {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-body);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 550;
    cursor: pointer;
    transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.tool-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.tool-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* 命中清单 */

.tool-hits {
    flex: 1;
    min-height: 300px;
    max-height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sw-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sw-group-name {
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--text);
}

.sw-badge {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.6;
}

.sw-badge--high {
    background: #fdeceb;
    color: #b3311f;
}

.sw-badge--mid {
    background: #fdf4e4;
    color: #8f5f00;
}

.sw-group-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.sw-word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sw-word {
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text-body);
    font-size: 0.8rem;
}

.sw-word i {
    margin-left: 3px;
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-faint);
}

.sw-idle,
.sw-empty {
    display: block;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.sw-ok {
    color: var(--success);
    font-size: 0.88rem;
    font-weight: 600;
}

.sw-ok span {
    display: block;
    margin-top: 6px;
    color: var(--text-faint);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.7;
}

/* 命中位置 */

.tool-preview-block {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.tool-preview {
    margin-top: 12px;
    min-height: 110px;
    font-size: 0.92rem;
    line-height: 2.1;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-body);
}

.sw-hit {
    padding: 1px 3px;
    border-radius: 3px;
    background: transparent;
}

.sw-hit--high {
    background: #fde4e1;
    color: #a02315;
    box-shadow: inset 0 -2px 0 #d94f3d;
}

.sw-hit--mid {
    background: #fdf1d9;
    color: #8a5300;
    box-shadow: inset 0 -2px 0 #d99a2b;
}

@media (max-width: 860px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .tool-textarea,
    .tool-hits {
        min-height: 220px;
    }

    .tool-hits {
        max-height: 340px;
    }
}

/* ---------------------------------------------------------------- 动效 */

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
