:root {
  --primary: #FF9F43;
  --primary-dark: #E67E22;
  --secondary: #2ECC71;
  --secondary-dark: #27AE60;
  --sky: #54A0FF;
  --sky-dark: #2E86DE;
  --yellow: #F1C40F;
  --cream: #FFF8E7;
  --white: #FFFFFF;
  --text: #4A4A4A;
  --text-light: #777777;
  --shadow: 0 8px 24px rgba(74, 74, 74, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.logo-tree {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  box-shadow: inset -6px -4px 0 rgba(0, 0, 0, 0.08);
}

.logo-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 10px;
  height: 14px;
  background: var(--primary);
  border-radius: 4px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 700;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--cream);
  color: var(--primary-dark);
  outline: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: var(--cream);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 159, 67, 0.18) 0%, transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.16) 0%, transparent 30%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero::before {
  width: 160px;
  height: 160px;
  background: rgba(241, 196, 15, 0.25);
  top: 12%;
  left: -40px;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  width: 100px;
  height: 100px;
  background: rgba(84, 160, 255, 0.2);
  bottom: 10%;
  right: 8%;
  animation: float 7s ease-in-out infinite reverse;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 3px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 0 var(--primary-dark);
}

.btn-primary:hover {
  box-shadow: 0 8px 0 var(--primary-dark);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 6px 0 var(--secondary-dark);
}

.btn-secondary:hover {
  box-shadow: 0 8px 0 var(--secondary-dark);
}

.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--secondary-dark);
}

.hero-media {
  position: relative;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  animation: gentle-bounce 4s ease-in-out infinite;
}

.mascot-float {
  position: absolute;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  bottom: -30px;
  left: -30px;
  animation: float 5s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
}

.section-icon::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-book { background: #FFF3D6; }
.icon-book::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E67E22'%3E%3Cpath d='M18 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM6 4h5v8l-2.5-1.5L6 12V4z'/%3E%3C/svg%3E");
}
.icon-sprout { background: #D5F5E3; }
.icon-sprout::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2327AE60'%3E%3Cpath d='M12 22c4.97 0 9-4.03 9-9-4.5 0-9 4.5-9 9zm0-20C7.58 2 4 5.58 4 10c0 3.5 4 7 8 7s8-3.5 8-7c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E");
}
.icon-star { background: #FCF3CF; }
.icon-star::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F1C40F'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}
.icon-house { background: #D6EAF8; }
.icon-house::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232E86DE'%3E%3Cpath d='M12 3L4 9v12h16V9l-8-6zm0 14.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Study */
.study {
  background: var(--white);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 3px solid #F0F0F0;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid #F0F0F0;
}

.card-body {
  padding: 26px;
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.card-body p {
  color: var(--text-light);
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tag {
  background: var(--cream);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.goal {
  margin-bottom: 18px;
}

.goal-name {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.progress {
  height: 18px;
  background: #F0F0F0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--secondary), var(--sky));
  border-radius: 999px;
  transition: width 1.2s ease-out;
}

.card-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Growth */
.growth {
  background:
    radial-gradient(circle at 85% 10%, rgba(46, 204, 113, 0.1) 0%, transparent 25%),
    var(--cream);
}

.growth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.growth-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 5px solid var(--primary);
  border-radius: 50%;
}

.timeline-content {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.timeline-content p {
  color: var(--text-light);
  font-size: 0.98rem;
}

/* Profile */
.profile {
  background: var(--white);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.profile-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  transition: transform 0.25s ease;
}

.profile-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.profile-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--white);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.profile-role {
  display: inline-block;
  background: var(--white);
  color: var(--secondary-dark);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin: 8px 0 20px;
}

.profile-info {
  text-align: left;
  display: grid;
  gap: 12px;
}

.profile-info div {
  display: flex;
  gap: 12px;
}

.profile-info dt {
  font-weight: 800;
  color: var(--sky-dark);
  min-width: 4em;
}

.profile-info dd {
  color: var(--text-light);
}

/* Gallery */
.gallery {
  background:
    radial-gradient(circle at 15% 90%, rgba(255, 159, 67, 0.12) 0%, transparent 25%),
    var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.gallery-item {
  text-align: center;
}

.gallery-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.gallery-placeholder:hover {
  transform: scale(1.05) rotate(2deg);
}

.gallery-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.gallery-note {
  text-align: center;
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-desc {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: 0.95rem;
}

.icp {
  margin-bottom: 12px;
}

.icp a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Confetti canvas */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .growth-layout,
  .two-col,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-media {
    order: -1;
  }

  .mascot-float {
    width: 100px;
    height: 100px;
    left: -10px;
    bottom: -20px;
  }

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

@media (max-width: 680px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 8px;
    border-bottom: 3px solid var(--yellow);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
