:root {
  --ink: #07161f;
  --ink-soft: #0e2430;
  --mist: #d7ebe8;
  --paper: #f3faf8;
  --teal: #17b89a;
  --teal-deep: #0e7d6a;
  --amber: #e8a317;
  --amber-soft: #f6d48a;
  --line: rgba(23, 184, 154, 0.22);
  --text: #132832;
  --muted: #5a7380;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 22, 31, 0.18);
  --radius: 18px;
  --font-display: "ZCOOL KuHei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(23, 184, 154, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(232, 163, 23, 0.12), transparent 50%),
    linear-gradient(180deg, #eef8f6 0%, var(--paper) 40%, #e7f3f1 100%);
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 250, 248, 0.78);
  border-bottom: 1px solid rgba(14, 36, 48, 0.06);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--teal-deep);
}

.brand small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

/* Hero — one composition, brand-first, full-bleed visual */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 22, 31, 0.92) 0%, rgba(14, 36, 48, 0.72) 42%, rgba(14, 125, 106, 0.45) 100%),
    radial-gradient(circle at 70% 40%, rgba(23, 184, 154, 0.35), transparent 45%),
    linear-gradient(160deg, #07161f, #0e7d6a 70%, #17b89a);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  animation: gridDrift 28s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 35% 35%, rgba(246, 212, 138, 0.35), transparent 40%),
    radial-gradient(circle at 65% 60%, rgba(23, 184, 154, 0.45), transparent 55%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: blur(0.2px);
  animation: blobFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0 0 1.1rem;
  animation: riseIn 0.9s ease both;
}

.hero-brand em {
  font-style: normal;
  color: var(--amber-soft);
}

.hero h1 {
  margin: 0 0 0.75rem;
  max-width: 16ch;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  animation: riseIn 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s ease 0.28s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--amber-soft);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-code {
  position: absolute;
  right: max(1rem, calc((100% - 1120px) / 2));
  bottom: 18%;
  width: min(360px, 42vw);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(215, 235, 232, 0.85);
  opacity: 0.9;
  pointer-events: none;
  animation: riseIn 1s ease 0.35s both, blinkCursor 1.2s steps(1) infinite;
  white-space: pre;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 1rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}

.tool {
  grid-column: span 6;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.tool.wide {
  grid-column: span 12;
}

.tool h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.tool > p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

select,
input[type="number"] {
  appearance: none;
  border: 1px solid rgba(14, 36, 48, 0.14);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input[type="number"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 184, 154, 0.18);
}

.tool-result {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 184, 154, 0.12), rgba(232, 163, 23, 0.1));
  border: 1px solid var(--line);
  min-height: 3.2rem;
  font-size: 0.95rem;
}

.tool-result strong {
  color: var(--teal-deep);
}

.schedule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.schedule-item {
  padding: 1rem 0.9rem;
  border-radius: 14px;
  background: var(--ink-soft);
  color: var(--white);
  min-height: 7.5rem;
}

.schedule-item .month {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-soft);
  margin-bottom: 0.45rem;
}

.schedule-item .date {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.schedule-item .meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.level-panel {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.level-panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.level-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(23, 184, 154, 0.12);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.pill.high {
  background: rgba(232, 163, 23, 0.18);
  color: #9a6508;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checklist li:hover {
  border-color: var(--line);
}

.checklist input {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--teal-deep);
}

.checklist li.done {
  opacity: 0.55;
  text-decoration: line-through;
}

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.path {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink) 0%, #134a45 100%);
  color: var(--white);
}

.path h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.path p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.path code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber-soft);
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(14, 36, 48, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blobFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-18px, 24px, 0) rotate(8deg);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@keyframes blinkCursor {
  50% {
    border-right-color: transparent;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .tool,
  .tool.wide {
    grid-column: span 12;
  }

  .schedule {
    grid-template-columns: 1fr 1fr;
  }

  .levels,
  .paths {
    grid-template-columns: 1fr;
  }

  .hero-code {
    display: none;
  }

  .hero-inner {
    padding-top: 5.5rem;
  }
}

@media (max-width: 560px) {
  .schedule {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
