:root {
  --cream: #fff8ea;
  --paper: #fffdf7;
  --ink: #241b12;
  --muted: #74685a;
  --oat: #eadcc8;
  --oat-strong: #d8c4aa;
  --matcha: #80d99a;
  --matcha-dark: #075a38;
  --lemon: #ffd86b;
  --slushie: #63d8ff;
  --ube: #9f7cff;
  --pomegranate: #ff7d8a;
  --wechat: #1aad19;
  --shadow: rgba(61, 41, 18, 0.12) 0 14px 36px, rgba(61, 41, 18, 0.08) 0 2px 0 inset;
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  max-width: 100vw;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 216, 107, 0.55), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(99, 216, 255, 0.38), transparent 24rem),
    linear-gradient(180deg, #fff8ea 0%, #fff3dc 44%, #fffaf0 100%);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(234, 220, 200, 0.8);
  background: rgba(255, 248, 234, 0.82);
  backdrop-filter: blur(16px);
}

.brand, .nav-links, .hero-actions, .trust-list, .family-chips {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: var(--wechat);
  box-shadow: #0d6b17 -4px 4px 0;
}

.nav-links { gap: 18px; color: var(--muted); font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 70px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wechat);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.inverse { color: var(--matcha); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 8vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  white-space: normal;
  overflow-wrap: anywhere;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.keep { white-space: nowrap; }
.hero-line { display: inline; }
.cta-note { max-width: 620px; margin: -10px 0 18px; font-size: 0.95rem; color: #6a5d4f; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
p { color: var(--muted); line-height: 1.72; }
.hero-subtitle { max-width: 650px; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-reassurance { max-width: 650px; margin: 0 0 18px; color: #4f4438; font-weight: 700; }

.button {
  min-height: 44px;
  border: 1px solid var(--oat-strong);
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  font: inherit;
}
.button:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: #241b12 -5px 5px 0; }
.button:active { transform: scale(0.98); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(26, 173, 25, 0.55); outline-offset: 4px; }
.button-primary { background: var(--pomegranate); border-color: #241b12; }
.button-secondary { background: var(--lemon); }
.button-wechat { background: var(--wechat); color: #fff; border-color: #0d6b17; }
.button-small { min-height: 40px; padding: 9px 15px; }
.button-card { width: 100%; margin-top: 10px; background: #fff; }

.hero-actions { gap: 14px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero-actions.centered { justify-content: center; }
.trust-list { gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.trust-list li {
  border: 1px dashed var(--oat-strong);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-weight: 700;
  max-width: 100%;
}

.phone-stage { justify-self: center; }
.phone-frame {
  width: min(360px, 86vw);
  min-height: 610px;
  border: 14px solid #241b12;
  border-radius: 44px;
  padding: 20px;
  background: linear-gradient(180deg, #fffdf7, #fff3dc);
  box-shadow: var(--shadow), #241b12 -10px 10px 0;
}
.phone-topbar { margin-bottom: 18px; color: var(--muted); font-weight: 800; text-align: center; }
.mini-card {
  border: 1px solid var(--oat-strong);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: rgba(61,41,18,.08) 0 10px 22px;
}
.mini-card span { color: var(--muted); font-weight: 700; }
.mini-card strong { display: block; margin: 8px 0 14px; font-size: 1.55rem; }
.mini-card-lemon { background: var(--lemon); }
.mini-card-blue { background: var(--slushie); }
.mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-row i, .difference-dots b {
  height: 28px;
  border-radius: 999px;
  background: #241b12;
  opacity: .85;
}
.difference-dots { display: flex; gap: 10px; }
.difference-dots b:nth-child(2) { background: #fff; border: 2px solid #241b12; }
.family-chips { flex-wrap: wrap; gap: 8px; }
.family-chips span { background: #fff; border: 1px solid var(--oat); border-radius: 999px; padding: 8px 10px; font-weight: 800; }

.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading.compact { text-align: center; margin-left: auto; margin-right: auto; }
.game-grid, .feature-grid, .preview-grid, .parent-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.game-card, .preview-card, .feature-grid article, .scene-timeline article, .parent-points article, .share-card, .about-card, details {
  border: 1px solid var(--oat-strong);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: rgba(61,41,18,.08) 0 12px 28px;
}
.game-card { padding: 28px; position: relative; overflow: hidden; }
.game-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 10px; background: var(--matcha); }
.game-card-spot::before { background: var(--ube); }
.game-icon { font-size: 2.4rem; margin-bottom: 12px; }
.card-tag { color: var(--wechat); font-weight: 800; }
.game-card ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }

.feature-section { padding-top: 40px; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid article, .parent-points article { padding: 22px; }
.feature-grid strong, .parent-points strong { display: block; margin-bottom: 8px; font-size: 1.1rem; }
.feature-grid span, .parent-points span { color: var(--muted); line-height: 1.6; }

.scenes-section { width: min(1220px, calc(100% - 32px)); }
.scene-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scene-timeline article { padding: 22px; background: #fff; }
.scene-timeline span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--lemon); font-weight: 900; }

.about-section { padding-top: 42px; }
.about-card { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 38px); background: linear-gradient(135deg, #fff, #ecfff2); }
.about-card p { margin-bottom: 14px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--matcha-dark); }
.about-card a { color: var(--matcha-dark); font-weight: 900; }

.preview-section { padding-top: 42px; }
.preview-card { padding: 24px; }
.gobang-board {
  position: relative;
  height: 320px;
  border-radius: 24px;
  border: 2px solid #9d6a09;
  background-color: #ffd981;
  background-image: linear-gradient(#a36f1b 1px, transparent 1px), linear-gradient(90deg, #a36f1b 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 16px 16px;
  overflow: hidden;
}
.stone { position: absolute; width: 26px; height: 26px; border-radius: 50%; box-shadow: rgba(0,0,0,.22) 0 3px 8px; }
.black { background: #241b12; } .white { background: #fff; border: 2px solid #241b12; }
.s1 { left: 80px; top: 82px; } .s2 { left: 112px; top: 114px; } .s3 { left: 144px; top: 146px; } .s4 { left: 176px; top: 178px; } .s5 { left: 208px; top: 210px; } .s6 { left: 240px; top: 242px; }
.spot-preview { min-height: 320px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; border-radius: 24px; background: #dff6ff; }
.spot-panel { position: relative; border-radius: 22px; background: linear-gradient(160deg, #fff, #ffe7ef); border: 1px solid #fff; }
.spot-panel i { position: absolute; width: 78px; height: 78px; border-radius: 50%; left: 24px; top: 30px; background: var(--lemon); }
.spot-panel b { position: absolute; width: 70px; height: 48px; border-radius: 18px; right: 20px; top: 100px; background: var(--matcha); }
.spot-panel em { position: absolute; width: 42px; height: 92px; border-radius: 999px; left: 46px; bottom: 28px; background: var(--ube); }
.spot-panel strong { position: absolute; width: 28px; height: 28px; border: 4px solid var(--pomegranate); border-radius: 50%; right: 38px; bottom: 50px; }

.parent-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 52px;
  border-radius: 40px;
  color: #fff;
  background: linear-gradient(135deg, #075a38, #0f7b4e);
}
.parent-section h2, .parent-section p { color: #fff; }
.parent-points article { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); }
.parent-points span { color: rgba(255,255,255,.78); }

.share-card { padding: clamp(24px, 5vw, 48px); text-align: center; background: linear-gradient(135deg, #fff, #ffe3e7); }
.share-card p { max-width: 680px; margin-left: auto; margin-right: auto; }
.faq-list { display: grid; gap: 14px; }
details { padding: 18px 22px; }
summary { cursor: pointer; font-weight: 900; }
details p { margin: 12px 0 0; }
.final-cta { text-align: center; padding-top: 44px; }
.site-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 32px 16px 48px;
  color: var(--muted);
  border-top: 1px solid var(--oat);
}
.site-footer strong { color: var(--ink); }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  background: #241b12;
  box-shadow: #ff7d8a -5px 5px 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .parent-section { grid-template-columns: 1fr; }
  .phone-stage { justify-self: center; max-width: 100%; }
  .feature-grid, .scene-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .section-shell { width: calc(100% - 24px); max-width: 1180px; padding: 48px 0; overflow: hidden; }
  .site-header { padding: 10px 12px; gap: 8px; overflow: hidden; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand span:last-child { display: none; }
  .site-header .button-small { min-height: 38px; padding: 8px 12px; flex-shrink: 0; }
  .game-grid, .feature-grid, .preview-grid, .parent-points, .scene-timeline { grid-template-columns: 1fr; }
  .hero-copy, .hero, .phone-stage { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
  .phone-frame { width: min(318px, calc(100vw - 52px)); max-width: 100%; min-height: auto; border-width: 10px; border-radius: 34px; padding: 14px; }
  .hero { gap: 24px; min-height: auto; padding-top: 30px; }
  h1 { max-width: 100%; font-size: clamp(1.82rem, 7.6vw, 2.05rem); line-height: 1.12; letter-spacing: -0.012em; overflow-wrap: normal; word-break: keep-all; }
  .hero-line { display: block; }
  .hero-subtitle, .hero-reassurance, .cta-note { max-width: 100%; }
  .hero-actions { width: 100%; max-width: 100%; }
  .hero-actions .button { width: 100%; max-width: 100%; }
  .parent-section { padding: 28px; border-radius: 30px; }
  .spot-preview { grid-template-columns: 1fr; }
  .spot-panel { min-height: 180px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
