@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --rz-primary: #059669;
  --rz-primary-pressed: #047857;
  --rz-ink: #0f172a;
  --rz-muted: #64748b;
  --rz-surface: #f7f8fa;
  --rz-card: #ffffff;
  --rz-border: #e6eaf0;
  --rz-disclaimer: #64748b;
  --rz-ph-bg: #fef3c7;
  --rz-ph-ink: #92400e;
  --rz-max: 1120px;
  --rz-font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:lang(zh-CN) {
  --rz-font: "Sora", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rz-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--rz-ink);
  background: linear-gradient(180deg, #e9f9f2 0%, var(--rz-surface) 28rem, #fff 48rem);
}

img { max-width: 100%; height: auto; }

a { color: var(--rz-primary-pressed); }

a:hover { color: var(--rz-primary); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: #fff;
  color: var(--rz-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.bar {
  width: min(var(--rz-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rz-border);
  backdrop-filter: blur(10px);
}

.site-header .bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
}

.wordmark {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--rz-ink);
  line-height: 1;
  text-decoration: none;
}

.wordmark .rend { font-weight: 700; }
.wordmark .zap { font-weight: 400; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.lang a {
  color: var(--rz-muted);
  text-decoration: none;
}

.lang a[aria-current="true"] {
  color: var(--rz-primary-pressed);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-button {
  cursor: pointer;
  font-weight: 700;
  color: var(--rz-ink);
  border: 1px solid var(--rz-border);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
}

.site-header nav.primary {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 64px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--rz-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.menu-toggle:checked ~ nav.primary { display: flex; }

.site-header nav.primary a {
  text-decoration: none;
  color: var(--rz-ink);
  font-weight: 600;
  padding: 8px 4px;
}

.site-header nav.primary a[aria-current="page"] { color: var(--rz-primary-pressed); }

.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: var(--rz-primary);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--rz-primary-pressed);
  color: #fff !important;
}

.btn.secondary {
  background: #fff;
  color: var(--rz-primary-pressed) !important;
  border: 1px solid var(--rz-primary);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: #ecfdf5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

main { padding: 28px 0 64px; }

.hero {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-mark {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

p { margin: 0 0 12px; }

.lede {
  font-size: 1.08rem;
  max-width: 68ch;
}

.section {
  margin-top: 36px;
}

.card,
.step,
.qa,
.panel {
  background: var(--rz-card);
  border: 1px solid var(--rz-border);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(12, 21, 18, 0.04);
}

.steps,
.qa-list,
.split {
  display: grid;
  gap: 12px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rz-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.crumbs {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--rz-muted);
  font-size: 0.92rem;
}

.crumbs a { color: var(--rz-muted); }

.ph {
  display: inline;
  padding: 0 0.3em;
  border-radius: 6px;
  background: var(--rz-ph-bg);
  color: var(--rz-ph-ink);
  font-weight: 700;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.note {
  color: var(--rz-muted);
  font-size: 0.95rem;
}

.definition {
  border-left: 4px solid var(--rz-primary);
  padding-left: 12px;
}

.site-footer {
  border-top: 1px solid var(--rz-border);
  background: #fff;
  padding: 28px 0 40px;
  color: var(--rz-disclaimer);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.site-footer a { color: var(--rz-ink); }

.age-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--rz-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 2.2em;
  padding: 0.12em 0.45em;
  border-radius: 999px;
  background: var(--rz-ink);
  color: #fff;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.age-notice--cta {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
}

.age-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #065f46;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.age-banner .age-badge {
  background: #fff;
  color: #065f46;
  font-size: 0.8rem;
}

.prose { max-width: 72ch; }

.prose li,
.flow li { margin: 0 0 14px; }

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

@media (max-width: 420px) {
  .wordmark { font-size: 22px; }
  .lang { font-size: 0.78rem; }
  .menu-button { padding: 8px 10px; }
}

@media (min-width: 1040px) {
  .site-header .bar {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .menu-button,
  .menu-toggle { display: none; }

  .lang { margin-left: auto; }

  .site-header nav.primary {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    top: auto;
    left: auto;
    right: auto;
  }

  .site-header nav.primary a {
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 8px 0;
  }

  .site-header nav.primary a.btn { padding: 8px 14px; }
}

@media (min-width: 840px) {
  .hero {
    grid-template-columns: 96px 1fr;
    gap: 28px;
  }

  .hero-mark { width: 96px; height: 96px; }

  h1 { font-size: 3rem; }

  .actions { flex-direction: row; align-items: center; }

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

  .split { grid-template-columns: 1.2fr 0.8fr; align-items: start; }

  .qa-list { grid-template-columns: 1fr; }
}

.site-header nav.primary a.btn {
  padding: 8px 14px;
  font-size: 0.88rem;
}

@media (max-width: 1039px) {
  .site-header nav.primary a.btn {
    align-self: flex-start;
  }
}
