:root {
  --bg: #fffaf4;
  --ink: #3d3352;
  --muted: #6b6380;
  --peach: #ffd8c2;
  --melon: #ffb485;
  --sky: #cfefff;
  --mint: #d6f5de;
  --lavender: #ece2ff;
  --cream: #fffdf8;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(91, 73, 126, 0.14);
  --shadow: 0 20px 50px rgba(118, 92, 164, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 186, 0.9), transparent 28%),
    radial-gradient(circle at top right, rgba(206, 239, 255, 0.85), transparent 25%),
    linear-gradient(180deg, #fff9ef 0%, #fffefb 45%, #fff9f2 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 56px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Baloo 2", sans-serif;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffbf95, #ffdfe7);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-text {
  font-size: 1.22rem;
  font-weight: 700;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.topnav a.is-active {
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
}

.section {
  padding: 44px 0;
}

main section[id] {
  scroll-margin-top: 100px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 28px;
  min-height: calc(100vh - 140px);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ff8c6f;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-text,
.section-heading p,
.resource-card p,
.mini-card p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 640px;
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-tags a {
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(116, 93, 157, 0.08);
}

.mascot {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 46% 54% 50% 50%;
  box-shadow: 0 24px 32px rgba(123, 102, 163, 0.15);
}

.mascot-left {
  inset: 112px auto auto 56px;
  width: 210px;
  height: 250px;
  background: linear-gradient(180deg, #ffcb89, #ff9a87);
  transform: rotate(-8deg);
}

.mascot-right {
  inset: 178px 54px auto auto;
  width: 170px;
  height: 206px;
  background: linear-gradient(180deg, #89d9ff, #aab8ff);
  transform: rotate(9deg);
}

.mascot::before,
.mascot::after {
  content: "";
  position: absolute;
  top: -26px;
  width: 36px;
  height: 56px;
  border-radius: 999px;
  background: inherit;
}

.mascot::before {
  left: 36px;
  transform: rotate(-14deg);
}

.mascot::after {
  right: 36px;
  transform: rotate(14deg);
}

.face {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.eye {
  width: 14px;
  height: 24px;
  border-radius: 999px;
  background: #3f2f5b;
}

.smile {
  position: absolute;
  top: 52px;
  width: 52px;
  height: 26px;
  border-bottom: 4px solid #3f2f5b;
  border-radius: 0 0 999px 999px;
}

.cloud-card {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: min(76%, 320px);
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 40px rgba(110, 88, 153, 0.14);
  text-align: center;
}

.cloud-card p {
  margin: 0 0 6px;
}

.cloud-card strong {
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
}

.section-heading {
  /* max-width: 760px; */
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.overview-grid,
.card-grid {
  display: grid;
  gap: 22px;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini-card,
.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.mini-card {
  padding: 22px;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd8c2, #fff3b7);
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
}

.mini-card h3,
.resource-card h3 {
  margin: 16px 0 10px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.6rem;
}

.resource-card img {
  display: block;
  width: calc(100% - 2rem);
  max-width: calc(100% - 2rem);
  margin: 1rem;
  border: 2px solid #eee;
  border-radius: 16px;
  object-fit: cover;
}

.feature {
  margin-top: 20px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.palette-peach {
  background: linear-gradient(180deg, rgba(255, 239, 229, 0.95), rgba(255, 249, 245, 0.92));
}

.palette-sky {
  background: linear-gradient(180deg, rgba(232, 247, 255, 0.94), rgba(250, 252, 255, 0.92));
}

.palette-mint {
  background: linear-gradient(180deg, rgba(234, 252, 237, 0.94), rgba(251, 255, 251, 0.92));
}

.palette-lavender {
  background: linear-gradient(180deg, rgba(245, 239, 255, 0.94), rgba(254, 251, 255, 0.92));
}

.resource-card {
  overflow: hidden;
}

.resource-card a {
  background-color: lavenderblush;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.resource-card a:hover {
  background-color: lavender;
}

.resource-visual {
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  margin: 18px;
  margin-bottom: 8px;
  overflow: hidden;
}

.resource-visual::before,
.resource-visual::after {
  content: "";
  position: absolute;
}

.resource-visual::before {
  inset: auto auto 24px 22px;
  width: 120px;
  height: 120px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.72);
}

.resource-visual::after {
  inset: 18px 20px auto auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.game-a,
.game-b,
.game-c,
.ani-a,
.ani-b,
.ani-c,
.fest-a,
.fest-b,
.fest-c,
.ai-a,
.ai-b,
.ai-c {
  background-size: cover;
}

.game-a {
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.55), transparent 16%),
    linear-gradient(135deg, #ffb58d, #ffdb91);
}

.scene-classroom {
  padding: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(180deg, #bfe8ff 0%, #eff8ff 47%, #ffe7cb 100%);
}

.scene-classroom svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scene-classroom .grass-main {
  fill: #83d889;
}

.scene-classroom .grass-shadow {
  fill: #67bc72;
  opacity: 0.75;
}

.scene-classroom .tree-trunk {
  fill: #8d5b43;
}

.scene-classroom .tree-leaf {
  fill: #58b86f;
}

.scene-classroom .tree-vine {
  fill: none;
  stroke: #7b8f49;
  stroke-linecap: round;
  stroke-width: 4;
}

.scene-classroom .skin {
  fill: #ffdbb8;
}

.scene-classroom .adult-body {
  fill: #ff8b76;
}

.scene-classroom .child-body-a {
  fill: #ffcf6f;
}

.scene-classroom .child-body-b {
  fill: #8fd8ff;
}

.scene-classroom .child-body-c {
  fill: #d4b4ff;
}

.scene-classroom .child-body-d {
  fill: #ffa3b5;
}

.scene-classroom .child-body-e {
  fill: #93dd9f;
}

.scene-classroom .limb {
  fill: none;
  stroke: #805649;
  stroke-linecap: round;
  stroke-width: 4;
}

.scene-classroom .smile-line {
  fill: none;
  stroke: #6c4e43;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.game-b {
  background:
    radial-gradient(circle at 25% 26%, rgba(255, 255, 255, 0.45), transparent 14%),
    linear-gradient(135deg, #ffc6d6, #ffd8b4);
}

.game-c {
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.42), transparent 12%),
    linear-gradient(135deg, #ffd998, #ffe9bd);
}

.ani-a {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.45), transparent 14%),
    linear-gradient(135deg, #8fdfff, #c3f4ff);
}

.ani-b {
  background:
    radial-gradient(circle at 25% 26%, rgba(255, 255, 255, 0.45), transparent 14%),
    linear-gradient(135deg, #a9d0ff, #d7ecff);
}

.ani-c {
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.44), transparent 13%),
    linear-gradient(135deg, #9ce9ed, #cff8ff);
}

.fest-a {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.48), transparent 14%),
    linear-gradient(135deg, #b3ecb8, #ebffca);
}

.fest-b {
  background:
    radial-gradient(circle at 25% 26%, rgba(255, 255, 255, 0.48), transparent 14%),
    linear-gradient(135deg, #c1f0cc, #e7ffd9);
}

.fest-c {
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.44), transparent 13%),
    linear-gradient(135deg, #b6eac9, #d9fff5);
}

.ai-a {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.48), transparent 14%),
    linear-gradient(135deg, #dbcbff, #f6dcff);
}

.ai-b {
  background:
    radial-gradient(circle at 25% 26%, rgba(255, 255, 255, 0.48), transparent 14%),
    linear-gradient(135deg, #d4d6ff, #ede6ff);
}

.ai-c {
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.44), transparent 13%),
    linear-gradient(135deg, #e2ccff, #f5ebff);
}

.resource-card h3,
.resource-card p {
  padding: 0 20px;
}

.resource-card p {
  margin-top: 0;
  margin-bottom: 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 4px 0;
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar,
  .footer,
  .hero,
  .overview-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar,
  .feature {
    border-radius: 28px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

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

  .mascot-left {
    inset: 90px auto auto 24px;
    width: 160px;
    height: 192px;
  }

  .mascot-right {
    inset: 145px 22px auto auto;
    width: 128px;
    height: 156px;
  }

  .cloud-card {
    bottom: 22px;
    width: calc(100% - 28px);
  }

  .feature {
    padding: 24px 18px;
  }

  .footer {
    padding-bottom: 30px;
  }
}
