/* 童学汇官网 2026 · 品牌全量重构（皇家蓝 + 明黄 + 科技霓虹 + 素材占位） */
:root {
  --royal: #1E4D92;
  --royal-dark: #0f2a52;
  --yellow: #ffdf3d;
  --yellow-deep: #f5c400;
  --cyan: #00d4ff;
  --navy-tech: #0a1628;
  --green: #99cc33;
  --red: #ef5f53;
  --blue-bright: #2d9cdb;
  --skin: #ffedcc;
  --cream: #fff8e8;
  --cloud: rgba(255, 255, 255, 0.92);
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(15, 42, 82, 0.08);
  --shadow-hover: 0 20px 50px rgba(15, 42, 82, 0.12);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.container-narrow { max-width: 760px; }

/* ---------- 素材占位 ---------- */
.media-placeholder,
.logo-slot,
.qr-placeholder {
  position: relative;
  background:
    linear-gradient(135deg, rgba(30, 77, 146, 0.06) 0%, rgba(255, 223, 61, 0.08) 100%),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(30, 77, 146, 0.04) 8px, rgba(30, 77, 146, 0.04) 16px);
  border: 2px dashed rgba(30, 77, 146, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--royal);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 24px;
  min-height: 120px;
}

.media-placeholder::after,
.logo-slot::after,
.qr-placeholder::after {
  content: attr(data-label);
}

.logo-slot {
  min-height: 64px;
  aspect-ratio: 2/1;
}

.logo-slot::after { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }

.qr-placeholder {
  width: 120px;
  height: 120px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
}

.media-ratio-1-1 { aspect-ratio: 1; }
.media-ratio-3-4 { aspect-ratio: 3/4; }
.media-ratio-4-3 { aspect-ratio: 4/3; }
.media-ratio-16-9 { aspect-ratio: 16/9; }
.media-ratio-21-9 { aspect-ratio: 21/9; }
.media-ratio-3-1 { aspect-ratio: 3/1; }

.media-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.media-hero-kids { max-width: 280px; margin: 16px auto; aspect-ratio: 3/4; }

.banner-placeholder { margin-top: 24px; }

.cert-placeholder { margin-top: 20px; }

.values-placeholder { margin-top: 28px; }

/* ---------- 顶栏 ---------- */
.top-bar {
  background: var(--royal-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 24px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-link { color: var(--yellow); text-decoration: none; }
.top-bar-link:hover { text-decoration: underline; }
.top-bar-sep { opacity: 0.4; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(30, 77, 146, 0.08);
  transition: box-shadow 0.3s;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-link { text-decoration: none; color: inherit; }
.logo-composite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.logo-icons-wrap {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-icons { width: 100%; height: 100%; object-fit: contain; }

.logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--royal);
  letter-spacing: 0.06em;
}
.logo-text-sub { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); }

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover { background: var(--cream); color: var(--royal); }

.nav-cta {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)) !important;
  color: var(--royal-dark) !important;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(245, 196, 0, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--royal);
  border-radius: 2px;
}

/* ---------- Hero 轮播通用 ---------- */
.hero-carousel {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
}

.carousel-track { position: relative; width: 100%; min-height: 92vh; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 900px;
}

.carousel-dots {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-slide:not(.slide-tech) + .carousel-dots span,
.slide-sun ~ .carousel-dots span { background: rgba(0, 0, 0, 0.2); }

.carousel-dots span.active {
  background: var(--yellow);
  width: 28px;
  border-radius: 5px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--royal);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover,
.carousel-next:hover { transform: translateY(-50%) scale(1.06); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.45);
  backdrop-filter: blur(8px);
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* Slide: Tech */
.slide-tech { background: var(--navy-tech); color: var(--white); }

.slide-tech-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 212, 255, 0.15) 0%, transparent 55%),
    linear-gradient(180deg, #0d1a2d 0%, #0a1628 100%);
}

.slide-tech-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.slide-tech-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1100px;
  width: 100%;
  padding-top: 120px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.slide-title-tech {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.text-gold { color: var(--yellow); }

.slide-desc-tech {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 420px;
  margin-bottom: 28px;
}

.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  color: var(--royal-dark);
  box-shadow: 0 8px 28px rgba(255, 223, 61, 0.35);
}

.btn-gold:hover { transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-royal {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30, 77, 146, 0.35);
}
.btn-royal:hover { transform: translateY(-2px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--royal-dark);
  font-weight: 800;
}
.btn-yellow:hover { filter: brightness(1.05); transform: translateY(-2px); }

