/* FunYard 首页 · 墨线插画风 · 设计 token 与样式
 * 规则：纸底 + 单一墨线色 + 唯一强调色（橙）。橙色只出现在：首屏手写小标、
 * 首屏插画里的一顶帽子（你的 Agent）、机腹色带。其余一律墨色或纸色。 */
:root {
  /* 颜色 */
  --paper: #f3e8dd;        /* 页面纸底 */
  --paper-2: #f8f0e7;      /* 机身、卡片底 */
  --paper-3: #fffcf7;      /* 云、舷窗玻璃、最亮的纸 */
  --ink: #131b34;          /* 墨线 = 品牌字标色，全页唯一线色与正文色 */
  --ink-2: #4a4f5e;        /* 次级正文（ink 约 75%） */
  --ink-3: #8c8a8c;        /* 极弱分隔 */
  --rule: rgba(19, 27, 52, 0.16);
  --accent: #e0693a;       /* 唯一强调色 */

  /* 字体 */
  --font-sans: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', system-ui, sans-serif;
  --hand-en: 'Caveat';
  --hand-zh: 'Ma Shan Zheng';
  --font-hand: var(--hand-en), var(--hand-zh), cursive;

  /* 字号阶梯（1440 → 375 线性收缩） */
  --fs-display: clamp(36px, 4.4vw, 64px);
  --fs-h2: clamp(28px, 3vw, 44px);
  --fs-h3: clamp(17px, 1.35vw, 19px);
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-hand: clamp(22px, 1.8vw, 27px);

  /* 间距尺度（4 的倍数） */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1312px;
  --section: clamp(72px, 9vw, 144px);

  /* 形状 */
  --r-pill: 999px;
  --r-card: 18px;
  --stroke: 1.5px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang='zh-CN'] body { line-height: 1.7; }
a { color: inherit; }
.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0.01em; }
html[lang='en'] .hand { font-weight: 600; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper-3); padding: 8px 14px; border-radius: var(--r-pill); z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- 按钮 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper-3);
  border: 0; border-radius: var(--r-pill);
  font: 600 15px/1 var(--font-sans);
  padding: 15px 26px; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 rgba(19, 27, 52, 0.25);
  white-space: nowrap;
}
.pill.sm { padding: 11px 20px; font-size: 14px; }
.pill.on-ink { background: var(--paper-3); color: var(--ink); box-shadow: none; }
.textlink {
  font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: var(--stroke) solid currentColor; padding: 4px 0; white-space: nowrap;
}
.textlink::after { content: ' →'; }

/* ---------- 页眉 ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: 26px 0; }
.site-head .brand img { height: 28px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.pill) { text-decoration: none; }
.site-nav a:not(.pill):hover { text-decoration: underline; text-underline-offset: 5px; }
.lang { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 600; border: var(--stroke) solid var(--ink); border-radius: var(--r-pill); padding: 3px; }
.lang button { border: 0; background: none; font: inherit; color: var(--ink); padding: 4px 10px; border-radius: var(--r-pill); cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--paper-3); }
.menu-btn { display: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; z-index: 2; padding-top: clamp(24px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s7); align-items: end; }
.kicker { color: var(--accent); font-size: var(--fs-hand); line-height: 1.2; }
h1 {
  margin-top: var(--s4);
  font-size: var(--fs-display); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em;
}
html[lang='zh-CN'] h1 { letter-spacing: -0.02em; line-height: 1.14; font-weight: 700; }
h1 span { display: block; }
.hero-actions { margin-top: var(--s6); display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; }
.hero-sub {
  justify-self: end; max-width: 21em; width: max-content; color: var(--ink-2);
  font-size: 17px; line-height: 1.55; padding-bottom: 10px;
  transform: translateY(var(--sub-drop, -64px));
}

.scene { position: relative; z-index: 1; margin-top: clamp(-150px, -9vw, -40px); overflow: hidden; }
.scene svg { display: block; width: 100%; min-width: 880px; height: auto; }

/* ---------- 通用段落 ---------- */
section.block { padding-top: var(--section); }
.eyebrow { font-size: var(--fs-hand); line-height: 1.2; color: var(--ink); }
h2 { margin-top: var(--s3); font-size: var(--fs-h2); line-height: 1.12; font-weight: 650; letter-spacing: -0.035em; max-width: 22em; }
html[lang='zh-CN'] h2 { letter-spacing: -0.015em; line-height: 1.25; font-weight: 700; }
h2 em { font-style: normal; }

