/* ============================================================
   信宜中学 11 周年校庆官网 — 主样式
   1. 基础重置   2. 通用排版   3. 组件   4. 版块   5. 响应式
   ============================================================ */

/* ============ 1. 基础重置 ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-cn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
::selection { background: var(--gold-300); color: var(--teal-900); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--teal-200); border-radius: 99px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--teal-300); }

/* ============ 2. 通用排版 & 工具类 ============ */
.u-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.u-container--text { max-width: calc(var(--maxw-text) + var(--gutter) * 2); }
.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-cover { width: 100%; height: 100%; object-fit: cover; }

/* 版块 */
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }
.section--deep { background: var(--teal-900); color: var(--paper); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 860px; }

/* 英文小标（杂志式眉标） */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-2xs); letter-spacing: var(--ls-wider);
  text-transform: uppercase; color: var(--gold-600);
  font-family: var(--font-en); font-weight: 600;
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold-500); flex: none;
}
.section--deep .eyebrow { color: var(--gold-400); }
.section--deep .eyebrow::before { background: var(--gold-400); }

/* 拆分式大标题 */
.title-split {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--teal-900);
  letter-spacing: .01em;
}
.title-split span { display: block; }
.title-split .indent { padding-left: clamp(1.5rem, 6vw, 6rem); }
.section--deep .title-split { color: var(--paper); }

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--muted);
  max-width: var(--maxw-text);
  margin-top: var(--sp-6);
}
.section--deep .lead { color: var(--teal-200); }

.body { color: var(--ink-2); max-width: var(--maxw-text); }
.body + .body { margin-top: var(--sp-4); }

/* 序号 / 章节编号 */
.sec-no {
  font-family: var(--font-en);
  font-size: var(--fs-3xs);
  letter-spacing: var(--ls-wider);
  color: var(--faint);
  font-weight: 600;
}

/* 金色分隔短线 */
.rule { width: 56px; height: 2px; background: var(--gold-500); margin-top: var(--sp-6); }

/* 文本高亮（暖金） */
mark, .hl { background: linear-gradient(transparent 62%, var(--gold-100) 62%); color: inherit; padding: 0 .1em; }

/* ============ 3. 组件 ============ */
/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: .82em 1.6em;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .06em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn--primary { background: var(--teal-800); color: var(--paper); }
.btn--primary:hover { background: var(--teal-900); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold-500); color: #2A2113; }
.btn--gold:hover { background: var(--gold-600); color: #fff; box-shadow: var(--shadow-gold); }
.btn--ghost { border-color: var(--line); color: var(--teal-800); background: transparent; }
.btn--ghost:hover { border-color: var(--teal-700); background: var(--teal-100); }
.btn--light { border-color: rgba(247,244,238,.35); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--teal-900); border-color: var(--paper); }
.btn--sm { padding: .6em 1.15em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* 文字链（带下划线动画） */
.link-u {
  position: relative; display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--fs-sm); color: var(--teal-700); font-weight: 500;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); }
.link-u .arw { transition: transform var(--dur-fast) var(--ease-out); }
.link-u:hover .arw { transform: translateX(4px); }

/* --- 标签 --- */
.tag {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .8em; border-radius: var(--r-pill);
  font-size: var(--fs-3xs); letter-spacing: .08em; font-weight: 500;
  background: var(--gold-100); color: var(--gold-700);
}
.tag--teal { background: var(--teal-100); color: var(--teal-700); }
.tag--line { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* --- 卡片 --- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }

/* --- 表单 --- */
.field { display: block; margin-bottom: var(--sp-4); }
.field__label {
  display: block; font-size: var(--fs-2xs); letter-spacing: .1em;
  color: var(--muted); margin-bottom: var(--sp-2); font-weight: 500;
}
.input, .select, .textarea {
  width: 100%; padding: .8em 1em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(34,127,119,.12);
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh-normal); }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236E6B63' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-note { font-size: var(--fs-2xs); color: var(--faint); margin-top: var(--sp-3); line-height: 1.6; }