.btn-primary-brand {
  background: linear-gradient(135deg, var(--royal), #2d6bb5);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary-brand:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }

/* Slide: Sun / KIDS */
.slide-sun {
  background: linear-gradient(180deg, #ffe566 0%, #fff4b8 40%, #e8f2ff 100%);
  position: relative;
}

.cloud {
  position: absolute;
  background: var(--cloud);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.85;
}
.cloud-1 { width: 180px; height: 72px; top: 12%; left: 8%; }
.cloud-2 { width: 220px; height: 88px; top: 18%; right: 5%; }

.slide-sun-content { padding-top: 100px; }

.bubble-hi {
  display: inline-block;
  background: var(--white);
  padding: 8px 18px;
  border-radius: 20px 20px 20px 4px;
  font-weight: 800;
  color: var(--royal);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.slide-title-sun {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--royal);
}

.slide-sub-sun {
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.kids-deco {
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 900;
  color: rgba(30, 77, 146, 0.12);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}

/* Slide: Wave */
.slide-wave {
  background: linear-gradient(180deg, #e8f4ff 0%, var(--white) 100%);
}

.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--royal);
  clip-path: ellipse(120% 80% at 50% 100%);
  opacity: 0.12;
}

.wave-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--royal);
  letter-spacing: 0.15em;
}

.slide-subtitle { font-size: 1.1rem; color: var(--royal); font-weight: 700; margin: 12px 0; }
.slide-desc { color: var(--text-muted); margin-bottom: 28px; }

/* Slide: Stats */
.slide-stats {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, #e3f0ff 100%);
}

.slide-stats .slide-title { color: var(--royal); margin-bottom: 32px; }

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; color: var(--royal); font-weight: 900; }
.hero-stat span { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- 信任条 ---------- */
.trust-strip {
  background: var(--royal);
  color: var(--white);
  padding: 16px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-icon { color: var(--yellow); margin-right: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }

.section-eyebrow {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--royal);
  margin-bottom: 12px;
}

.section-eyebrow.light { color: var(--cyan); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.section-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

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

.section-head-row .section-title,
.section-head-row .section-eyebrow { text-align: left; margin-bottom: 8px; }

.link-more {
  color: var(--royal);
  font-weight: 700;
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }

/* Split layouts */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.glass-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(30, 77, 146, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}

.about-copy .lead {
  font-size: clamp(1.1rem, 2.8vw, 1.26rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: clamp(0.98rem, 2.3vw, 1.05rem);
  line-height: 1.95;
}

.about-copy-sub {
  padding-left: 14px;
  border-left: 3px solid rgba(30, 77, 146, 0.15);
}

.check-list {
  list-style: none;
  margin: 24px 0;
}
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.check-list.light li::before { color: var(--yellow); }

.about-stats-inline {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(30, 77, 146, 0.12);
}
.about-stats-inline strong { display: block; font-size: 1.75rem; color: var(--royal); }
.about-stats-inline span { font-size: 0.85rem; color: var(--text-muted); }

.section-about { background: var(--white); }

/* Values board */
.section-values {
  background: linear-gradient(180deg, var(--navy-tech) 0%, var(--royal-dark) 100%);
  color: var(--white);
}

.values-board { max-width: 900px; margin: 0 auto; }

.values-neon {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 40, 80, 0.35);
}

.value-node {
  flex: 1;
  min-width: 140px;
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.value-node h3 { font-size: 1rem; margin: 8px 0 6px; }
.value-node p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }
.value-node:hover,
.value-node:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

.value-node.active {
  background: rgba(0, 212, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.45), 0 16px 34px rgba(0, 212, 255, 0.18);
}

.value-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.value-dot.green { background: var(--green); box-shadow: 0 0 12px var(--green); }
.value-dot.red { background: var(--red); box-shadow: 0 0 12px var(--red); }
.value-dot.blue { background: var(--blue-bright); box-shadow: 0 0 12px var(--blue-bright); }
.value-dot.skin { background: var(--skin); box-shadow: 0 0 12px var(--skin); }

.value-arrow {
  align-self: center;
  color: rgba(0, 212, 255, 0.5);
  font-size: 1.2rem;
  padding: 0 4px;
}

.values-center-label {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--cyan);
  font-weight: 700;
}

.value-detail-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.08);
}

.value-detail-panel h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #d9f8ff;
}

.value-detail-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* Programs tabs */
.section-programs { background: var(--cream); }

.program-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-btn:hover { border-color: var(--royal); color: var(--royal); }