/* ---------- 场景：登机牌 ---------- */
.scenes-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s7); align-items: end; }
.manifest { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); font-size: var(--fs-sm); }
.manifest .hand { font-size: 22px; color: var(--ink-2); }
.manifest ul { list-style: none; display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.manifest li { border: var(--stroke) solid var(--ink); border-radius: var(--r-pill); padding: 5px 14px; white-space: nowrap; font-weight: 500; }
.manifest li b { font-weight: 700; margin: 0 3px; }
.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin-top: var(--s8); }
.pass {
  --notch: 13px;
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); border: var(--stroke) solid var(--ink); border-radius: var(--r-card);
}
.pass-main { padding: 22px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.pass-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.pass-domain { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.pass-seat { font-size: 30px; line-height: 1; }
.pass-label { margin-top: var(--s5); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; color: var(--ink-2); }
.pass h3 { margin-top: 6px; font-size: var(--fs-h3); line-height: 1.38; font-weight: 650; letter-spacing: -0.01em; min-height: 2.76em; }
.pass svg.ill { display: block; width: 100%; max-width: 380px; height: auto; margin: var(--s4) 0 var(--s3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips li { font-size: var(--fs-xs); border: 1px solid var(--ink); border-radius: var(--r-pill); padding: 3px 10px; color: var(--ink); background: var(--paper-3); }
.pass-stub {
  position: relative; border-top: 2px dashed var(--ink-3); padding: 14px 24px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.pass-stub::before, .pass-stub::after {
  content: ''; position: absolute; top: calc(var(--notch) * -1 - 1px); width: var(--notch); height: calc(var(--notch) * 2);
  background: var(--paper); border: var(--stroke) solid var(--ink);
}
.pass-stub::before { left: -1px; border-left: 0; border-radius: 0 var(--notch) var(--notch) 0; }
.pass-stub::after { right: -1px; border-right: 0; border-radius: var(--notch) 0 0 var(--notch); }
.pass-count { text-decoration: none; font-size: var(--fs-sm); display: inline-flex; gap: 6px; align-items: baseline; }
.pass-count strong { font-size: 18px; letter-spacing: -0.01em; }
a.pass-count:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.pass-stub svg { height: 26px; width: 92px; flex: none; }

/* ---------- 价值对比 ---------- */
.value-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); flex-wrap: wrap; }
.value-chip { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; border: var(--stroke) solid var(--ink); border-radius: var(--r-pill); padding: 7px 14px; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: var(--s8); align-items: stretch; }
.board { border-radius: var(--r-card); padding: clamp(24px, 2.6vw, 36px); position: relative; }
.board.many { border: var(--stroke) solid var(--ink); background: transparent; display: flex; flex-direction: column; }
.board.many { justify-content: space-between; }
.board.many .receipts { flex: 0 0 auto; }
.board.many h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.receipts { position: relative; height: 236px; margin: var(--s6) 0 var(--s5); }
.receipt {
  position: absolute; width: min(56%, 230px); background: var(--paper-3); border: var(--stroke) solid var(--ink);
  border-bottom: 0; padding: 14px 16px 26px; font-size: var(--fs-sm);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
}
.receipt .rh { display: flex; justify-content: space-between; font-weight: 700; }
.receipt .rh span { font-family: var(--font-hand); font-size: 22px; line-height: 1; font-weight: 600; }
.receipt i { display: block; height: 0; border-top: 1.5px dashed var(--ink-3); margin-top: 12px; }
.receipt i + i { width: 62%; }
.receipt small { display: block; margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink); }
.receipt.r0 { left: 0; top: 18px; transform: rotate(-5deg); }
.receipt.r1 { left: 24%; top: 0; transform: rotate(2deg); z-index: 1; }
.receipt.r2 { right: 0; top: 30px; transform: rotate(6deg); z-index: 2; }
.board.many p { color: var(--ink-2); max-width: 30em; }

.board.one { background: var(--ink); color: var(--paper-3); display: flex; flex-direction: column; }
.board.one header { display: flex; justify-content: space-between; align-items: center; }
.board.one header b { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.board.one header span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; border: 1px solid rgba(255, 252, 247, 0.5); border-radius: var(--r-pill); padding: 4px 10px; }
.free { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: end; margin-top: var(--s6); }
.free p { color: rgba(255, 252, 247, 0.72); font-size: 15px; }
.free strong { display: block; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; margin-top: 4px; }
.free small { color: rgba(255, 252, 247, 0.72); font-size: var(--fs-sm); }
.free svg { width: clamp(120px, 12vw, 170px); height: auto; }
.includes { list-style: none; margin-top: var(--s5); border-top: 1px solid rgba(255, 252, 247, 0.22); }
.includes li { display: flex; justify-content: space-between; gap: var(--s4); padding: 13px 0; border-bottom: 1px dashed rgba(255, 252, 247, 0.22); font-size: 15px; }
.includes li b { font-weight: 600; }
.board.one .pill { margin-top: var(--s6); align-self: flex-start; }

.points { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s8); border-top: var(--stroke) solid var(--ink); padding-top: var(--s5); }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; font-weight: 650; font-size: 16px; line-height: 1.4; }
.points .n { grid-row: span 2; font-size: 30px; line-height: 0.9; }
.points small { font-weight: 400; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 收尾 CTA ---------- */
.cta { padding-top: var(--section); text-align: center; }
.cta .eyebrow { color: var(--ink); }
.cta h2 { margin: var(--s3) auto 0; max-width: none; font-size: clamp(32px, 4vw, 58px); }
.cta h2 span { display: inline-block; }
html[lang='en'] .cta h2 span + span { margin-left: 0.25em; }
.cta p.lede { color: var(--ink-2); max-width: 34em; margin: var(--s5) auto 0; }
.cta .hero-actions { justify-content: center; }
.tail { display: block; width: 100%; min-width: 760px; height: auto; margin-top: var(--s7); }
.tail-wrap { overflow: hidden; }

/* ---------- 页脚 ---------- */
.site-foot { border-top: var(--stroke) solid var(--ink); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s5); padding-top: 26px; padding-bottom: 30px; flex-wrap: wrap; font-size: var(--fs-sm); }
.site-foot img { height: 22px; width: auto; display: block; }
.site-foot nav { display: flex; gap: var(--s5); }
.site-foot nav a { text-decoration: none; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-sub { justify-self: start; transform: none; padding: 0; max-width: 30em; width: auto; }
  .hero-actions { order: 3; }
  .scene { margin-top: clamp(-90px, -6vw, -24px); }
  .scenes-head { grid-template-columns: 1fr; }
  .manifest { align-items: flex-start; }
  .manifest ul { justify-content: flex-start; }
  .passes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passes .pass:last-child { grid-column: span 2; }
  .points { grid-template-columns: 1fr 1fr; row-gap: var(--s5); }
}
@media (max-width: 860px) {
  .site-nav a.nav-link { display: none; }
  .compare { grid-template-columns: 1fr; }
}
/* ---------- 手机 ---------- */
@media (max-width: 600px) {
  :root { --fs-body: 16px; }
  .site-head { padding: 18px 0; }
  .site-head .brand img { height: 24px; }
  .site-nav { gap: 10px; }
  .lang button { padding: 4px 8px; }
  .hero-actions { gap: var(--s4); }
  .scene { margin-top: 8px; }
  .scene svg { min-width: 760px; }
  .passes { grid-template-columns: minmax(0, 1fr); }
  .pass { min-width: 0; }
  .pass-stub { padding-inline: 20px; }
  .pass-stub svg { width: 64px; }
  .passes .pass:last-child { grid-column: auto; }
  .pass h3 { min-height: 0; }
  .receipts { height: 210px; }
  .receipt { width: 64%; }
  .receipt.r1 { left: 18%; }
  .free { grid-template-columns: 1fr; }
  .free svg { width: 140px; }
  .points { grid-template-columns: 1fr; }
  .tail { min-width: 640px; }
  .site-foot nav { gap: var(--s4); }
}

/* ---------- 评审面板（不属于页面，上线不带） ---------- */
.review {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 236px;
  background: #fff; color: #222; border: 1px solid #222; border-radius: 12px; padding: 12px 14px;
  font: 12px/1.4 ui-sans-serif, system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}
.review b { display: block; font-size: 12px; margin-bottom: 6px; }
.review label { display: block; margin-top: 8px; color: #555; }
.review select { width: 100%; margin-top: 3px; font: inherit; padding: 4px; }
.review button.x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 16px; cursor: pointer; }
.review[hidden] { display: none; }

/* 机腹关闭：橙带改为墨线排线 */
body.belly-off .belly { fill: url(#hatch-light); }
