:root {
  --night: #0d1738;
  --night-2: #16234d;
  --night-3: #20346e;
  --text: #f4f6ff;
  --muted: #b8c2e6;
  --gold: #ffd159;
  --red: #d7333a;
  --green: #1f9d55;
  --snow: #e9f1ff;
  --radius: 22px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.65 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.15; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }

/* 导航 */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 16px; }
.hero h1 span { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.hero-art { position: relative; justify-self: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 89, .35), transparent 65%);
}
.hero-art img { position: relative; height: min(460px, 60vh); width: auto; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25);
  font-weight: 700; line-height: 1.2;
}
.store small { display: block; font-weight: 600; font-size: .72rem; opacity: .75; }
.store svg { width: 26px; height: 26px; flex: none; }
.store[aria-disabled="true"] { cursor: default; }
.note { color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* 圣诞老人状态卡 */
.status {
  margin: 0 0 80px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--night-3), var(--night-2));
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.status .pin { width: 72px; height: 72px; border-radius: 50%; background: var(--red); border: 4px solid #fff; display: grid; place-items: center; overflow: hidden; }
.status .pin img { width: 80%; }
.status h2 { margin: 0 0 4px; font-size: 1.5rem; }
.status p { margin: 0; color: var(--muted); }
.countdown { display: flex; gap: 10px; }
.countdown div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; min-width: 66px; text-align: center; }
.countdown b { display: block; font-family: "Fredoka", sans-serif; font-size: 1.8rem; color: var(--gold); line-height: 1.1; }
.countdown span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* 功能 */
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 52ch; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 88px; }
.feature {
  background: var(--night-2); border-radius: var(--radius); padding: 28px; display: grid;
  grid-template-columns: 1fr 120px; gap: 16px; align-items: center; border: 1px solid rgba(255,255,255,.06);
}
.feature h3 { margin: 0 0 8px; font-size: 1.35rem; }
.feature p { margin: 0; color: var(--muted); }
.feature img { width: 120px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--night); background: var(--gold); border-radius: 99px; padding: 2px 10px; margin-bottom: 10px; }

/* 家长 */
.parents {
  background: var(--snow); color: var(--night); border-radius: var(--radius); padding: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 88px;
}
.parents h2 { grid-column: 1 / -1; margin: 0; font-size: 2rem; }
.parents h3 { margin: 0 0 6px; font-size: 1.15rem; }
.parents p { margin: 0; color: #3a4670; }

/* 文档页 */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 0 64px; }
.doc h1 { font-size: 2.4rem; margin: 0 0 4px; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; color: var(--gold); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.card { background: var(--night-2); border-radius: 16px; padding: 20px 22px; margin: 20px 0; }
.updated { color: var(--muted); font-size: .9rem; }
details { background: var(--night-2); border-radius: 14px; padding: 16px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; }

footer { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
  .hero-art { order: -1; }
  .hero-art img { height: 240px; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .status { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .features { grid-template-columns: 1fr; }
  .parents { grid-template-columns: 1fr; padding: 28px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 420px) {
  .feature { grid-template-columns: 1fr 84px; padding: 22px; }
  .feature img { width: 84px; }
  .countdown div { min-width: 56px; padding: 8px; }
  .countdown b { font-size: 1.4rem; }
  .nav-links a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  #snow { display: none; }
}
