/* 未来官网：和 APP 同一套「深夜桌游局」配色（app/.../ui/Theme.kt） */
@font-face {
  font-family: "Display";
  src: url("display.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #161311;
  --surface: #1f1b18;
  --surface2: #2a2521;
  --line: #2e2924;
  --text: #f3ebdd;
  --muted: #a89f90;
  --accent: #e8553d;
  --on-accent: #2b0f08;
  --cream: #f4eee3;
  --cream-surface: #fffbf4;
  --cream-line: #e0d5c2;
  --ink: #1c1814;
  --ink-muted: #786e62;
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.display { font-family: "Display", "PingFang SC", sans-serif; font-weight: 400; letter-spacing: .01em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 顶栏 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 19, 17, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; }
.brand i {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  -webkit-mask: url("img/glyph.svg") center / 84% no-repeat; mask: url("img/glyph.svg") center / 84% no-repeat;
}
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.cta { color: var(--accent); }
@media (max-width: 720px) {
  .nav a:not(.cta) { display: none; }
}

/* 按钮和小标签 */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); color: var(--text);
}
.pill.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill.soon { color: var(--muted); cursor: default; }
.pill.soon b { font-weight: 400; color: var(--text); }
.pill:not(.soon):hover { filter: brightness(1.08); }

/* 首屏 */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.08; margin: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 17px; margin: 22px 0 30px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transform: rotate(-4deg); }
.wall .card:nth-child(3n+2) { margin-top: 28px; margin-bottom: -28px; }
.card {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface2);
  aspect-ratio: 3 / 4; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card span {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(22, 19, 17, .82); font-size: 13px;
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .wall { max-width: 420px; margin: 0 auto 20px; width: 100%; }
}

/* 通用段落 */
section { padding: 80px 0; }
.kicker { font-size: 13px; color: var(--accent); letter-spacing: .12em; margin: 0 0 8px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 17px; max-width: 34em; margin: 0 0 36px; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.steps div { background: var(--surface); padding: 26px 24px 28px; }
.steps .n { font-size: 40px; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 20px; margin: 14px 0 4px; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* 游戏列表 */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.game img, .game .glyph { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: var(--surface2); }
.game .glyph { display: flex; align-items: center; justify-content: center; font-size: 84px; color: #fbf3e6; }
.game h3 { font-size: 22px; margin: 12px 0 0; font-weight: 400; }
.game .meta { font-size: 13px; color: var(--muted); }
.game p { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.more { margin-top: 30px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } .game p { display: none; } }

/* 浅色段：AI 做游戏 */
.cream { background: var(--cream); color: var(--ink); }
.cream .muted, .cream .lead { color: var(--ink-muted); }
.ai { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.prompts { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--cream-line); }
.prompts li { padding: 14px 0; border-bottom: 1px solid var(--cream-line); display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.prompts li::after { content: "↗"; color: var(--ink-muted); }
.ai .note { font-size: 14px; color: var(--ink-muted); margin: 0; }
@media (max-width: 860px) { .ai { grid-template-columns: 1fr; gap: 40px; } }

/* 手机框 */
.phone {
  width: min(300px, 78vw); margin: 0 auto; border-radius: 34px; padding: 10px;
  background: #0d0b0a; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 540 / 1200; object-fit: cover; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 18px; }
.plan h3 { font-size: 26px; margin: 0; font-weight: 400; }
.plan > p { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.row b { font-weight: 500; }
.row small { display: block; color: var(--muted); font-size: 13px; }
.row .price { font-size: 26px; white-space: nowrap; }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* 演示入口 */
.demo-teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; background: var(--surface); }
.demo-teaser h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); }
.demo-teaser p { margin: 6px 0 0; }

/* 演示页 */
.tour { display: grid; gap: 96px; }
.stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.stop:nth-child(even) .phone { order: 2; }
.stop .n { font-size: 56px; line-height: 1; color: var(--accent); }
.stop h2 { margin-top: 10px; }
.stop p { font-size: 17px; color: var(--muted); max-width: 26em; }
@media (max-width: 760px) {
  .tour { gap: 72px; }
  .stop { grid-template-columns: 1fr; gap: 28px; }
  .stop:nth-child(even) .phone { order: 0; }
}

/* 协议正文 */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 6px; }
.doc h2 { font-family: inherit; font-size: 20px; font-weight: 600; margin: 36px 0 8px; }
.doc p, .doc li { color: #d9d0c2; }
.doc ul { padding-left: 1.3em; }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* 官网购买 */
.buy { padding-top: 40px; padding-bottom: 72px; }
.buy section { padding: 0 0 48px; }
.buy h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.1; margin: 0 0 10px; }
.buy .lead { margin-bottom: 28px; }
.buy h2.small { font-size: 24px; margin: 40px 0 6px; }
button.row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 0; }
button.row:hover { background: var(--surface2); }
button.row.on { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface2); }
button.row, a.row { padding-left: 10px; padding-right: 10px; margin: 0 -10px; width: calc(100% + 20px); text-decoration: none; }
.promo { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.promo em { font-style: normal; font-size: 12px; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 1px 8px; }
.promo s { color: var(--muted); font-size: 14px; }
.promo .price { color: var(--accent); }
.paybar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 22px; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(rgba(22, 19, 17, 0), var(--bg) 30%);
}
.pill[disabled] { opacity: .45; cursor: default; }
button.pill { font: inherit; font-size: 15px; cursor: pointer; background: none; }
button.pill.accent { background: var(--accent); }
.err, .warn { color: var(--accent); font-size: 15px; }
.warn { border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; }
#order { border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.code .label { color: var(--muted); font-size: 13px; width: 100%; }
.code b { font: 500 clamp(18px, 4.6vw, 24px)/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; word-break: break-all; flex: 1 1 260px; user-select: all; -webkit-user-select: all; }
.claim { margin: 0 0 8px; padding-left: 1.4em; font-size: 16px; }
.claim li { padding: 3px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.scan { display: flex; gap: 22px; align-items: center; margin-top: 22px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.scan img { border-radius: 10px; flex: none; }
.scan b { font-size: 18px; font-weight: 500; }
.scan p { margin: 4px 0 0; font-size: 14px; }
@media (max-width: 520px) { .scan { flex-direction: column; align-items: flex-start; } }