/* --- 图片框（含比例控制 + 素材槽位） --- */
.figure {
  position: relative; overflow: hidden; background: var(--paper-3);
  border-radius: var(--r-sm);
}
.figure img { width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow); }
.figure--zoom:hover img { transform: scale(1.045); }
.figure--3x2  { aspect-ratio: 3 / 2; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--1x1  { aspect-ratio: 1 / 1; }
.figure--3x4  { aspect-ratio: 3 / 4; }
.figure--21x9 { aspect-ratio: 21 / 9; }
.figure--fill { height: 100%; }

.figcap {
  margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--faint);
  line-height: 1.6; letter-spacing: .02em;
}

/* --- 滚动渐入 --- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.96); }
.is-revealed[data-reveal] { opacity: 1; transform: none; }

/* ============ 4. 版块 ============ */

/* ---------- 4.0 载入遮罩 ---------- */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: var(--paper); display: grid; place-items: center;
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__mark {
  width: 64px; height: 64px; margin: 0 auto var(--sp-5);
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--fs-lg); color: var(--teal-800);
  animation: pulse 1.8s var(--ease-inout) infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.94); opacity: .65 } }
.preloader__txt { font-size: var(--fs-2xs); letter-spacing: var(--ls-wider); color: var(--faint); }

/* ---------- 4.1 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              height var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(247,244,238,.9);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
  height: 66px;
}
.nav.is-hidden { transform: translateY(-100%); }
/* 首屏之上（深色背景）时的导航配色 */
.nav.is-top { background: transparent; border-bottom-color: transparent; }
.nav.is-top .nav__name { color: var(--paper); }
.nav.is-top .nav__sub { color: rgba(247,244,238,.6); }
.nav.is-top .nav__link { color: rgba(247,244,238,.82); }
.nav.is-top .nav__link:hover { color: #fff; }
.nav.is-top .nav__date { color: var(--gold-300); border-color: rgba(194,160,99,.45); }
.nav.is-top .nav__burger { border-color: rgba(247,244,238,.35); }
.nav.is-top .nav__burger span,
.nav.is-top .nav__burger span::before,
.nav.is-top .nav__burger span::after { background: var(--paper); }
.nav.is-top .nav__emblem { background: rgba(247,244,238,.1); border-color: rgba(247,244,238,.22); }
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: var(--sp-6);
}
.nav__brand { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.nav__emblem {
  width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  display: grid; place-items: center;
}
.nav__emblem img { width: 100%; height: 100%; object-fit: contain; }
.nav__names { line-height: 1.25; }
.nav__name {
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600;
  color: var(--teal-900); letter-spacing: .06em;
}
.nav.is-solid .nav__name, .nav__name { color: var(--teal-900); }
.nav__sub { font-size: var(--fs-3xs); letter-spacing: var(--ls-wide); color: var(--faint); font-family: var(--font-en); }

.nav__menu { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); margin-left: auto; }
.nav__link {
  position: relative; font-size: var(--fs-sm); color: var(--ink-2);
  padding-block: .4em; transition: color var(--dur-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--teal-800); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.nav__date {
  font-size: var(--fs-3xs); letter-spacing: .1em; color: var(--gold-700);
  border: 1px solid var(--gold-300); border-radius: var(--r-pill);
  padding: .38em .9em; white-space: nowrap;
}
.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); place-items: center;
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: var(--teal-800); position: relative;
  transition: background var(--dur-fast);
}
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--teal-800);
  transition: transform var(--dur) var(--ease-out);
}
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: var(--paper); padding: calc(var(--nav-h) + var(--sp-8)) var(--gutter) var(--sp-8);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer__link {
  font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--teal-900);
  padding-block: var(--sp-4); border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.drawer__link small { font-family: var(--font-en); font-size: var(--fs-3xs); color: var(--faint); letter-spacing: var(--ls-wide); }
