/* ============================================================
   泸县梁才学校官方网站 - 全局样式（新版·动态交互版）
   保留原有视觉体系：校蓝 #1a6fb5 + 金色点缀 #e8a838
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a6fb5;
  --primary-dark: #14578e;
  --primary-light: #e8f2fa;
  --accent: #e8a838;
  --accent-dark: #c78f2a;
  --text: #2c3e50;
  --text-light: #5a6d7e;
  --text-muted: #8899aa;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --bg-blue: #eaf3fb;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

::selection { background: var(--primary); color: #fff; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section-gray { background: var(--bg-gray); }
.section-blue { background: var(--bg-blue); }

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 6px 18px 6px 22px;
  margin-bottom: 14px;
}

.section-head-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,111,181,0.35);
}

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.35);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 18px 42px; font-size: 1.25rem; }
.btn-sm { padding: 10px 22px; font-size: 1rem; }

/* ============================================================
   滚动渐入系统（级联延迟）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.66s var(--ease-out), transform 0.66s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 0;
  max-height: 60px;
  overflow: hidden;
}

/* 热线栏自然滚出视口；保留占位，避免滚动锚定与吸附状态反复触发。 */

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

.top-bar a { color: #fff; }
.top-bar a:hover { opacity: 0.85; }

.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-right { display: flex; gap: 16px; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}

body.scrolled .nav { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-logo .logo-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 0.4s var(--ease-out), border-radius 0.4s var(--ease-out);
}

.nav-logo:hover .logo-icon { transform: rotate(-8deg); border-radius: 50%; }

.nav-logo .logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.nav-logo:hover .logo-img { transform: scale(1.05); }

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.footer-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 4px; height: 100%; }

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 100%;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero 轮播（首页动态横幅）
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 100px 0 120px;
}

.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  pointer-events: none;
}

.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide .hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s linear;
}

.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,87,142,0.92) 0%, rgba(26,111,181,0.78) 45%, rgba(20,60,110,0.55) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* 文案入场编排：未就绪时隐藏，就绪后还原各元素自身透明度
   （用 :not 提高优先级，避免与 tagline/desc 自身 opacity 冲突） */
.hero-anim {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--hero-delay, 0ms);
}

.hero:not(.hero-ready) .hero-anim {
  opacity: 0;
  transform: translateY(26px);
}

/* 入场完成后移除过渡，保证任何环境下最终状态立即可见 */
.hero-settled .hero-anim { transition: none; }

@media print {
  .hero:not(.hero-ready) .hero-anim { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-content h1 span { color: var(--accent); font-size: 1.1em; }

.hero-content .hero-tagline {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.95;
}

.hero-content .hero-desc {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 40px;
  line-height: 1.9;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.35s var(--ease-out), background 0.35s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.18);
}

.stat-card .stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-unit { font-size: 1.3rem; font-weight: 400; }

.stat-card .stat-label {
  font-size: 1.05rem;
  margin-top: 8px;
  opacity: 0.9;
  font-weight: 500;
}

/* 轮播控制 */
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: background 0.3s;
}

.hero-dot .hero-dot-progress {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.active .hero-dot-progress { animation: dotProgress var(--hero-interval, 6000ms) linear forwards; }
.hero-slider-paused .hero-dot.active .hero-dot-progress { animation-play-state: paused; }

@keyframes dotProgress { to { transform: scaleX(1); } }

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow.prev { left: 28px; }
.hero-arrow.next { right: 28px; }

.hero-scroll-hint {
  position: absolute;
  z-index: 3;
  right: 40px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.75);
  writing-mode: vertical-rl;
}

.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: hintDrop 1.8s var(--ease-out) infinite;
}

@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Highlights 六大理由 --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.highlight-card:hover::before { transform: scaleX(1); }

.highlight-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.45s var(--ease-out), background 0.3s;
}

.highlight-card:hover .highlight-icon {
  transform: rotate(-8deg) scale(1.08);
  background: #d8e9f7;
}

.highlight-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.highlight-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================================
   特色聚焦 · 滚动驱动的图文联动（左图右文 + 进度线）
   ============================================================ */
.showcase { position: relative; }

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

.showcase-media {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background: var(--bg-gray);
}

.showcase-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

