/* 豆豆实验室 · 案例 01 课后实验
   Palette sampled from the final video: sky cyan, warm sunlight,
   grass green, rainbow accents, soft 3-D white cards. */

:root {
  --sky-1: #7fd2ff;
  --sky-2: #dff8ff;
  --sky-3: #fffdf5;
  --ink: #0b2f4f;
  --ink-soft: #315472;
  --muted: #5d7b96;
  --line: #d7e9f5;
  --white: #ffffff;
  --sun: #ffd447;
  --sun-deep: #e2a300;
  --blue: #2f8fff;
  --blue-deep: #1468d4;
  --orange: #ff9a3c;
  --orange-deep: #e86f1b;
  --coral: #ff6b6b;
  --green: #35b979;
  --green-deep: #1d8a58;
  --card-shadow: 0 18px 50px rgba(17, 76, 122, 0.13), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
  --soft-shadow: 0 10px 26px rgba(17, 76, 122, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 26%, #f2fbff 52%, var(--sky-3) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; }
button, input, summary { font: inherit; }
button { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.anchor { display: block; height: 0; }

/* ---------- sky backdrop ---------- */

.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sun-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 184, 0.95) 0%, rgba(255, 222, 90, 0.45) 32%, rgba(255, 222, 90, 0) 68%);
  filter: blur(4px);
}

.cloud {
  position: absolute;
  display: block;
  width: 340px;
  height: 130px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.62);
  filter: blur(18px);
  animation: cloud-drift 26s ease-in-out infinite alternate;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 160px; height: 160px; left: 44px; top: -72px; }
.cloud::after { width: 120px; height: 120px; right: 48px; top: -52px; }
.cloud-a { left: -70px; top: 120px; opacity: 0.85; }
.cloud-b { right: -80px; top: 330px; width: 400px; animation-delay: -9s; opacity: 0.65; }
.cloud-c { left: 24%; top: 690px; width: 280px; animation-delay: -16s; opacity: 0.5; }

