/* ==========================================================================
   鲁筝艺术博物馆 · 菏泽学院音乐与舞蹈学院
   风格定位：齐鲁雅韵 · 当代博物（宣纸暖白 / 漆墨胡桃 / 朱砂印红 / 桐木古金）
   ========================================================================== */

:root {
  --bg-paper: #f6f2ea;
  --bg-light: #fdfbf7;
  --bg-dark: #191512;
  --bg-dark-card: #241e1a;
  --ink-primary: #221c18;
  --ink-secondary: #594f47;
  --ink-muted: #8a7f74;
  --ink-light: #f4efe6;
  --ink-light-muted: #bfb4a6;
  --seal-red: #9e2a22;
  --seal-red-hover: #7f1f18;
  --gold: #b58d4c;
  --gold-soft: rgba(181, 141, 76, 0.22);
  --border-light: rgba(34, 28, 24, 0.1);
  --border-dark: rgba(244, 239, 230, 0.14);
  --shadow-sm: 0 6px 20px rgba(25, 21, 18, 0.06);
  --shadow-md: 0 16px 40px rgba(25, 21, 18, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --container: 1200px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- 顶部高校联动栏 ---------- */
.uni-topbar {
  background-color: #14100e;
  color: #d6ccc0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(181, 141, 76, 0.25);
}

.uni-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 1rem;
  flex-wrap: wrap;
}

.uni-badge {
  color: #d8ba84;
  letter-spacing: 0.06em;
}

.uni-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.uni-topbar-right a:hover {
  color: #fff;
}

.uni-topbar-right .highlight-link {
  color: #f0d7a8;
  font-weight: 500;
}

.uni-topbar-right .divider {
  opacity: 0.35;
}

/* ---------- 主导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(25, 21, 18, 0.08);
  background: rgba(253, 251, 247, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.seal-mark {
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(158, 42, 34, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-primary);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.9375rem;
}

.main-nav a {
  color: var(--ink-secondary);
  position: relative;
  padding: 0.25rem 0;
  font-weight: 500;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--seal-red);
  transition: width var(--transition);
}

.main-nav a:not(.nav-cta):hover,
.main-nav a.active {
  color: var(--seal-red);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .nav-cta {
  background: var(--seal-red);
  color: #fff;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

.main-nav .nav-cta:hover {
  background: var(--seal-red-hover);
  color: #fff;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 9px;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-primary);
  font-weight: 500;
}

.mobile-nav-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.mobile-nav-links a {
  border: none;
  color: var(--seal-red);
  padding: 0;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(600px, 86vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  overflow: hidden;
  background: #14100e;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.02);
  filter: brightness(0.68) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 12, 10, 0.76) 0%, rgba(16, 12, 10, 0.62) 48%, rgba(16, 12, 10, 0.9) 100%),
    radial-gradient(ellipse at center 45%, rgba(14, 10, 8, 0.42) 0%, rgba(14, 10, 8, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5.5rem 0 4.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: #e6caa0;
  margin-bottom: 1.25rem;
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: rgba(230, 202, 160, 0.65);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 1rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  padding-left: 0.22em;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(247, 244, 238, 0.95);
  letter-spacing: 0.12em;
  margin: 0 auto 2.25rem;
  max-width: 720px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--seal-red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(158, 42, 34, 0.35);
}

.btn-primary:hover {
  background: var(--seal-red-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 239, 230, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--seal-red);
  color: var(--seal-red);
}

.btn-outline:hover {
  background: var(--seal-red);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* 首屏数据条 */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 860px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  background: rgba(20, 16, 14, 0.62);
  border: 1px solid rgba(230, 202, 160, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  gap: 1rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.5rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(230, 202, 160, 0.2);
}

.metric-num {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #ecd1a2;
  line-height: 1.2;
}

.metric-num small {
  font-size: 0.6em;
  margin-left: 2px;
}

.metric-label {
  font-size: 0.8125rem;
  color: rgba(244, 239, 230, 0.8);
  margin-top: 0.25rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 230, 0.72);
}

.scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(5px) rotate(45deg); opacity: 1; }
}

/* ---------- 通用区块样式 ---------- */
.section {
  padding: clamp(4rem, 7vw, 6.25rem) 0;
}

