/* =========================================================
   旧鳌高级中学 官网样式系统 · 视觉与体验升级版
   配色：藏青（庄重·学术） + 金（荣耀·独占鳌头） + 中国红（活力）
   纯前端 · 零外部依赖 · 响应式 · 含视差/微交互/动效
   ========================================================= */

:root {
  /* 主色 —— 校徽配色 */
  --navy: #16345C;
  --navy-dark: #0E223E;
  --navy-light: #274a78;
  --gold: #C9A227;
  --gold-light: #E3C566;
  --gold-soft: #f6edd2;
  --red: #C0392B;
  --red-light: #e05a4c;

  /* 中性 */
  --bg: #F7F9FC;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --text: #1F2937;
  --text-soft: #4b5768;
  --muted: #8592a6;
  --line: #e3e8f0;
  --line-soft: #eef2f8;

  /* 渐变与光晕 */
  --navy-grad: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  --gold-grad: linear-gradient(135deg, #C9A227 0%, #E3C566 100%);

  /* 排版 */
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 系统 */
  --nav-h: 72px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 3px rgba(16, 34, 62, .05);
  --shadow-sm: 0 2px 10px rgba(16, 34, 62, .06);
  --shadow: 0 10px 30px rgba(16, 34, 62, .10);
  --shadow-lg: 0 20px 50px rgba(16, 34, 62, .16);
  --ring: 0 0 0 4px rgba(201, 162, 39, .14);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 162, 39, .05), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(22, 52, 92, .045), transparent 32%),
    var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: .5px;
  text-wrap: balance;
}

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
/* 内容层始终高于装饰视差层，避免遮挡 */
.section > .container { position: relative; z-index: 1; }

.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-grad); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

/* 章节标题 —— 增强：渐变下划线 + 柔和光晕 */
.sec-head { position: relative; text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.sec-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .28em;
  color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(26px, 4vw, 40px); position: relative; display: inline-block;
  background: linear-gradient(180deg, var(--navy) 60%, var(--navy-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-navy .sec-title { background: linear-gradient(180deg, #fff, #e9d9a6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec-title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: var(--gold-grad); margin: 16px auto 0;
  box-shadow: 0 2px 10px rgba(201, 162, 39, .35);
}
.sec-desc { color: var(--text-soft); margin-top: 16px; font-size: 16px; }
.section-navy .sec-desc { color: rgba(255, 255, 255, .82); }

/* 按钮 —— 增强：流光 + 悬浮光晕 */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: all .3s var(--ease);
  font-family: var(--sans); white-space: nowrap;
}
.btn-primary {
  background: var(--gold-grad); color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(201, 162, 39, .32);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201, 162, 39, .45); }
.btn-primary:hover::after { animation: sheen .9s var(--ease); }
@keyframes sheen { to { left: 140%; } }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }

/* =======================  导航栏  ======================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: all .35s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }
.nav .container { display: flex; align-items: center; justify-content: space-between; width: min(var(--maxw), 94%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 44px; height: 44px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }
.brand .brand-text b { display: block; font-family: var(--serif); font-size: 19px; color: var(--navy); letter-spacing: 1px; line-height: 1.1; }
.brand .brand-text span { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 15px; font-size: 15px; font-weight: 500; color: var(--text-soft);
  border-radius: 8px; transition: color .25s, background .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--navy); background: rgba(201, 162, 39, .08); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: 10px; padding: 9px 20px !important; }
.nav-cta::after { display: none; }

.hamburger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: all .3s var(--ease); }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-overlay { display: none; }

/* =======================  Hero  ======================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 25%, rgba(201, 162, 39, .28), transparent 45%), radial-gradient(circle at 12% 85%, rgba(192, 57, 43, .20), transparent 40%); }
.hero-deco { position: absolute; inset: 0; z-index: -1; opacity: .5; will-change: transform; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), rgba(227, 197, 102, .20), transparent 60%);
  transition: opacity .45s var(--ease);
}
.hero:hover .hero-glow { opacity: 1; }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding-top: var(--nav-h); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px; letter-spacing: 1px; margin-bottom: 24px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 10px var(--gold-light); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { color: #fff; font-size: clamp(38px, 7vw, 76px); line-height: 1.08; letter-spacing: 2px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-light), #fff 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-motto { font-family: var(--serif); font-size: clamp(18px, 2.6vw, 26px); letter-spacing: 8px; color: var(--gold-light); margin: 20px 0 8px; }
.hero p.lead { font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .85); max-width: 560px; margin: 18px 0 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 60px); margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); color: var(--gold-light); display: block; }
.hero-stats .stat span { font-size: 13px; color: rgba(255, 255, 255, .7); letter-spacing: 1px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: 2px; text-align: center; z-index: 1; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; margin: 0 auto 8px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--gold-light); border-radius: 3px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } }

/* 页面小头图（非首页） */
.page-hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 70px; background: var(--navy-grad); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(201, 162, 39, .25), transparent 42%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 50px); }
.page-hero .crumb { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 14px; letter-spacing: 1px; }
.page-hero .crumb a:hover { color: var(--gold-light); }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 640px; margin-top: 14px; }