@keyframes cloud-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(34px, 10px, 0); }
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px max(16px, calc((100vw - var(--maxw)) / 2));
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(21, 94, 145, 0.18);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16px; letter-spacing: 0.01em; }
.brand-text small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.age-pill,
.parent-pill,
.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.age-pill { color: #fff; background: linear-gradient(135deg, #2f8fff, #52c4ff); box-shadow: 0 4px 12px rgba(47, 143, 255, 0.25); }
.parent-pill { color: var(--green-deep); background: #e8fff2; border: 1px solid #c9f3da; }
.sound-btn {
  border: 1px solid #d4eaf8;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.sound-btn:hover { background: #fff; transform: translateY(-1px); }
.sound-btn[aria-pressed="false"] { color: var(--muted); background: #eef6fb; }
.sound-btn[aria-pressed="false"] .sound-icon { opacity: 0.55; }
.sound-text { display: inline; }

/* ---------- shared ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible,
.sound-btn:focus-visible,
.quiz-option:focus-visible,
.bubble-avatar-btn:focus-visible,
summary:focus-visible {
  outline: 3px solid #1d6ecb;
  outline-offset: 3px;
}
.btn-primary {
  color: #17314b;
  background: linear-gradient(180deg, #ffe372 0%, var(--sun) 100%);
  box-shadow: 0 6px 0 var(--sun-deep), 0 14px 26px rgba(222, 155, 0, 0.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--sun-deep), 0 18px 30px rgba(222, 155, 0, 0.26); filter: saturate(1.04); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sun-deep), 0 6px 12px rgba(222, 155, 0, 0.2); }
.btn-ghost {
  color: #155d9c;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cfe8f8;
  box-shadow: 0 4px 0 #d7e9f4, 0 10px 22px rgba(23, 89, 140, 0.08);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 #d7e9f4, 0 14px 24px rgba(23, 89, 140, 0.1); }
.btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 #d7e9f4; }
.btn:disabled { opacity: 0.58; cursor: wait; transform: none; filter: grayscale(0.15); }
.btn-block { width: 100%; }
.btn-arrow { font-size: 18px; line-height: 1; transition: transform 0.16s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 212, 71, 0.25);
}

.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 58px max(18px, 2vw);
  scroll-margin-top: 88px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
.section-note { max-width: 430px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: right; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 74px) max(18px, 2vw) 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  scroll-margin-top: 80px;
}

.hero-copy { max-width: 570px; }

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(3rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #0a2d4c;
  text-wrap: balance;
}
.title-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
  margin-left: 0.02em;
  padding: 0 0.03em;
}
.title-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.02em;
  bottom: 0.04em;
  height: 0.46em;
  border-radius: 0.08em 0.1em 0.12em 0.06em;
  background: linear-gradient(180deg, rgba(255, 222, 86, 0) 0%, #ffdf62 18%, #ffd447 86%, rgba(255, 212, 71, 0) 100%);
  transform: rotate(-1.2deg);
}
.lede {
  max-width: 470px;
  color: #385d7b;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: #42647f;
  font-size: 12px;
  font-weight: 700;
}
.hero-meta li {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.hero-photo {
  position: relative;
  width: min(100%, 440px);
  padding: 9px;
  border-radius: 240px 240px 38px 38px;
  background: linear-gradient(150deg, #ffffff 0%, #e8f8ff 55%, #d1f0ff 100%);
  box-shadow: 0 30px 65px rgba(12, 78, 131, 0.24), 0 2px 0 #fff inset;
  transform: rotate(1.2deg);
}
.hero-photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -8% -3% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 68%);
  filter: blur(12px);
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 232px 232px 30px 30px;
  object-fit: cover;
}
.float-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(13, 69, 113, 0.18);
  animation: tag-float 4.5s ease-in-out infinite alternate;
}
.float-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}
.float-blue { left: -24px; top: 15%; background: linear-gradient(135deg, #3d9cff, #1d70df); }
.float-warm { right: -24px; top: 55%; background: linear-gradient(135deg, #ffad52, #ed7422); animation-delay: -2.2s; }
@keyframes tag-float {
  from { transform: translateY(0) rotate(-1.5deg); }
  to { transform: translateY(-9px) rotate(1.5deg); }
}
.hero-sticker {
  position: absolute;
  left: 14px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 28px);
  padding: 7px 13px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(13, 69, 113, 0.16);
  backdrop-filter: blur(8px);
}
.hero-sticker img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; }
.hero-sticker span { display: flex; flex-direction: column; line-height: 1.2; }
.hero-sticker b { font-size: 12.5px; }
.hero-sticker small { color: var(--muted); font-size: 10.5px; }
.hero-caption {
  margin-top: 18px;
  color: #3d6586;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.hero-caption::before { content: "— "; color: #9ab7cc; }

/* ---------- laboratory ---------- */

.lab-section { padding-top: 52px; }

.lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(300px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.canvas-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.canvas-wrap {
  position: relative;
  background: #93dcff;
  overflow: hidden;
  isolation: isolate;
}
#lab-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 560;
  touch-action: none;
  cursor: grab;
  outline: none;
}
#lab-canvas:active { cursor: grabbing; }
#lab-canvas:focus-visible { outline: 3px solid #1d6ecb; outline-offset: -4px; }
.canvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  color: #587791;
  font-size: 11.5px;
  background: #fff;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #19794d;
  font-weight: 800;
  white-space: nowrap;
}
.live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35c27b;
  box-shadow: 0 0 0 4px rgba(53, 194, 123, 0.16);
  animation: live-pulse 2.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.72; }
}

.doudou-bubble {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: min(430px, calc(100% - 28px));
  padding: 9px 13px 9px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(10, 63, 108, 0.18);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.bubble-avatar-btn {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dff6ff;
  box-shadow: 0 4px 10px rgba(10, 63, 108, 0.14);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.bubble-avatar-btn:hover { transform: scale(1.05) rotate(-2deg); }
.bubble-avatar-btn:active { transform: scale(0.96); }
.bubble-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.bubble-copy { min-width: 0; padding-top: 1px; }
.bubble-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1668ad;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.bubble-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #35c27b; }
#doudou-text {
  margin-top: 2px;
  color: #24465f;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 650;
}

.callout {
  position: absolute;
  z-index: 4;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(10, 55, 93, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.callout-blue { left: 37%; top: 51%; background: linear-gradient(135deg, #4ca8ff, #1c70dd); }
.callout-warm { left: 77%; top: 51%; background: linear-gradient(135deg, #ffae57, #e56f1a); }
.callout.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.canvas-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #24567e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(10, 55, 93, 0.14);
  transform: translateX(-50%);
  pointer-events: none;
  animation: hint-bob 2s ease-in-out infinite;
}
.hint-arrow { color: var(--blue); font-size: 14px; }
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.lab-panel { min-width: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 13px;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px 8px;
  border-radius: 15px;
  border: 1px solid #dbeef9;
  background: rgba(255, 255, 255, 0.65);
  color: #7b96ad;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.step-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9f5fc;
  color: #6b8ca6;
  font-size: 12px;
  font-weight: 900;
}
.steps li.is-active {
  color: #154e7d;
  background: #fff9dd;
  border-color: #ffd95a;
  box-shadow: 0 5px 14px rgba(232, 170, 0, 0.14);
  transform: translateY(-2px);
}
.steps li.is-active .step-dot { color: #624500; background: var(--sun); }
.steps li.is-done { color: #23714d; background: #effff6; border-color: #cbeedb; }
.steps li.is-done .step-dot { color: #fff; background: var(--green); }
.steps li.is-done .step-label::after { content: " ✓"; color: var(--green); }

.panel-card {
  padding: 19px 18px 17px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}
.panel-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.panel-card h3 { font-size: 21px; line-height: 1.25; }
.panel-desc { margin: 8px 0 15px; color: #587791; font-size: 13px; line-height: 1.65; }
.panel-card .btn { min-height: 46px; padding: 10px 16px; font-size: 14px; }

.milk-meter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -4px 0 13px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #f2fbff;
  color: #557590;
  font-size: 12px;
  font-weight: 700;
}
.milk-dots { display: inline-flex; gap: 4px; }
.milk-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8edf8; transition: background 0.25s ease, transform 0.25s ease; }
.milk-dots i.full { background: #fff; border: 1px solid #b9ddec; box-shadow: 0 0 0 2px #e9f8ff; transform: scale(1.08); }
.milk-meter b { margin-left: auto; color: #2d6d98; }

.slider-wrap {
  margin: 0 0 13px;
  padding: 11px 12px 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaea, #fff5cf);
  border: 1px solid #ffe6a0;
}
.slider-head { display: flex; justify-content: space-between; gap: 10px; color: #6a5421; font-size: 11px; font-weight: 800; }
.slider-head label { font-weight: 800; }
#angle-readout { color: #b06b12; }
#torch-angle {
  display: block;
  width: 100%;
  height: 22px;
  margin: 2px 0 0;
  accent-color: #f4a62a;
  cursor: ew-resize;
}
.slider-labels { display: flex; justify-content: space-between; color: #a28449; font-size: 9.5px; font-weight: 700; }
.slider-help { margin-top: 4px; color: #8b713e; font-size: 10px; line-height: 1.45; }

.reset-btn { margin-top: 3px; min-height: 40px !important; font-size: 12.5px !important; }
.panel-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #5a7890;
  font-size: 11px;
  line-height: 1.55;
}

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.why-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.why-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -44px;
  top: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 210, 255, 0.2), transparent 70%);
}
.why-num {
  position: absolute;
  right: 18px;
  top: 14px;
  color: #cfe5f3;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: #f3fbff;
  border: 1px solid #e2f4fd;
}
.rainbow-icon svg { width: 54px; height: 54px; }
.warm-icon svg { width: 50px; height: 50px; }
.why-card-feature { background: linear-gradient(160deg, #eefaff 0%, #ffffff 70%); }
.why-card-feature .why-icon {
  width: 100%;
  height: 138px;
  margin: 0 0 16px;
  border-radius: 17px;
  overflow: hidden;
  background: #0b3563;
}
.particles-icon img { width: 100%; height: 100%; object-fit: cover; }
.why-card h3 { margin-bottom: 8px; font-size: 20px; }
.why-card p { color: #54728a; font-size: 13px; line-height: 1.75; }

.quote-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 22px 0 0;
  padding: 19px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff8d7 0%, #ffffff 72%);
  border: 1px solid #ffeaa4;
  box-shadow: 0 12px 28px rgba(201, 151, 10, 0.09);
}
.quote-banner img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 15px rgba(18, 80, 124, 0.14); }
.quote-banner p { color: #32546d; font-size: clamp(15px, 1.9vw, 18px); font-weight: 800; line-height: 1.6; }
.quote-banner cite { color: #a77b10; font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; }

/* ---------- quiz ---------- */

.quiz-section { padding-top: 42px; }

.quiz-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px clamp(18px, 3vw, 32px) 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #fff;
  box-shadow: var(--card-shadow);
}
.quiz-lock {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 13px;
  background: #f2fbff;
  border: 1px dashed #aed9f0;
  color: #4e7794;
  font-size: 12px;
  font-weight: 800;
}
.lock-icon { font-size: 17px; line-height: 1; }
.quiz-card:not(.locked) .quiz-lock { display: none; }

.quiz-body { transition: opacity 0.3s ease; }
.quiz-kicker { color: var(--blue-deep); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.quiz-body h3 { margin: 6px 0 19px; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.35; }

.quiz-options { display: grid; gap: 9px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #dbeef9;
  background: #fbfeff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.quiz-option:hover:not(:disabled) { transform: translateY(-2px); border-color: #9ed0f0; background: #fff; box-shadow: 0 9px 20px rgba(20, 92, 143, 0.08); }
.quiz-option:active:not(:disabled) { transform: translateY(1px); }
.quiz-option:disabled { cursor: not-allowed; opacity: 0.55; }
.option-key {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7f5fd;
  color: #1968a7;
  font-size: 13px;
  font-weight: 900;
}
.option-text { display: flex; flex-direction: column; min-width: 0; }
.option-text b { font-size: 14px; line-height: 1.4; }
.option-text small { color: #6d879b; font-size: 11px; line-height: 1.45; }
.option-mark { margin-left: auto; flex: 0 0 auto; width: 20px; height: 20px; color: #fff; font-weight: 900; text-align: center; line-height: 20px; }
.quiz-option.correct { border-color: #7ad7a8; background: #eafff3; box-shadow: 0 8px 20px rgba(35, 161, 98, 0.12); }
.quiz-option.correct .option-key { background: var(--green); color: #fff; }
.quiz-option.correct .option-mark::before { content: "✓"; }
.quiz-option.wrong { border-color: #ffb2ad; background: #fff3f2; animation: shake 0.38s ease; }
.quiz-option.wrong .option-key { background: var(--coral); color: #fff; }
.quiz-option.wrong .option-mark::before { content: "×"; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.quiz-feedback {
  min-height: 24px;
  margin-top: 13px;
  color: #4f7088;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
}
.quiz-feedback.good { color: var(--green-deep); }
.quiz-feedback.try { color: #c56a18; }

.success-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f1fff8 0%, #e8f9ff 100%);
  border: 1px solid #ccefdd;
  animation: success-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
@keyframes success-pop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.success-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  padding: 13px;
  border-radius: 50%;
  border: 4px dashed #f1c128;
  background: radial-gradient(circle at 36% 28%, #fffbe4 0%, #ffe66f 70%, #ffd646 100%);
  color: #69500a;
  text-align: center;
  transform: rotate(-6deg);
  box-shadow: 0 9px 0 #e6b300, 0 16px 30px rgba(190, 146, 0, 0.2);
}
.badge-star { color: #c58b00; font-size: 18px; line-height: 1; }
.badge-title { font-size: 19px; font-weight: 900; line-height: 1.15; margin: 4px 0; }
.badge-dots { color: #c58b00; font-size: 10px; letter-spacing: 0.18em; }
.success-kicker { color: var(--green-deep); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; }
.success-copy h4 { margin: 3px 0 7px; font-size: 22px; }
.success-copy p { color: #4d7087; font-size: 13px; line-height: 1.7; }
.success-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 13px; }
.success-actions .btn { min-height: 42px; padding: 9px 17px; font-size: 13px; }

/* ---------- real experiment ---------- */

.real-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  gap: 22px;
  align-items: start;
}
.real-steps { display: grid; gap: 11px; }
.real-step {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid #fff;
  box-shadow: 0 8px 22px rgba(17, 76, 122, 0.08);
}
.real-step-num {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #eaf7ff;
  color: #2270ad;
  font-size: 12px;
  font-weight: 900;
}
.real-step-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 15px;
  background: #f4fbff;
  border: 1px solid #e3f4fd;
  font-size: 25px;
  line-height: 1;
}
.real-step h3 { font-size: 17px; line-height: 1.3; }
.real-step p { color: #5a7890; font-size: 12.5px; line-height: 1.6; }
.real-step p b { color: #c26c13; }

.real-done { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 5px; padding-left: 4px; }
.real-done .btn { min-height: 48px; }
.done-stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 3px dashed #2eb275;
  border-radius: 10px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  animation: stamp-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.6) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(-4deg); }
}

.real-side { display: grid; gap: 13px; }
.materials-card,
.safety-card {
  padding: 19px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid #fff;
  box-shadow: 0 10px 26px rgba(17, 76, 122, 0.09);
}
.materials-card h3,
.safety-card h3 { margin-bottom: 11px; font-size: 17px; }
.materials { display: flex; flex-wrap: wrap; gap: 7px; }
.materials li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 9px;
  background: #f4fbfe;
  border: 1px solid #e1f1fa;
  color: #456980;
  font-size: 11.5px;
  font-weight: 700;
}
.materials li span { font-size: 14px; line-height: 1; }
.materials-note { margin-top: 10px; color: #8097a8; font-size: 10.5px; line-height: 1.55; }
.safety-card { background: linear-gradient(145deg, #fff9df, #ffffff 78%); border-color: #ffe7a0; }
.safety-card h3 { color: #8a5f04; }
.safety-card ul { display: grid; gap: 6px; }
.safety-card li { position: relative; padding-left: 15px; color: #78602e; font-size: 11.5px; line-height: 1.55; }
.safety-card li::before { content: "•"; position: absolute; left: 4px; top: 0; color: #da9a09; font-weight: 900; }

.parent-note {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #fff;
  overflow: hidden;
}
.parent-note summary {
  padding: 12px 15px;
  color: #3d6e8d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.parent-note summary::-webkit-details-marker { display: none; }
.parent-note summary::after { content: "＋"; float: right; color: #7aa7c2; font-weight: 900; }
.parent-note[open] summary::after { content: "－"; }
.parent-note p { padding: 0 15px 14px; color: #5b7890; font-size: 11.5px; line-height: 1.7; }
.parent-note b { color: #175e91; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 58px;
  padding: 34px max(22px, calc((100vw - var(--maxw)) / 2)) 30px;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(145deg, #123b60 0%, #0a2b49 100%);
  color: #d8ecfa;
  box-shadow: 0 -12px 40px rgba(9, 38, 62, 0.18);
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); object-fit: cover; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand strong { color: #fff; font-size: 14px; }
.footer-brand span { color: #8fb6d2; font-size: 10.5px; }
.footer p { color: #94b5cc; font-size: 10.5px; line-height: 1.7; }
.footer a { color: #cce7fb; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- confetti ---------- */

.confetti { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.95;
  animation: confetti-fall 2.6s cubic-bezier(0.12, 0.64, 0.4, 1) forwards;
}
@keyframes confetti-fall {
  0% { transform: translate3d(0, -10px, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate3d(var(--drift, 20px), 105vh, 0) rotate(720deg); opacity: 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 34px; }
  .hero-copy { max-width: 680px; }
  .hero-art { order: 2; }
  .hero-photo { width: min(88%, 430px); }
  .hero-caption { margin-top: 14px; }
  .lab-shell { grid-template-columns: 1fr; }
  .lab-panel { display: grid; grid-template-columns: 1fr; }
  .steps { max-width: 560px; }
  .panel-card { max-width: none; }
  .real-grid { grid-template-columns: 1fr; }
  .real-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .parent-note { grid-column: 1 / -1; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer a { grid-column: 1 / -1; text-align: right; }
}

@media (max-width: 760px) {
  .section { padding-top: 42px; padding-bottom: 42px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 20px; }
  .section-note { max-width: 100%; text-align: left; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; }
  .why-num { right: 16px; top: 11px; }
  .why-icon { grid-row: 1 / 3; width: 74px; height: 74px; margin: 0; }
  .why-card-feature .why-icon { grid-row: 1 / 3; width: 74px; height: 74px; margin: 0; }
  .why-card h3 { font-size: 18px; align-self: end; }
  .why-card p { grid-column: 2; font-size: 12.5px; }
  .quote-banner { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; }
  .quote-banner cite { grid-column: 2; }
  .success-card { grid-template-columns: 1fr; text-align: center; }
  .success-badge { width: 128px; height: 128px; margin: 0 auto; }
  .success-actions { justify-content: center; }
  .real-side { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; text-align: left; gap: 15px; }
  .footer a { text-align: left; }
}

@media (max-width: 560px) {
  .topbar { padding: 9px 12px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-text strong { font-size: 14px; }
  .brand-text small { font-size: 10px; max-width: 190px; }
  .parent-pill { display: none; }
  .sound-text { display: none; }
  .sound-btn { width: 34px; height: 34px; min-width: 34px; padding: 0; justify-content: center; }
  .age-pill { padding: 5px 9px; font-size: 10.5px; }
  .hero { padding-top: 30px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(2.6rem, 13.5vw, 3.9rem); margin-top: 12px; }
  .lede { font-size: 15px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-meta { font-size: 10.5px; gap: 6px; }
  .hero-meta li { padding: 5px 8px; }
  .hero-photo { width: 100%; padding: 7px; border-radius: 180px 180px 28px 28px; transform: none; }
  .hero-photo img { border-radius: 174px 174px 22px 22px; }
  .float-tag { font-size: 10.5px; padding: 6px 10px; }
  .float-blue { left: -8px; }
  .float-warm { right: -8px; }
  .hero-sticker { left: 8px; bottom: 10px; }
  .hero-sticker img { width: 32px; height: 32px; }
  .hero-sticker b { font-size: 11.5px; }
  .section { padding-left: 12px; padding-right: 12px; }
  .section-head h2 { font-size: 1.9rem; }
  .canvas-card { border-radius: 24px; }
  .canvas-wrap { border-radius: 24px 24px 0 0; }
  .doudou-bubble { top: 9px; left: 9px; width: calc(100% - 18px); padding: 7px 9px 7px 7px; gap: 7px; border-radius: 16px; }
  .bubble-avatar-btn { width: 43px; height: 43px; border-width: 2px; }
  .bubble-name { font-size: 9.5px; }
  #doudou-text { font-size: 11.5px; line-height: 1.5; }
  .callout { font-size: 10px; padding: 5px 8px; }
  .callout-blue { left: 31%; top: 53%; }
  .callout-warm { left: 80%; top: 53%; }
  .canvas-hint { font-size: 10px; padding: 6px 10px; }
  .canvas-footer { padding: 8px 11px; font-size: 10.5px; }
  .lab-shell { gap: 15px; }
  .steps li { padding: 7px 3px; font-size: 10px; border-radius: 12px; }
  .step-dot { width: 23px; height: 23px; font-size: 11px; }
  .panel-card { padding: 16px 14px 15px; }
  .panel-card h3 { font-size: 19px; }
  .panel-desc { font-size: 12px; }
  .panel-tip { font-size: 10.5px; }
  .why-card { grid-template-columns: 63px minmax(0, 1fr); column-gap: 11px; }
  .why-icon, .why-card-feature .why-icon { width: 63px; height: 63px; border-radius: 17px; }
  .quote-banner img { width: 46px; height: 46px; }
  .quote-banner p { font-size: 14px; }
  .quiz-card { padding: 18px 13px 20px; border-radius: 24px; }
  .quiz-body h3 { font-size: 1.3rem; }
  .quiz-option { gap: 9px; padding: 11px; }
  .option-key { width: 30px; height: 30px; font-size: 12px; }
  .option-text b { font-size: 13px; }
  .option-text small { font-size: 10.5px; }
  .success-actions .btn { flex: 1 1 130px; }
  .real-step { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 13px; }
  .real-step-num { position: absolute; opacity: 0; pointer-events: none; }
  .real-step-icon { width: 44px; height: 44px; font-size: 22px; }
  .real-step > div:last-child { min-width: 0; }
  .footer { padding: 26px 18px 24px; border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .float-tag, .canvas-hint, .live-pill span { animation: none !important; }
  .btn, .quiz-option, .callout, .sound-btn, .bubble-avatar-btn { transition-duration: 0.01ms !important; }
  .confetti { display: none !important; }
}