.drawer__foot { margin-top: auto; padding-top: var(--sp-8); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 4.2 首屏 ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--teal-900);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-xslow) var(--ease-out); }
.hero__media video.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(11,52,50,.88) 0%, rgba(11,52,50,.45) 42%, rgba(11,52,50,.18) 70%, rgba(11,52,50,.32) 100%),
    linear-gradient(to right, rgba(11,52,50,.5), transparent 60%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter) clamp(4rem, 9vh, 7rem);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-2xs); letter-spacing: var(--ls-wider); font-family: var(--font-en);
  color: var(--gold-300); text-transform: uppercase; margin-bottom: var(--sp-6);
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-400); }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-5xl); line-height: 1.02; letter-spacing: .01em;
  color: #FBF8F2; margin-bottom: var(--sp-6);
}
.hero__title span { display: block; overflow: hidden; }
.hero__title span > i {
  display: block; font-style: normal;
  transform: translateY(105%);
  animation: riseIn 1.1s var(--ease-out) forwards;
}
.hero__title span:nth-child(1) > i { animation-delay: .15s; }
.hero__title span:nth-child(2) > i { animation-delay: .3s; }
.hero__title .gold { color: var(--gold-300); }
@keyframes riseIn { to { transform: translateY(0); } }

.hero__sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8);
  color: rgba(247,244,238,.82); font-size: var(--fs-md);
  padding-top: var(--sp-6); border-top: 1px solid rgba(247,244,238,.2);
  max-width: 760px;
}
.hero__sub b { font-weight: 500; color: var(--gold-200, var(--gold-300)); letter-spacing: .04em; }
.hero__meta { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); }
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); }

/* 首屏角落：校徽 + 校训 */
.hero__corner {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem));
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-4);
  text-align: right;
}
.hero__motto {
  writing-mode: vertical-rl; font-family: var(--font-display);
  font-size: var(--fs-md); letter-spacing: .5em; color: rgba(247,244,238,.9);
  border-right: 1px solid rgba(247,244,238,.3); padding-right: var(--sp-3);
}
.hero__seal {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(247,244,238,.35);
  display: grid; place-items: center; backdrop-filter: blur(4px);
  background: rgba(11,52,50,.28);
}
.hero__seal img { width: 66%; height: 66%; object-fit: contain; }
.hero__seal-txt { font-family: var(--font-en); font-size: 1.35rem; color: var(--gold-300); }

/* 向下滚动引导 */
.hero__cue {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(1.25rem, 3vh, 2.25rem);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: rgba(247,244,238,.7); font-size: var(--fs-3xs); letter-spacing: var(--ls-wider);
}
.hero__cue i {
  display: block; width: 1px; height: 54px;
  background: linear-gradient(to bottom, rgba(247,244,238,.7), transparent);
  position: relative; overflow: hidden;
}
.hero__cue i::after {
  content: ""; position: absolute; top: -54px; left: 0; width: 1px; height: 54px;
  background: var(--gold-300); animation: cueDrop 2.4s var(--ease-inout) infinite;
}
@keyframes cueDrop { 0% { transform: translateY(0) } 60%,100% { transform: translateY(108px) } }

/* ---------- 4.3 开篇引言 ---------- */
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.intro__quote {
  font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.5;
  color: var(--teal-900); font-weight: 500;
}
.intro__sign { margin-top: var(--sp-6); display: flex; align-items: center; gap: var(--sp-4); }
.intro__portrait { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: var(--paper-3); }
.intro__portrait img { width: 100%; height: 100%; object-fit: cover; }
.intro__sign-txt { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.intro__sign-txt b { display: block; color: var(--teal-800); font-weight: 600; font-size: var(--fs-base); }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-6); margin-top: var(--sp-16); }
.stat { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.stat__num { font-family: var(--font-en); font-size: var(--fs-3xl); color: var(--teal-800); line-height: 1; }
.stat__num em { font-style: normal; color: var(--gold-600); font-size: .55em; margin-left: .15em; }
.stat__label { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); letter-spacing: .06em; }

