:root {
  --ink: #191622;
  --muted: #696475;
  --line: #eee8fb;
  --paper: #fffdf8;
  --soft: #fbf7ff;
  --blue: #6f45e8;
  --blue-dark: #5631c8;
  --mint: #24b99a;
  --gold: #ffd35b;
  --rose: #ff6f8f;
  --lavender: #d9c4ff;
  --shadow: 0 22px 56px rgba(69, 42, 134, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 211, 91, 0.34), transparent 18%),
    radial-gradient(circle at 92% 6%, rgba(217, 196, 255, 0.8), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fbf7ff 42%, #fffaf0 100%);
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(238, 232, 251, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(111, 69, 232, 0.24);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.topnav a:hover {
  color: var(--blue);
  border-color: rgba(111, 69, 232, 0.32);
}

.nav-action,
.primary-button,
.secondary-button,
.ghost-button,
.wish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.nav-action,
.primary-button,
.wish-button {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(111, 69, 232, 0.22);
}

.nav-action:hover,
.primary-button:hover,
.wish-button:hover {
  background: var(--blue-dark);
}

.secondary-button,
.ghost-button {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(111, 69, 232, 0.36);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 5vw, 82px) clamp(18px, 5vw, 72px) 34px;
  overflow: hidden;
}

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

.hero::before {
  width: 260px;
  height: 84px;
  right: 12%;
  top: 16%;
  background: var(--gold);
  transform: rotate(-7deg);
}

.hero::after {
  width: 140px;
  height: 140px;
  left: 5%;
  bottom: 12%;
  border: 18px solid rgba(111, 69, 232, 0.16);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--blue);
  background: rgba(111, 69, 232, 0.1);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.07;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.13;
}

.script-word {
  position: relative;
  display: inline-block;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}

.script-word::after,
.highlight-word::after {
  position: absolute;
  left: 4%;
  bottom: 1px;
  z-index: -1;
  width: 94%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 211, 91, 0.82);
  content: "";
  transform: rotate(-2deg);
}

.small-script::after {
  height: 10px;
}

.highlight-word {
  position: relative;
  display: inline-block;
  color: #d89200;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  min-height: 540px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wish-stack {
  position: relative;
  width: min(100%, 540px);
  height: 500px;
}

.paper-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 324px;
  min-height: 214px;
  padding: 24px;
  border: 1px solid rgba(111, 69, 232, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.paper-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 211, 91, 0.85);
  content: "";
}

.paper-card span {
  color: var(--blue);
  font-weight: 900;
}

.paper-card strong {
  position: relative;
  font-size: 23px;
  line-height: 1.45;
}

.paper-card small {
  color: var(--muted);
}

.card-a {
  top: 18px;
  left: 44px;
  transform: rotate(-5deg);
  background: #fff;
}

.card-b {
  top: 156px;
  right: 0;
  transform: rotate(4deg);
  color: white;
  background: #6f45e8;
}

.card-b span,
.card-b small {
  color: white;
}

.card-c {
  bottom: 8px;
  left: 76px;
  transform: rotate(-2deg);
  background: #ffcf53;
}

.kid-dot {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 8px solid white;
  border-radius: 999px;
  color: white;
  box-shadow: 0 14px 30px rgba(69, 42, 134, 0.16);
  font-weight: 900;
}

.kid-one {
  top: 72px;
  right: 88px;
  background: var(--mint);
}

.kid-two {
  bottom: 96px;
  left: 26px;
  background: var(--rose);
}

.doodle-ring {
  position: absolute;
  right: 36px;
  bottom: 44px;
  width: 96px;
  height: 96px;
  border: 10px double rgba(111, 69, 232, 0.32);
  border-radius: 999px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) 44px;
  background: transparent;
}

.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 34px rgba(69, 42, 134, 0.08);
}

.stat span,
.stat strong {
  display: block;
}

.stat span {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.stat strong {
  color: var(--muted);
  font-size: 14px;
}

.wish-section,
.process-section {
  padding: 64px clamp(18px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(69, 42, 134, 0.08);
}

.controls label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.controls input,
.controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
}

.controls input:focus,
.controls select:focus {
  outline: 4px solid rgba(111, 69, 232, 0.14);
  border-color: var(--blue);
}

.results-line {
  display: flex;
  gap: 6px;
  margin: 20px 0;
  color: var(--muted);
  font-weight: 900;
}

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

.wish-card {
  display: flex;
  flex-direction: column;
  min-height: 346px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 36px rgba(69, 42, 134, 0.1);
}

.wish-card-top {
  position: relative;
  min-height: 128px;
  padding: 20px;
  color: white;
  background: var(--blue);
  background-position: center;
  background-size: cover;
}

.wish-card-top::after {
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  border: 8px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 211, 91, 0.95);
  content: "";
}

.wish-card-top[data-category="学习设备"] {
  background: #6f45e8;
}

.wish-card-top[data-category="补习费"] {
  background: #24b99a;
}

.wish-card-top[data-category="开学用品"] {
  color: var(--ink);
  background: #ffd35b;
}

.wish-card-top[data-category="生活支援"] {
  background: #ff6f8f;
}

.wish-id {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
}

.status {
  min-width: 66px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  text-align: center;
}

.wish-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.wish-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.wish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wish-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: #fbf7ff;
  font-size: 13px;
  font-weight: 900;
}

.wish-card p {
  color: var(--muted);
  line-height: 1.7;
}

.wish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.amount {
  font-size: 25px;
  font-weight: 900;
}

.process-section {
  position: relative;
  overflow: hidden;
  background: #6f45e8;
  color: white;
}

.process-section .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

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

.steps article {
  min-height: 218px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: var(--ink);
  background: white;
}

.steps span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.steps p {
  color: var(--muted);
  line-height: 1.75;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}

footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .controls,
  .wish-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .topnav a {
    padding: 8px 10px;
  }

  .nav-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .wish-stack {
    height: 370px;
  }

  .paper-card {
    width: 255px;
    min-height: 172px;
    padding: 18px;
    border-radius: 18px;
  }

  .paper-card strong {
    font-size: 18px;
  }

  .card-a {
    left: 0;
  }

  .card-b {
    top: 110px;
    right: 0;
  }

  .card-c {
    left: 34px;
  }

  .kid-dot {
    width: 58px;
    height: 58px;
    border-width: 6px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls,
  .wish-grid,
  .steps,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .wish-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
