:root {
  --ink: #20312f;
  --muted: #65736d;
  --paper: #fff8ea;
  --sun: #ffb84d;
  --leaf: #2f8f6b;
  --blue: #2878b8;
  --coral: #f26d5b;
  --night: #163b43;
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 70px rgba(33, 52, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 184, 77, 0.35), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(47, 143, 107, 0.25), transparent 22rem),
    linear-gradient(135deg, #fff7df 0%, #e7f4e8 48%, #dff0f5 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hero {
  min-height: 92vh;
  padding: 24px clamp(18px, 5vw, 72px) 56px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  right: -120px;
  top: 120px;
  background: repeating-linear-gradient(45deg, rgba(40, 120, 184, 0.12) 0 16px, transparent 16px 34px);
}

.hero::after {
  width: 240px;
  height: 240px;
  left: -80px;
  bottom: 24px;
  background: rgba(242, 109, 91, 0.16);
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand,
.nav-links,
.hero-actions,
.answer-row,
.day-controls {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  align-items: center;
  background: var(--night);
  border-radius: 18px;
  color: white;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-links a {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(32, 49, 47, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin: 96px auto 0;
  max-width: 1180px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--leaf);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-text,
.muted {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-text {
  max-width: 650px;
}

.button,
.round-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  display: inline-flex;
  padding: 14px 22px;
}

.button:hover,
.round-button:hover,
.quest-tab:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--night);
  box-shadow: 0 14px 28px rgba(22, 59, 67, 0.22);
  color: white;
}

.ghost,
.round-button {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(32, 49, 47, 0.12);
  color: var(--ink);
}

.small {
  padding: 10px 16px;
}

.check {
  background: var(--sun);
  color: #3e2b00;
}

.orbit-card {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 234, 0.54)),
    radial-gradient(circle at center, rgba(255, 184, 77, 0.2), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 46px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  position: relative;
}

.orbit-line {
  border: 2px dashed rgba(22, 59, 67, 0.2);
  border-radius: 50%;
  inset: 18%;
  position: absolute;
}

.planet {
  align-items: center;
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 86px;
  justify-content: center;
  position: absolute;
  width: 86px;
}

.planet-math {
  background: var(--coral);
  left: 18%;
  top: 18%;
}

.planet-cn {
  background: var(--leaf);
  right: 14%;
  top: 38%;
}

.planet-en {
  background: var(--blue);
  bottom: 14%;
  left: 38%;
}

.rocket {
  animation: floatRocket 3s ease-in-out infinite;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(32, 49, 47, 0.14);
  font-size: 2rem;
  font-weight: 900;
  padding: 28px 30px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px clamp(18px, 4vw, 42px);
}

.section-heading {
  max-width: 760px;
}