/* ---------- 4.4 校史时间轴 ---------- */
.history__tools {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  margin-bottom: var(--sp-12); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line-soft);
}
.search {
  position: relative; flex: 1 1 280px; max-width: 380px;
}
.search .input { padding-left: 2.6em; }
.search__icon { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: .45em 1em; border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--muted); transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--teal-300); color: var(--teal-700); }
.chip.is-on { background: var(--teal-800); border-color: var(--teal-800); color: var(--paper); }

.timeline { position: relative; padding-block: var(--sp-4); }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 6%, var(--line) 94%, transparent);
  transform: translateX(-50%);
}
.tl-node {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem); align-items: center;
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.tl-node__media { grid-column: 1; }
.tl-node__body  { grid-column: 2; }
.tl-node:nth-child(even) .tl-node__media { grid-column: 2; grid-row: 1; }
.tl-node:nth-child(even) .tl-node__body  { grid-column: 1; grid-row: 1; text-align: right; }
.tl-node:nth-child(even) .tl-node__body .tl-node__tags { justify-content: flex-end; }
.tl-node:nth-child(even) .tl-node__body .tl-node__text { margin-left: auto; }

.tl-node__dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold-500); z-index: 2;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.tl-node__dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-500);
  transition: transform var(--dur) var(--ease-out);
}
.tl-node.is-revealed .tl-node__dot { background: var(--gold-100); }

.tl-node__year {
  font-family: var(--font-en); font-size: var(--fs-4xl); line-height: 1;
  color: var(--teal-800); font-weight: 500; letter-spacing: .02em;
  margin-bottom: var(--sp-3);
}
.tl-node__year em { font-style: normal; color: var(--gold-500); }
.tl-node__title {
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600;
  color: var(--teal-900); margin-bottom: var(--sp-3); line-height: var(--lh-snug);
}
.tl-node__text { font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose); max-width: 460px; }
.tl-node__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.tl-node__figure { border-radius: var(--r-md); }

.tl-empty { text-align: center; padding: var(--sp-16) 0; color: var(--faint); font-size: var(--fs-sm); }

/* ---------- 4.5 校庆公告 / 活动日程 ---------- */
.events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.notice { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.notice__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.notice__date { font-size: var(--fs-2xs); color: var(--faint); letter-spacing: .08em; }
.notice__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--teal-900); line-height: 1.4; }
.notice__text { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-loose); }
.notice__more { margin-top: auto; padding-top: var(--sp-3); }

.schedule { margin-top: clamp(3rem, 6vw, 5.5rem); }
.schedule__tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); border-bottom: 1px solid var(--line); }
.schedule__tab {
  padding: .9em 1.4em; font-size: var(--fs-sm); color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.schedule__tab:hover { color: var(--teal-800); }
.schedule__tab.is-on { color: var(--teal-900); border-bottom-color: var(--gold-500); font-weight: 500; }
.schedule__panel { display: none; padding-top: var(--sp-8); }
.schedule__panel.is-on { display: block; animation: fadeUp var(--dur-slow) var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.agenda { border-top: 1px solid var(--line-soft); }
.agenda__row {
  display: grid; grid-template-columns: 130px minmax(0,1fr) 160px;
  gap: var(--sp-6); align-items: baseline;
  padding-block: var(--sp-6); border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur-fast), padding-inline var(--dur-fast);
}
.agenda__row:hover { background: var(--surface); padding-inline: var(--sp-4); }
.agenda__time { font-family: var(--font-en); font-size: var(--fs-md); color: var(--gold-700); letter-spacing: .04em; }
.agenda__title { font-size: var(--fs-md); color: var(--teal-900); font-weight: 500; }
.agenda__desc { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-2); line-height: 1.7; }
.agenda__place { font-size: var(--fs-xs); color: var(--muted); text-align: right; }

