:root {
  --sky: #eef9ff;
  --sky-2: #dff2ff;
  --blue: #5eb8ec;
  --blue-deep: #2f8fd8;
  --blue-soft: #a9dcf5;
  --blue-pale: #e8f6ff;
  --ink: #28527a;
  --ink-soft: #3f6d95;
  --muted: #6d93b3;
  --line: #cfe8fa;
  --white: #ffffff;
  --mint: #bdeee3;
  --peach: #ffe1cf;
  --lemon: #fff0b8;
  --shadow: 0 10px 0 rgba(94, 184, 236, .08), 0 18px 34px rgba(80, 150, 200, .14);
  --shadow-sm: 0 6px 0 rgba(94, 184, 236, .07), 0 10px 22px rgba(80, 150, 200, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(169, 220, 245, .55), transparent 24%),
    radial-gradient(circle at 90% 16%, rgba(189, 238, 227, .48), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 225, 207, .38), transparent 32%),
    linear-gradient(180deg, #f6fcff 0%, var(--sky) 52%, #f8fdff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(94, 184, 236, .16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12));
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 100;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--lemon));
  transition: width .08s linear;
}

.sky-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 96px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 20px 8px 0 -6px rgba(255, 255, 255, .68), -18px 9px 0 -8px rgba(255, 255, 255, .62);
  animation: drift 14s ease-in-out infinite;
}

.cloud-a { top: 15%; left: -8%; opacity: .85; }
.cloud-b { top: 43%; right: -6%; transform: scale(.75); animation-delay: -4s; }
.cloud-c { bottom: 12%; left: 8%; transform: scale(.55); animation-delay: -8s; }

.star {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--lemon);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 4s ease-in-out infinite;
}

.star-a { top: 24%; left: 8%; }
.star-b { top: 31%; right: 12%; animation-delay: -1.3s; }
.star-c { bottom: 20%; right: 24%; animation-delay: -2.5s; }

.bubble {
  position: absolute;
  border: 2px solid rgba(94, 184, 236, .24);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.bubble-a { width: 28px; height: 28px; top: 60%; left: 4%; }
.bubble-b { width: 18px; height: 18px; top: 18%; right: 28%; animation-delay: -3s; }

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 26px -8px; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

@keyframes twinkle {
  0%, 100% { transform: scale(.7) rotate(0deg); opacity: .45; }
  50% { transform: scale(1) rotate(18deg); opacity: 1; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .76);
  border-bottom: 1px solid rgba(207, 232, 250, .85);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-face {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  box-shadow: 0 6px 0 rgba(94, 184, 236, .22);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; color: var(--ink); }
.brand-text small { margin-top: 3px; font-size: 10px; color: var(--muted); }

.top-nav { display: flex; align-items: center; gap: 4px; }

.top-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.top-nav a:hover,
.top-nav a.active {
  background: var(--blue-pale);
  color: var(--blue-deep);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 44px;
  padding: 48px 0 28px;
}

.hero-copy { max-width: 640px; }

.hello-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-deep);
  background: linear-gradient(120deg, var(--blue-deep), var(--blue), #78c4f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 0 0 12px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.hero-source {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 28px;
}

.stat {
  min-width: 108px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 6px 18px rgba(80, 150, 200, .08);
}

.stat strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
  color: var(--blue-deep);
}

.stat span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 7px 0 rgba(47, 143, 216, .18), 0 14px 26px rgba(80, 150, 200, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(47, 143, 216, .16), 0 18px 30px rgba(80, 150, 200, .22);
}

.primary-btn span { font-size: 18px; line-height: 1; }

.mascot-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.mascot {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 22px 24px rgba(80, 150, 200, .16));
  animation: mascot-float 6s ease-in-out infinite;
}