.tab-btn.active {
  background: var(--royal);
  color: var(--white);
  box-shadow: var(--shadow);
}

.tab-panel { animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.program-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-info h3 { font-size: 1.35rem; color: var(--royal); margin-bottom: 12px; }
.program-info p { color: var(--text-muted); margin-bottom: 12px; }

.mini-list { margin-left: 18px; color: var(--text-muted); font-size: 0.95rem; }

/* Activities */
.section-activities { background: var(--white); }

.activity-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.act-tile {
  background: linear-gradient(180deg, #f0f6ff 0%, var(--white) 100%);
  border: 1px solid rgba(30, 77, 146, 0.1);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--royal);
  transition: transform 0.2s, box-shadow 0.2s;
}

.act-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.act-tile.active {
  border-color: rgba(30, 77, 146, 0.45);
  background: linear-gradient(160deg, #ffffff 0%, #e6f1ff 100%);
  box-shadow: 0 14px 30px rgba(30, 77, 146, 0.16);
}

.act-emoji { display: block; font-size: 1.75rem; margin-bottom: 8px; }

.activity-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f5f9ff;
  border: 1px solid rgba(30, 77, 146, 0.12);
}

.activity-feedback h3 {
  margin-bottom: 4px;
  color: var(--royal);
  font-size: 1rem;
}

.activity-feedback p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Campus gallery */
.section-campus { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.g-large { grid-column: span 2; grid-row: span 2; min-height: 280px; }
.g-wide { grid-column: span 2; }
.g-item { min-height: 140px; }

/* News */
.section-news { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

.news-body { padding: 20px; }
.news-body time { font-size: 0.8rem; color: var(--text-muted); }
.news-body h3 { font-size: 1.05rem; margin: 8px 0; color: var(--royal); line-height: 1.4; }
.news-body p { font-size: 0.9rem; color: var(--text-muted); }

.news-feature { grid-column: 1; grid-row: span 1; }

/* Testimonials */
.section-testimonials { background: linear-gradient(180deg, #e8f2ff 0%, var(--white) 100%); }

.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; }
.testimonial-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 16px;
}

.testimonial-card {
  flex: 0 0 min(100%, 360px);
  scroll-snap-align: start;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--yellow);
}

.testimonial-card p { font-size: 1.05rem; font-style: italic; color: var(--text); margin-bottom: 16px; }
.testimonial-card footer { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.testimonial-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 77, 146, 0.25);
  cursor: pointer;
}
.testimonial-dots span.active { background: var(--royal); width: 24px; border-radius: 4px; }

/* Partners */
.section-partners { background: var(--cream); }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* Features / Services */
.section-features { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--green);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-6px); }
.feature-card.feature-care { border-top-color: var(--red); }
.feature-card.feature-learn { border-top-color: var(--blue-bright); }
.feature-card.feature-child { border-top-color: var(--green); }
.feature-card.feature-extra { border-top-color: var(--red); }

.feature-icon { font-size: 2.25rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; color: var(--royal); margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); }

.section-services { background: var(--cream); }

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

.service-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.service-card h3 { color: var(--royal); margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); }

/* Franchise */
.section-franchise { background: var(--white); }

.franchise-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.franchise-info p { color: var(--text-muted); margin-bottom: 16px; }

.steps-timeline {
  list-style: none;
  margin: 24px 0 32px;
  counter-reset: step;
}

.steps-timeline li {
  padding: 14px 0 14px 56px;
  position: relative;
  border-left: 2px solid rgba(30, 77, 146, 0.15);
  margin-left: 12px;
}

.steps-timeline li strong {
  position: absolute;
  left: -13px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--royal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--blue-bright), var(--royal));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--white);
  margin-bottom: 16px;
}

.map-placeholder span { font-size: 1.25rem; font-weight: 800; display: block; margin-bottom: 8px; }

.franchise-map .media-placeholder { border-color: rgba(255, 255, 255, 0.4); }

/* Xintongxue */
.section-xintongxue { padding: 0; }