.events__aside {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}

/* ---------- 4.6 校友天地 ---------- */
.checkin {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.checkin__form {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
}
.checkin__wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--sp-3); max-height: 420px; overflow-y: auto; padding-right: var(--sp-2);
}
.wall-card {
  aspect-ratio: 3/4; border-radius: var(--r-sm); padding: var(--sp-2);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-900));
  color: var(--paper); position: relative; overflow: hidden;
  animation: pop var(--dur) var(--ease-out);
}
.wall-card:nth-child(3n+2) { background: linear-gradient(150deg, #2A2113, #4A3A1C); }
.wall-card:nth-child(3n+3) { background: linear-gradient(150deg, var(--teal-600), var(--teal-800)); }
@keyframes pop { from { opacity: 0; transform: scale(.9) } to { opacity: 1; transform: none } }
.wall-card__no { font-family: var(--font-en); font-size: var(--fs-2xs); color: rgba(247,244,238,.6); }
.wall-card__name { font-family: var(--font-display); font-size: var(--fs-sm); line-height: 1.3; }
.wall-card__cls { font-size: 10px; color: rgba(247,244,238,.7); margin-top: 2px; }
.wall-card__corner {
  position: absolute; right: -8px; bottom: -10px;
  font-family: var(--font-en); font-size: 2.6rem; color: rgba(247,244,238,.12);
}

/* 名录 */
.directory { margin-top: clamp(3rem, 7vw, 6rem); }
.dir__filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-8); }
.dir__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--sp-5); }
.dir-card { display: flex; gap: var(--sp-4); padding: var(--sp-4); align-items: flex-start; }
.dir-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--teal-100); display: grid; place-items: center;
  font-family: var(--font-display); color: var(--teal-700); font-size: var(--fs-md);
}
.dir-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir-card__name { font-weight: 600; color: var(--teal-900); font-size: var(--fs-base); }
.dir-card__meta { font-size: var(--fs-xs); color: var(--gold-700); margin-top: 2px; }
.dir-card__note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); line-height: 1.6; }

/* 杰出校友 */
.stars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.star { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.star__body { padding: var(--sp-6); }
.star__name { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--teal-900); }
.star__role { font-size: var(--fs-xs); color: var(--gold-700); margin-top: var(--sp-2); letter-spacing: .04em; }
.star__text { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-loose); margin-top: var(--sp-4); }

/* ---------- 4.7 岁月情怀 ---------- */
.memory__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.story { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.story__text {
  font-size: var(--fs-sm); color: var(--ink-2); line-height: var(--lh-loose);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.story.is-open .story__text { -webkit-line-clamp: unset; display: block; }
.story__foot { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.story__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-100); display: grid; place-items: center;
  font-size: var(--fs-xs); color: var(--teal-700); flex: none; }
.story__who { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.story__who b { color: var(--teal-800); }

/* 新老对照 */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.compare__item { }
.compare__frame {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 3/2; background: var(--paper-3); cursor: ew-resize;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 50%); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--paper);
  transform: translateX(-1px); z-index: 3; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(11,52,50,.15);
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--paper);
  box-shadow: var(--shadow-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12'%3E%3Cpath d='M7 1 2 6l5 5M15 1l5 5-5 5' stroke='%230F4340' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.compare__badge {
  position: absolute; z-index: 4; top: var(--sp-3); font-size: var(--fs-3xs);
  letter-spacing: .12em; padding: .35em .8em; border-radius: var(--r-pill);
  background: rgba(11,52,50,.72); color: var(--paper); backdrop-filter: blur(4px);
}
.compare__badge--old { left: var(--sp-3); }
.compare__badge--new { right: var(--sp-3); background: rgba(169,133,63,.9); }
.compare__cap { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--teal-900); font-weight: 500; }
.compare__cap span { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; margin-top: 2px; }