.showcase-media img.active { opacity: 1; transform: scale(1); }

.showcase-media .showcase-media-label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 2;
  background: rgba(20, 87, 142, 0.85);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.4s;
}

/* 中部进度线 + 数字计数器 */
.showcase-rail {
  position: sticky;
  top: calc(var(--nav-height) + 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 420px;
}

.showcase-rail .rail-track {
  flex: 1;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.showcase-rail .rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transition: height 0.2s linear;
}

.showcase-rail .rail-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow);
}

.showcase-rail .rail-num .rail-num-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out);
}

.showcase-rail .rail-num .rail-num-inner span {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-steps { display: flex; flex-direction: column; }

.showcase-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.showcase-step.active { opacity: 1; transform: translateY(0); }

.showcase-step .step-index {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.showcase-step h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.showcase-step p {
  font-size: 1.08rem;
  color: var(--text-light);
  line-height: 2;
}

.showcase-step .step-points { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.showcase-step .step-points span {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 16px;
}

/* --- 校园风采 / 图片画廊 --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-text h2 { font-size: 1.9rem; margin-bottom: 20px; color: var(--primary-dark); font-weight: 700; }
.about-intro-text p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 16px; line-height: 2; }

.section-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.section-img img { width: 100%; height: auto; display: block; transition: transform 0.8s var(--ease-out); }
.section-img:hover img { transform: scale(1.03); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--bg-gray);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(to top, rgba(20,40,70,0.75), transparent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* 画廊过滤器 */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-light);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-family: var(--font-family);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery-item.is-hidden { display: none; }

/* --- 灯箱 --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 20, 35, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: min(1100px, 88vw);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-out);
}

.lightbox.open img { transform: scale(1); }

.lightbox .lightbox-caption {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  background: rgba(0,0,0,0.35);
  padding: 8px 22px;
  border-radius: 999px;
}

.lightbox .lightbox-close,
.lightbox .lightbox-prev,
.lightbox .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.lightbox .lightbox-close { top: 28px; right: 32px; width: 48px; height: 48px; font-size: 1.3rem; }
.lightbox .lightbox-prev, .lightbox .lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; font-size: 1.5rem;
}
.lightbox .lightbox-prev { left: 26px; }
.lightbox .lightbox-next { right: 26px; }
.lightbox .lightbox-close:hover,
.lightbox .lightbox-prev:hover,
.lightbox .lightbox-next:hover { background: rgba(255,255,255,0.28); }

/* --- 数字滚动 --- */
.count-up { font-variant-numeric: tabular-nums; }

/* --- Features Preview --- */
.features-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-preview-item { text-align: center; }

.feature-preview-item .feature-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.feature-preview-item .feature-label {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: 500;
}

/* ============================================================
   新闻模块（首页 + 列表页共用）
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.news-list { display: flex; flex-direction: column; gap: 0; }

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}

.news-item:hover { background: var(--bg-gray); margin: 0 -20px; padding: 20px; border-radius: var(--radius); }

.news-item:hover .news-content h4 { color: var(--primary); }

.news-date {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.news-item:hover .news-date { background: var(--accent); transform: rotate(-4deg); }

.news-date .day { font-size: 1.6rem; line-height: 1; }
.news-date .month { font-size: 0.85rem; margin-top: 2px; }

.news-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.news-content p {
  font-size: 0.98rem;
  color: var(--text-light);
  line-height: 1.7;
}

.news-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.news-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-light);
}

.notice-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  cursor: pointer;
  transition: padding-left 0.25s var(--ease-out);
}

.notice-item:last-child { border-bottom: none; }
.notice-item:hover { padding-left: 8px; }
.notice-item:hover h4 { color: var(--primary); }

.notice-item h4 { font-weight: 600; margin-bottom: 4px; font-size: 1rem; transition: color 0.2s; }
.notice-item p { color: var(--text-muted); font-size: 0.88rem; }

/* 首页新闻选项卡 */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.news-tab {
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.news-tab:hover { color: var(--primary); }
.news-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(26,111,181,0.3); }

.news-panel { display: none; }
.news-panel.active { display: block; animation: panelIn 0.5s var(--ease-out); }

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

/* --- 新闻列表页卡片 --- */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.news-card .news-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-gray);
}

