/* ============================================================
   棒球小课堂 · 儿童版
   大字号、大按钮、大 emoji、少文字
   ============================================================ */
:root {
  --cream:   #FFF9EE;
  --cream-2: #FFF2DC;
  --ink:     #2B2419;
  --ink-2:   #6B5E4C;
  --red:     #E24B33;
  --red-dk:  #C43A24;
  --green:   #3EA863;
  --green-dk:#2E8A4D;
  --orange:  #F5901F;
  --blue:    #3D8FD6;
  --yellow:  #FFC93C;
  --line:    rgba(43,36,25,.10);
  --shadow:  0 6px 0 rgba(43,36,25,.10), 0 10px 26px rgba(43,36,25,.10);
  --shadow-sm: 0 3px 0 rgba(43,36,25,.08), 0 6px 14px rgba(43,36,25,.08);
  --r: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.kid-wrap { max-width: 860px; margin: 0 auto; padding: 0 18px 40px; }

/* ---------- 顶栏 ---------- */
.kid-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(255,249,238,.92);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.kid-logo { font-size: 28px; }
.kid-top b { font-size: 20px; letter-spacing: .02em; }
.kid-switch {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px;
  font-weight: 600;
}
.kid-switch:hover { border-color: var(--red); color: var(--red); }

.parent-note {
  margin: 0 0 8px;
  background: #fff;
  border: 2px dashed rgba(43,36,25,.2);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.parent-note b { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 24px 0 40px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 9vw, 62px);
  line-height: 1.2;
  letter-spacing: .02em;
  font-weight: 900;
}
.hero .hl {
  color: var(--red);
  display: inline-block;
  transform: rotate(-2deg);
}
.hero-sub {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-2);
}
.hero-sub b { color: var(--red); font-size: 21px; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 大按钮 ---------- */
.btn-huge {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  border: 0;
  border-radius: 99px;
  padding: 18px 40px;
  cursor: pointer;
  color: #fff;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 0 6px 0 rgba(0,0,0,.16);
}
.btn-huge:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0,0,0,.16); }
.btn-red    { background: var(--red); }
.btn-red:active { box-shadow: 0 1px 0 rgba(0,0,0,.16); }
.btn-white  { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line); }
.btn-green  { background: var(--green); }
.btn-orange { background: var(--orange); }

/* ---------- 游戏 ---------- */
.play-wrap { padding-bottom: 24px; }
.game-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.g-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.g-score { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-item {
  background: var(--cream-2);
  border-radius: 99px;
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.gs-item b {
  font-size: 20px;
  color: var(--ink);
  margin-right: 2px;
}
.gs-item:first-child b { color: var(--red); }
.g-sound {
  margin-left: auto;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 99px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}
.g-sound:active { background: var(--cream-2); }

#game {
  width: 100%;
  height: auto;
  display: block;
  background: #8FD3F0;
  border-radius: 18px;
  border: 3px solid var(--ink);
}

.g-msg {
  margin: 14px 0;
  min-height: 58px;
  background: var(--cream);
  border: 2px dashed rgba(43,36,25,.18);
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-msg.good { background: #E4F8EB; border-color: var(--green); color: var(--green-dk); }
.g-msg.bad  { background: #FDEAE5; border-color: var(--red); color: var(--red-dk); }
.g-msg.big  { font-size: 24px; }

.g-btns { display: flex; gap: 12px; }
.g-btns .btn-huge { flex: 1 1 0; padding: 16px 10px; font-size: 20px; }
.btn-huge:disabled { opacity: .42; cursor: not-allowed; }

.g-tip {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}

.g-end {
  margin-top: 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.g-end h3 { margin: 0 0 8px; font-size: 27px; font-weight: 900; }
.g-end p { margin: 0 0 20px; font-size: 18px; line-height: 1.8; }

/* ---------- 内容块 ---------- */
.blk { padding: 44px 0; }
.blk.alt {
  background: var(--cream-2);
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.blk h2 {
  margin: 0 0 26px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}
.q {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  font-family: Georgia, serif;
}

/* 目标三步 */
.goal-big {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.gb-step {
  flex: 1 1 160px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gb-step.win { background: #FFF6D6; }
.gb-num {
  position: absolute;
  top: -12px; left: -10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
}
.gb-emoji { display: block; font-size: 42px; line-height: 1.2; margin-bottom: 6px; }
.gb-step b { display: block; font-size: 19px; font-weight: 900; }
.gb-step i {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
}
.gb-arrow {
  align-self: center;
  font-size: 26px;
  color: var(--ink-2);
  font-weight: 900;
}

.note-big {
  margin: 26px 0 0;
  background: #fff;
  border-left: 8px solid var(--red);
  border-radius: 0 18px 18px 0;
  padding: 20px 24px;
  font-size: 18px;
  line-height: 1.95;
}
.note-big b { color: var(--red); }
.note-big.green { border-left-color: var(--green); }
.note-big.green b { color: var(--green-dk); }

/* 两栏 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.mini {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.mini h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.mini p { margin: 0 0 8px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.mini p:last-child { margin-bottom: 0; }
.mini b { color: var(--ink); }

/* 乐趣 */
.fun-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fun {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.fun-emoji { font-size: 38px; display: block; margin-bottom: 6px; }
.fun h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
.fun p { margin: 0 0 6px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.fun p:last-child { margin-bottom: 0; }
.fun b { color: var(--red); }

/* 三个理由 */
.why-list { display: grid; gap: 14px; }
.why {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.why-n {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
}
.why h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.why p { margin: 0 0 4px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.why p:last-child { margin-bottom: 0; }
.why b { color: var(--green-dk); }

/* 词卡 */
.sticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sticker {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s;
  cursor: pointer;
}
.sticker:hover { transform: translateY(-4px) rotate(-2deg); }
.sticker .st-emoji { font-size: 34px; display: block; }
.sticker b { display: block; font-size: 18px; font-weight: 900; margin-top: 4px; }
.sticker span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }

.kid-foot {
  text-align: center;
  padding: 34px 0 10px;
  color: var(--ink-2);
  font-size: 14px;
}
.kid-foot p { margin: 0 0 8px; }
.kid-foot a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 700px) {
  .fun-grid { grid-template-columns: 1fr; }
  .sticker-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .gb-arrow { display: none; }
  .hero-btns { flex-direction: column; }
  .btn-huge { width: 100%; }
  .g-btns { flex-direction: column; }
  .blk h2 { font-size: 23px; }
  .q { width: 36px; height: 36px; font-size: 21px; }
}

@media (max-width: 420px) {
  .sticker-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .sticker { padding: 12px 9px; }
  .sticker b { font-size: 16px; }
  .sticker span { font-size: 12px; }
}