/* 祝福墙 */
.bless { margin-top: clamp(3rem, 7vw, 6rem); }
.bless__marquee {
  position: relative; overflow: hidden; padding-block: var(--sp-6);
  border-block: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.bless__track { display: flex; gap: var(--sp-4); width: max-content; animation: marquee 46s linear infinite; }
.bless__marquee:hover .bless__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.bless__item {
  flex: none; max-width: 340px; padding: var(--sp-5) var(--sp-6);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md);
}
.bless__txt { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.bless__who { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--gold-700); }
.bless__form { max-width: 620px; margin-top: var(--sp-8); }

/* ---------- 4.8 今日信中（杂志式图文） ---------- */
.mag { display: grid; gap: clamp(3rem, 7vw, 7rem); }
.mag__row {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
}
.mag__media--wide { grid-column: 1 / span 7; }
.mag__body--wide { grid-column: 9 / span 4; }
.mag__media--right { grid-column: 6 / span 7; grid-row: 1; }
.mag__body--right { grid-column: 1 / span 4; grid-row: 1; }
.mag__title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; color: var(--teal-900); line-height: var(--lh-snug); }
.mag__text { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-loose); }
.mag__list { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.mag__list li { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-2); }
.mag__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-top: .6em; flex: none; }

/* ---------- 4.9 影像 & 画廊 ---------- */
.section--deep .title-split, .section--deep .mag__title { color: var(--paper); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.video-card { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; background: rgba(255,255,255,.06); }
.video-card__media { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.video-card:hover .video-card__media img { transform: scale(1.05); }
.video-card__play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(to top, rgba(11,52,50,.5), transparent 60%);
}
.video-card__play span {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(247,244,238,.5);
  display: grid; place-items: center; backdrop-filter: blur(6px); background: rgba(11,52,50,.3);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.video-card:hover .video-card__play span { transform: scale(1.08); background: var(--gold-500); border-color: var(--gold-500); }
.video-card__play svg { margin-left: 3px; }
.video-card__play svg path { transition: fill var(--dur-fast); }
.video-card:hover .video-card__play svg path { fill: #241C0E; }
.video-card__meta { padding: var(--sp-5); }
.video-card__title { font-size: var(--fs-md); color: var(--paper); font-weight: 500; }
.video-card__desc { font-size: var(--fs-xs); color: var(--teal-200); margin-top: var(--sp-2); }

.gallery { margin-top: clamp(3rem, 6vw, 5rem); columns: 3; column-gap: var(--sp-4); }
.gallery__item {
  break-inside: avoid; margin-bottom: var(--sp-4); overflow: hidden;
  border-radius: var(--r-sm); cursor: zoom-in; position: relative; background: rgba(255,255,255,.06);
}
.gallery__item img { width: 100%; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur); }
.gallery__item:hover img { transform: scale(1.04); opacity: .9; }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-5) var(--sp-4) var(--sp-3);
  background: linear-gradient(to top, rgba(11,52,50,.85), transparent);
  color: var(--paper); font-size: var(--fs-xs);
  opacity: 0; transform: translateY(8px); transition: all var(--dur) var(--ease-out);
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

/* ---------- 4.10 CTA ---------- */
.cta { text-align: center; }
.cta__title { font-family: var(--font-display); font-size: var(--fs-3xl); color: var(--teal-900); font-weight: 600; line-height: var(--lh-snug); }
.cta__text { margin: var(--sp-5) auto 0; max-width: 560px; color: var(--muted); line-height: var(--lh-loose); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; margin-top: var(--sp-10); }

/* ---------- 4.11 页脚 ---------- */
.footer { background: var(--teal-900); color: var(--paper); padding-top: clamp(3rem, 7vw, 6rem); }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(247,244,238,.14);
}
.footer__emblem { width: 72px; height: 72px; border-radius: 50%; background: rgba(247,244,238,.08); display: grid; place-items: center; margin-bottom: var(--sp-5); }
.footer__emblem img { width: 74%; height: 74%; object-fit: contain; }
.footer__name { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; }
.footer__motto { margin-top: var(--sp-3); font-family: var(--font-display); font-size: var(--fs-md); letter-spacing: .28em; color: var(--gold-300); }
.footer__addr { margin-top: var(--sp-5); font-size: var(--fs-sm); color: rgba(247,244,238,.65); line-height: 1.9; }
.footer__col h4 { font-size: var(--fs-2xs); letter-spacing: var(--ls-wider); color: var(--gold-300); margin-bottom: var(--sp-5); font-weight: 500; }
.footer__col li { margin-bottom: var(--sp-3); }
.footer__col a { font-size: var(--fs-sm); color: rgba(247,244,238,.72); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--gold-300); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  align-items: center; padding-block: var(--sp-6);
  font-size: var(--fs-xs); color: rgba(247,244,238,.5);
}
.footer__dev { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.footer__maker { color: var(--gold-300); font-weight: 500; letter-spacing: .05em; }

/* 返回顶部 */
.totop {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-sticky); width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-800); color: var(--paper); display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--dur) var(--ease-out);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--gold-500); color: #241C0E; }