/* =======================  卡片/网格通用  ======================= */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--gold), transparent 38%, transparent 62%, var(--navy-light));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold-grad); color: var(--navy-dark); box-shadow: 0 6px 16px rgba(201, 162, 39, .28);
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15px; }

/* 数据统计块 */
.stat-card { position: relative; text-align: center; padding: 30px 18px; overflow: hidden; }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .14), transparent 70%);
}
.stat-card b {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); display: block;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card b .unit { font-size: 18px; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.stat-card span { color: var(--text-soft); font-size: 14px; letter-spacing: 1px; }

/* 图文并排 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split .visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; transition: transform .5s var(--ease); }
.split .visual:hover { transform: scale(1.015); }
.prose p { color: var(--text-soft); margin-bottom: 16px; }
.prose .tag { display: inline-block; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .2em; margin-bottom: 14px; }

/* 校园风采 SVG 图块 */
.campus-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.campus-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.campus-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 16px; background: linear-gradient(transparent, rgba(14, 34, 62, .82)); color: #fff; }
.campus-tile .cap b { font-family: var(--serif); font-size: 18px; }
.campus-tile .cap span { display: block; font-size: 12px; opacity: .8; letter-spacing: 1px; }
.campus-tile svg { width: 100%; height: 100%; position: absolute; inset: 0; transition: transform .6s var(--ease); }
.campus-tile:hover svg { transform: scale(1.06); }
.campus-tile.tall { grid-row: span 2; min-height: 466px; }

/* =======================  轮播  ======================= */
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-dark); }
.carousel-track { display: flex; transition: transform .7s var(--ease); }
.slide { min-width: 100%; position: relative; }
.slide .slide-media { height: clamp(320px, 46vw, 480px); position: relative; overflow: hidden; }
.slide .slide-media svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.carousel:hover .slide.is-active .slide-media svg { transform: scale(1.05); }
.slide .slide-caption { position: absolute; left: 0; bottom: 0; right: 0; padding: clamp(28px, 5vw, 54px); background: linear-gradient(transparent, rgba(14, 34, 62, .9)); color: #fff; }
.slide .slide-caption .k { display: inline-block; background: var(--red); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 6px; margin-bottom: 12px; letter-spacing: 1px; }
.slide .slide-caption h3 { color: #fff; font-size: clamp(20px, 3vw, 30px); margin-bottom: 8px; }
.slide .slide-caption p { color: rgba(255, 255, 255, .82); max-width: 620px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .85); color: var(--navy); cursor: pointer;
  display: grid; place-items: center; z-index: 3; transition: all .25s;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.12); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.carousel-btn.prev { left: 18px; } .carousel-btn.next { right: 18px; }
.carousel-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .5); cursor: pointer; transition: all .3s; padding: 0; }
.carousel-dots button.active { background: var(--gold-light); width: 28px; border-radius: 6px; }

/* =======================  新闻列表  ======================= */
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .thumb { height: 190px; position: relative; overflow: hidden; }
.news-card .thumb svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.news-card:hover .thumb svg { transform: scale(1.06); }
.news-card .thumb .date { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .95); color: var(--navy); border-radius: 10px; text-align: center; padding: 8px 12px; box-shadow: var(--shadow-sm); }
.news-card .thumb .date b { font-family: var(--serif); font-size: 22px; display: block; line-height: 1; }
.news-card .thumb .date span { font-size: 11px; color: var(--muted); }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card .cat { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .15em; margin-bottom: 10px; }
.news-card h3 { font-size: 18px; margin-bottom: 10px; transition: color .25s; }
.news-card:hover h3 { color: var(--red); }
.news-card p { color: var(--text-soft); font-size: 14px; flex: 1; }
.news-card .more { margin-top: 16px; color: var(--navy); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s, color .25s; }
.news-card:hover .more { color: var(--red); gap: 10px; }