.mascot-icons {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 440px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mascot-icon {
  position: absolute;
  width: 16%;
  height: 12%;
  filter: drop-shadow(0 10px 14px rgba(47, 143, 216, .22));
  animation: icon-float 5s ease-in-out infinite;
}

.icon-left-top { left: 2%; top: 20%; animation-delay: -1.2s; }
.icon-left-mid { left: 0; top: 43%; animation-delay: -2.4s; }
.icon-left-bottom { left: 2%; top: 66%; animation-delay: -3.6s; }
.icon-top-left { left: 27%; top: 2%; animation-delay: -0.6s; }
.icon-top-right { left: 59%; top: 3%; animation-delay: -1.8s; }
.icon-right-top { right: 2%; top: 23%; animation-delay: -3s; }
.icon-right-bottom { right: 1%; top: 47%; animation-delay: -4.2s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mascot-note {
  position: absolute;
  right: 8px;
  bottom: 28px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-5deg);
  box-shadow: var(--shadow-sm);
}

.section { margin: 26px 0 64px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.bubble-num {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 7px 0 rgba(94, 184, 236, .2), 0 12px 22px rgba(80, 150, 200, .16);
}

.section-head h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.5px;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.overview-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.path-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-track li { position: relative; }

.path-track li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  color: var(--blue);
  font-size: 15px;
  transform: translateY(-50%);
}

.path-step {
  display: block;
  height: 100%;
  min-height: 132px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--blue-pale));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.path-step:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.path-step strong {
  display: block;
  margin: 11px 0 5px;
  font-size: 14px;
}

.path-step small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.overview-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.foot-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
}

.overview-foot p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.chapter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.chapter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--lemon));
  opacity: .75;
}

.chapter-card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--blue-soft), var(--blue), var(--peach));
}

.chapter-card:nth-child(3n + 3)::before {
  background: linear-gradient(90deg, var(--mint), var(--blue-soft), var(--blue));
}

.chapter-card.has-link { cursor: pointer; }

.chapter-card:hover {
  transform: translateY(-7px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chapter-index {
  color: rgba(94, 184, 236, .3);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.chapter-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
}

.visual {
  height: 118px;
  margin: 17px 0 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0f2fc;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4fbff, #e6f6ff);
}

.visual svg { width: 90%; height: 90%; }

.chapter-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.3px;
}

.chapter-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
}

.tag {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}

.source { color: var(--muted); font-size: 11px; }

.enter-link {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.enter-link[aria-disabled="true"] {
  opacity: .72;
  cursor: default;
}

.enter-link:not([aria-disabled="true"]):hover,
.enter-link.ready {
  background: var(--blue-deep);
  color: #fff;
  transform: translateY(-2px);
}

.enter-link span { margin-left: 4px; }

.closing { margin-bottom: 28px; }

.closing-card {
  padding: 38px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 58%, #8fd0f0);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 0 rgba(94, 184, 236, .16), 0 24px 42px rgba(80, 150, 200, .2);
}

.closing-card .hello-pill {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
  box-shadow: none;
}

.closing-card h2 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.closing-card p {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.8;
}

.footer {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 34px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(145deg, var(--blue), #8fd0f0);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(94, 184, 236, .25), 0 12px 24px rgba(80, 150, 200, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .25s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover { transform: translateY(-3px) rotate(8deg); }

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}

.reveal.show { opacity: 1; transform: none; }

:focus-visible {
  outline: 3px solid rgba(47, 143, 216, .5);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 12px;
    padding-top: 40px;
  }

  .mascot-wrap {
    order: -1;
    min-height: 280px;
  }

  .mascot { max-width: 300px; }
  .mascot-icons { width: 480px; height: 380px; }
  .mascot-note { right: 12%; bottom: 12px; }

  .path-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .path-track li:nth-child(4)::after { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topbar-inner { padding: 10px 16px; flex-wrap: wrap; }
  .top-nav { width: 100%; justify-content: center; }
  .top-nav a { padding: 7px 11px; font-size: 11px; }
  main { padding: 0 16px 30px; }
  .hero h1 { font-size: 42px; letter-spacing: -1px; }
  .hero-lead { font-size: 14px; }
  .stat { min-width: calc(50% - 6px); }
  .mascot-wrap { min-height: 240px; }
  .mascot { max-width: 250px; }
  .mascot-icons { width: 420px; height: 330px; }
  .icon-right-top { right: 12%; }
  .icon-right-bottom { right: 12%; }
  .section-head h2 { font-size: 23px; }
  .overview-card { padding: 18px; }
  .path-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-track li:nth-child(odd)::after { display: block; }
  .path-track li:nth-child(even)::after { display: none; }
  .path-step { min-height: 118px; }
  .overview-foot p { margin-left: 0; width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: auto; }
  .footer { flex-direction: column; padding: 18px 16px 28px; }
  .back-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
