/* 口袋壳官网样式（版式参照 Cursor 官网：暖白底、黑色胶囊按钮、中等字重标题、大块产品画面）
   Layout: 左对齐窄标题 + 全宽「画布」里放客户端窗口；往下是圆角灰底分区，每区左文右图 */
:root {
  --bg: #f7f7f4;
  --panel: #efefea;
  --surface: #ffffff;
  --ink: #26251e;
  --ink-2: #6e6c62;
  --muted: #8b897f;
  --line: #e3e2dc;
  --btn: #26251e;
  --on-btn: #f7f7f4;
  --btn-2: #e8e7e1;
  --accent: #3941ff;
  --accent-ink: #2e35d8;
  --accent-soft: #e9eaff;
  --win: #fbfbf9;
  --win-line: #e6e5df;
  --win-side: #f4f4f0;
  --code-bg: #1d1c17;
  --code-fg: #e9e7df;
  --code-dim: #9b988c;
  --font-sans: "Geist", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f; --panel: #1c1b16; --surface: #22211b; --ink: #edece6; --ink-2: #a8a69b; --muted: #8a887d; --line: #2e2d26;
    --btn: #edece6; --on-btn: #14130f; --btn-2: #2a2923; --accent: #8c96ff; --accent-ink: #a9b0ff; --accent-soft: #23264a;
    --win: #1a1915; --win-line: #2f2e27; --win-side: #201f1a; --code-bg: #0e0d0a; --code-fg: #e9e7df; --code-dim: #8f8c80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f; --panel: #1c1b16; --surface: #22211b; --ink: #edece6; --ink-2: #a8a69b; --muted: #8a887d; --line: #2e2d26;
  --btn: #edece6; --on-btn: #14130f; --btn-2: #2a2923; --accent: #8c96ff; --accent-ink: #a9b0ff; --accent-soft: #23264a;
  --win: #1a1915; --win-line: #2f2e27; --win-side: #201f1a; --code-bg: #0e0d0a; --code-fg: #e9e7df; --code-dim: #8f8c80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1300px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 900px) { .wrap { padding-inline: 70px; } }
.narrow { max-width: 860px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.nw { white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); vertical-align: middle; letter-spacing: 0; }

/* Buttons: 胶囊形 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font: 500 16px/1.3 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: opacity .15s ease, background .15s ease; }
.btn:hover { opacity: .88; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-ghost { background: var(--btn-2); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-lg { padding: 13px 24px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
[data-dl-group] .btn { min-width: 11.5em; }
@media (max-width: 520px) { [data-dl-group] .btn { flex: 1 1 100%; } }
.arrow::after { content: " →"; }
.dl-icon::after { content: " ↓"; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 18px/1 var(--font-sans); letter-spacing: .02em; justify-self: start; }
.brand img { width: 26px; height: 26px; }
.nav-mid { display: flex; gap: 30px; font-size: 15px; }
.nav-mid a, .nav-end a.link { text-decoration: none; color: var(--ink); }
.nav-mid a:hover, .nav-end a.link:hover { color: var(--ink-2); }
.nav-mid a[aria-current="page"] { color: var(--ink-2); }
.nav-end { display: flex; align-items: center; gap: 12px; justify-self: end; font-size: 15px; }
.nav-end .btn { padding: 6px 14px; font-size: 15px; }
@media (max-width: 860px) { .top .wrap { grid-template-columns: 1fr auto; } .nav-mid { display: none; } .nav-end a.link { display: none; } }

/* Sections */
.section { padding-block: 64px; }
@media (max-width: 720px) { .section { padding-block: 44px; } }
.sec-head { display: grid; gap: 6px; margin-bottom: 32px; max-width: 34em; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.sec-head p { color: var(--ink-2); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.eyebrow { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }

/* Home hero */
.hero { padding-block: 72px 40px; }
@media (max-width: 720px) { .hero { padding-block: 40px 28px; } }
.hero h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; max-width: 17em; }
.hero h1 .dim { color: var(--ink-2); }
.hero .btn-row { margin-top: 26px; }
.hero .sub { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 「画布」：仿油画的蓝色底，用渐变 + 颗粒噪点 */
.canvas { position: relative; border-radius: 4px; overflow: hidden; padding: clamp(28px, 4vw, 56px) clamp(14px, 6vw, 110px) 0; min-height: 200px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 80% at 15% 10%, #e9e3ff 0%, transparent 55%),
    radial-gradient(90% 70% at 85% 0%, #c9d5ff 0%, transparent 60%),
    radial-gradient(100% 80% at 50% 110%, #5a63e8 0%, transparent 60%),
    linear-gradient(180deg, #d9dcff 0%, #a9b6f5 45%, #6f7de6 100%); }
.canvas.warm { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(100% 80% at 20% 0%, #f3e6d6 0%, transparent 60%),
    radial-gradient(100% 80% at 80% 100%, #8f98e8 0%, transparent 60%),
    linear-gradient(170deg, #ece4da 0%, #c8c6e6 55%, #8b93dc 100%); }
.canvas.dusk { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(100% 90% at 80% 10%, #f4c9b8 0%, transparent 55%),
    radial-gradient(100% 80% at 10% 100%, #4b4fb8 0%, transparent 60%),
    linear-gradient(160deg, #e7cfd6 0%, #a4a3df 55%, #4c55c4 100%); }
.canvas.mist { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(100% 80% at 30% 0%, #dff0ea 0%, transparent 60%),
    radial-gradient(100% 80% at 90% 100%, #6f86d8 0%, transparent 60%),
    linear-gradient(175deg, #d8e6e6 0%, #a8bde3 55%, #6c80d6 100%); }
.canvas.pad-b { padding-bottom: clamp(28px, 4vw, 56px); }

/* 客户端窗口（浅色，三栏） */
.app { position: relative; background: var(--win); color: var(--ink); border: 1px solid var(--win-line); border-radius: 10px 10px 0 0; box-shadow: 0 30px 70px -30px rgba(20, 22, 60, .45); overflow: hidden; font-size: 13.5px; line-height: 1.55; min-width: 0; }
.canvas.pad-b .app { border-radius: 10px; }
.app-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 34px; padding-inline: 12px; border-bottom: 1px solid var(--win-line); background: var(--win-side); font-size: 12.5px; color: var(--ink-2); }
.app-bar .dots { display: flex; gap: 6px; } .app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.app-bar .mode { justify-self: end; display: inline-flex; border: 1px solid var(--win-line); border-radius: 7px; padding: 2px; gap: 2px; background: var(--win); }
.app-bar .mode span { padding: 1px 8px; border-radius: 5px; font-size: 11.5px; }
.app-bar .mode span.on { background: var(--btn-2); color: var(--ink); }
.app-cols { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1.15fr); min-height: 430px; }
@media (max-width: 980px) { .app-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .app-side { display: none; } }
@media (max-width: 640px) { .app-cols { grid-template-columns: minmax(0, 1fr); min-height: 0; } .app-file { display: none; } }
.app-side { background: var(--win-side); border-right: 1px solid var(--win-line); padding: 12px 8px; display: grid; align-content: start; gap: 2px; }
.app-side .grp { font-size: 11px; letter-spacing: .06em; color: var(--muted); padding: 10px 8px 4px; }
.app-side .item { display: grid; padding: 6px 8px; border-radius: 6px; }
.app-side .item.on { background: var(--btn-2); }
.app-side .item b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side .item span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chat { border-right: 1px solid var(--win-line); padding: 14px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.app-chat .title { font-weight: 500; }
.app-chat .ask { border: 1px solid var(--win-line); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.app-chat .log { font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.app-chat .log b { font-weight: 400; color: var(--ink-2); }
.app-chat .say { color: var(--ink); }
.approve { border: 1px solid var(--win-line); border-radius: 8px; padding: 10px; display: grid; gap: 8px; background: var(--surface); }
.approve .q { font-size: 12.5px; }
.approve .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.approve .acts span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--btn-2); }
.approve .acts span.yes { background: var(--btn); color: var(--on-btn); }
.composer { margin-top: 4px; border: 1px solid var(--win-line); border-radius: 8px; padding: 8px 10px; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; background: var(--surface); }
.composer .folder { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app-file { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.app-file .tabs { display: flex; border-bottom: 1px solid var(--win-line); font-size: 12px; color: var(--ink-2); overflow: hidden; }
.app-file .tabs span { padding: 7px 14px; border-right: 1px solid var(--win-line); white-space: nowrap; }
.app-file .tabs span.on { background: var(--surface); color: var(--ink); }
.app-file .page { padding: 18px 22px; background: var(--surface); font-family: var(--font-serif); font-size: 14.5px; line-height: 1.75; display: grid; gap: 10px; align-content: start; overflow-wrap: anywhere; }
.app-file .page.en { font-family: Georgia, "Times New Roman", serif; }
.app-file .page h4 { font-family: var(--font-sans); font-size: 16px; }
.hl-box { outline: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 2px; }
.float-card { position: absolute; right: clamp(10px, 4vw, 40px); bottom: 18px; width: min(340px, 70%); background: var(--code-bg); color: var(--code-fg); border-radius: 10px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font: 12.5px/1.6 var(--font-mono); overflow: hidden; }
.float-card .fc-bar { padding: 7px 12px; color: var(--code-dim); border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-sans); font-size: 12px; }
.float-card .fc-body { padding: 10px 12px; display: grid; gap: 2px; }
.float-card .ok { color: #9fe0b8; }
@media (max-width: 640px) { .float-card { display: none; } }

/* 人群条（替代 Cursor 的客户 logo 墙） */
.who { padding-block: 56px 8px; text-align: center; }
.who p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.who-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.who-grid span { background: var(--panel); border-radius: 4px; height: 84px; display: grid; place-items: center; font-size: 17px; font-weight: 500; color: var(--ink-2); }

/* 分区：圆角灰底，左文右图 */
.feat { background: var(--panel); border-radius: 4px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 20px; padding: 20px; align-items: stretch; }
.feat + .feat { margin-top: 20px; }
@media (max-width: 900px) { .feat { grid-template-columns: minmax(0, 1fr); } }
.feat-text { display: grid; align-content: end; gap: 14px; padding: 4px 4px 8px; min-width: 0; }
@media (max-width: 900px) { .feat-text { align-content: start; } }
.feat-text h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; }
.feat-text h3 span { color: var(--ink-2); }
.feat-text a { color: var(--accent-ink); text-decoration: none; font-size: 16px; }
.feat-text a:hover { text-decoration: underline; }
.feat .canvas { border-radius: 4px; }

/* 小卡片网格 */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--panel); border-radius: 4px; padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card p { color: var(--ink-2); font-size: 15px; }

/* 场景卡（场景总览页） */
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .uc-grid { grid-template-columns: minmax(0, 1fr); } }
.uc-card { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 24px; background: var(--panel); border-radius: 4px; text-decoration: none; min-width: 0; transition: background .15s ease; }
.uc-card:hover { background: var(--btn-2); }
.uc-card .kicker { font-size: 14px; color: var(--ink-2); }
.uc-card h3 { font-size: 22px; margin-top: 2px; }
.uc-card .go { font-size: 15px; color: var(--accent-ink); }
.uc-sample { font: 13px/1.6 var(--font-mono); background: var(--surface); border-radius: 6px; padding: 10px 12px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; background: var(--panel); border-radius: 4px; padding: 20px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.steps li::before { content: counter(s); font: 13px var(--font-mono); color: var(--muted); }
.steps strong { font-weight: 500; font-size: 18px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* Inner page hero */
.page-hero { padding-block: 64px 28px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero p { margin-top: 10px; color: var(--ink-2); font-size: clamp(18px, 2vw, 21px); max-width: 32em; line-height: 1.5; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--panel); border-radius: 4px; padding: 26px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.plan.main { background: var(--surface); outline: 1px solid var(--line); }
.plan h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price.sm b { font-size: 44px; }
.price small { font-size: 15px; color: var(--ink-2); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.checks li { padding-left: 22px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ink-2); }
.side-plans { display: grid; gap: 12px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-row span { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--btn-2); color: var(--ink-2); }

/* FAQ */
.faq { max-width: 52em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--ink-2); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 20px; color: var(--ink-2); display: grid; gap: 10px; }

/* Use-case page */
.uc-hero { padding-block: 56px 32px; }
.uc-hero .wrap { display: grid; gap: 16px; }
.uc-hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 18em; }
.uc-hero .lede { color: var(--ink-2); font-size: clamp(17px, 1.8vw, 20px); max-width: 34em; line-height: 1.55; }
.crumbs { font-size: 14px; color: var(--ink-2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 860px) { .showcase { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--win-line); border-radius: 8px; padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel-label { font-size: 12.5px; color: var(--muted); }
.panel.out .panel-label { color: var(--accent-ink); }
.doc { font-size: 15px; line-height: 1.8; display: grid; gap: 10px; overflow-wrap: anywhere; }
.doc.en { font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; }
.doc h4 { font-size: 16px; }
.doc ul { margin: 0; padding-left: 1.2em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--win-line); border-radius: 8px; background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--win-line); vertical-align: top; }
table.data th { font-weight: 500; color: var(--ink-2); white-space: nowrap; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
.media-slot { border-radius: 8px; overflow: hidden; background: var(--code-bg); }
.album { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; }
@media (max-width: 560px) { .album { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.album figure { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; max-width: 100%; }
.album figure.wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.album figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.ph { width: 100%; height: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.timeline li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 10px; }
.timeline time { font: 13px/1.75 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.prompt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.prompt-head h2 { font-size: 24px !important; }
.prompt-box { position: relative; background: var(--code-bg); color: var(--code-fg); border-radius: 8px; padding: 22px 22px 18px; font: 14px/1.8 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-box .copy { position: absolute; top: 12px; right: 12px; font: 500 12.5px var(--font-sans); padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--code-fg); cursor: pointer; }
.prompt-box .copy:hover { border-color: rgba(255,255,255,.5); }

/* 结尾行动区：深色块 */
.cta-band { border-radius: 4px; padding: clamp(28px, 5vw, 64px); background: var(--code-bg); color: var(--code-fg); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin-top: 8px; color: var(--code-dim); }
.cta-band .btn { background: var(--code-fg); color: var(--code-bg); }
.cta-band .alt { display: block; margin-top: 10px; font-size: 14px; color: var(--code-dim); text-align: center; }
@media (max-width: 720px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band .btn { width: 100%; } }
.final { text-align: center; padding-block: 96px; }
.final h2 { font-size: clamp(30px, 4vw, 46px); }
.final .btn-row { justify-content: center; margin-top: 26px; }

/* 手机端底部常驻按钮（场景页） */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  body.has-sticky { padding-bottom: 76px; }
}

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl { background: var(--panel); border-radius: 4px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.dl.here { background: var(--surface); outline: 1px solid var(--line); }
.dl h3 { font-size: 22px; }
.dl ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; display: grid; gap: 4px; }
.notice { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 4px; background: var(--accent-soft); margin-bottom: 16px; }

/* Docs */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.toc { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); display: grid; gap: 6px; font-size: 15px; }
@media (max-width: 860px) { .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; border-radius: 4px; background: var(--panel); } }
.toc a { text-decoration: none; color: var(--ink-2); } .toc a:hover { color: var(--ink); }
.prose { display: grid; gap: 14px; max-width: 42em; }
.prose h2 { font-size: 24px; padding-top: 28px; scroll-margin-top: 80px; }
.prose h2:first-child { padding-top: 0; }
.prose h3 { font-size: 18px; padding-top: 6px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose a { color: var(--accent-ink); }
.callout { padding: 14px 18px; border-radius: 4px; background: var(--panel); font-size: 15px; }

/* Changelog */
.release { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding-block: 28px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .release { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.release .ver { font: 500 18px var(--font-mono); }
.release time { display: block; font-size: 14px; color: var(--ink-2); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; background: rgba(20, 19, 15, .5); }
.modal-card { width: min(460px, 100%); min-width: 0; grid-template-columns: minmax(0, 1fr); background: var(--bg); color: var(--ink); border-radius: 14px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.modal-card h3 { font-size: 21px; }
.modal-card p { color: var(--ink-2); font-size: 15px; }
.modal-card .row { display: grid; gap: 8px; }
.modal-card .link-copy { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 13px var(--font-mono); color: var(--ink-2); }
.modal-card .link-copy span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-card .link-copy .btn { padding: 6px 14px; font-size: 14px; }
.modal-close { justify-self: end; background: none; border: 0; color: var(--ink-2); font-size: 14px; cursor: pointer; padding: 4px; }
@media (max-width: 520px) { .modal { place-items: end center; padding: 0; } .modal-card { border-radius: 14px 14px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }

/* Footer */
footer { padding-block: 48px 56px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer .f-brand { grid-column: 1 / -1; } }
footer h4 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 400; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; color: var(--ink); } footer a:hover { color: var(--ink-2); }
footer .brand { color: var(--ink); }

/* 下载：识别结果与 Mac 芯片选择 */
.detected { margin-top: 10px; font-size: 13px; color: var(--muted); }
.chip-opt { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.chip-opt:hover { border-color: var(--ink-2); }
.chip-opt.rec { border: 2px solid var(--ink); }
.chip-opt b { font-weight: 500; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.chip-opt span { font-size: 14px; color: var(--ink-2); }

/* 带 hidden 属性的元素一律隐藏（.notice 的 display:flex 曾盖掉 hidden，手机上露出空的「你刚才选了「」模板」）。 */
[hidden] { display: none !important; }