/* 通知列表 */
.notice-list { display: flex; flex-direction: column; gap: 2px; }
.notice-row { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); transition: all .25s; }
.notice-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.notice-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.notice-row:hover { background: var(--gold-soft); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.notice-row .n-date { font-family: var(--serif); color: var(--muted); font-size: 14px; flex: none; width: 96px; }
.notice-row .n-tag { flex: none; font-size: 12px; padding: 3px 10px; border-radius: 6px; background: var(--navy); color: #fff; }
.notice-row .n-tag.red { background: var(--red); }
.notice-row .n-title { flex: 1; font-weight: 500; color: var(--text); }
.notice-row .n-arrow { color: var(--muted); transition: transform .25s; }
.notice-row:hover .n-arrow { transform: translateX(4px); color: var(--gold); }

/* 筛选标签 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-bar button { padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); cursor: pointer; font-size: 14px; font-family: var(--sans); transition: all .25s; }
.filter-bar button.active, .filter-bar button:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }

/* 时间线（教学成果） */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.tl-item { position: relative; padding: 0 0 34px 30px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--gold); transition: transform .3s var(--ease); }
.tl-item:hover::before { transform: scale(1.25); }
.tl-item .yr { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 18px; }
.tl-item h4 { color: var(--navy); margin: 4px 0 6px; font-size: 17px; }
.tl-item p { color: var(--text-soft); font-size: 14px; }

/* 课程/项目标签块 */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-soft); font-weight: 500; transition: all .25s; }
.pill:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--gold-soft); }

/* 荣誉墙 */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.honor { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); transition: all .3s var(--ease); }
.honor:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); border-color: rgba(227, 197, 102, .5); }
.honor .medal { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--navy-dark); }
.honor span { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .92); }

/* =======================  联系 / 表单  ======================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 18px; margin: 26px 0 30px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ii { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; transition: transform .3s var(--ease); }
.info-item:hover .ii { transform: scale(1.1) rotate(-6deg); }
.info-item b { display: block; color: var(--navy); font-size: 15px; }
.info-item span { color: var(--text-soft); font-size: 14px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; min-height: 260px; background: var(--bg-alt); }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-pin { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -100%); text-align: center; }
.map-pin .dot { width: 20px; height: 20px; background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 0 auto; box-shadow: 0 4px 12px rgba(192, 57, 43, .5); animation: pin 1.8s infinite; }
.map-pin b { display: inline-block; margin-top: 12px; background: #fff; padding: 4px 12px; border-radius: 8px; font-size: 13px; color: var(--navy); box-shadow: var(--shadow-sm); white-space: nowrap; }
@keyframes pin { 0%, 100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(-6px); } }

.form-card { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: var(--sans); color: var(--text); background: var(--bg);
  transition: border-color .25s, box-shadow .25s, background .25s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: #fff; box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--red); background: #fdf3f2; }
.field .err-msg { display: none; color: var(--red); font-size: 13px; margin-top: 6px; }
.field.error .err-msg { display: block; }
.field.valid input, .field.valid select, .field.valid textarea { border-color: #2e9e5b; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.form-success .check { width: 68px; height: 68px; border-radius: 50%; background: #2e9e5b; color: #fff; display: grid; place-items: center; margin: 0 auto 18px; animation: pop .5s var(--ease) .1s both; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--text-soft); }

/* =======================  页脚  ======================= */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, .7); padding: 64px 0 0; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold-grad); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .brand .brand-text b { color: #fff; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-family: var(--sans); position: relative; padding-left: 14px; }
.footer h4::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--gold-grad); }
.footer .f-about { margin-top: 18px; font-size: 14px; line-height: 1.8; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; transition: color .2s, padding-left .2s; }
.footer ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer .f-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; align-items: flex-start; }
.footer .f-contact svg { flex: none; margin-top: 3px; color: var(--gold-light); }
.footer-bottom { text-align: center; padding: 22px 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* =======================  滚动进度条  ======================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1100;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 60%, var(--red));
  box-shadow: 0 0 12px rgba(201, 162, 39, .6); transition: width .08s linear;
}