.news-card .news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card .news-card-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }

.news-card .news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-card .news-card-cat {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.news-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.news-card:hover h3 { color: var(--primary); }

.news-card .news-card-excerpt {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.75;
  flex: 1;
}

.news-card .news-card-more {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-card .news-card-more::after {
  content: '→';
  transition: transform 0.25s var(--ease-out);
}

.news-card:hover .news-card-more::after { transform: translateX(5px); }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-family);
  padding: 0 12px;
}

.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   新闻详情页（可读性优先的编辑排版）
   ============================================================ */
.article-wrap { max-width: 780px; margin: 0 auto; }

.article-head { text-align: center; margin-bottom: 40px; }

.article-head .article-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 18px;
}

.article-head h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 44px;
}

.article-body {
  font-size: 1.12rem;
  line-height: 2.1;
  color: #3a4a5a;
}

.article-body p { margin-bottom: 1.6em; }

.article-body p.article-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 1.8em 0 0.8em;
  font-weight: 800;
}

.article-body img {
  border-radius: var(--radius-lg);
  margin: 0.6em 0 1.2em;
  box-shadow: var(--shadow);
}

.article-body .img-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -0.8em;
  margin-bottom: 1.6em;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-tags span {
  background: var(--bg-gray);
  color: var(--text-light);
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 5px 16px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.article-nav a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.3s var(--ease-out);
  display: block;
}

.article-nav a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-nav a.disabled { opacity: 0.45; pointer-events: none; }

.article-nav .an-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.article-nav .an-title { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.article-nav a:hover .an-title { color: var(--primary); }
.article-nav .an-next { text-align: right; }

/* 阅读进度条 */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1500;
  transition: width 0.1s linear;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-banner p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 36px; }

/* --- Page Header（二级页头图） --- */
.page-header {
  position: relative;
  color: #fff;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-size: cover;
  background-position: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,87,142,0.9), rgba(26,111,181,0.72));
}

.page-header > .container { position: relative; z-index: 1; }

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.page-header .page-header-sub {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

.page-header .breadcrumb { font-size: 1.05rem; opacity: 0.85; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb span { color: rgba(255,255,255,0.6); margin: 0 6px; }

/* --- About Page --- */
.history-timeline { position: relative; padding-left: 40px; max-width: 760px; margin: 0 auto; }

.history-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary));
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--primary-light);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.timeline-item:hover::before { transform: scale(1.4); background: var(--accent); }

.timeline-item .year {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

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

.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.honor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.honor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.honor-card .honor-icon { font-size: 2.2rem; margin-bottom: 14px; }
.honor-card .honor-org { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 6px; }
.honor-card .honor-year { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); }

/* --- Features Page --- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-detail:last-child { margin-bottom: 0; }
.feature-detail.reverse .feature-detail-image { order: -1; }

.feature-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-gray);
}

.feature-detail-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.feature-detail-image:hover img { transform: scale(1.04); }

.feature-detail-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.feature-detail-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 14px;
}

.feature-detail-text ul { list-style: none; padding-left: 0; color: var(--text-light); }

.feature-detail-text ul li {
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 1rem;
  padding-left: 26px;
  position: relative;
}

.feature-detail-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.system-diagram {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 40px;
  overflow-x: auto;
}

.system-table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 640px; }

.system-table th, .system-table td {
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 1.05rem;
}

.system-table th { background: var(--primary); color: #fff; font-weight: 700; }
.system-table td { color: var(--text-light); }
.system-table tbody tr { transition: background 0.2s; }
.system-table tbody tr:hover td { background: var(--primary-light) !important; color: var(--primary-dark); }
.system-table tr:nth-child(even) td { background: var(--bg-gray); }

/* --- Group Page --- */
.group-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.group-school-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.group-school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.group-school-card .school-year {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.group-school-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.group-school-card p { font-size: 0.98rem; color: var(--text-light); }

.pathway-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 40px;
}

.pathway-step { text-align: center; padding: 36px 24px; position: relative; }

.pathway-step::after {
  content: '\2192';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
}

.pathway-step:last-child::after { display: none; }

