/* =========================================================
   Lorato Primary School — Global Stylesheet
   主题色：#4caf50（主） / #ffb74d（辅）
   字体：Quicksand / Comfortaa（Google Fonts）
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --primary: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: #c8e6c9;
  --primary-soft: #e8f5e9;
  --accent: #ffb74d;
  --accent-dark: #f57c00;
  --accent-soft: #fff3e0;

  --pink: #f48fb1;
  --blue: #64b5f6;
  --purple: #ba68c8;
  --yellow: #fff176;

  --text: #2e3a2f;
  --text-soft: #5a6b5c;
  --text-mute: #8a9a8c;
  --bg: #ffffff;
  --bg-soft: #f7faf6;
  --border: #e6efe6;

  --sidebar-w: 240px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 12px rgba(76, 175, 80, 0.06);
  --shadow-md: 0 4px 24px rgba(46, 58, 47, 0.06);
  --shadow-lg: 0 12px 36px rgba(46, 58, 47, 0.10);

  --container: 1280px;
  --section-pad: 120px;

  --transition: 0.3s cubic-bezier(.2,.8,.2,1);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Quicksand', 'Comfortaa', 'Noto Sans SC', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Comfortaa', 'Quicksand', sans-serif; font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ---------- 跳转到主内容（无障碍） ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 侧边栏导航 ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 20px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 16px;
}
.sidebar-brand .logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.sidebar-brand .name {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text);
}
.sidebar-brand .name small {
  display: block;
  color: var(--text-mute);
  font-weight: 400;
  font-size: 0.72rem;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; overflow-y: auto; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  min-height: 44px;
  position: relative;
}
.sidebar-nav a i {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.sidebar-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 14px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.sidebar-nav a:hover { color: var(--primary); }
.sidebar-nav a:hover::after { width: calc(100% - 28px); }
.sidebar-nav a.active {
  background: var(--primary);
  color: #fff;
}
.sidebar-nav a.active i {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.sidebar-nav a.active::after { display: none; }

.sidebar-foot {
  padding: 16px 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-foot a { display: flex; align-items: center; gap: 8px; }
.sidebar-foot a i { color: var(--accent-dark); }
.sidebar-foot .socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.sidebar-foot .socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.sidebar-foot .socials a:hover { background: var(--primary); color: #fff; }

/* ---------- 移动端汉堡 ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  z-index: 1001;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.mobile-bar .brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}
.mobile-bar .brand .logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.95rem;
}
.hamburger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.4rem;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

/* ---------- 主内容区 ---------- */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero（首页轮播） ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--primary-soft);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; z-index: 2; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.slide-text {
  max-width: 880px;
  color: #fff;
  animation: fadeUp 1s ease both;
}
.slide-text .eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.slide-text h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  margin-bottom: 24px;
}
.slide-text .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent  { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover  { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,0.18); color: #fff; border-color: #fff; backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-ghost { background: var(--bg-soft); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.2rem;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.carousel-arrow:hover { background: var(--primary); color: #fff; }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }
.carousel-dots {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.carousel-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.carousel-dots button.active {
  background: var(--accent);
  width: 36px;
  border-radius: 999px;
}

/* ---------- 子页 Hero ---------- */
.page-hero {
  position: relative;
  height: 320px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 30%, rgba(76,175,80,0.12) 0 60px, transparent 60px),
    radial-gradient(circle at 88% 70%, rgba(255,183,77,0.18) 0 80px, transparent 80px);
  z-index: 0;
}
.page-hero-content { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
}
.breadcrumb {
  background: var(--bg-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.7rem; margin: 0 8px; color: var(--text-mute); }

/* ---------- Section ---------- */
section { padding: var(--section-pad) 0; position: relative; }
.section-title {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}
.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 18px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-title p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 680px;
  margin-left: auto; margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ---------- 卡片通用 ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-img { height: 200px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 22px; }

/* ---------- Z 字形图文 ---------- */
.zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.zigzag:nth-child(even) .zigzag-img { order: 2; }
.zigzag:last-child { margin-bottom: 0; }
.zigzag-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.zigzag-img::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  background: var(--accent);
  border-radius: 50%;
  bottom: -24px; right: -24px;
  opacity: 0.25;
}
.zigzag-img img { aspect-ratio: 4/3; object-fit: cover; }
.zigzag-text h3 { font-size: 1.6rem; margin-bottom: 16px; color: var(--primary-dark); }
.zigzag-text p { margin-bottom: 12px; color: var(--text-soft); }
.zigzag-text .lead { font-size: 1.1rem; color: var(--text); font-weight: 600; }

/* ---------- 校长寄语 ---------- */
.principal {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.principal::before {
  content: '"';
  position: absolute;
  top: 40px; right: 8%;
  font-size: 18rem;
  color: var(--primary);
  opacity: 0.06;
  font-family: serif;
  line-height: 1;
}
.principal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}
.principal-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
}
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-text {
  position: relative;
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.principal-text p { color: var(--text-soft); margin-bottom: 14px; line-height: 1.8; }
.principal-text .signoff {
  margin-top: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}
.principal-text .sig {
  display: block;
  margin-top: 10px;
  height: 60px;
}

/* ---------- 数字统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  background: #fff;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}
.stat:nth-child(2) { border-top-color: var(--accent); }
.stat:nth-child(3) { border-top-color: var(--blue); }
.stat:nth-child(4) { border-top-color: var(--pink); }
.stat .num {
  font-family: 'Comfortaa', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat:nth-child(2) .num { color: var(--accent-dark); }
.stat:nth-child(3) .num { color: var(--blue); }
.stat:nth-child(4) .num { color: var(--pink); }
.stat .label { color: var(--text-soft); font-size: 0.95rem; margin-top: 6px; }

/* ---------- 特色卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {
  background: #fff;
  padding: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .img-top { aspect-ratio: 5/3; overflow: hidden; }
.feature-card .img-top img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.feature-card:hover .img-top img { transform: scale(1.05); }
.feature-card .body { padding: 22px; }
.feature-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.feature-card:nth-child(2) .icon { background: var(--accent-soft); color: var(--accent-dark); }
.feature-card:nth-child(3) .icon { background: #e3f2fd; color: var(--blue); }
.feature-card:nth-child(4) .icon { background: #fce4ec; color: var(--pink); }
.feature-card:nth-child(5) .icon { background: #f3e5f5; color: var(--purple); }
.feature-card:nth-child(6) .icon { background: #fffde7; color: #f9a825; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--primary-dark); }
.feature-card .promise {
  display: block;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.feature-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 学科 / 课程卡片 ---------- */
.subject-card {
  background: #fff;
  padding: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.subject-card .img-top { aspect-ratio: 5/3; overflow: hidden; }
.subject-card .img-top img { width: 100%; height: 100%; object-fit: cover; }
.subject-card .body { padding: 22px; flex: 1; }
.subject-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.subject-card h3 i {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
}
.subject-card dl { font-size: 0.93rem; }
.subject-card dt { font-weight: 700; color: var(--accent-dark); margin-top: 10px; }
.subject-card dd { color: var(--text-soft); margin-top: 2px; }

/* ---------- 进阶阶梯 ---------- */
.ladder {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  padding: 40px;
  border-radius: var(--radius-lg);
}
.ladder h3 { text-align: center; margin-bottom: 28px; color: var(--primary-dark); }
.ladder-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
}
.ladder-step {
  background: #fff;
  padding: 18px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.ladder-step .grade {
  display: block;
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.ladder-step:nth-child(1) { background: linear-gradient(180deg,#fff,#fff8e1); }
.ladder-step:nth-child(2) { background: linear-gradient(180deg,#fff,#fce4ec); }
.ladder-step:nth-child(3) { background: linear-gradient(180deg,#fff,#e3f2fd); }
.ladder-step:nth-child(4) { background: linear-gradient(180deg,#fff,#e8f5e9); }
.ladder-step:nth-child(5) { background: linear-gradient(180deg,#fff,#f3e5f5); }
.ladder-step:nth-child(6) { background: linear-gradient(180deg,#fff,#ffe0b2); }
.ladder-step .desc { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- 选修课程 ---------- */
.elective-card { display: flex; flex-direction: column; }
.elective-card .img-top { aspect-ratio: 4/3; overflow: hidden; }
.elective-card .img-top img { width: 100%; height: 100%; object-fit: cover; }
.elective-card .body { padding: 22px; }
.elective-card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.elective-card .meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0;
}
.elective-card .meta span {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.elective-card p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------- 师资 ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.staff-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.staff-card:hover { transform: translateY(-4px); }
.staff-card .photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--primary-soft);
}
.staff-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .body { padding: 20px 16px; }
.staff-card h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--primary-dark); }
.staff-card .role { color: var(--accent-dark); font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; }
.staff-card .meta { font-size: 0.83rem; color: var(--text-soft); margin: 4px 0; }
.staff-card .quote {
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.85rem;
  border-top: 1px dashed var(--border);
  margin-top: 12px;
  padding-top: 12px;
}
.staff-card .email {
  display: inline-flex;
  align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--primary);
}

/* ---------- 设施 ---------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.facility {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.facility .img { aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; }
.facility .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.facility:hover .img img { transform: scale(1.05); }
.facility .body { padding: 16px; }
.facility h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.facility h3 i { color: var(--accent-dark); }
.facility p { font-size: 0.85rem; color: var(--text-soft); }

.safety-promise {
  margin-top: 36px;
  background: var(--primary);
  color: #fff;
  padding: 22px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
}
.safety-promise i { color: var(--yellow); margin-right: 8px; }

/* ---------- 校园生活活动 ---------- */
.life-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.life-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.life-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.life-item:hover img { transform: scale(1.08); }
.life-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.life-item .cap strong { font-size: 0.9rem; display: block; }
.life-item .cap small { font-size: 0.75rem; opacity: 0.9; }

/* ---------- 家长寄语 ---------- */
.testimonials {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
}
.test-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-md);
}
.test-card::before {
  content: '"';
  position: absolute;
  top: -10px; left: 18px;
  font-size: 5rem;
  color: var(--accent);
  font-family: serif;
  line-height: 1;
}
.test-head {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 14px;
}
.test-head .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-soft);
}
.test-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.test-head h3 { font-size: 1rem; margin-bottom: 2px; }
.test-head .role { font-size: 0.83rem; color: var(--accent-dark); font-weight: 600; }
.test-card p { font-size: 0.93rem; color: var(--text-soft); line-height: 1.7; }

/* ---------- 安全保障 ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.safety-item {
  background: #fff;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
  display: flex; flex-direction: column;
}
.safety-item:hover { transform: translateY(-4px); }
.safety-item .img-top {
  aspect-ratio: 5/3;
  background: var(--primary-soft);
  overflow: hidden;
}
.safety-item.icon-only .img-top {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}
.safety-item.icon-only .big-icon { font-size: 4rem; color: var(--primary); }
.safety-item:nth-child(odd).icon-only .big-icon { color: var(--accent-dark); }
.safety-item .img-top img { width: 100%; height: 100%; object-fit: cover; }
.safety-item .body { padding: 22px; flex: 1; }
.safety-item h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 10px;
}
.safety-item h3 i {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 0.95rem;
}
.safety-item p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- 招生 ---------- */
.admit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.admit-block {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
}
.admit-block:nth-child(even) { border-top-color: var(--accent); }
.admit-block h3 {
  display: flex; align-items: center; gap: 10px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.admit-block h3 i { color: var(--accent-dark); }
.admit-block ul { padding-left: 8px; }
.admit-block ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.admit-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-weight: 700;
}
.admit-block p { color: var(--text-soft); margin-bottom: 8px; }
.admit-block strong { color: var(--text); }

.dates-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 16px;
}
.date-pill {
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.date-pill strong { display: block; color: var(--primary-dark); font-size: 1rem; }
.date-pill span { color: var(--text-soft); font-size: 0.85rem; }

.apply-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: #fff;
}
.apply-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.apply-cta p { margin-bottom: 22px; opacity: 0.95; }

/* ---------- 联系 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.contact-info {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.contact-info h3 { color: var(--primary-dark); margin-bottom: 18px; }
.contact-info ul li {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 14px;
}
.contact-info ul li i {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info ul li strong { display: block; color: var(--text); }
.contact-info ul li small { color: var(--text-soft); }
.contact-img { margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden; }

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { color: var(--primary-dark); margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.form-row label .req { color: #e53935; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-soft);
  transition: border var(--transition);
  min-height: 44px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
}
.form-row.error input,
.form-row.error select,
.form-row.error textarea { border-color: #e53935; }
.form-row .err-msg { color: #e53935; font-size: 0.8rem; margin-top: 4px; display: none; }
.form-row.error .err-msg { display: block; }
.form-note { color: var(--text-mute); font-size: 0.85rem; margin-top: 12px; }

.contact-map {
  margin-top: 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: linear-gradient(135deg, #2e3a2f 0%, #1f2a20 100%);
  color: #cfd9d0;
  padding: 64px 0 24px;
  margin-top: 0;
}
footer.site-footer .container { padding: 0 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-cols h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer-cols h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-cols p, .footer-cols li { font-size: 0.88rem; color: #b1bdb3; }
.footer-cols .brand-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.footer-cols .brand-row .logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
}
.footer-cols .brand-row .name { color: #fff; font-family: 'Comfortaa', sans-serif; font-weight: 700; }
.footer-cols ul li { margin-bottom: 8px; }
.footer-cols ul li a:hover { color: var(--accent); }
.footer-cols ul.contact li {
  display: flex; gap: 8px; align-items: flex-start;
}
.footer-cols ul.contact li i { color: var(--accent); margin-top: 4px; }
.footer-socials { display: flex; gap: 10px; margin-top: 12px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: grid; place-items: center;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8a9a8c;
}
.footer-bottom .meta { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  font-size: 1.2rem;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 0 48px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- 装饰 ---------- */
.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.decor.cloud-1 { top: 8%; left: 4%; width: 90px; }
.decor.cloud-2 { top: 14%; right: 6%; width: 70px; }
.decor.star-1  { top: 30%; right: 12%; width: 30px; }
.decor.bubble-1 { bottom: 12%; left: 8%; width: 50px; }
.decor.wave-1   { bottom: 0; left: 0; width: 100%; }
section > .container { position: relative; z-index: 1; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.decor.cloud-1, .decor.cloud-2 { animation: floaty 6s ease-in-out infinite; }
.decor.cloud-2 { animation-delay: 1s; }
.decor.star-1 { animation: floaty 4s ease-in-out infinite; }

/* ---------- IntersectionObserver 淡入 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- 提示 toast ---------- */
.toast {
  position: fixed;
  top: 24px; left: 50%; transform: translateX(-50%) translateY(-120%);
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 9500;
  transition: transform var(--transition);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 90px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .life-grid { grid-template-columns: repeat(3, 1fr); }
  .ladder-grid { grid-template-columns: repeat(3, 1fr); }
  .dates-row { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .principal-grid { grid-template-columns: 240px 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; padding-top: 60px; }
  .mobile-bar { display: flex; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4,
  .staff-grid, .facility-grid, .life-grid,
  .safety-grid, .admit-grid, .contact-grid,
  .footer-cols { grid-template-columns: 1fr; }
  .ladder-grid { grid-template-columns: repeat(2, 1fr); }
  .dates-row { grid-template-columns: 1fr 1fr; }
  .zigzag { grid-template-columns: 1fr; gap: 28px; margin-bottom: 50px; }
  .zigzag:nth-child(even) .zigzag-img { order: 0; }
  .principal-grid { grid-template-columns: 1fr; }
  .principal-photo { max-width: 280px; margin: 0 auto; }
  .hero-carousel { height: calc(100vh - 60px); }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .page-hero { height: 220px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