.section-paper {
  background-color: var(--bg-paper);
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--ink-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--seal-red);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-header-light .section-tag {
  color: #dfb97b;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.section-lead {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 1rem;
}

.section-header-light .section-lead {
  color: var(--ink-light-muted);
}

/* ---------- 序厅前言 ---------- */
.prologue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.prologue-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--seal-red);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.card-seal-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

.vertical-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  background: var(--seal-red);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-seal-header h3 {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
}

.card-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.prologue-card p {
  color: var(--ink-secondary);
  margin: 0 0 1rem;
  text-align: justify;
}

.prologue-card p:last-child {
  margin-bottom: 0;
}

/* 时间轴 */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.timeline-item {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--seal-red);
  margin-bottom: 0.45rem;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

/* ---------- 常设展区 ---------- */
.exhibition-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.65rem 1.35rem;
  border: 1px solid var(--border-light);
  background: var(--bg-paper);
  color: var(--ink-secondary);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--seal-red);
  color: var(--seal-red);
}

.tab-btn.active {
  background: var(--seal-red);
  border-color: var(--seal-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(158, 42, 34, 0.25);
}

.exhibition-panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.35s ease;
}

.exhibition-panel.active {
  display: grid;
}

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

.exhibition-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #14100e;
  aspect-ratio: 16 / 10;
}

.exhibition-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.55s ease;
}

.exhibition-media:hover img {
  transform: scale(1.03);
}

.img-zoom-badge {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  background: rgba(20, 16, 14, 0.72);
  color: #f4efe6;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.ex-number {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.exhibition-info h3 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

.exhibition-info > p {
  color: var(--ink-secondary);
  margin-bottom: 1.25rem;
}

.ex-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ex-highlights li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.ex-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal-red);
}

.ex-highlights strong {
  color: var(--ink-primary);
}

/* ---------- 互动五声音阶古筝体验器 ---------- */
.guzheng-player {
  background: linear-gradient(145deg, #251d18 0%, #1c1613 100%);
  border: 1px solid rgba(216, 186, 132, 0.28);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.guzheng-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.guzheng-player-head h3 {
  margin-bottom: 0.25rem;
  color: #f0d7a8;
  font-size: 1.3rem;
}

.guzheng-player-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-light-muted);
}

.guzheng-player-head code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: #f0d7a8;
}

.btn-mini {
  background: rgba(158, 42, 34, 0.9);
  color: #fff;
  border: 1px solid rgba(240, 215, 168, 0.35);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-mini:hover {
  background: var(--seal-red);
  transform: translateY(-1px);
}

.guzheng-board {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(181, 141, 76, 0.05) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #3b2a1d 0%, #2a1d14 100%);
  border: 1px solid rgba(216, 186, 132, 0.32);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gz-string-row {
  display: grid;
  grid-template-columns: 76px 1fr 68px;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  user-select: none;
}

.gz-string-row:hover {
  background: rgba(240, 215, 168, 0.08);
}

.gz-label {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #ecd1a2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gz-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #d6ccc0;
}

.gz-wire-wrap {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.gz-wire {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #a68452, #f5e2ba, #a68452);
  border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.gz-string-row.is-green .gz-wire {
  background: linear-gradient(90deg, #3c8f68, #7fdcb0, #3c8f68);
}

.gz-bridge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 16px;
  background: linear-gradient(180deg, #e7c995 0%, #8f6331 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.gz-string-row.plucked .gz-wire {
  animation: pluckShake 0.45s ease;
  box-shadow: 0 0 12px rgba(240, 215, 168, 0.85);
}

@keyframes pluckShake {
  0% { transform: translateY(0); }
  20% { transform: translateY(-3px); }
  45% { transform: translateY(2.5px); }
  70% { transform: translateY(-1.5px); }
  100% { transform: translateY(0); }
}

.gz-pitch {
  text-align: right;
  font-size: 0.8rem;
  color: var(--ink-light-muted);
}

.guzheng-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #d8ba84;
  text-align: center;
}

/* ---------- 经典曲目 ---------- */
.repertoire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.repertoire-header h3 {
  font-size: 1.45rem;
  margin: 0;
  color: #f4efe6;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--ink-light-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.pill:hover,
.pill.active {
  background: var(--seal-red);
  border-color: var(--seal-red);
  color: #fff;
}

.gallery-filters {
  justify-content: center;
  margin-bottom: 2.25rem;
}

.gallery-filters .pill {
  border-color: var(--border-light);
  color: var(--ink-secondary);
}

.gallery-filters .pill:hover,
.gallery-filters .pill.active {
  color: #fff;
}

.repertoire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.repertoire-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition);
}

.repertoire-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 186, 132, 0.45);
}

.repertoire-card.hidden {
  display: none;
}

.rep-type {
  display: inline-block;
  font-size: 0.75rem;
  color: #dfb97b;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.repertoire-card h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.repertoire-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-light-muted);
  line-height: 1.65;
}

/* ---------- 历代名家 ---------- */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.master-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.master-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.master-seal {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, #a83028, #7f1f18);
  color: #f7f4ee;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(247, 244, 238, 0.35);
}

.master-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.master-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.master-era {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.master-role {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--seal-red);
}

.master-body p:last-child {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-secondary);
}