/* 背景音乐开关 */
.music-toggle {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 58px);
  z-index: var(--z-sticky); width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-800); color: var(--paper); display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: all var(--dur) var(--ease-out);
  border: none; cursor: pointer;
}
.music-toggle:hover { background: var(--gold-500); color: #241C0E; }
.music-toggle.is-playing { background: var(--gold-500); color: #241C0E; }
.music-toggle.is-playing:hover { background: var(--teal-800); color: var(--paper); }
.music-toggle .music-icon { display: none; }
.music-toggle .music-icon--on { display: block; }
.music-toggle.is-playing .music-icon--on { display: none; }
.music-toggle.is-playing .music-icon--off { display: block; }
.music-toggle.is-playing::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--gold-500); animation: musicPulse 1.8s ease-out infinite;
}
@keyframes musicPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- 4.12 灯箱 / 弹窗 / 提示 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(9,32,30,.96);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; max-width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__stage video { max-width: 100%; max-height: 82vh; }
.lightbox__cap { margin-top: var(--sp-4); text-align: center; color: rgba(247,244,238,.7); font-size: var(--fs-sm); }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(247,244,238,.1); color: var(--paper); z-index: 3;
  transition: background var(--dur-fast);
}
.lightbox__btn:hover { background: var(--gold-500); color: #241C0E; }
.lightbox__btn--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__btn--next { right: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__close { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }
.lightbox__count { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); left: clamp(.75rem, 2vw, 1.5rem);
  color: rgba(247,244,238,.6); font-family: var(--font-en); font-size: var(--fs-sm); letter-spacing: .1em; }

.modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center;
  padding: var(--gutter); background: rgba(9,32,30,.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  transform: translateY(16px) scale(.98); transition: transform var(--dur) var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.modal__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--teal-900); }
.modal__sub { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }
.modal__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.modal__close:hover { background: var(--paper-2); }

/* 纪念卡片 */
.memento { text-align: center; }
.memento__canvas { width: 100%; max-width: 340px; margin: 0 auto var(--sp-6); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.memento__canvas canvas { width: 100%; height: auto; }

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px);
  z-index: var(--z-toast); background: var(--teal-900); color: var(--paper);
  padding: .85em 1.5em; border-radius: var(--r-pill); font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: all var(--dur) var(--ease-out); pointer-events: none;
  display: flex; align-items: center; gap: var(--sp-3);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

