/* ==========================================================================
   南宁市邕宁区民族中学 · 官网样式
   设计基调：壮锦几何 + 靛蓝/绛紫 + 宣纸底色
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --ink: #16122b;
  --ink-soft: #4a4360;
  --ink-mute: #7c7490;
  --indigo: #241a52;
  --indigo-2: #35276f;
  --magenta: #b5166f;
  --magenta-2: #d93a86;
  --rose: #f2c4d8;
  --gold: #d9a441;
  --gold-soft: #f0d9a8;
  --paper: #fbf8f3;
  --paper-2: #f4ede2;
  --paper-3: #ece2d3;
  --white: #ffffff;
  --line: rgba(36, 26, 82, 0.12);
  --line-strong: rgba(36, 26, 82, 0.22);
  --shadow-sm: 0 2px 8px rgba(24, 16, 46, 0.06);
  --shadow-md: 0 14px 40px rgba(24, 16, 46, 0.10);
  --shadow-lg: 0 30px 80px rgba(24, 16, 46, 0.16);
  --grad-brand: linear-gradient(120deg, #2b1d5c 0%, #6c1c68 55%, #b5166f 100%);
  --grad-gold: linear-gradient(120deg, #d9a441, #f0d9a8 55%, #c68a2c);
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC",
    "STSong", "SimSun", Georgia, serif;
}

[data-theme="dark"] {
  --ink: #f6f1ea;
  --ink-soft: #cfc6bd;
  --ink-mute: #9d93a8;
  --indigo: #1a1430;
  --indigo-2: #2a1f52;
  --magenta: #e35a9d;
  --magenta-2: #ff86b8;
  --gold: #e6b75c;
  --gold-soft: #6b5327;
  --paper: #0e0b18;
  --paper-2: #151022;
  --paper-3: #1d1730;
  --white: #171226;
  --line: rgba(246, 241, 234, 0.12);
  --line-strong: rgba(246, 241, 234, 0.24);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --grad-brand: linear-gradient(120deg, #241a52 0%, #5a1a5c 55%, #a81766 100%);
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

/* 宣纸颗粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--magenta); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--indigo-2), var(--magenta));
  border-radius: 10px;
  border: 3px solid var(--paper-2);
}

/* ---------- 布局工具 ---------- */
.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--indigo); color: #f7f2ea; }
.section--ink .eyebrow { color: var(--gold-soft); }
.section--ink .section-sub { color: rgba(247, 242, 234, 0.7); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head__main { max-width: 720px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: 0.02em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--magenta), var(--indigo-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 60ch;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--magenta);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.35s var(--ease);
}
.link-more:hover { gap: 14px; }
.link-more svg { width: 16px; height: 16px; }

.btn {
  --btn-bg: var(--indigo);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.4s var(--ease), color 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(80, 20, 80, 0.28); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(80, 20, 80, 0.24);
}
.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #241a52;
}
.btn--gold::before { background: linear-gradient(120deg, #f0d9a8, #d9a441); }
.btn--gold:hover { color: #241a52; }
.btn--sm { padding: 11px 20px; font-size: 13.5px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.45s var(--ease), background 0.45s var(--ease),
    box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.site-header.is-stuck {
  height: 68px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 12, 40, 0.06);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header.is-stuck { background: rgba(251, 248, 243, 0.9); }
  [data-theme="dark"] .site-header.is-stuck { background: rgba(14, 11, 24, 0.88); }
}

.header-inner {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(80, 20, 80, 0.18);
  transition: transform 0.6s var(--ease-out);
  overflow: hidden;
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: grid; gap: 1px; line-height: 1.2; }
.brand__cn {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand__en {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(181, 22, 111, 0.06); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); transform: translateY(-1px); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }
.nav-toggle__lines {
  width: 18px;
  height: 12px;
  position: relative;
}
.nav-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.35s var(--ease);
}
.nav-toggle__lines span:nth-child(1) { top: 0; }
.nav-toggle__lines span:nth-child(2) { top: 5px; }
.nav-toggle__lines span:nth-child(3) { top: 10px; }
body.nav-open .nav-toggle__lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.nav-open .nav-toggle__lines span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 21px;
}
.drawer a span { color: var(--ink-mute); font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.1em; }
.drawer__foot { margin-top: auto; color: var(--ink-mute); font-size: 13px; padding-top: 24px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 100px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(48% 55% at 82% 22%, rgba(181, 22, 111, 0.20), transparent 62%),
    radial-gradient(42% 48% at 12% 12%, rgba(36, 26, 82, 0.16), transparent 65%),
    radial-gradient(60% 50% at 50% 100%, rgba(217, 164, 65, 0.14), transparent 70%);
  filter: blur(4px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 10%, transparent 78%);
}
.hero__glow {
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.28), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
[data-theme="dark"] .hero__badge { background: rgba(255, 255, 255, 0.04); }
.hero__badge i {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.hero__badge b { font-weight: 600; color: var(--ink); }

.hero__title {
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: 0.02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.05s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: none; } }
.hero__title em {
  font-style: normal;
  position: relative;
  color: var(--magenta);
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -2%;
  bottom: 6%;
  height: 0.16em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 164, 65, 0));
  opacity: 0.55;
}
.hero__en {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--magenta); }

