:root {
  --bg: #0d1114;
  --bg2: #141a1e;
  --card: #182026;
  --line: #26313a;
  --text: #e9e4d8;
  --muted: #8f9a9f;
  --gold: #f2c469;
  --gold2: #d9a441;
  --red: #c8433a;
  --ok: #6bbf8a;
  --radius: 14px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 12px 24px; font: 600 16px var(--sans); cursor: pointer; text-decoration: none; transition: .2s; white-space: nowrap; }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn.gold { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #221a08; box-shadow: 0 6px 24px -8px rgba(242,196,105,.6); }
.btn.gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(13,17,20,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 700 19px var(--sans); letter-spacing: .02em; }
.brand-mark { color: var(--gold); flex: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 13px; color: var(--ok); border: 1px solid rgba(107,191,138,.4); padding: 3px 10px; border-radius: 999px; }

/* 首屏 */
.hero { padding: 96px 0 72px; background:
  radial-gradient(900px 400px at 75% -10%, rgba(242,196,105,.16), transparent 60%),
  radial-gradient(700px 500px at 10% 120%, rgba(60,110,120,.25), transparent 60%); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--gold); letter-spacing: .12em; font-size: 14px; margin: 0 0 18px; }
.hero h1 { font: 700 clamp(34px, 6vw, 60px)/1.2 var(--serif); margin: 0 0 22px; letter-spacing: .01em; }
.lede { max-width: 640px; color: #c5c3ba; font-size: 17px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* 三点 */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 56px; padding-bottom: 24px; }
.why-item { padding: 24px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.why-item h3 { margin: 0 0 8px; font: 600 18px var(--serif); color: var(--gold); }
.why-item p { margin: 0; color: #bfc3bf; font-size: 15px; }

/* 提示词条目 */
.sec-title { font: 700 26px var(--serif); margin: 0 0 20px; }
.prompt { padding-top: 64px; }
.p-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.p-head h2 { font: 700 clamp(26px, 4vw, 36px)/1.3 var(--serif); margin: 0 0 6px; }
.p-sub { margin: 0; color: #c5c3ba; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: rgba(242,196,105,.1); color: var(--gold); }
.p-summary { color: #c5c3ba; max-width: 820px; }

.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 16px; margin: 26px 0; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.demo-stage { position: relative; aspect-ratio: 16/9; background: linear-gradient(170deg, #3a4a52 0%, #6c7a74 38%, #c9a86a 62%, #2a3a3c 63%, #1c2629 100%); }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: #fff; }
.demo-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 22px; padding-left: 4px; border: 1px solid rgba(255,255,255,.35); transition: .2s; }
.demo-play:hover span { background: rgba(242,196,105,.85); color: #221a08; transform: scale(1.06); }
.demo-info { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-info b { font-weight: 600; }
.demo-info small { display: block; color: var(--muted); }
.demo-info a { font-size: 14px; white-space: nowrap; }

.p-body { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: 80px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; }
.toc h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.toc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; font-size: 14px; padding: 5px 0; border-top: 1px dashed var(--line); display: flex; gap: 8px; color: #c5c3ba; }
.toc li::before { content: counter(t, decimal-leading-zero); color: var(--gold); font-variant-numeric: tabular-nums; }
.toc li.locked { color: var(--muted); }
.toc li.locked::after { content: "🔒"; margin-left: auto; font-size: 11px; opacity: .6; }
.toc-stat { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.reader { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; min-width: 0; }
.reader.locked .md { max-height: 680px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.reader.full { background-image: var(--wm); }
.reader-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reader-bar .lbl { font-size: 14px; color: var(--muted); }
.reader-bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.lockbox { text-align: center; padding: 28px 20px 8px; }
.lockbox h3 { font: 700 22px var(--serif); margin: 0 0 6px; }
.lockbox p { margin: 0 0 18px; color: #c5c3ba; }
.lockbox .row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Markdown */
.md { font-size: 15.5px; line-height: 1.85; color: #dcd8cd; overflow-wrap: anywhere; user-select: text; }
.md h1 { font: 700 26px/1.4 var(--serif); margin: 0 0 18px; color: var(--text); }
.md h2 { font: 700 21px/1.4 var(--serif); margin: 34px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--gold); }
.md h3 { font-size: 17px; margin: 24px 0 8px; }
.md p, .md ul, .md ol { margin: 0 0 12px; }
.md li { margin: 3px 0; }
.md strong { color: var(--text); }
.md code { font: 13.5px ui-monospace, Menlo, Consolas, monospace; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; color: #f0d79c; }
.md pre { background: #0b0e10; border: 1px solid var(--line); border-radius: 8px; padding: 14px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 0 0 16px; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; min-width: 80px; }
.md th { background: rgba(242,196,105,.07); color: var(--text); }
.md blockquote { margin: 0 0 12px; padding: 4px 14px; border-left: 3px solid var(--gold2); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); }

.changelog { margin-top: 18px; font-size: 14px; color: var(--muted); }
.changelog b { color: var(--text); font-weight: 600; }

/* 步骤 & FAQ */
.steps-sec { padding-top: 80px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(242,196,105,.14); color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: #bfc3bf; font-size: 14.5px; }
.faq { padding-top: 64px; padding-bottom: 72px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: #bfc3bf; margin: 8px 0 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.foot p { margin: 4px 0; }

/* 弹窗 */
.dlg { width: min(460px, calc(100vw - 32px)); background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.dlg::backdrop { background: rgba(5,8,10,.72); backdrop-filter: blur(3px); }
.dlg h2 { font: 700 22px var(--serif); margin: 0 0 6px; }
.dlg-close { position: absolute; top: 10px; right: 12px; margin: 0; }
.dlg-close button { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.tab { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 15px var(--sans); cursor: pointer; }
.tab[aria-selected="true"].alipay { border-color: #1677ff; background: rgba(22,119,255,.12); }
.tab[aria-selected="true"].wechat { border-color: #07c160; background: rgba(7,193,96,.12); }
.qr { display: grid; place-items: center; background: #fff; border-radius: 14px; width: 232px; margin: 0 auto; overflow: hidden; }
.qr img { width: 232px; height: auto; max-height: 340px; object-fit: contain; display: block; -webkit-touch-callout: default; }
.qr-missing { width: 204px; height: 204px; margin: 14px; display: grid; place-items: center; color: #777; font-size: 14px; text-align: center; }
.pay-amt { text-align: center; margin: 14px 0 4px; font-size: 15px; }
.pay-amt b { font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums; }
.order-no { text-align: center; margin: 6px 0 14px; font-size: 14px; color: #c5c3ba; }
.order-no code { font: 700 20px ui-monospace, Menlo, monospace; color: var(--text); background: rgba(242,196,105,.12); padding: 2px 10px; border-radius: 6px; letter-spacing: .1em; cursor: pointer; }
.tip { font-size: 13px; color: var(--muted); text-align: center; margin: 0 0 14px; }
.field { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px var(--sans); margin-bottom: 12px; }
.full { width: 100%; }
.redeem { display: flex; gap: 8px; margin-top: 16px; }
.redeem input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 16px ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.msg { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; }
.msg.err { color: #ff8a7a; }
.msg.ok { color: var(--ok); }
.wait { text-align: center; padding: 10px 0; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; margin: 10px auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.code-big { font: 700 24px ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--gold); background: rgba(242,196,105,.1); border: 1px dashed var(--gold2); border-radius: 12px; padding: 14px; margin: 14px 0; text-align: center; user-select: all; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #222c33; color: var(--text); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.pending-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 520px; margin: 0 auto; background: #222c33; border: 1px solid var(--gold2); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pending-bar .spinner { width: 20px; height: 20px; margin: 0; border-width: 2px; flex: none; }
.pending-bar span { flex: 1; }

@media (max-width: 860px) {
  .why, .steps { grid-template-columns: 1fr 1fr; }
  .p-body { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 52px; }
  .why, .steps { grid-template-columns: 1fr; }
  .reader { padding: 20px 16px; }
  .demos { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- GolemBench 品牌 ---------- */
.nav-links { display: flex; gap: 26px; margin-right: auto; margin-left: 40px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: .2s; }
.nav-links a:hover { color: var(--gold); }
.eyebrow { font-weight: 600; letter-spacing: .2em; }
.hero h1 { letter-spacing: .02em; }

.realms { padding-top: 64px; }
.realm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.realm { position: relative; display: block; padding: 24px 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); color: var(--text); text-decoration: none; overflow: hidden; transition: .2s; }
.realm::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(rgba(242,196,105,.10), transparent 70%); }
.realm.open { border-color: rgba(242,196,105,.45); background: linear-gradient(160deg, rgba(242,196,105,.08), var(--bg2) 55%); }
a.realm:hover { transform: translateY(-2px); border-color: var(--gold); }
.realm-en { display: block; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.realm b { display: block; font: 700 22px var(--serif); margin-bottom: 8px; }
.realm p { margin: 0 0 16px; color: #bfc3bf; font-size: 14.5px; }
.realm-st { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: rgba(107,191,138,.14); color: var(--ok); }
.realm-st.soon { background: rgba(255,255,255,.06); color: var(--muted); }

.realm-sec { padding-top: 64px; }
.realm-sec .prompt { padding-top: 8px; }
.realm-sec .prompt + .prompt { padding-top: 64px; }
.sec-en { display: block; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.demo-kicker { color: var(--gold) !important; font-size: 11px; letter-spacing: .12em; }
.foot-brand { color: var(--gold); }

@media (max-width: 860px) {
  .realm-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