.xt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.xt-yellow {
  background: linear-gradient(180deg, #ffe866 0%, #fff3b0 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xt-badge {
  background: var(--royal);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.xt-title { font-size: 2.5rem; font-weight: 900; color: var(--royal); margin-top: 16px; }
.xt-en { font-size: 0.9rem; letter-spacing: 0.3em; color: var(--text-muted); }
.xt-slogan { font-size: 1.25rem; font-weight: 800; color: var(--royal); margin: 12px 0 20px; }

.xt-mascot { max-width: 220px; width: 100%; }

.xt-blue {
  background: linear-gradient(180deg, var(--royal) 0%, var(--royal-dark) 100%);
  color: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.xt-blue h3 { font-size: 1.5rem; margin-bottom: 16px; }
.xt-blue p { color: rgba(255, 255, 255, 0.88); margin-bottom: 16px; }

/* FAQ */
.section-faq { background: var(--cream); }

.faq-item {
  border-bottom: 1px solid rgba(30, 77, 146, 0.12);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 8px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--royal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-icon { transition: transform 0.2s; font-size: 1.25rem; font-weight: 400; }

.faq-a {
  padding: 0 8px 20px;
  color: var(--text-muted);
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, var(--royal-dark) 0%, var(--navy-tech) 100%);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-hint { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 16px; }

.booking-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px;
}

.booking-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}

.booking-card h3 {
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.booking-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.9rem;
  word-break: break-all;
}

.booking-qr {
  margin: 0 0 12px;
}

.booking-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.45); }

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card h3 { font-size: 0.9rem; color: var(--yellow); margin-bottom: 8px; }
.contact-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 12px; }
.contact-card a { color: var(--cyan); }

.contact-side .media-placeholder {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.campus-map {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.campus-map-switch {
  display: flex;
  gap: 10px;
  padding: 14px 14px 0;
}

.campus-map-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.campus-map-tab:hover {
  border-color: var(--cyan);
}

.campus-map-tab.active {
  background: var(--yellow);
  color: var(--royal-dark);
  border-color: var(--yellow);
}

.campus-map-panel {
  padding: 14px;
}

.campus-location-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.campus-location-label {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.campus-location-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.campus-location-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.campus-action-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, filter 0.2s;
}

.campus-open-map-btn {
  background: var(--cyan);
  color: var(--royal-dark);
}

.campus-copy-btn {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.campus-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.campus-action-btn:active {
  transform: scale(0.98);
}

/* Footer */
.footer {
  background: #0a0f1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-composite {
  background: transparent;
  box-shadow: none;
  padding-left: 0;
}
.footer-logo-composite .logo-text-main { color: var(--white); }
.footer-logo-composite .logo-text-sub { color: rgba(255, 255, 255, 0.6); }

.footer-desc { margin-top: 16px; font-size: 0.9rem; max-width: 280px; }

.footer-links h4 {
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal animation base */
.reveal,
.reveal-child {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible,
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .slide-tech-content { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .slide-tech-content .slide-desc-tech { margin-left: auto; margin-right: auto; }
  .slide-actions { justify-content: center; }
  .split-2,
  .program-card,
  .franchise-split,
  .contact-grid,
  .xt-split { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .activity-icons { grid-template-columns: repeat(3, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-large { grid-column: span 2; grid-row: span 1; min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-arrow { display: none; }
  .values-neon { flex-direction: column; }
}

@media (max-width: 768px) {
  .top-bar-inner { justify-content: center; text-align: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { border-radius: var(--radius-sm); }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .carousel-prev,
  .carousel-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .carousel-dots { bottom: 72px; }
  .section { padding: 56px 0; }
  .section-title { letter-spacing: 0.01em; }
  .activity-icons { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .about-stats-inline { flex-wrap: wrap; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-large,
  .g-wide { grid-column: span 1; }
  .about-copy .lead,
  .about-copy p { line-height: 1.85; }
  .campus-location-actions { flex-direction: column; }
  .campus-action-btn { width: 100%; }
  .booking-actions { flex-direction: column; }
  .booking-actions .btn,
  .booking-actions .campus-action-btn { width: 100%; }
}

@media (max-width: 430px) {
  .hero-carousel,
  .carousel-track { min-height: 80svh; }
  .slide-content { padding: 88px 16px 68px; }
  .top-bar { padding-top: env(safe-area-inset-top, 0); }
  .nav-container { padding: 10px 14px; }
  .logo-composite { gap: 8px; }
  .logo-text-main { font-size: 1rem; }
  .section { padding: 48px 0; }
  .activity-icons { gap: 12px; }
  .act-tile { min-height: 110px; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .btn { padding: 12px 18px; font-size: 0.88rem; }
  .campus-map-tab { font-size: 0.82rem; padding: 9px 10px; }
  .campus-location-address { font-size: 0.93rem; }
}

@media (hover: none) {
  .act-tile:hover,
  .value-node:hover,
  .campus-action-btn:hover {
    transform: none;
    box-shadow: none;
    filter: none;
  }
}