/* 首屏视觉 */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
}
.emblem {
  position: relative;
  width: min(78%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4) 40%, transparent 62%),
    conic-gradient(from 210deg, #241a52, #6c1c68, #b5166f, #d9a441, #241a52);
  box-shadow: 0 40px 90px rgba(60, 12, 66, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: floaty 9s ease-in-out infinite;
}
.emblem::before {
  content: "";
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 1px dashed rgba(181, 22, 111, 0.35);
  animation: spin 46s linear infinite;
}
.emblem::after {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  border: 1px solid rgba(36, 26, 82, 0.14);
}
.emblem__inner {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 10px rgba(181, 22, 111, 0.08);
}
.emblem__inner img { width: 92%; height: 92%; object-fit: contain; border-radius: 50%; }
@keyframes floaty {
  0%, 100% { transform: translateY(-8px) rotate(-0.6deg); }
  50% { transform: translateY(10px) rotate(0.8deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: spin 60s linear infinite;
}
.orbit__dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 164, 65, 0.16);
}
.orbit__dot:nth-child(1) { top: 4%; left: 48%; }
.orbit__dot:nth-child(2) { bottom: 12%; left: 6%; background: var(--magenta); box-shadow: 0 0 0 5px rgba(181, 22, 111, 0.14); }
.orbit__dot:nth-child(3) { right: 4%; bottom: 32%; width: 6px; height: 6px; }

.glass-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--white) 72%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px) saturate(1.3);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-soft);
  animation: floaty 7s ease-in-out infinite;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .glass-card { background: rgba(255, 255, 255, 0.82); }
  [data-theme="dark"] .glass-card { background: rgba(30, 22, 50, 0.82); }
}
.glass-card b {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.glass-card b small { font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--ink-mute); margin-left: 3px; }
.glass-card span { color: var(--magenta); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; }
.glass-card--a { top: 8%; left: -2%; animation-delay: -1s; }
.glass-card--b { bottom: 12%; right: -2%; animation-delay: -3s; }
.glass-card--c { bottom: 1%; left: 6%; animation-delay: -5s; }
[data-theme="dark"] .glass-card { border-color: rgba(255, 255, 255, 0.1); }

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.scroll-hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--ink-mute), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--magenta);
  animation: scrollline 2.4s var(--ease) infinite;
}
@keyframes scrollline { 0% { top: -40%; } 100% { top: 100%; } }

/* ---------- 数据条 ---------- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  position: relative;
}
.fact:last-child { border-right: 0; }
.fact__num {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fact__num small { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.fact__label { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.fact__src { margin-top: 10px; font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.04em; }
.fact::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width 0.6s var(--ease);
}
.fact:hover::after { width: 44px; }

/* ---------- 校区 ---------- */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.campus-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.campus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.campus-card__art {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--grad-brand);
}
.campus-card--east .campus-card__art { background: linear-gradient(120deg, #1d2f5c, #4b2a6e 48%, #b5166f); }
.campus-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.campus-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 26, 0) 40%, rgba(12, 8, 26, 0.45));
}
.campus-card__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.campus-card__tag i { width: 6px; height: 6px; border-radius: 50%; background: #7ee0a8; box-shadow: 0 0 0 4px rgba(126, 224, 168, 0.22); }
.campus-card--east .campus-card__tag i { background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.22); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(217, 164, 65, 0.05); } }
.campus-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.campus-card__name {
  font-size: clamp(24px, 2.4vw, 30px);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.campus-card__name small { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-mute); text-transform: uppercase; }