.pathway-step .step-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.pathway-step:hover .step-icon { transform: translateY(-6px) rotate(-6deg); background: #d8e9f7; }

.pathway-step h4 { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.pathway-step p { font-size: 0.95rem; color: var(--text-light); }

/* --- Campus Page --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .service-icon { font-size: 2.2rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--primary-dark); font-weight: 700; }
.service-card p { font-size: 0.98rem; color: var(--text-light); line-height: 1.9; }

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.care-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s var(--ease-out);
}

.care-item:hover { transform: translateY(-3px); }
.care-item .care-icon { font-size: 1.8rem; flex-shrink: 0; }
.care-item h4 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 6px; font-weight: 700; }
.care-item p { font-size: 0.92rem; color: var(--text-light); }

/* --- Admission Page --- */
.admission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.admission-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--accent);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.admission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.admission-card h3 { font-size: 1.45rem; color: var(--primary-dark); margin-bottom: 16px; font-weight: 700; }
.admission-card .price-original { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; margin-bottom: 6px; }
.admission-card .price-current { font-size: 2.2rem; font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.admission-card .price-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

.steps-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 32px;
}

.step-item { text-align: center; position: relative; padding: 28px 18px; }

.step-item::after {
  content: '\2192';
  position: absolute;
  right: -10px;
  top: 40%;
  font-size: 1.5rem;
  color: var(--primary);
}

.step-item:last-child::after { display: none; }

.step-item .step-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.step-item:hover .step-circle { transform: scale(1.12); background: var(--accent); }

.step-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 0.9rem; color: var(--text-muted); }

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gift-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.gift-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.gift-card .gift-icon { font-size: 2.8rem; margin-bottom: 14px; }
.gift-card h4 { font-size: 1.1rem; color: var(--primary-dark); font-weight: 700; }

/* --- FAQ 手风琴 --- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--primary); }

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s;
}

.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.faq-a-inner {
  padding: 0 28px 26px;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.95;
}

/* --- Parents Page --- */
.communication-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comm-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.comm-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.comm-item .comm-freq {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.comm-item .comm-freq .freq-interval { font-size: 0.7rem; font-weight: 400; }
.comm-item .comm-info h4 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 6px; font-weight: 700; }
.comm-item .comm-info p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info-card h2 { font-size: 1.5rem; margin-bottom: 32px; color: var(--primary-dark); font-weight: 700; }

.contact-info-item { display: flex; gap: 18px; margin-bottom: 28px; }
.contact-info-item .ci-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 1rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item p { font-size: 1.1rem; font-weight: 600; }
.contact-info-item p a { color: var(--text); }
.contact-info-item p a:hover { color: var(--primary); }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h2 { font-size: 1.5rem; margin-bottom: 28px; color: var(--primary-dark); font-weight: 700; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,111,181,0.1);
}

.form-group .field-error {
  display: none;
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: 6px;
}

