/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.82; }

/* ===== TOKENS ===== */
:root {
  --bg:       #F8F6F0;
  --bg-warm:  #F0EDE4;
  --bg-dark:  #0F0F0F;
  --white:    #FFFFFF;
  --text:     #1A1A1A;
  --text-2:   #4A4A4A;
  --text-3:   #888888;
  --gold:     #B8892A;
  --gold-lt:  #F0E4C0;
  --gold-dk:  #8B6820;
  --border:   #DDD9CE;
  --radius:   12px;
  --shadow:   0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.14);
  --ease:     0.28s ease;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; }
.section { padding: 96px 0; }
.bg-warm { background: var(--bg-warm); }
.bg-dark { background: var(--bg-dark); color: white; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-tag.light { color: var(--gold-lt); border-color: var(--gold-lt); }
.section-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-title.light { color: white; }
.section-intro { font-size: 1.0625rem; color: var(--text-2); max-width: 560px; margin: 0 auto; line-height: 1.9; }
.section-intro.light { color: rgba(255,255,255,0.7); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center;
  transition: background var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(10px);
}
.nav-inner {
  width: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.nav-links {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 0.9rem;
}
.nav-links a { transition: color var(--ease); }
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-cta {
  background: var(--gold); color: white;
  padding: 8px 18px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 700;
  transition: background var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-dk); opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: var(--ease);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 60%, #E8E0D0 100%);
  position: relative; text-align: center;
}
.hero-inner { max-width: 700px; }
.hero-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--gold);
  background: rgba(184,137,42,0.1); padding: 6px 16px;
  border-radius: 100px; margin-bottom: 28px;
}
.hero-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text); margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-desc {
  font-size: 1.125rem; color: var(--text-2);
  line-height: 2; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
}
.hero-scroll span {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== BUTTONS ===== */
.btn-gold {
  background: var(--gold); color: white;
  padding: 14px 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  transition: background var(--ease), transform var(--ease);
  display: inline-block;
}
.btn-gold:hover { background: var(--gold-dk); transform: translateY(-1px); opacity: 1; }
.btn-ghost {
  padding: 14px 32px; border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 1rem; font-weight: 500; color: var(--text);
  transition: border-color var(--ease), transform var(--ease);
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); opacity: 1; }
.btn-outline {
  padding: 12px 24px; border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 0.9rem; color: var(--text-2);
  transition: var(--ease); display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }

/* ===== PHILOSOPHY GRID ===== */
.philosophy-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.philo-card {
  background: white; border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.philo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.philo-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: white;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.philo-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.philo-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.8; }

/* ===== PROGRAMS GRID ===== */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.program-card {
  border: 1.5px solid var(--border); border-radius: 16px;
  padding: 32px; position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-card.active { border-color: var(--gold); background: linear-gradient(135deg, #FFFDF7 0%, #FFF8E8 100%); }
.program-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; padding: 4px 12px; border-radius: 100px;
  background: var(--gold); color: white; margin-bottom: 20px;
}
.program-badge.coming { background: #E8F4E8; color: #2D7A3A; }
.program-badge.planned { background: var(--bg-warm); color: var(--text-3); }
.program-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.program-icon { font-size: 2rem; }
.program-name { font-size: 1.25rem; font-weight: 700; }
.program-age { font-size: 0.85rem; color: var(--text-3); margin-top: 2px; }
.program-desc { font-size: 0.925rem; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.program-features { margin-bottom: 28px; }
.program-features li {
  font-size: 0.875rem; color: var(--text-2); padding: 6px 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.program-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.program-card.coming .program-features li::before { content: '·'; color: var(--text-3); }

/* ===== SHOWCASE ===== */
.showcase-placeholder {
  text-align: center; padding: 64px 24px;
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: 16px; color: rgba(255,255,255,0.6);
  line-height: 2;
}
.showcase-hint { font-size: 0.875rem; margin-top: 12px; }
.showcase-hint code {
  background: rgba(255,255,255,0.1); padding: 2px 8px;
  border-radius: 4px; font-family: monospace;
}

/* ===== STATS ===== */
.stats-row {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-big {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--gold); line-height: 1.1;
  margin-bottom: 8px;
}
.stat-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }
.stat-div-v { width: 1px; height: 60px; background: var(--border); }

/* ===== CONTACT ===== */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 8px;
}
.contact-card {
  background: var(--bg-warm); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.contact-icon { font-size: 1.75rem; margin-bottom: 12px; }
.contact-card h4 { font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }
.contact-value { font-weight: 700; color: var(--gold); font-size: 1rem; margin-top: 6px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: white; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.footer-links { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--gold-lt); opacity: 1; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .stats-row { gap: 32px; }
  .stat-div-v { display: none; }
  .section-title { font-size: 1.875rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0;
    background: white; padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 20px;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-title { font-size: 3rem; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