.subject-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subject-card,
.route-card,
.daily-card,
.quest-stage,
.quest-list,
.junior-card {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.subject-card {
  padding: 26px;
}

.route-map {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.route-card {
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.route-card::after {
  background: var(--sun);
  border-radius: 999px;
  content: "";
  height: 84px;
  opacity: 0.2;
  position: absolute;
  right: -28px;
  top: -28px;
  width: 84px;
}

.route-card span,
.focus-pill {
  background: rgba(47, 143, 107, 0.12);
  border-radius: 999px;
  color: var(--leaf);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 8px 12px;
}

.subject-icon {
  background: var(--night);
  border-radius: 999px;
  color: white;
  display: inline-block;
  font-weight: 900;
  margin-bottom: 18px;
  padding: 8px 12px;
}

.split-section {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.85fr 1.15fr;
}

.round-button {
  padding: 12px 18px;
}

.daily-card {
  padding: 30px;
}

.daily-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.daily-card li {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 14px 16px;
}

.quest-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.quest-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.quest-tab {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 16px;
  text-align: left;
  transition: 0.2s ease;
}

.quest-tab.active {
  background: var(--night);
  color: white;
}

.quest-stage {
  padding: 24px;
}

.stage-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.stage-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.voice-picker {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(32, 49, 47, 0.12);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  padding: 8px 10px 8px 14px;
}

.voice-picker span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.voice-picker select {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  max-width: 240px;
  outline: 0;
}

.animation-panel {
  background:
    linear-gradient(180deg, rgba(164, 213, 231, 0.7), rgba(255, 248, 234, 0.86) 56%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 18rem);
  border-radius: 28px;
  height: 360px;
  margin: 18px 0;
  overflow: hidden;
  position: relative;
}

.scene-sky,
.scene-object,
.subtitle {
  position: absolute;
}

.scene-sky {
  inset: 0;
}

.cloud {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  display: block;
  height: 38px;
  position: absolute;
  width: 108px;
}

.cloud::before,
.cloud::after {
  background: inherit;
  border-radius: 50%;
  content: "";
  position: absolute;
}

.cloud::before {
  height: 58px;
  left: 18px;
  top: -28px;
  width: 58px;
}

.cloud::after {
  height: 44px;
  right: 18px;
  top: -18px;
  width: 44px;
}

.cloud-one {
  animation: drift 18s linear infinite;
  left: -120px;
  top: 64px;
}

.cloud-two {
  animation: drift 24s linear infinite;
  left: 38%;
  top: 112px;
}

.scene-object {
  display: grid;
  inset: 86px 8% 70px;
  place-items: center;
}

.fraction-bridge {
  align-items: end;
  display: flex;
  gap: 8px;
}

.fraction-block {
  background: var(--coral);
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px 16px 8px 8px;
  height: 92px;
  opacity: 0.45;
  width: 56px;
}

.fraction-block.lit {
  animation: pop 0.55s ease both;
  opacity: 1;
}

.circle-radar {
  animation: radarPulse 3s ease-in-out infinite;
  border: 8px solid var(--blue);
  border-radius: 50%;
  height: 190px;
  position: relative;
  width: 190px;
}

.center-dot {
  background: var(--coral);
  border: 6px solid white;
  border-radius: 50%;
  height: 28px;
  left: calc(50% - 14px);
  position: absolute;
  top: calc(50% - 14px);
  width: 28px;
  z-index: 2;
}

.radius-line,
.diameter-line {
  background: var(--night);
  border-radius: 999px;
  height: 6px;
  left: 50%;
  position: absolute;
  top: calc(50% - 3px);
  transform-origin: left center;
}

.radius-line {
  transform: rotate(-28deg);
  width: 82px;
}

.diameter-line {
  left: 11px;
  transform: rotate(18deg);
  width: 168px;
}

.shop-sign {
  align-items: center;
  animation: pop 0.8s ease both;
  background: #ffe2a6;
  border: 8px solid #f5a22d;
  border-radius: 30px;
  box-shadow: 0 20px 0 rgba(22, 59, 67, 0.12);
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 26px 42px;
}

.shop-sign span {
  color: var(--muted);
  font-weight: 900;
  text-decoration: line-through;
}

.shop-sign strong {
  color: var(--coral);
  font-size: 3rem;
}

.shop-sign em {
  color: var(--night);
  font-size: 1.7rem;
  font-style: normal;
  font-weight: 900;
}

.reading-lantern {
  align-items: center;
  animation: lanternGlow 2.5s ease-in-out infinite;
  background: #e9573f;
  border-radius: 46% 46% 52% 52%;
  color: #fff8dc;
  display: flex;
  font-size: 3rem;
  font-weight: 900;
  height: 150px;
  justify-content: center;
  width: 118px;
}

.english-train {
  align-items: end;
  animation: trainMove 3s ease-in-out infinite;
  display: flex;
  gap: 8px;
}

.train-car {
  background: var(--blue);
  border-radius: 18px 18px 8px 8px;
  color: white;
  font-weight: 900;
  padding: 24px 18px;
}

.toolbox {
  align-items: center;
  animation: toolboxLift 2.8s ease-in-out infinite;
  background: var(--night);
  border: 8px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  color: white;
  display: flex;
  gap: 12px;
  padding: 30px;
}

.toolbox span {
  background: var(--sun);
  border-radius: 16px;
  color: #3e2b00;
  font-size: 2.2rem;
  font-weight: 900;
  padding: 12px 16px;
}

.toolbox strong {
  background: white;
  border-radius: 16px;
  color: var(--night);
  padding: 12px 16px;
}

.subtitle {
  background: rgba(22, 59, 67, 0.88);
  border-radius: 18px;
  bottom: 18px;
  color: white;
  left: 18px;
  line-height: 1.6;
  padding: 12px 16px;
  right: 18px;
}

.progress-track {
  background: rgba(22, 59, 67, 0.1);
  border-radius: 999px;
  height: 10px;
  margin: -4px 0 18px;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--leaf), var(--sun));
  display: block;
  height: 100%;
  transition: width 0.35s ease;
  width: 0;
}

.steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  border-radius: 18px;
  color: var(--muted);
  padding: 14px;
}

.step.active {
  border-color: var(--sun);
  color: var(--ink);
  font-weight: 800;
}

.answer-box {
  margin-top: 22px;
}

.answer-box label {
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.choice-chip {
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid rgba(32, 49, 47, 0.08);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.choice-chip:hover {
  border-color: var(--leaf);
  transform: translateY(-2px);
}

.answer-row input {
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid transparent;
  border-radius: 18px;
  flex: 1;
  outline: 0;
  padding: 14px 16px;
}

.answer-row input:focus {
  border-color: var(--leaf);
}

.feedback {
  font-weight: 800;
  margin: 12px 0 0;
  min-height: 28px;
}

.junior-card {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 360px;
}

.placeholder-stack {
  display: grid;
  gap: 12px;
}

.placeholder-stack span {
  background: var(--night);
  border-radius: 18px;
  color: white;
  font-weight: 800;
  padding: 18px;
}

.footer {
  color: var(--muted);
  padding: 30px;
  text-align: center;
}

@keyframes floatRocket {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(980px);
  }
}

@keyframes pop {
  from {
    transform: translateY(18px) scale(0.9);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes lanternGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(233, 87, 63, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 42px rgba(233, 87, 63, 0.46);
    transform: translateY(-8px);
  }
}

@keyframes radarPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(40, 120, 184, 0.24);
  }
  50% {
    box-shadow: 0 0 0 28px rgba(40, 120, 184, 0);
  }
}

@keyframes trainMove {
  0%,
  100% {
    transform: translateX(-18px);
  }
  50% {
    transform: translateX(18px);
  }
}

@keyframes toolboxLift {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-section,
  .quest-layout,
  .junior-card {
    grid-template-columns: 1fr;
  }

  .subject-grid,
  .route-map,
  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .orbit-card {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }

  .hero-actions,
  .answer-row,
  .day-controls,
  .stage-actions,
  .voice-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .round-button {
    justify-content: center;
    width: 100%;
  }

  .voice-picker {
    border-radius: 22px;
    width: 100%;
  }

  .voice-picker select {
    max-width: none;
    width: 100%;
  }

  .animation-panel {
    height: 320px;
  }
}