/* ---------- 4.13 素材槽位标注层（开发/交接用） ---------- */
body.slots-on [data-slot] { outline: 2px dashed var(--gold-500) !important; outline-offset: 2px; }
body.slots-on [data-slot]::after {
  content: attr(data-slot) " · " attr(data-ratio);
  position: absolute; left: 0; top: 0; z-index: var(--z-slots);
  background: var(--gold-500); color: #241C0E; font-family: var(--font-mono);
  font-size: 10px; padding: 2px 6px; letter-spacing: .04em; pointer-events: none;
}
body.slots-on [data-slot] { position: relative; }
.slots-toggle {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + 58px);
  z-index: var(--z-sticky); padding: .5em 1em; border-radius: var(--r-pill);
  background: var(--gold-500); color: #241C0E; font-size: var(--fs-3xs);
  letter-spacing: .1em; box-shadow: var(--shadow-md); display: none;
}
body.slots-mode .slots-toggle { display: block; }

/* 占位图样式（由 JS 生成的 SVG data-URI 兜底） */
img[data-ph="1"] { background: var(--paper-3); }

/* ============ 5. 响应式 ============ */
@media (max-width: 1180px) {
  .gallery { columns: 2; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__grid .figure { max-width: 420px; }
}
@media (max-width: 1024px) {
  :root { --nav-h: 68px; }
  .nav__menu, .nav__cta .btn, .nav__date { display: none; }
  .nav__burger { display: grid; }
  .nav__cta { margin-left: auto; }
  .mag__row { grid-template-columns: 1fr; gap: var(--sp-6); }
  .mag__media--wide, .mag__body--wide, .mag__media--right, .mag__body--right { grid-column: 1 / -1; grid-row: auto; }
  .checkin, .events__aside { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .timeline::before { left: 8px; }
  .tl-node { grid-template-columns: 1fr; gap: var(--sp-6); padding-left: var(--sp-8); padding-block: var(--sp-10); }
  .tl-node__media, .tl-node__body,
  .tl-node:nth-child(even) .tl-node__media, .tl-node:nth-child(even) .tl-node__body {
    grid-column: 1; grid-row: auto; text-align: left;
  }
  .tl-node:nth-child(even) .tl-node__body .tl-node__tags { justify-content: flex-start; }
  .tl-node:nth-child(even) .tl-node__body .tl-node__text { margin-left: 0; }
  .tl-node__dot { left: 8px; top: calc(var(--sp-10) + 8px); transform: translate(-50%, 0); }
  .agenda__row { grid-template-columns: 92px 1fr; gap: var(--sp-4); }
  .agenda__place { grid-column: 2; text-align: left; }
  .hero__corner { top: auto; bottom: clamp(6rem, 14vh, 9rem); }
  .hero__motto { font-size: var(--fs-sm); letter-spacing: .35em; }
  .hero__seal { width: 64px; height: 64px; }
  .gallery { columns: 2; }
}
@media (max-width: 640px) {
  .gallery { columns: 1; }
  .footer__top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__sub { gap: var(--sp-3); font-size: var(--fs-sm); }
  .hero__sub .hero__meta { width: 100%; }
  .agenda__row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .compare { grid-template-columns: 1fr; }
  .btn { padding: .8em 1.3em; }
  .section__head { margin-bottom: var(--sp-10); }
}

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__title span > i { transform: none !important; }
}

/* 提示条（前台捐赠弹窗与后台共用） */
.ad-note {
  background: var(--gold-100); border-left: 3px solid var(--gold-500); padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-xs); color: #5C4A22; line-height: 1.8; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: var(--sp-8);
}
.ad-note b { color: #3E3115; }
.section--deep .ad-note { background: rgba(242,232,210,.12); color: var(--gold-300); border-left-color: var(--gold-400); }
.section--deep .ad-note b { color: var(--gold-300); }

/* 打印 */
@media print {
  .nav, .hero__cue, .totop, .slots-toggle, .preloader { display: none !important; }
  .hero { min-height: auto; }
  body { background: #fff; }
}