/* =======================  视差层 + 漂浮装饰  ======================= */
.parallax-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; will-change: transform; }
.parallax-layer svg { position: absolute; opacity: .5; }

.float-deco {
  position: absolute; pointer-events: none; z-index: 1; opacity: .55; will-change: transform;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }
.float-deco svg { display: block; }
/* 让漂浮装饰在浅色区更柔和 */
.section-alt .float-deco, .section .float-deco { opacity: .4; }

/* =======================  滚动动画  ======================= */
/* 内容始终可见（永不 opacity:0），仅做位移动画入场 —— 杜绝整页空白 */
.reveal { opacity: 1; transform: translateY(34px); transition: transform .7s var(--ease); }
.reveal.in { transform: none; }
.reveal.reveal-l { transform: translateX(-46px); }
.reveal.reveal-r { transform: translateX(46px); }
.reveal.reveal-z { transform: scale(.96); }
.reveal.reveal-l.in, .reveal.reveal-r.in, .reveal.reveal-z.in { transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); z-index: 900; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(201, 162, 39, .45); }
.to-top::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(201, 162, 39, .4); animation: ring 2.4s ease-out infinite; opacity: 0; }
.to-top.show::after { opacity: 1; }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* =======================  响应式  ======================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; width: min(300px, 82%); height: calc(100vh - var(--nav-h));
    background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 20px;
    box-shadow: -10px 0 40px rgba(16, 34, 62, .16); transform: translateX(105%); transition: transform .38s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 15px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
  .nav-overlay { display: block; position: fixed; inset: 0; top: var(--nav-h); background: rgba(14, 34, 62, .45); opacity: 0; visibility: hidden; transition: opacity .35s; z-index: 999; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  /* 移动端关闭视差/倾斜以避免卡顿 */
  .float-deco, .parallax-layer { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .campus-tile.tall { grid-row: span 1; min-height: 220px; }
  .notice-row { flex-wrap: wrap; gap: 8px 14px; }
  .notice-row .n-date { width: auto; }
  .notice-row .n-title { flex-basis: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-deco, .float-deco, .parallax-layer, .hero-aurora, .marquee { display: none !important; }
  .page-transition, .accent-toggle.pop { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   体验升级 · 追加模块（纯 CSS · 不改动任何 HTML 结构）
   ========================================================= */

/* Hero 极光背景 */
.hero { position: relative; overflow: hidden; }
.hero h1, .hero h2, .hero p, .hero .hero-sub, .hero .hero-actions, .hero .hero-stats, .hero .btn, .hero .hero-type { position: relative; z-index: 2; }
.hero-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute; width: 46vw; height: 46vw; border-radius: 50%;
  filter: blur(60px); opacity: .45; mix-blend-mode: screen;
}
.hero-aurora::before { background: radial-gradient(circle, #C9A227, transparent 70%); top: -12%; left: -8%; animation: auroraA 14s ease-in-out infinite; }
.hero-aurora::after  { background: radial-gradient(circle, #16345C, transparent 70%); bottom: -16%; right: -10%; animation: auroraB 18s ease-in-out infinite; }
@keyframes auroraA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,10%) scale(1.15); } }
@keyframes auroraB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10%,-8%) scale(1.12); } }

/* 跑马灯公告条 */
.marquee { position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; align-items: center; overflow: hidden; z-index: 3; background: linear-gradient(90deg, rgba(22,52,92,.92), rgba(201,162,39,.9)); border-bottom: 1px solid rgba(227,197,102,.4); }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee-track span { padding: 0 2rem; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero 打字机标语 */
.hero-type { margin-top: 18px; font-size: clamp(.9rem,2vw,1.05rem); color: var(--gold-2); font-weight: 600; letter-spacing: .02em; min-height: 1.4em; text-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* 彩带礼花 */
.confetti { position: fixed; width: 9px; height: 14px; border-radius: 2px; z-index: 9998; pointer-events: none; will-change: transform, opacity; animation: confettiFly .9s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes confettiFly { 0% { transform: translate(-50%,-50%) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)); opacity: 0; } }

/* 页面切换转场 */
.page-transition { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #16345C 0%, #0d2240 55%, #C9A227 130%); opacity: 0; visibility: hidden; transform: scale(1.05); transition: opacity .42s var(--ease), transform .42s var(--ease), visibility .42s; pointer-events: none; }
.page-transition.cover  { opacity: 1; visibility: visible; transform: scale(1); pointer-events: all; }
.page-transition.reveal { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
.pt-logo { font-family: var(--font-serif); font-size: clamp(2.6rem,9vw,4.6rem); color: #E3C566; letter-spacing: .12em; animation: ptpulse 1.1s ease-in-out infinite; }
@keyframes ptpulse { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }

/* 配色主题切换按钮 */
.accent-toggle { position: fixed; right: 18px; bottom: 84px; z-index: 900; width: 50px; height: 50px; border: none; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--gold), var(--accent2)); color: #fff; font-size: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.22); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease), box-shadow .25s; }
.accent-toggle:hover { transform: scale(1.12) rotate(12deg); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.accent-toggle.pop { animation: accentPop .5s var(--ease); }
@keyframes accentPop { 0% { transform: scale(1); } 40% { transform: scale(1.3) rotate(40deg); } 100% { transform: scale(1); } }

/* 活力配色（一键切换） */
:root[data-accent="vibrant"] {
  --navy: #0E7C86; --navy-2: #0A5A62; --navy-3: #08474E;
  --gold: #FF6B5C; --gold-2: #FFD23F; --accent: #FF6B5C; --accent2: #0E7C86; --red: #E84393;
}

/* Logo 微交互 + 按钮按压 */
.logo:hover { animation: wiggle .6s ease; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(4deg); } }
.btn:active { transform: scale(.95); }

@media (max-width: 820px) { .accent-toggle { bottom: 74px; right: 14px; width: 46px; height: 46px; font-size: 20px; } }

/* =========================================================
   免责声明(与本站主题风格一致)
   ========================================================= */
.site-disclaimer { margin-top: 22px; padding: 14px 18px; font-size: 13px; line-height: 1.75; color: #5b6472; background: rgba(192,57,43,.06); border: 1px solid rgba(192,57,43,.22); border-radius: 10px; }
.site-disclaimer b { color: var(--red, #C0392B); }

.disclaimer-banner { position: fixed; top: var(--nav-h, 72px); left: 0; right: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 44px 9px 16px; background: linear-gradient(90deg, #16345C, #0d2240); color: #fff; font-size: 13px; line-height: 1.5; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.disclaimer-banner span { opacity: .96; }
.disclaimer-banner button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.disclaimer-banner button:hover { background: rgba(255,255,255,.3); }

/* =========================================================
   主任展示卡片
   ========================================================= */
.director-showcase { max-width: 800px; margin: 0 auto; }
.director-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  box-shadow:
    0 4px 24px rgba(22,52,92,.08),
    0 1px 4px rgba(22,52,92,.04);
  border: 1px solid rgba(22,52,92,.07);
  transition: transform .35s ease, box-shadow .35s ease;
}
.director-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(22,52,92,.14),
    0 4px 12px rgba(22,52,92,.06);
}
.director-photo {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--gold, #C9A227);
  box-shadow: 0 8px 28px rgba(201,162,39,.2);
}
.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.director-card:hover .director-photo img { transform: scale(1.05); }
.director-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  background: linear-gradient(135deg, var(--navy), #1a3a66);
  color: #E3C566;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.director-info { flex: 1; min-width: 0; }
.director-info h3 {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 4px;
  font-family: var(--serif);
}
.director-title {
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 1px;
}
.director-bio {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
  margin: 0 0 16px;
}
.director-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.director-tags li {
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(22,52,92,.06), rgba(201,162,39,.08));
  border-radius: 20px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  border: 1px solid rgba(22,52,92,.08);
}

@media (max-width: 820px) {
  .director-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 24px;
  }
  .director-photo { width: 180px; height: 180px; }
  .director-info h3 { font-size: 22px; }
  .director-tags { justify-content: center; }
}

@media (max-width: 520px) {
  .director-photo { width: 150px; height: 150px; border-radius: 12px; }
  .director-card { padding: 22px 16px; }
}
