/* Mahbao v1 · design tokens 全部在 :root，组件只引用 token */
:root {
  --bg: #F7F7F7;
  --card: #FFFFFF;
  --brand: #58CC02;
  --brand-dark: #46A302;
  --brand-soft: #E9F8DB;
  --ink: #1F1F1F;
  --ink-2: #6B6B6B;
  --line: #E5E5E5;
  --accent: #D42B2B;        /* 红中的红，只用于字标那一点 */
  --tile-shadow: rgba(31, 31, 31, 0.18);
  --focus: #1CB0F6;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-hero: clamp(2.125rem, 6vw, 3.75rem);
  --lh: 1.55;
  --lh-tight: 1.15;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(31, 31, 31, 0.04), 0 8px 24px rgba(31, 31, 31, 0.06);
  --btn-depth: 4px;

  --container: 1120px;
  --tile-w: 42px;           /* Hero 牌宽（手机） */
  --tile-w-lg: 68px;        /* Hero 牌宽（桌面） */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.container { width: min(100% - var(--sp-5) * 2, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.brand__tile { width: 26px; height: auto; filter: drop-shadow(0 1px 1px var(--tile-shadow)); }
.brand__mark { color: var(--ink); }
.brand__mark b { color: var(--brand); font-weight: 800; }
.nav { display: none; gap: var(--sp-5); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px; background: var(--card); font-size: var(--fs-xs); font-weight: 700; }
.lang a { padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink-2); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--card); }

/* ---------- 按钮（游戏感：底边厚度 + 按下下沉） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 var(--sp-5);
  border-radius: var(--radius); border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: var(--fs-md); letter-spacing: 0.01em; text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn--primary { background: var(--brand); color: var(--card); box-shadow: 0 var(--btn-depth) 0 var(--brand-dark); }
.btn--primary:hover { filter: brightness(1.03); }
.btn--primary:active { transform: translateY(var(--btn-depth)); box-shadow: 0 0 0 var(--brand-dark); }
.btn--ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 var(--btn-depth) 0 var(--line); }
.btn--ghost:active { transform: translateY(var(--btn-depth)); box-shadow: 0 0 0 var(--line); }
.btn--block { width: 100%; }
.btn__tag { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }

.pill { display: inline-block; padding: 2px var(--sp-3); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; }
.pill--live { background: var(--brand-soft); color: var(--brand-dark); }
.pill--soon { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-7) 0 var(--sp-6); }
.hero__inner { display: grid; gap: var(--sp-6); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: 0.08em; }
.hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: -0.02em; font-weight: 900; margin-top: var(--sp-3); overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lede { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--ink-2); max-width: 34ch; }
.hero__cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }

.hand { display: grid; grid-template-columns: repeat(7, var(--tile-w)); gap: var(--sp-1); justify-content: center; padding: var(--sp-4); }
.hand img { width: 100%; height: auto; filter: drop-shadow(0 3px 4px var(--tile-shadow)); border-radius: 4px; }
.hand img:nth-child(odd) { transform: rotate(-1.2deg); }
.hand img:nth-child(even) { transform: rotate(1deg); }
.hand img:last-child { transform: rotate(4deg) translateX(var(--sp-2)); }

/* ---------- 分区通用 ---------- */
.section { padding: var(--sp-7) 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: var(--sp-6); }
.section__eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-dark); }
.section h2 { font-size: var(--fs-xl); line-height: var(--lh-tight); letter-spacing: -0.015em; font-weight: 900; margin-top: var(--sp-2); }
.section__sub { margin-top: var(--sp-3); color: var(--ink-2); }

.grid { display: grid; gap: var(--sp-4); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--sp-3); }
.card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 900; font-size: var(--fs-lg); }
.card h3 { font-size: var(--fs-lg); font-weight: 800; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.card p { color: var(--ink-2); font-size: var(--fs-sm); }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--card); font-weight: 900; display: grid; place-items: center; }
.step h3 { font-size: var(--fs-lg); font-weight: 800; }
.step p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-1); }

.rule { align-items: flex-start; }
.rule__tiles { display: flex; gap: 2px; }
.rule__tiles img { width: 36px; height: auto; filter: drop-shadow(0 1px 2px var(--tile-shadow)); border-radius: 3px; }
.rule--soon { opacity: 0.78; }

/* ---------- 候补 ---------- */
.waitlist { background: var(--ink); color: var(--card); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); display: grid; gap: var(--sp-5); }
.waitlist h2 { font-size: var(--fs-xl); font-weight: 900; line-height: var(--lh-tight); }
.waitlist p { color: color-mix(in srgb, var(--card) 72%, transparent); margin-top: var(--sp-2); }
.wl-form { display: grid; gap: var(--sp-3); }
.wl-form input { min-height: 52px; padding: 0 var(--sp-4); border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-size: var(--fs-md); background: var(--card); color: var(--ink); }
.wl-form input:focus-visible { outline: 0; border-color: var(--brand); }
.wl-form__msg { font-size: var(--fs-sm); min-height: 1.5em; }
.wl-form__msg[data-state="ok"] { color: var(--brand); font-weight: 800; }
.wl-form__msg[data-state="err"] { color: #FF8A8A; }

/* ---------- 页脚 ---------- */
.footer { padding: var(--sp-6) 0 var(--sp-7); color: var(--ink-2); font-size: var(--fs-sm); }
.footer__inner { display: grid; gap: var(--sp-4); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 文章页（隐私/条款/每日一题占位） ---------- */
.article { padding: var(--sp-7) 0; }
.article__body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); box-shadow: var(--shadow-card); max-width: 72ch; }
.article h1 { font-size: var(--fs-xl); font-weight: 900; line-height: var(--lh-tight); }
.article__meta { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.article h2 { font-size: var(--fs-lg); font-weight: 800; margin-top: var(--sp-5); }
.article p, .article li { margin-top: var(--sp-3); color: var(--ink); font-size: var(--fs-sm); }
.article ul { padding-left: 1.2em; margin: 0; }
.article li { margin-top: var(--sp-2); }

.daily { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--sp-8) 0; }
.daily__box { display: grid; gap: var(--sp-4); justify-items: center; max-width: 36rem; }
.daily__tiles { display: flex; gap: var(--sp-1); }
.daily__tiles img { width: 44px; height: auto; filter: drop-shadow(0 3px 4px var(--tile-shadow)); border-radius: 4px; }
.daily h1 { font-size: var(--fs-xl); font-weight: 900; line-height: var(--lh-tight); }
.daily p { color: var(--ink-2); }

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .nav { display: flex; }
  .hero { padding: var(--sp-8) 0 var(--sp-7); }
  .hero__inner { grid-template-columns: 1.1fr 1fr; }
  .hero__cta { grid-auto-flow: column; justify-content: start; }
  .hand { grid-template-columns: repeat(7, var(--tile-w-lg)); justify-content: end; padding: 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .waitlist { grid-template-columns: 1fr 1fr; align-items: center; padding: var(--sp-7) var(--sp-6); }
  .wl-form { grid-template-columns: 1fr auto; align-items: start; }
  .wl-form__msg { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