/* ---------- 数字展厅画廊 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #14100e;
  box-shadow: var(--shadow-sm);
}

.gallery-item-wide {
  grid-column: span 2;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.6s ease;
}

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

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 12, 10, 0.86) 100%);
  color: #f4efe6;
  pointer-events: none;
}

.cap-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #ecd1a2;
  margin-bottom: 0.2rem;
}

.gallery-item figcaption h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- 高校美育 ---------- */
.edu-banner {
  background: linear-gradient(135deg, #fdfbf7 0%, #f1e9dc 100%);
  border: 1px solid rgba(181, 141, 76, 0.32);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
}

.edu-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.edu-content > p {
  color: var(--ink-secondary);
  max-width: 820px;
  margin-bottom: 2rem;
}

.edu-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.pillar {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
}

.pillar h4 {
  color: var(--seal-red);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.pillar p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-secondary);
}

.edu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- 参观指南 ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 2rem;
  align-items: start;
}

.visit-info-card,
.visit-form-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.visit-photo-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
}

.visit-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.visit-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visit-details > div {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.visit-details > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.visit-details dt {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--seal-red);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.visit-details dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.visit-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.form-desc {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--ink-primary);
}

.req {
  color: var(--seal-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(34, 28, 24, 0.18);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--seal-red);
  box-shadow: 0 0 0 3px rgba(158, 42, 34, 0.12);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.form-feedback.success {
  padding: 1rem 1.1rem;
  background: #eef6f0;
  border: 1px solid #9cc7a7;
  color: #1f5430;
}

.form-feedback.error {
  padding: 0.8rem 1rem;
  background: #fdf0ef;
  border: 1px solid #e2a4a0;
  color: #8f221b;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #14100e;
  color: #bfb4a6;
  padding: 3.75rem 0 2rem;
  border-top: 3px solid var(--seal-red);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-brand-row strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #f4efe6;
  letter-spacing: 0.08em;
}

.footer-brand-row span {
  font-size: 0.8rem;
  color: #d8ba84;
}

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 380px;
}

.footer-col h4 {
  color: #f4efe6;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: #ecd1a2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-right: 3.75rem;
  font-size: 0.8125rem;
  color: #8e8377;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- 高清灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(12, 10, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 2rem;
}

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

.lightbox-stage {
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin: 1rem 0 0;
  color: #e6ddd2;
  font-size: 0.92rem;
  text-align: center;
  max-width: 780px;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--seal-red);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(181, 141, 76, 0.4);
  background: rgba(25, 21, 18, 0.85);
  color: #ecd1a2;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
}

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

.back-to-top:hover {
  background: var(--seal-red);
  color: #fff;
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
  .repertoire-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .exhibition-panel {
    grid-template-columns: 1fr;
  }
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .prologue-grid,
  .edu-pillars,
  .masters-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-auto-rows: 240px;
  }
  .gallery-item-wide {
    grid-column: span 1;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .uni-topbar-inner {
    justify-content: center;
    padding: 0.35rem 0;
    text-align: center;
  }
  .form-row,
  .timeline,
  .repertoire-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .gz-string-row {
    grid-template-columns: 64px 1fr 48px;
    gap: 0.5rem;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}