.campus-card__addr {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.campus-card__addr svg { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--magenta); }
.campus-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.campus-card__stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
}
.campus-card__stats b small { font-family: var(--font-sans); font-size: 11px; color: var(--ink-mute); font-weight: 500; margin-left: 2px; }
.campus-card__stats span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 6px; }
.campus-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.campus-card__status { font-size: 12px; color: var(--ink-mute); }

/* 校区示意图 */
.campus-map {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  padding: 26px;
}
.campus-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.campus-map__legend { display: flex; gap: 18px; }
.campus-map__legend span { display: inline-flex; align-items: center; gap: 7px; }
.campus-map__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }
.campus-map__legend span:last-child i { background: var(--gold); }
.campus-map svg { width: 100%; height: auto; }
.campus-map__canvas { overflow: hidden; }
.campus-map__canvas::-webkit-scrollbar { height: 6px; }
.campus-map__canvas::-webkit-scrollbar-thumb { background: var(--line-strong); border: 0; border-radius: 99px; }
.campus-map .draw-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 2.2s var(--ease-out);
}
.campus-map.is-inview .draw-path { stroke-dashoffset: 0; }

/* ---------- 文化 ---------- */
.culture {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.motto {
  position: relative;
  padding: 44px 38px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 82% 8%, rgba(217, 164, 65, 0.38), transparent 62%),
    radial-gradient(70% 60% at 10% 100%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--grad-brand);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.motto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 140px;
  opacity: 0.14;
  mix-blend-mode: overlay;
}
.motto::after {
  content: "校训";
  position: absolute;
  right: 22px;
  bottom: -18px;
  font-family: var(--font-serif);
  font-size: 130px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}
.motto__label { font-size: 11px; letter-spacing: 0.34em; color: var(--gold-soft); }
.motto__text {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.28;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}
.motto__text span { display: block; }
.motto__text span + span { padding-left: 1.6em; color: var(--gold-soft); }
.motto__en {
  margin-top: 24px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}
.motto__foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
}

.culture-list { display: grid; gap: 10px; }
.culture-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
  border-radius: var(--radius-sm);
}
.culture-item:hover { padding-left: 16px; background: rgba(181, 22, 111, 0.035); }
.culture-item__idx {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--magenta);
  padding-top: 5px;
}
.culture-item h3 { font-size: 18px; margin-bottom: 6px; }
.culture-item p { font-size: 14px; color: var(--ink-soft); }
.culture-item b { color: var(--ink); font-weight: 600; letter-spacing: 0.08em; }

/* ---------- 特色卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  position: relative;
  padding: 34px 30px 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 22, 111, 0.10), transparent 66%);
  transition: transform 0.6s var(--ease);
}
.feature:hover::before { transform: scale(1.3); }
.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(181, 22, 111, 0.10), rgba(36, 26, 82, 0.06));
  color: var(--magenta);
  margin-bottom: 24px;
}
.feature__icon svg { width: 25px; height: 25px; }
.feature__no {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 资讯 ---------- */
.news-list { display: grid; gap: 0; }
.news-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 8px;
  border-top: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row:hover { background: rgba(181, 22, 111, 0.035); padding-left: 20px; padding-right: 20px; }
.news-row__date {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.news-row__date b { display: block; font-size: 26px; color: var(--ink); line-height: 1.1; }
.news-row__main h3 { font-size: 17.5px; font-family: var(--font-sans); font-weight: 600; line-height: 1.5; }
.news-row__main p { margin-top: 6px; font-size: 13px; color: var(--ink-mute); }
.news-row__tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--magenta);
  border: 1px solid rgba(181, 22, 111, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.news-row__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease), border-color 0.4s;
  flex: none;
}
.news-row:hover .news-row__arrow { background: var(--indigo); color: #fff; border-color: transparent; transform: rotate(-45deg); }
.news-row__arrow svg { width: 16px; height: 16px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 76px);
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 36px;
  align-items: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/pattern.svg");
  background-size: 160px;
  opacity: 0.16;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.35), transparent 62%);
  z-index: -1;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn--ghost:hover { color: #241a52; background: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--indigo);
  color: rgba(247, 242, 234, 0.72);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 150px;
  opacity: 0.06;
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 2px; }
.footer-brand h3 { color: #fff; font-size: 18px; letter-spacing: 0.04em; }
.footer-brand p { margin-top: 8px; font-size: 12px; line-height: 1.7; color: rgba(247, 242, 234, 0.55); }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col li + li { margin-top: 11px; }
.footer-col a, .footer-col span { font-size: 13.5px; color: rgba(247, 242, 234, 0.68); transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 11.5px;
  color: rgba(247, 242, 234, 0.45);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 子页面页头 ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 6vw, 84px)) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(181, 22, 111, 0.14), transparent 60%),
    radial-gradient(50% 80% at 0% 20%, rgba(217, 164, 65, 0.12), transparent 65%);
}
.page-hero__crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.page-hero__crumb a:hover { color: var(--magenta); }
.page-hero__crumb svg { width: 12px; height: 12px; opacity: 0.5; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: 0.03em; }
.page-hero p { margin-top: 18px; max-width: 62ch; color: var(--ink-soft); font-size: 15.5px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 12px; color: var(--ink-mute); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-hero__meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); }

