/* ============================================
   广州实验中学官网 — 重构版样式
   主色：深海军蓝 + 金色点缀 + 米白背景
   ============================================ */

/* ===== 字体定义（流浪地球2方案） ===== */
/* 中文主力：字魂创粗黑 */
@font-face {
  font-family: '创粗黑';
  src: url('fonts/字魂59号-创粗黑.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 中文细体：字魂创细黑 */
@font-face {
  font-family: '创细黑';
  src: url('fonts/字魂57号-创细黑.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 英文&数字主力：Rajdhani Medium */
@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/Rajdhani Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 倒计时数字：DIN 1451 */
@font-face {
  font-family: 'DIN1451';
  src: url('fonts/DIN 1451 LT W06 Mittelschrift.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 首页大标题：江城黑体 900W（子集版，46KB） */
@font-face {
  font-family: '江城黑体';
  src: url('fonts/江城黑体900W-subset.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS 变量 ===== */
:root {
  --color-primary: #10215B;
  --color-primary-dark: #0A1538;
  --color-primary-light: #1E3A7A;
  --color-primary-lighter: #2D4F94;
  --color-accent: #C29C83;
  --color-accent-dark: #A8856D;
  --color-accent-light: #D4B8A3;
  --color-accent-lighter: #E8D5C7;
  --color-bg: #F7F3EF;
  --color-card: #ffffff;
  --color-text: #0F1A35;
  --color-text-secondary: #3D4A6B;
  --color-text-muted: #6B7A99;
  --color-border: #E5E0D8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: '创粗黑', '微软雅黑', 'Microsoft YaHei', sans-serif;
  --font-subtitle: '创细黑', '微软雅黑', 'Microsoft YaHei', sans-serif;
  --font-english: 'Rajdhani', 'DIN1451', 'Microsoft YaHei', sans-serif;
  --font-number: 'DIN1451', 'Rajdhani', 'Microsoft YaHei', sans-serif;
  --font-body: '微软雅黑', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* 标题统一用创粗黑（流浪地球2中文主力字体） */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: normal;
}

/* 英文标签用Rajdhani（流浪地球2英文主力字体） */
.section-label,
.hero-subtitle,
.brand-ename,
.hero-scroll-hint {
  font-family: var(--font-english);
}

/* 数字用DIN 1451（流浪地球2倒计时字体） */
.stat-number {
  font-family: var(--font-number);
}

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

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

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== 校标头部（仅logo） ===== */
.brand-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 32px;
  transition: var(--transition);
  background: transparent;
}

.brand-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 32px;
}

.brand-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-header .brand img {
  height: clamp(38px, 8vw, 50px);
  width: auto;
  flex-shrink: 0;
}

.brand-header .brand-name {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3.2vw, 1.5rem);
  font-weight: normal;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.brand-header.scrolled .brand-name {
  color: var(--color-primary);
}

.brand-header .brand-ename {
  display: block;
  font-family: var(--font-english);
  font-size: clamp(0.35rem, 1vw, 0.5rem);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.brand-header.scrolled .brand-ename {
  color: var(--color-text-muted);
}

/* ===== 顶部导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .brand img {
  height: 48px;
  width: 48px;
  transition: var(--transition);
}

.navbar .brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar .brand .brand-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  transition: var(--transition);
  letter-spacing: 1px;
}

.navbar.scrolled .brand .brand-name {
  color: var(--color-primary);
}

.navbar .brand .brand-ename {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.navbar.scrolled .brand .brand-ename {
  color: var(--color-text-muted);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar nav a {
  padding: 8px 18px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar.scrolled nav a {
  color: var(--color-text-secondary);
}

.navbar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled nav a:hover {
  color: var(--color-primary);
  background: rgba(16, 33, 91, 0.08);
}

.navbar nav a.active {
  color: #fff;
  background: rgba(194, 156, 131, 0.9);
}

.navbar.scrolled nav a.active {
  color: #fff;
  background: var(--color-primary);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 1.5rem;
}

.navbar.scrolled .menu-toggle {
  color: var(--color-primary);
}

/* ===== Hero 头部区域 ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/广实鸟瞰图.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 21, 56, 0.6) 0%,
    rgba(16, 33, 91, 0.5) 50%,
    rgba(10, 21, 56, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-accent-light);
  letter-spacing: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 4px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.3);
}

.hero-motto {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 8px;
  margin-bottom: 40px;
  font-weight: 300;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-motto .divider {
  display: inline-block;
  width: clamp(20px, 5vw, 40px);
  height: 1px;
  background: var(--color-accent);
  vertical-align: middle;
  margin: 0 clamp(8px, 3vw, 20px);
}

/* 首页专属：校名和校训放大 */
.hero-home .hero-title {
  font-family: '江城黑体', '创粗黑', '微软雅黑', sans-serif;
  font-size: clamp(2.2rem, 7vw, 6rem);
  letter-spacing: clamp(4px, 1.5vw, 8px);
  margin-bottom: 28px;
  white-space: nowrap;
  font-weight: 900;
}

.hero-home .hero-motto {
  font-size: clamp(1rem, 2.8vw, 2.5rem);
  letter-spacing: clamp(3px, 1.2vw, 10px);
  margin-bottom: 0;
  white-space: nowrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(194, 156, 131, 0.4);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(194, 156, 131, 0.5);
  background: var(--color-accent-light);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

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

/* 子页面 Hero（较小） */
.hero-page {
  height: 45vh;
  min-height: 320px;
}

.hero-page .hero-title {
  font-family: '江城黑体', '创粗黑', '微软雅黑', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

/* ===== 主内容区 ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-header .section-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.section-header .section-line {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.section-header .section-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* 左对齐标题变体 */
.section-header-left {
  text-align: left;
  margin-bottom: 48px;
}

.section-header-left .section-line {
  margin: 0;
  width: 40px;
}

.section-header-left .section-line::after {
  left: auto;
  right: -4px;
  transform: translateY(-50%);
}

/* ===== 首页：三栏内容卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 100px;
}

.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(16, 33, 91, 0.15);
  border-color: var(--color-accent);
}

.feature-card .card-image {
  width: calc(100% + 48px);
  margin: -24px -24px 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.feature-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-card:hover .card-image img {
  transform: scale(1.05);
}

.feature-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.7rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: bold;
  transition: color 0.4s ease;
  letter-spacing: 1px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 2;
  text-indent: 2em;
  transition: color 0.4s ease;
}

.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.4s ease;
  letter-spacing: 1px;
}

.feature-card .card-link:hover {
  gap: 14px;
}

/* ===== 欢迎区 ===== */
.welcome-section {
  text-align: center;
  margin-bottom: 80px;
  padding: 20px 0;
  position: relative;
}

.welcome-label {
  display: block;
  font-family: var(--font-english);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.welcome-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
  letter-spacing: 4px;
  font-weight: bold;
}

.welcome-line {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.welcome-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===== 校训展示 ===== */
.motto-display {
  text-align: center;
  margin-bottom: 56px;
  padding: 20px 0;
  position: relative;
}

.motto-display .motto-text {
  font-family: '江城黑体', '创粗黑', '微软雅黑', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 10px;
  position: relative;
  white-space: nowrap;
}

.motto-display .motto-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 3px;
  position: relative;
  font-family: var(--font-english);
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .motto-display .motto-text {
    letter-spacing: 3px;
    white-space: normal;
  }
}

/* ===== 新闻动态 ===== */
.news-section {
  margin-bottom: 80px;
  position: relative;
}

.news-section::before {
  content: 'NEWS';
  position: absolute;
  top: -20px;
  right: 0;
  font-family: var(--font-english);
  font-size: 6rem;
  font-weight: bold;
  color: rgba(16, 33, 91, 0.04);
  letter-spacing: 8px;
  pointer-events: none;
  z-index: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.news-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  border: 1px solid var(--color-border);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(16, 33, 91, 0.18);
  border-color: var(--color-accent);
}

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--color-bg);
}

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

.news-card-date {
  font-family: var(--font-english);
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.news-card-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-loading,
.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.news-error {
  color: var(--color-accent-dark);
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-card-body {
    padding: 22px 24px 26px;
  }
  .news-card-title {
    font-size: 1.5rem;
  }
  .news-card-desc {
    font-size: 0.85rem;
  }
}

/* ===== 二维码区 ===== */
.qr-section {
  text-align: center;
  margin-bottom: 80px;
  padding: 56px 40px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.qr-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.qr-section .qr-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.qr-item:hover {
  transform: translateY(-8px);
}

.qr-item img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(16, 33, 91, 0.15);
  padding: 4px;
  background: #fff;
  border: 2px solid var(--color-accent);
  transition: var(--transition);
}

.qr-item:hover img {
  box-shadow: 0 12px 32px rgba(194, 156, 131, 0.4);
  border-color: var(--color-accent-dark);
}

.qr-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.qr-item span {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: bold;
  letter-spacing: 1px;
}

/* ===== 子页面：内容布局 ===== */
.page-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 14px;
  border: none;
  letter-spacing: 3px;
}

.page-header .page-line {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.page-header .page-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.content-block {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.content-block:hover {
  box-shadow: 0 12px 36px rgba(16, 33, 91, 0.12);
}

.content-block h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 1px;
}

.content-block h2::before {
  content: '';
  width: 5px;
  height: 26px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 3px;
}

.content-block p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 2.1;
  margin-bottom: 18px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* 深色内容块变体 */
.content-block-dark {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: transparent;
}

.content-block-dark h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.15);
}

.content-block-dark h2::before {
  background: var(--color-accent);
}

.content-block-dark p {
  color: rgba(255,255,255,0.75);
}

/* 图文并排 */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-split .split-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(16, 33, 91, 0.2);
}

/* 数据统计条 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.stat-item {
  background: linear-gradient(135deg, var(--color-card) 0%, #faf8f5 100%);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(16, 33, 91, 0.15);
  border-color: var(--color-accent);
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.stat-item .stat-number .unit {
  font-size: 1.1rem;
  color: var(--color-accent);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

/* ===== 页脚 ===== */
footer {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #060D24 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 28px 28px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(194,156,131,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.footer-brand .footer-brand-text h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.footer-brand .footer-brand-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-indent: 0;
  margin: 0;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 1px;
  font-weight: bold;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: var(--transition);
  text-indent: 0;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--color-accent-light);
  padding-left: 6px;
}

.footer-col a.active {
  color: var(--color-accent);
  font-weight: 600;
  padding-left: 6px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

/* ===== WiFi 提示 ===== */
.wifi-notice {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(194,156,131,0.12), rgba(194,156,131,0.05));
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-accent);
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-top: 48px;
  letter-spacing: 0.5px;
}

.wifi-notice strong {
  color: var(--color-accent-dark);
  font-size: 1.15rem;
  font-family: var(--font-english);
  letter-spacing: 2px;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .content-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 12px 16px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar nav a {
    color: var(--color-text-secondary) !important;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
  }

  .navbar nav a:hover {
    background: var(--color-bg);
  }

  .navbar nav a.active {
    color: #fff !important;
    background: var(--color-primary) !important;
  }

  .hero {
    min-height: 480px;
  }

  .hero-motto {
    letter-spacing: 4px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .hero-motto .divider {
    width: 24px;
    margin: 0 12px;
  }

  main {
    padding: 48px 16px;
  }

  .content-block {
    padding: 28px 20px;
  }

  .feature-grid {
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .welcome-section {
    padding: 36px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 480px) {
  .navbar .brand .brand-ename {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.58rem;
    letter-spacing: 1px;
  }

  .qr-item img {
    width: 120px;
    height: 120px;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 20px 12px;
  }

  .stat-item .stat-number {
    font-size: 1.6rem;
  }
}

/* ============================================
   校园图片画廊
   ============================================ */
.campus-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.campus-gallery .gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 33, 91, 0.12);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.campus-gallery .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(16, 33, 91, 0.2);
}

.campus-gallery .gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.campus-gallery .gallery-item.wide {
  grid-column: 1 / -1;
}

.campus-gallery .gallery-item.wide img {
  height: 380px;
}

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

.facility-grid .facility-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 33, 91, 0.1);
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.facility-grid .facility-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16, 33, 91, 0.18);
}

.facility-grid .facility-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.facility-grid .facility-item .facility-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,21,56,0.95));
  color: #fff;
  padding: 40px 16px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: left;
}

/* 移动端适配 */
@media (max-width: 768px) {
  main {
    padding: 64px 20px;
  }
  .welcome-section {
    padding: 12px 0;
    margin-bottom: 48px;
  }
  .welcome-label {
    font-size: 0.7rem;
    letter-spacing: 5px;
  }
  .feature-grid {
    gap: 20px;
    margin-bottom: 64px;
  }
  .feature-card {
    padding: 32px 24px;
  }
  .content-block {
    padding: 32px 24px;
  }
  .content-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .stats-bar {
    gap: 16px;
  }
  .stat-item {
    padding: 24px 16px;
  }
  .stat-item .stat-number {
    font-size: 1.8rem;
  }
  .news-section {
    margin-bottom: 56px;
  }
  .news-section::before {
    font-size: 3.5rem;
    top: -10px;
  }
  .qr-section {
    padding: 40px 20px;
  }
  .qr-item img {
    width: 120px;
    height: 120px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .campus-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .campus-gallery .gallery-item img {
    height: 200px;
  }
  .campus-gallery .gallery-item.wide img {
    height: 240px;
  }
  .facility-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ===== 图片放大预览（FLIP动画） ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-img {
  position: fixed;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10000;
}
