/* ==========================================================================
   Mirai 未来主题 · 官网单页样式
   默认浅色模式，<html data-theme="dark"> 切换为深色；响应式适配移动端
   ========================================================================== */

/* ---------- 品牌图标（取自主题 RemixIcon 字体） ---------- */
@font-face {
    font-family: "remixicon";
    src: url("../fonts/remixicon.woff2") format("woff2");
    font-display: swap;
}
[class^="ri-"], [class*=" ri-"] {
    font-family: "remixicon" !important;
    font-style: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}
.ri-qq-fill::before { content: "\f03a"; }
.ri-wechat-fill::before { content: "\f2b5"; }
.ri-wechat-pay-fill::before { content: "\f2b7"; }
.ri-weibo-fill::before { content: "\f2b9"; }
.ri-github-fill::before { content: "\edca"; }
.ri-gitee-fill::before { content: "\f64f"; }
.ri-baidu-fill::before { content: "\ea8b"; }
.ri-alipay-fill::before { content: "\ea2b"; }
.ri-dingding-fill::before { content: "\ec31"; }
.ri-shield-check-line::before { content: "\f100"; }

/* ---------- 主题变量 ---------- */
:root {
    --bg: #f6f8fc;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e3e8f0;
    --border-strong: #cfd8e4;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #6b7890;
    --primary: #2f7df6;
    --primary-2: #1b5fd6;
    --accent: #0a8fb0;
    --success: #0f9f76;
    --warning: #d97706;
    --purple: #7c3aed;
    --rose: #db2777;
    --nav-bg: rgba(255, 255, 255, .78);
    --shadow: 0 20px 60px rgba(15, 23, 42, .08);
    --shadow-sm: 0 6px 20px rgba(15, 23, 42, .06);
    --glow-1: rgba(47, 125, 246, .16);
    --glow-2: rgba(10, 143, 176, .12);
    --grid-line: rgba(15, 23, 42, .06);
    --line: rgba(15, 23, 42, .08);
    --line-strong: rgba(15, 23, 42, .16);
    --chip-bg: var(--surface-2);
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
    --cta-bg: linear-gradient(135deg, #eaf2ff 0%, #f7f9fc 100%);
    --cta-text: var(--text);
    --cta-text-2: var(--text-2);
    --radius: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --nav-h: 72px;
}

[data-theme="dark"] {
    --bg: #070b16;
    --bg-soft: #0c1222;
    --surface: #111a2e;
    --surface-2: #18233a;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #e6ebf5;
    --text-2: #a7b2c8;
    --text-3: #7c889f;
    --primary: #2f7df6;
    --primary-2: #1b5fd6;
    --accent: #22c1e8;
    --success: #2dd4a7;
    --warning: #f6b23c;
    --purple: #a076ff;
    --rose: #ff6b9a;
    --nav-bg: rgba(7, 11, 22, .7);
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, .35);
    --glow-1: rgba(47, 125, 246, .5);
    --glow-2: rgba(34, 193, 232, .3);
    --grid-line: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .2);
    --code-bg: #0a1020;
    --cta-bg: linear-gradient(135deg, #0f1a33 0%, #0b1222 100%);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background .3s, color .3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

::selection { background: rgba(47, 125, 246, .3); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 300;
    padding: 10px 16px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 15px; font-weight: 600; line-height: 1.2;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 16px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    box-shadow: 0 10px 30px rgba(47, 125, 246, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(47, 125, 246, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }

/* ---------- 导航 ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner {
    width: min(1200px, 100% - 48px); margin-inline: auto;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    position: relative;
    padding: 8px 14px;
    font-size: 14.5px; font-weight: 500; color: var(--text-2);
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.is-active { color: var(--primary); background: rgba(47, 125, 246, .1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-strong); background: var(--surface);
    display: grid; place-items: center; color: var(--text-2);
    transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); transform: rotate(15deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--border-strong); border-radius: 12px;
    background: var(--surface);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 48px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow-1 { width: 720px; height: 720px; top: -320px; left: -10%; background: radial-gradient(circle, var(--glow-1), transparent 65%); }
.hero-glow-2 { width: 640px; height: 640px; top: 10%; right: -15%; background: radial-gradient(circle, var(--glow-2), transparent 65%); }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 13px; font-weight: 500; color: var(--text-2);
    margin-bottom: 20px;
}
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 4px rgba(47, 125, 246, .18); position: relative; }
.hero-badge .dot::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }

.hero-title { letter-spacing: -.02em; }
.hero-title-main {
    display: block;
    font-size: clamp(40px, 5.2vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}
.hero-title-sub {
    display: block;
    margin-top: 10px;
    font-size: clamp(17px, 2.1vw, 23px);
    font-weight: 600;
    line-height: 1.5;
    background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags li { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 36px; margin-top: 40px; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { display: flex; align-items: baseline; gap: 2px; font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stat .plus { font-size: 15px; font-weight: 700; color: var(--primary); }
.hero-stat .label { margin-top: 3px; font-size: 13px; color: var(--text-3); }

/* Hero 视觉：付费阅读示意卡片 */
.hero-visual { position: relative; width: 100%; max-width: 400px; margin-inline: auto; }
.hero-visual::before {
    content: ''; position: absolute; inset: -18%;
    background: radial-gradient(circle at 55% 40%, rgba(47, 125, 246, .18), transparent 62%);
    filter: blur(24px); pointer-events: none;
}
.pay-card {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 80px rgba(47, 125, 246, .12);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pay-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pay-card-badge { font-size: 12px; font-weight: 600; color: var(--primary); background: rgba(47, 125, 246, .1); border: 1px solid rgba(47, 125, 246, .22); padding: 4px 11px; border-radius: 999px; }
.pay-card-vip { font-size: 11.5px; font-weight: 700; color: #9a5b00; background: linear-gradient(135deg, rgba(246, 178, 60, .3), rgba(255, 107, 154, .22)); border: 1px solid rgba(246, 178, 60, .45); padding: 4px 11px; border-radius: 999px; }
[data-theme="dark"] .pay-card-vip { color: #ffe9b5; }
.pay-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--text); }
.pay-card-desc { margin-top: 5px; font-size: 13px; color: var(--text-3); }
.pay-card-price { margin: 18px 0 16px; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.pay-card-price small { font-size: 17px; font-weight: 600; color: var(--primary); margin-right: 2px; }
.pay-card-actions { display: flex; gap: 10px; }
.pay-card-btn { flex: 1; text-align: center; padding: 11px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.pay-card-btn.primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; box-shadow: 0 8px 20px rgba(47, 125, 246, .28); }
.pay-card-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.pay-chip { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.pay-chip.wechat { color: var(--success); background: rgba(45, 212, 167, .12); }
.pay-chip.alipay { color: var(--primary); background: rgba(47, 125, 246, .12); }
.pay-chip.balance { color: var(--warning); background: rgba(246, 178, 60, .14); }

.float-card {
    position: absolute;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: floatCard 6s ease-in-out infinite;
}
.float-card-1 { top: 10%; left: -12%; animation-delay: -2s; }
.float-card-2 { bottom: 8%; right: -12%; animation-delay: -4s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.float-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.float-icon.crown { background: linear-gradient(135deg, rgba(246, 178, 60, .3), rgba(255, 107, 154, .22)); color: var(--warning); }
.float-icon.check { background: rgba(45, 212, 167, .15); color: var(--success); }
.float-title { display: block; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.float-desc { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; position: relative; }
.section-alt { background: var(--bg-soft); }

/* ---------- 通用：Hero 风格背景 ---------- */
.section-fx { position: relative; overflow: hidden; isolation: isolate; }
.section-fx::before {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 12% 0%, var(--glow-1), transparent 62%),
        radial-gradient(ellipse 50% 55% at 88% 100%, var(--glow-2), transparent 62%);
}
.section-fx::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 12%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 12%, transparent 72%);
}
.section-fx.flip::before {
    background:
        radial-gradient(ellipse 50% 55% at 88% 0%, var(--glow-1), transparent 62%),
        radial-gradient(ellipse 55% 60% at 10% 100%, var(--glow-2), transparent 62%);
}
.section-fx.flip::after {
    mask-image: radial-gradient(ellipse 75% 65% at 50% 55%, #000 12%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 55%, #000 12%, transparent 72%);
}
.section-fx > .container { position: relative; z-index: 1; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head.head-left { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: none; margin: 0 0 26px; text-align: left; }
.section-head.head-left .head-copy { min-width: 0; }
.section-head.head-left .section-desc { max-width: 430px; margin-top: 0; text-align: right; font-size: 14px; line-height: 1.7; }
.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em;
    color: var(--primary);
    background: rgba(47, 125, 246, .1);
    border: 1px solid rgba(47, 125, 246, .25);
    margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.section-desc { margin-top: 10px; font-size: 15.5px; color: var(--text-2); }

/* ---------- 创作工作台 ---------- */
.workbench { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 20px; align-items: stretch; }

.editor-mock { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.editor-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.editor-dots { display: flex; gap: 5px; }
.editor-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.editor-dots i:nth-child(1) { background: #ff5f57; }
.editor-dots i:nth-child(2) { background: #febc2e; }
.editor-dots i:nth-child(3) { background: #28c840; }
.editor-file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--text-3); }
.editor-mode { margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; color: var(--primary); background: rgba(47, 125, 246, .1); border: 1px solid rgba(47, 125, 246, .22); }
.editor-toolbar { display: flex; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.editor-toolbar i { width: 18px; height: 8px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.editor-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 18px; }
.editor-body i { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.editor-body .ln-title { height: 13px; width: 52%; background: linear-gradient(90deg, rgba(47, 125, 246, .45), rgba(10, 143, 176, .35)); }
.editor-body .ln-80 { width: 80%; }
.editor-body .ln-95 { width: 95%; }
.editor-body .ln-68 { width: 68%; }
.editor-body .ln-88 { width: 88%; }
.editor-body .ln-52 { width: 52%; }
.editor-body .ln-92 { width: 92%; }
.editor-body .ln-62 { width: 62%; }
.editor-paywall { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(47, 125, 246, .3); background: linear-gradient(135deg, rgba(47, 125, 246, .09), rgba(10, 143, 176, .05)); }
.paywall-lock { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); flex-shrink: 0; }
.paywall-lock svg { width: 16px; height: 16px; }
.paywall-text { display: flex; flex-direction: column; line-height: 1.35; }
.paywall-text b { font-size: 12.5px; color: var(--text); }
.paywall-text span { font-size: 11px; color: var(--text-3); }
.paywall-btn { margin-left: auto; padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 16px rgba(47, 125, 246, .28); }

.cap-list { display: flex; flex-direction: column; justify-content: center; }
.cap-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.cap-item:first-child { border-top: 1px solid var(--border); }
.cap-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); box-shadow: var(--shadow-sm); }
.cap-icon svg { width: 18px; height: 18px; }
.cap-main h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; letter-spacing: -.01em; }
.cap-main p { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.cap-meta { padding-top: 3px; font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }

/* ---------- 变现闭环 ---------- */
.board { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.board-title { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--text); }
.board-meta { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board-cell { padding: 20px; border-left: 1px solid var(--border); }
.board-cell:first-child { border-left: 0; }
.cell-no { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--primary); }
.board-cell h3 { margin: 8px 0 6px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.board-cell p { font-size: 12.5px; line-height: 1.65; color: var(--text-2); }
.board-cell code { font-size: 11.5px; padding: 1px 5px; }
.cell-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.cell-tags li { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); }

.board-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.foot-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); }
.pay-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-pills li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.pay-pills i { font-size: 13px; line-height: 1; }
.pay-pills .wechat i { color: #07c160; }
.pay-pills .alipay i { color: #1677ff; }
.foot-note { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* ---------- 社交登录 ---------- */
.login-band { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.login-band-main { padding: 22px 24px; }
.login-band-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.login-band-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(47, 125, 246, .12); color: var(--primary); flex-shrink: 0; }
.login-band-icon svg { width: 17px; height: 17px; stroke-width: 2; }
.login-band-head b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.login-band-head > div > span { display: block; font-size: 11.5px; color: var(--text-3); }
.login-count { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--primary); background: rgba(47, 125, 246, .1); border: 1px solid rgba(47, 125, 246, .25); white-space: nowrap; }
.oauth-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.oauth-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 11px; font-size: 10.5px; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s, background .25s; }
.oauth-tile:hover { transform: translateY(-2px); border-color: var(--brand, var(--primary)); background: var(--surface); }
.oauth-tile i { font-size: 20px; line-height: 1; color: var(--brand, var(--primary)); }
.oauth-tile.qq { --brand: #12b7f5; }
.oauth-tile.wechat { --brand: #07c160; }
.oauth-tile.weibo { --brand: #e6162d; }
.oauth-tile.github { --brand: #24292f; }
.oauth-tile.gitee { --brand: #c71d23; }
.oauth-tile.baidu { --brand: #2932e1; }
.oauth-tile.alipay { --brand: #1677ff; }
.oauth-tile.dingding { --brand: #0089ff; }
[data-theme="dark"] .oauth-tile.github { --brand: #e6ebf5; }

.login-band-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 24px; border-left: 1px solid var(--border); background: var(--surface-2); }
.mail-login { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 600; color: var(--text); }
.mail-login svg { width: 17px; height: 17px; color: var(--primary); }
.mail-login b { margin-left: auto; color: var(--primary); }
.login-band-side p { font-size: 11.8px; line-height: 1.65; color: var(--text-3); }

.login-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.login-benefits article { padding: 0 18px; border-left: 1px solid var(--border); }
.login-benefits article:first-child { padding-left: 0; border-left: 0; }
.login-benefits h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.login-benefits p { font-size: 11.8px; line-height: 1.6; color: var(--text-3); }

/* ---------- 技术底座 ---------- */
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.card-icon svg { width: 21px; height: 21px; }
.card-icon.blue { background: rgba(47, 125, 246, .12); color: var(--primary); }
.card-icon.green { background: rgba(45, 212, 167, .14); color: var(--success); }
.card-icon.purple { background: rgba(124, 58, 237, .12); color: var(--purple); }
.card-icon.amber { background: rgba(246, 178, 60, .16); color: var(--warning); }
.card-icon.cyan { background: rgba(34, 193, 232, .14); color: var(--accent); }
.card-icon.rose { background: rgba(255, 107, 154, .14); color: var(--rose); }

.tech-board { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech-cell { padding: 20px; border-left: 1px solid var(--border); }
.tech-cell:first-child { border-left: 0; }
.tech-cell .card-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px; }
.tech-cell .card-icon svg { width: 18px; height: 18px; }
.tech-cell h3 { font-size: 14px; font-weight: 700; margin-bottom: 5px; letter-spacing: -.01em; }
.tech-cell p { font-size: 12.2px; line-height: 1.65; color: var(--text-2); }

.tech-strip { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--code-bg); color: var(--code-text); }
.strip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.strip-head > i { font-size: 15px; color: #5ef0c0; }
.strip-head b { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.strip-live { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #5ef0c0; background: rgba(45, 212, 167, .14); border: 1px solid rgba(45, 212, 167, .3); }
.strip-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.strip-tags li { padding: 3px 9px; border-radius: 6px; font-size: 10.5px; color: rgba(226, 232, 240, .78); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.strip-env { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .12); font-size: 10.5px; line-height: 1.6; color: rgba(226, 232, 240, .55); }

/* ---------- CTA ---------- */
.cta-section { padding-top: 32px; }
.cta-card {
    position: relative; overflow: hidden;
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    background: var(--cta-bg);
    border: 1px solid var(--border-strong);
}
.cta-glow { position: absolute; left: 50%; top: -220px; width: 700px; height: 500px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(47, 125, 246, .35), rgba(34, 193, 232, .08) 50%, transparent 70%); filter: blur(40px); pointer-events: none; }
.cta-logo { position: relative; height: 40px; width: auto; margin: 0 auto 20px; }
.cta-card h2 { position: relative; font-size: clamp(23px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--cta-text); }
.cta-card p { position: relative; margin-top: 12px; font-size: 15.5px; color: var(--cta-text-2); }
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- 页脚 ---------- */
.footer { padding: 52px 0 26px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-2); line-height: 1.8; max-width: 480px; }
.footer-col h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: .02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-qrcodes { display: flex; gap: 14px; }
.qrcode { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.qrcode img { border-radius: 10px; border: 1px solid var(--border); background: #fff; padding: 3px; }
.qrcode figcaption { font-size: 12px; color: var(--text-3); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    margin-top: 48px; padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-3);
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4, 7, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .3s ease; }
.modal-dialog {
    position: absolute; top: 50%; left: 50%;
    width: calc(100% - 32px); max-width: 480px;
    padding: 40px 36px 36px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
    transform: translate(-50%, -50%);
    text-align: center;
    animation: popIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; stroke-width: 2.2; }
.modal-dialog h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.modal-dialog > p { font-size: 14px; color: var(--text-2); margin-bottom: 26px; }
.modal-qrcodes { display: flex; justify-content: center; gap: 28px; }
.modal-qrcodes .qrcode img { width: 150px; height: 150px; }
.modal-qrcodes .qrcode figcaption { font-size: 13px; color: var(--text-2); font-weight: 500; }
body.modal-lock { overflow: hidden; }

/* ---------- 内容可见性（保证正文始终可被索引） ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (min-width: 861px) {
    .section-head.head-left .section-desc { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding-top: 48px; }
    .hero-copy { text-align: center; }
    .hero-tags { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { max-width: 400px; }
    .float-card-1 { left: -4%; }
    .float-card-2 { right: -4%; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
    .footer-brand { grid-column: span 2; }
    .footer-col:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 12px 20px 18px;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: transform .3s var(--ease), opacity .3s;
    }
    .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 13px 16px; font-size: 15px; border-radius: 12px; }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head.head-left { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-head.head-left .section-desc { max-width: 100%; text-align: left; }
    .workbench { grid-template-columns: 1fr; }
    .login-band { grid-template-columns: 1fr; }
    .login-band-side { border-left: 0; border-top: 1px solid var(--border); }
    .board-grid, .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .board-cell:nth-child(odd), .tech-cell:nth-child(odd) { border-left: 0; }
    .board-cell:nth-child(n+3), .tech-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
    .login-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .login-benefits article:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
    :root { --nav-h: 60px; }
    body { font-size: 15px; }
    .container, .nav-inner { width: calc(100% - 36px); }
    .nav-logo img { height: 28px; }
    .nav-actions { gap: 8px; }
    .nav-actions .btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
    .theme-toggle { width: 36px; height: 36px; }
    .nav-toggle { width: 38px; height: 38px; }
    .hero { padding: 36px 0 44px; }
    .hero-badge { font-size: 12px; padding: 5px 12px 5px 6px; margin-bottom: 18px; }
    .hero-title-main { font-size: clamp(32px, 9vw, 40px); }
    .hero-title-sub { font-size: 15px; }
    .hero-tags { gap: 6px; margin-top: 18px; }
    .hero-tags li { padding: 5px 11px; font-size: 12px; }
    .hero-actions { flex-direction: column; gap: 10px; margin-top: 24px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 22px; margin-top: 30px; padding-top: 20px; }
    .hero-stat { align-items: flex-start; }
    .hero-stat .num { font-size: 25px; }
    .hero-visual { margin-top: 6px; max-width: 340px; }
    .float-card { display: none; }
    .pay-card { padding: 20px; }
    .section { padding: 46px 0; }
    .section-title { font-size: 23px; }
    .section-desc { font-size: 13.5px; }
    .editor-body { padding: 16px 14px; gap: 8px; }
    .editor-paywall { margin: 0 12px 12px; padding: 10px 12px; }
    .cap-item { padding: 12px 2px; }
    .board-grid, .tech-grid { grid-template-columns: 1fr; }
    .board-cell, .tech-cell { border-left: 0; }
    .board-cell + .board-cell, .tech-cell + .tech-cell { border-top: 1px solid var(--border); }
    .board-cell { padding: 16px 18px; }
    .board-foot { padding: 12px 18px; }
    .foot-note { margin-left: 0; width: 100%; }
    .login-band-main, .login-band-side { padding: 18px; }
    .oauth-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .login-benefits { grid-template-columns: 1fr; row-gap: 0; }
    .login-benefits article { padding: 12px 0; border-left: 0; border-top: 1px solid var(--border); }
    .login-benefits article:first-child { border-top: 0; padding-top: 0; }
    .login-benefits article:last-child { padding-bottom: 0; }
    .tech-cell { padding: 18px; }
    .tech-strip { padding: 14px 18px; }
    .cta-card { padding: 40px 20px; border-radius: 22px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    .footer { padding: 36px 0 20px; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
    .footer-brand { grid-column: span 2; }
    .footer-brand img { margin-bottom: 0; height: 30px; }
    .footer-brand p { display: none; }
    .footer-col h3 { margin-bottom: 10px; font-size: 13px; }
    .footer-col ul { gap: 8px; }
    .footer-col ul a { font-size: 13px; }
    .footer-col:last-child { grid-column: span 2; }
    .footer-qrcodes { justify-content: flex-start; gap: 14px; }
    .footer-qrcodes .qrcode img { width: 78px; height: 78px; }
    .footer-bottom { margin-top: 22px; padding-top: 16px; flex-direction: column; text-align: center; gap: 4px; font-size: 12px; }
    .modal-dialog { padding: 36px 18px 26px; }
    .modal-qrcodes { gap: 14px; }
    .modal-qrcodes .qrcode img { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pay-card, .float-card { animation: none; }
}