.form-group.has-error input,
.form-group.has-error textarea { border-color: #d9534f; }
.form-group.has-error .field-error { display: block; }

.form-group textarea { resize: vertical; min-height: 150px; }

/* --- Image helpers --- */
.img-fluid { width: 100%; height: auto; border-radius: var(--radius-lg); }
.img-cover { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.slide-img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* --- Footer --- */
.footer {
  background: #1a2433;
  color: #b0bec5;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 22px; font-weight: 700; }
.footer-col p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 10px; }

.footer-col a {
  display: block;
  color: #b0bec5;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}

.footer-col a:hover { color: #fff; padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Floating Actions --- */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease-out), opacity 0.3s;
  text-decoration: none;
  position: relative;
}

.floating-btn:hover { transform: scale(1.08); }

.floating-phone { background: var(--accent); color: #fff; }
.floating-consult { background: #25d366; color: #fff; }

.floating-top {
  background: #fff;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.floating-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.floating-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.floating-top svg circle {
  fill: none;
  stroke-width: 3;
}
.floating-top svg .top-ring-bg { stroke: var(--border); }
.floating-top svg .top-ring-fill {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.floating-top .top-arrow { position: relative; z-index: 1; font-size: 1.2rem; font-weight: 700; }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .nav-links a { padding: 0 10px; font-size: 0.95rem; }
  .nav-logo .logo-img { height: 40px; }
}

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .features-preview { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 24px; }
  .showcase-media { position: relative; top: 0; }
  .showcase-rail { display: none; }
  .showcase-step { min-height: 0; opacity: 1; transform: none; padding: 24px 0; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.9rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    height: auto;
  }

  .nav-links.active { display: flex; }
  .nav-links a { padding: 14px 20px; border-bottom: 1px solid var(--border); height: auto; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 70px 0 90px; min-height: 0; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content .hero-tagline { font-size: 1.3rem; }
  .hero-content .hero-desc { font-size: 1.05rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-arrow { display: none; }
  .hero-scroll-hint { display: none; }
  .highlights-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .about-intro { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr 1fr; }

  .feature-detail { grid-template-columns: 1fr; }
  .feature-detail.reverse .feature-detail-image { order: 0; }

  .group-map { grid-template-columns: 1fr 1fr; }
  .pathway-steps { grid-template-columns: 1fr; }
  .pathway-step::after { display: none; }

  .service-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr; }

  .admission-cards { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; }
  .step-item::after { display: none; }
  .gift-grid { grid-template-columns: 1fr 1fr; }

  .communication-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-preview { grid-template-columns: 1fr 1fr; }
  .news-card-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 1.7rem; }
  .page-header { padding: 70px 0; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content .hero-tagline { font-size: 1.1rem; }
  .hero-content .hero-desc { font-size: 0.95rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .group-map { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2rem; }
  .floating-actions { right: 14px; bottom: 80px; }
}

/* ===== 梁才摇篮 · 六柱互动栏目 ===== */
.cradle { margin-top: 56px; }
.cradle-head { text-align: center; margin-bottom: 30px; }
.cradle-title { width: 300px; max-width: 62vw; height: auto; }

.cradle-strip { display: flex; gap: 12px; align-items: stretch; }

.cradle-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.66s var(--ease-out), transform 0.66s var(--ease-out), flex-grow 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms;
}

.cradle-photo {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(20, 87, 142, 0.14);
  transition: box-shadow 0.5s var(--ease-out);
}
.cradle-col:hover .cradle-photo { box-shadow: 0 18px 44px rgba(20, 87, 142, 0.26); }

.cradle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.cradle-col:hover .cradle-photo img { transform: scale(1.08); }

/* 扫光 */
.cradle-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
}
.cradle-col:hover .cradle-photo::after { transform: translateX(130%); }

.cradle-desc {
  margin: 14px 2px 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-light);
  height: 8.75em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.cradle-link {
  margin: 10px 2px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cradle-col:hover .cradle-link { opacity: 1; transform: none; }

/* 桌面端手风琴展开 */
@media (hover: hover) and (min-width: 861px) {
  .cradle-strip:hover .cradle-col { flex-grow: 0.8; }
  .cradle-strip .cradle-col:hover { flex-grow: 2.1; }
}

@media (max-width: 1024px) {
  .cradle-photo { height: 340px; }
}

@media (max-width: 860px) {
  .cradle-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .cradle-photo { height: 300px; }
  .cradle-desc { height: auto; -webkit-line-clamp: 6; }
  .cradle-link { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .cradle-photo { height: 230px; }
  .cradle-title { width: 230px; }
}

/* 锚点跳转时为固定导航留出空间 */
.feature-detail[id] { scroll-margin-top: calc(var(--nav-height) + 24px); }

/* ===== 梁才摇篮 · 外框 + 标题压层 + 右上 logo（复刻原设计） ===== */
.cradle {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 46px 42px 36px;
  background: #fff;
}

.cradle-logo {
  position: absolute;
  top: 22px;
  right: 30px;
  width: 168px;
  height: auto;
  z-index: 3;
}

/* 书法字居中并压到照片最上层 */
.cradle-head {
  position: relative;
  z-index: 2;
  margin-bottom: -52px;
  pointer-events: none;
}
.cradle-title { width: 330px; }

.cradle-desc { text-align: center; }

@media (max-width: 860px) {
  .cradle { padding: 30px 20px 26px; }
  .cradle-logo { width: 116px; top: 16px; right: 18px; }
  .cradle-head { margin-bottom: -30px; }
  .cradle-title { width: 220px; }
}

/* 书法标题水平居中（覆盖全局 img 块级重置） */
.cradle-title { display: block; margin-left: auto; margin-right: auto; }