/* ---------- 校区切换 ---------- */
.campus-switch {
  display: inline-flex;
  position: relative;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}
.campus-switch__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
.campus-switch__btn[aria-selected="true"] { color: #fff; }
.campus-switch__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 999px;
  background: var(--grad-brand);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
  z-index: 0;
  box-shadow: 0 8px 20px rgba(90, 20, 80, 0.25);
}
.campus-panel { display: none; }
.campus-panel.is-active { display: block; animation: panelIn 0.6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

.campus-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.campus-hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--grad-brand);
  box-shadow: var(--shadow-md);
}
.campus-hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.campus-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 6, 22, 0.5));
}
.campus-hero__caption {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 22px;
  right: 26px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.campus-hero__caption b { font-family: var(--font-serif); font-size: 26px; letter-spacing: 0.04em; }
.campus-hero__caption span { font-size: 11px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.7); }
[data-theme="dark"] .campus-hero__art { background: linear-gradient(120deg, #2a1d5e, #5a1a56 60%, #8f1554); }

.campus-hero__info { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.campus-hero__info h2 { font-size: clamp(30px, 3.4vw, 42px); }
.campus-hero__info .addr { margin-top: 12px; color: var(--ink-soft); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.campus-hero__info .addr svg { width: 16px; height: 16px; margin-top: 4px; color: var(--magenta); flex: none; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 26px 0;
  border-top: 1px solid var(--line);
}
.spec { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.spec:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.spec b { font-family: var(--font-serif); font-size: 26px; display: block; line-height: 1.2; }
.spec b small { font-family: var(--font-sans); font-size: 12px; color: var(--ink-mute); font-weight: 500; margin-left: 3px; }
.spec span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; letter-spacing: 0.04em; }
.campus-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip--gold { background: rgba(217, 164, 65, 0.12); border-color: rgba(217, 164, 65, 0.35); color: #8a6415; }
[data-theme="dark"] .chip--gold { color: var(--gold); }

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(217, 164, 65, 0.10);
  border: 1px solid rgba(217, 164, 65, 0.3);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 22px;
}
.notice svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }
.notice b { color: var(--ink); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--white);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 14px;
}
table.compare th,
table.compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.compare thead th {
  background: var(--paper-2);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  font-weight: 600;
}
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr { transition: background 0.3s; }
table.compare tbody tr:hover { background: rgba(181, 22, 111, 0.035); }
table.compare td:first-child { color: var(--ink-mute); font-size: 13px; white-space: nowrap; }
table.compare td b { font-family: var(--font-serif); font-size: 16px; }

/* ---------- 资讯页 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.filter-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.filter-btn[aria-pressed="true"] {
  background: var(--indigo);
  color: #fff;
  border-color: transparent;
}
.archive { display: grid; gap: 0; }
.archive-item {
  display: grid;
  grid-template-columns: 150px 1fr 130px;
  gap: 28px;
  padding: 30px 6px;
  border-top: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.archive-item:last-child { border-bottom: 1px solid var(--line); }
.archive-item:hover { background: rgba(181, 22, 111, 0.03); padding-inline: 18px; }
.archive-item__meta { font-size: 12px; color: var(--ink-mute); display: grid; gap: 6px; align-content: start; }
.archive-item__meta b { font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.archive-item h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; line-height: 1.55; }
.archive-item h3 a:hover { color: var(--magenta); }
.archive-item p { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.archive-item__source {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.archive-item__source i { width: 5px; height: 5px; border-radius: 50%; background: #2f9e6b; }
.archive-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.badge-cat {
  font-size: 11px;
  color: var(--magenta);
  border: 1px solid rgba(181, 22, 111, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-mute); }
.arrow-link:hover { color: var(--magenta); }
.arrow-link svg { width: 14px; height: 14px; }

/* ---------- 招生 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--magenta);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 13px; color: var(--ink-soft); }
.step::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }

.faq { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] { border-color: rgba(181, 22, 111, 0.3); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--magenta);
  transition: transform 0.35s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; font-size: 14px; color: var(--ink-soft); }
.faq-item__body a { color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-card h3 { font-size: 20px; margin-bottom: 18px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-mute); }
.contact-card dd { margin: 3px 0 0; font-size: 15px; }
.contact-card dd a:hover { color: var(--magenta); }

/* ---------- 关于 ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--magenta), var(--line) 70%);
}
.timeline__item { position: relative; padding: 0 0 38px 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--magenta);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline__year { font-family: var(--font-serif); font-size: 24px; color: var(--magenta); letter-spacing: 0.04em; }
.timeline__item h3 { font-size: 18px; margin: 6px 0 8px; }
.timeline__item p { font-size: 14px; color: var(--ink-soft); }

.emblem-story {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.emblem-story__img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #f4e9f3 70%);
  box-shadow: inset 0 0 0 1px rgba(181, 22, 111, 0.12), var(--shadow-sm);
}
.emblem-story__img img { width: 78%; border-radius: 50%; }
.emblem-story h3 { font-size: 24px; margin-bottom: 14px; }
.emblem-story p { font-size: 14px; color: var(--ink-soft); }
.emblem-story ul { margin-top: 18px; display: grid; gap: 10px; }
.emblem-story li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.emblem-story li::before { content: "—"; color: var(--gold); }

.source-list { display: grid; gap: 12px; }
.source-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 13.5px;
}
.source-item time { color: var(--ink-mute); font-size: 12px; letter-spacing: 0.04em; }
.source-item b { font-weight: 600; }
.source-item a { color: var(--magenta); border-bottom: 1px solid rgba(181, 22, 111, 0.3); }
.source-item a:hover { border-bottom-color: var(--magenta); }
.source-item span { display: block; color: var(--ink-mute); font-size: 12px; margin-top: 4px; }

/* ---------- 动效 ---------- */
/* 只在 JS 可用（html.js-ready）时隐藏待入场元素；脚本失效时正文照常可见 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js-ready [data-reveal].is-inview { opacity: 1; transform: none; }
/* 3 秒兜底：main.js 初始化异常时强制显形，不留白屏 */
.reveal-fallback [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* 指针光晕 */
.pointer-glow {
  position: fixed;
  z-index: 1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(181, 22, 111, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .pointer-glow { mix-blend-mode: screen; background: radial-gradient(circle, rgba(217, 164, 65, 0.10), transparent 62%); }
.pointer-glow.is-on { opacity: 1; }

/* 跳转链接 */
.skip-link:focus {
  left: 16px !important;
  top: 16px !important;
  border-radius: 8px;
}

/* 倾斜卡片过渡更跟手 */
[data-tilt] {
  transition: transform 0.25s var(--ease), box-shadow 0.55s var(--ease),
    border-color 0.4s var(--ease);
  will-change: transform;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
  box-shadow: var(--shadow-sm);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--indigo); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* 顶部进度条 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--magenta), var(--indigo-2));
  z-index: 100;
  pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__title { font-size: clamp(44px, 9vw, 76px); }
  .hero__lede { max-width: 60ch; }
  .culture { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .feature { padding: 28px 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .campus-hero { grid-template-columns: 1fr; }
  .campus-hero__art { min-height: 320px; }
  .archive-item { grid-template-columns: 120px 1fr; }
  .archive-item__side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .emblem-story { grid-template-columns: 220px 1fr; }
  .history-grid,
  .faq-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .header-actions .btn { display: none; }
  .brand__en { display: none; }
  .brand__cn { font-size: 15.5px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .campus-grid { grid-template-columns: 1fr; }
  .campus-card { min-height: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 74px 1fr auto; gap: 16px; }
  .news-row__tag { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .site-footer { padding-top: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .emblem-story { grid-template-columns: 1fr; text-align: left; }
  .emblem-story__img { max-width: 220px; }
  .scroll-hint { display: none; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 54px); }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 36px); gap: 12px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__title { font-size: clamp(38px, 12vw, 56px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__meta { gap: 10px 18px; }
  .glass-card { padding: 10px 14px; }
  .glass-card b { font-size: 19px; }
  .glass-card--a { left: -1%; top: 4%; }
  .glass-card--b { right: -1%; bottom: 14%; }
  .glass-card--c { display: none; }
  .fact { padding: 24px 16px; }
  .fact__num { font-size: 32px; }
  .fact__src { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .motto { padding: 34px 24px; }
  .motto__text { font-size: clamp(32px, 9vw, 42px); }
  .motto::after { font-size: 90px; }
  .news-row { grid-template-columns: 1fr auto; gap: 10px; padding: 20px 4px; }
  .news-row__date { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
  .news-row__date b { font-size: 18px; }
  .news-row__main h3 { font-size: 16px; }
  .news-row:hover { padding-left: 12px; padding-right: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .campus-switch { width: 100%; }
  .campus-switch__btn { flex: 1; padding: 11px 12px; font-size: 13px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .archive-item { grid-template-columns: 1fr; gap: 12px; }
  .archive-item__meta { display: flex; align-items: baseline; gap: 10px; }
  .archive-item__meta b { font-size: 18px; }
  .archive-item__side { grid-column: auto; }
  .source-item { grid-template-columns: 1fr; gap: 6px; }
  .page-hero p { font-size: 14.5px; }
  .page-hero h1 { font-size: clamp(31px, 8.4vw, 42px); }
  .cta-band { border-radius: var(--radius-lg); padding: 32px 24px; }
  .to-top { right: 16px; bottom: 16px; }
  .campus-hero__caption b { font-size: 21px; }
  .emblem { width: 82%; }
  .pointer-glow { display: none; }
  .campus-map { padding: 20px 0 14px; }
  .campus-map__head { padding: 0 20px; }
  .campus-map__canvas { overflow-x: auto; padding: 0 20px 6px; }
  .campus-map__canvas svg { min-width: 720px; }
  .campus-map__head span:first-child::after { content: " · 左右滑动"; color: var(--magenta); }
  table.compare { min-width: 0; font-size: 12.5px; }
  table.compare th, table.compare td { padding: 12px 8px; }
  table.compare td:first-child { width: 82px; font-size: 10.8px; white-space: nowrap; padding-right: 4px; }
  table.compare td b { font-size: 13.5px; }
  .table-wrap { border-radius: var(--radius-sm); }
}

/* ---------- 无障碍 / 打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  /* 系统开启"减少动态效果"时：不做大幅位移，但保留足够长的淡变，
     否则内容瞬间替换，观感更生硬 */
  #main.is-leaving { transition-duration: .14s !important; transform: none !important; }
  #main.is-entering { transform: translateY(6px) !important; }
  #main.is-entered {
    transition-duration: .34s !important;
    transform: none !important;
  }
}

@media print {
  .site-header, .to-top, .pointer-glow, .scroll-hint, .progress-bar, .drawer { display: none !important; }
  body { background: #fff; }
  .section { padding: 24px 0; }
  a { text-decoration: underline; }
}


/* ---------- 单页应用（路由切换） ---------- */
#main { min-height: 62vh; overflow-anchor: none; view-transition-name: page; }

/* 原生快照过渡：旧页轻微上浮淡出，新页自下而上浮现 */
::view-transition-old(page) {
  animation: pageOut .22s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(page) {
  animation: pageIn .44s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-14px) scale(.996); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
}
#main.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease-in, transform .18s ease-in;
}
#main.is-entering { opacity: .18; transform: translateY(10px); transition: none; }

/* 切换时定格的旧画面：新内容替换期间覆盖在上方，避免空白帧 */
.view-ghost-wrap {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg, #fbf8f3);
  will-change: opacity;
}
.view-ghost-wrap #main, .view-ghost-wrap main { min-height: 0; }
#main.is-entered {
  opacity: 1; transform: none;
  transition: opacity .42s cubic-bezier(.16, 1, .3, 1),
              transform .42s cubic-bezier(.16, 1, .3, 1);
}
.view-loader { display: grid; place-items: center; min-height: 68vh; }
.view-loader span {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(120, 100, 150, .18);
  border-top-color: #b5166f;
  animation: pageSpin .85s linear infinite;
}
@keyframes pageSpin { to { transform: rotate(360deg); } }

::view-transition-old(page) { animation: pageLeave .18s ease-in both; }
::view-transition-new(page) { animation: pageEnter .32s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes pageLeave { to { opacity: 0; transform: translateY(-6px); } }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } }

/* 降级：不支持 View Transitions 时用一个轻量的淡入 */
.view-fade { animation: pageEnter .28s cubic-bezier(.22, .61, .36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page), ::view-transition-new(page) { animation: none; }
  .view-fade { animation: none; }
  .view-loader span { animation-duration: 2s; }
}
