/* 马佛总东甲支会官网 — 手机优先样式表（现代版） */

* { box-sizing: border-box; }

:root {
  --bg: #FBF9F4;
  --surface: #FFFFFF;
  --ink: #2B2014;
  --ink-soft: #75634C;
  --maroon: #7C2E24;
  --maroon-deep: #4D1C15;
  --gold: #C29539;
  --gold-deep: #8C6A1F;
  --gold-soft: #F2E3C3;
  --gold-pale: #F8F0DD;
  --border: #EADFC8;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(60, 30, 20, 0.04), 0 6px 20px rgba(60, 30, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(60, 30, 20, 0.08), 0 20px 44px rgba(60, 30, 20, 0.13);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 84px; /* 手机底部固定导航的空间 */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--maroon-deep);
  margin: 0 0 .5em;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.55rem; letter-spacing: .01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--maroon); }
ul { padding-left: 1.3em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--maroon); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  background: rgba(253, 250, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 46, 36, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: "Noto Serif SC", serif; font-size: 18px; color: var(--maroon-deep); }
.brand-text small { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }

.menu-toggle {
  font: inherit; font-size: 16px; font-weight: 700;
  color: var(--maroon-deep); background: var(--gold-soft);
  border: 0; border-radius: 999px;
  padding: 11px 20px; min-height: 48px; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.menu-toggle:active { transform: scale(.96); }
.menu-toggle::after { content: " ☰"; }
.menu-toggle[aria-expanded="true"]::after { content: " ✕"; }

.site-menu a { display: block; text-decoration: none; color: var(--ink); }
.site-menu a.active { color: var(--maroon); font-weight: 700; }

/* 手机版：全屏磨砂覆盖层菜单 */
@media (max-width: 767px) {
  .site-header { z-index: 90; }
  .menu-toggle {
    width: 48px; height: 48px; padding: 0; font-size: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .menu-toggle::after { content: "☰"; font-size: 20px; line-height: 1; }
  .menu-toggle[aria-expanded="true"]::after { content: "✕"; font-size: 18px; }
  .site-menu {
    position: fixed; inset: 0; z-index: 75;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 11px; align-content: center;
    padding: 92px 20px 104px;
    overflow-y: auto;
    background: rgba(249, 246, 238, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
  }
  .site-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .site-menu a {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 17.5px; font-weight: 700;
    text-align: center;
    padding: 17px 8px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(60, 30, 20, 0.05);
    opacity: 0; transform: translateY(14px) scale(0.95);
    transition: opacity .3s ease, transform .3s ease;
  }
  .site-menu a:first-child { grid-column: 1 / -1; }
  .site-menu.open a {
    opacity: 1; transform: none;
    transition-delay: calc(.03s * var(--i, 0));
  }
  .site-menu a.active {
    background: linear-gradient(135deg, #8E3527, #6A2318);
    color: #fff;
    box-shadow: 0 8px 22px rgba(124, 46, 36, 0.32);
  }
  body.menu-open { overflow: hidden; }
  @media (prefers-reduced-motion: reduce) {
    .site-menu, .site-menu a { transition: none; }
  }
}

/* ---------- 版面 ---------- */
main { display: block; }
.section { padding: 34px 20px; max-width: 1020px; margin: 0 auto; }
.section + .section { padding-top: 8px; }
.section-lead { color: var(--ink-soft); }
.section h2 { position: relative; padding-bottom: 12px; margin-bottom: .8em; }
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 149, 57, 0.2));
}

/* ---------- 活动分类筛选 ---------- */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  max-width: 1020px; margin: 0 auto;
  padding: 22px 20px 0;
}
.chip {
  text-decoration: none; display: inline-flex; align-items: center;
  font: inherit; font-size: 15.5px; font-weight: 700;
  padding: 10px 20px; min-height: 44px;
  border: 0; border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.chip:hover { color: var(--maroon-deep); box-shadow: var(--shadow-md); }
.chip:active { transform: scale(.96); }
.chip.active {
  background: linear-gradient(135deg, #8E3527, #6A2318);
  color: #fff;
  box-shadow: 0 5px 16px rgba(124, 46, 36, 0.3);
}

.hero {
  position: relative; overflow: hidden;
  background: var(--maroon-deep);
  color: #fff; text-align: center;
  padding: 60px 22px 54px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(40, 13, 9, 0.72) 0%, rgba(77, 28, 21, 0.86) 100%),
    url("../images/huiguan-exterior.jpg") center / cover no-repeat;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
.hero > * { position: relative; }
@keyframes heroZoom { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .hero-emblem {
  width: 92px; height: 92px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 9px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 7.2vw, 2.6rem);
  letter-spacing: .02em;
  white-space: nowrap;
  margin-bottom: .4em;
}
.hero .hero-tagline {
  color: var(--gold-soft); font-size: 1.12rem; font-weight: 600;
  letter-spacing: .12em; margin-bottom: .7em;
}
.hero p { color: #F2E9DA; max-width: 560px; margin: 0 auto 1.4em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }

.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--bg) 100%);
  padding: 42px 20px 30px;
  text-align: center;
}
.page-head::after {
  content: ""; position: absolute; right: -50px; top: 50%;
  transform: translateY(-50%);
  width: 230px; height: 230px;
  background: url("../images/mba-emblem.png") center / contain no-repeat;
  opacity: 0.06; pointer-events: none;
}
.page-head > * { position: relative; }
.page-head h1 { margin-bottom: .3em; font-size: clamp(1.7rem, 5vw, 2.2rem); }
.page-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 13px 24px;
  border-radius: 999px; border: 0;
  font-size: 17.5px; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #8E3527, #6A2318);
  color: #fff;
  box-shadow: 0 10px 26px rgba(124, 46, 36, 0.32);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(124, 46, 36, 0.34); transform: translateY(-1px); }
.btn-gold { background: var(--gold-soft); color: var(--maroon-deep); }
.btn-gold:hover { background: #EEDCB4; }
.btn-line {
  background: var(--surface); color: var(--maroon);
  box-shadow: inset 0 0 0 1.5px rgba(124, 46, 36, 0.35);
}
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--maroon), var(--shadow-sm); }
.btn-block { width: 100%; }
.btn svg { width: 22px; height: 22px; flex: none; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-grid .btn {
  flex-direction: column; gap: 6px; padding: 18px 10px; min-height: 92px;
  border-radius: var(--radius);
  background: var(--surface); color: var(--maroon-deep);
  box-shadow: var(--shadow-sm);
}
.quick-grid .btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-grid .btn svg {
  width: 26px; height: 26px; color: var(--gold-deep);
  background: var(--gold-pale);
  box-sizing: content-box; padding: 11px; border-radius: 16px;
}

/* ---------- 数据亮点 ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 14px; text-align: center;
}
.stat strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 27px; color: var(--maroon); line-height: 1.2;
}
.stat span { font-size: 14px; color: var(--ink-soft); }

/* ---------- 跑马灯标语条 ---------- */
.ticker {
  overflow: hidden;
  background: var(--gold-soft);
  padding: 11px 0;
}
.ticker-track {
  display: flex; gap: 40px; width: max-content;
  font-family: "Noto Serif SC", serif;
  font-size: 15px; font-weight: 600; color: var(--maroon-deep);
  letter-spacing: .14em; white-space: nowrap;
  animation: tick 30s linear infinite;
}
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- 深色数据带 ---------- */
.band {
  background: radial-gradient(130% 180% at 50% -50%, #7A2B1E 0%, #4D1C15 55%, #3B150E 100%);
}
.band .stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: none; }
.band .stat strong { color: var(--gold-soft); }
.band .stat span { color: rgba(255, 244, 226, 0.72); }

/* ---------- 标题行 + 行内筛选 ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 { margin-bottom: 0; }
.filter-inline {
  display: inline-flex; gap: 4px;
  background: var(--surface);
  padding: 5px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.filter-inline .chip {
  font-size: 15px; padding: 8px 18px; min-height: 40px;
  background: transparent; box-shadow: none; color: var(--ink-soft);
}
.filter-inline .chip:hover { background: var(--gold-pale); box-shadow: none; }
.filter-inline .chip.active {
  background: linear-gradient(135deg, #8E3527, #6A2318);
  color: #fff;
}

/* ---------- 活动日程时间线（Lu.ma 式） ---------- */
.ev { position: relative; margin-bottom: 10px; }
.ev .card { margin-bottom: 0; }
.tl-date {
  position: relative;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 28px 0 12px;
}
.ev:first-child .tl-date { margin-top: 4px; }
.tl-date::before {
  content: ""; position: absolute; left: -25px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-pale);
}
.tl-date .tl-d {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.3rem; font-weight: 700; color: var(--maroon-deep);
  line-height: 1.2;
}
.tl-date .tl-w { font-size: 15px; color: var(--ink-soft); }

/* ---------- 活动卡（日期块设计） ---------- */
.event-card { display: flex; gap: 16px; }
.date-block {
  flex: none; width: 78px; align-self: flex-start;
  text-align: center;
  background: linear-gradient(165deg, var(--gold-pale), var(--gold-soft));
  border-radius: 14px; padding: 10px 6px 9px;
}
.date-block .d-month { display: block; font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: .05em; }
.date-block .d-day {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 32px; font-weight: 700; line-height: 1.15;
  color: var(--maroon-deep);
}
.date-block .d-dow { display: block; font-size: 12px; color: var(--ink-soft); }
.event-body { flex: 1; min-width: 0; }
.event-meta { display: flex; flex-direction: column; gap: 5px; margin: 8px 0 4px; font-size: 16px; color: var(--ink-soft); }
.event-meta span { display: flex; gap: 8px; align-items: flex-start; }
.event-meta svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--gold-deep); }
.countdown {
  display: inline-block;
  background: linear-gradient(135deg, #8E3527, #6A2318);
  color: #fff; border-radius: 999px;
  padding: 3px 13px; font-size: 13px; font-weight: 700;
  margin-left: 6px; vertical-align: 3px;
}
.countdown.today { animation: todayPulse 1.8s ease infinite; }
@keyframes todayPulse {
  50% { box-shadow: 0 0 0 7px rgba(124, 46, 36, 0.14); }
}
@media (prefers-reduced-motion: reduce) { .countdown.today { animation: none; } }

/* ---------- 活动回顾时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 100%);
}
.tl-year {
  position: relative;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.55rem; font-weight: 700; color: var(--maroon-deep);
  margin: 30px 0 16px;
}
.tl-year:first-child { margin-top: 0; }
.tl-year::before {
  content: ""; position: absolute; left: -28px; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--maroon); border: 3.5px solid var(--gold-soft);
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 28px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}
.tl-item .card { margin-bottom: 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid rgba(124, 46, 36, 0.05);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.card h3 { margin-top: 0; }
.card-grid { display: grid; gap: 14px; }

.event-date {
  display: inline-block;
  background: var(--gold-soft); color: var(--maroon-deep);
  border-radius: 999px; padding: 4px 16px;
  font-size: 14.5px; font-weight: 700; margin-bottom: 10px;
  letter-spacing: .02em;
}
.tag {
  display: inline-block;
  background: var(--gold-pale); color: var(--ink-soft);
  border-radius: 999px; padding: 2px 14px;
  font-size: 13.5px; font-weight: 500; margin-left: 6px; vertical-align: 3px;
}
.tag-done { background: #E9F2DC; color: #44691F; }

.card-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.info-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.info-table th, .info-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  background: var(--gold-pale); color: var(--maroon-deep);
  white-space: nowrap; width: 31%; font-weight: 600;
}

/* ---------- 提示框 ---------- */
.notice {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 15px 18px;
  margin: 16px 0;
  font-size: 16.5px;
}
.notice strong { color: var(--maroon-deep); }

/* ---------- 照片 ---------- */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 16px; display: block;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (hover: hover) {
  .photo-grid img:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }
}
.photo-figure { margin: 0 0 18px; }
.photo-figure img {
  width: 100%; border-radius: var(--radius); display: block;
  box-shadow: var(--shadow-sm);
}
.photo-figure figcaption {
  font-size: 15px; color: var(--ink-soft);
  text-align: center; padding-top: 10px;
}
.ph {
  position: relative;
  background: #FBF4E3;
  border: 1.5px dashed #DCC489;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 15px; text-align: center;
  padding: 10px;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/mba-emblem.png") center / 56px no-repeat;
  opacity: 0.1;
}
.ph > * { position: relative; }
.ph-wide { aspect-ratio: 16 / 7; grid-column: 1 / -1; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #FBF4E3;
  border: 1.5px dashed #DCC489; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); text-align: center; padding: 14px;
}
.video-frame iframe, .map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px;
}
.map-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background: #FBF4E3; border: 1.5px dashed #DCC489;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 15px; text-align: center; padding: 10px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #31251A; color: #EFE6D4;
  padding: 44px 22px 34px; margin-top: 44px;
  border-radius: 34px 34px 0 0;
  font-size: 16px;
}
.footer-inner { max-width: 1020px; margin: 0 auto; }
.footer-grid { display: grid; gap: 28px; margin-bottom: 24px; }
.footer-h {
  font-family: "Noto Serif SC", serif;
  font-size: 17px; font-weight: 700; color: #fff;
  margin-bottom: .4em;
}
.footer-links a { color: #EFE6D4; text-decoration: none; line-height: 2.1; }
.footer-links a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-emblem {
  width: 64px; height: 64px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 6px;
  margin-bottom: 12px;
}
.site-footer a { color: var(--gold-soft); }
.footer-name strong { font-family: "Noto Serif SC", serif; font-size: 19px; color: #fff; }
.footer-social { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-copy {
  color: #B5A285; font-size: 14px; margin-bottom: 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

/* ---------- 手机底部快捷导航 ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(124, 46, 36, 0.1);
  padding: 4px 0;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px 8px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
}
.bottom-nav a svg { width: 24px; height: 24px; transition: background .2s ease; }
.bottom-nav a.active { color: var(--maroon-deep); }
.bottom-nav a.active svg {
  color: var(--maroon-deep);
  background: var(--gold-soft);
  box-sizing: content-box;
  padding: 3px 14px; border-radius: 999px;
}

/* ---------- 桌面版 ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 17px; }
  .bottom-nav { display: none; }
  .menu-toggle { display: none; }
  .site-header { position: static; justify-content: center; padding: 18px 16px 12px; background: var(--bg); backdrop-filter: none; border-bottom: 0; }
  .site-menu, .site-menu.open {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
    position: sticky; top: 12px; z-index: 55;
    width: fit-content; margin: 0 auto;
    padding: 6px 8px;
    background: rgba(253, 250, 243, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(124, 46, 36, 0.08);
    border-bottom: 1px solid rgba(124, 46, 36, 0.08);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    animation: none;
  }
  .site-menu a { border-top: 0; padding: 9px 16px; font-size: 15.5px; border-radius: 999px; }
  .site-menu a:hover { background: var(--gold-pale); }
  .site-menu a.active { background: var(--gold-soft); }
  .hero { padding: 88px 22px 76px; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .hero-actions .btn { min-width: 220px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid .card { margin-bottom: 0; }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.25fr 1fr 0.9fr; }
  .card-actions { flex-direction: row; }
  .card-actions .btn { flex: 1; }
  .section { padding: 52px 24px; }
  .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
}

/* ---------- 小屏（≤380px）适配 ---------- */
@media (max-width: 380px) {
  .filter-inline { padding: 4px; gap: 2px; }
  .filter-inline .chip { padding: 7px 12px; font-size: 14px; min-height: 38px; }
}
@media (max-width: 360px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 16px; }
  .menu-toggle { padding: 10px 14px; }
}

/* ---------- 时间线动效：滚动生长 + 节点弹跳 + 卡片滑入 ---------- */
.timeline { --tlp: 0px; }
.timeline::after {
  content: ""; position: absolute; left: 8px; top: 8px;
  width: 3px; border-radius: 2px;
  height: var(--tlp);
  max-height: calc(100% - 16px);
  background: linear-gradient(180deg, var(--gold) 0%, var(--maroon) 100%);
}
.tl-item.reveal { opacity: 0; transform: translateX(24px); transition: opacity .55s ease, transform .55s ease; }
.tl-item.reveal.in { opacity: 1; transform: none; }
.tl-year.reveal, .ev .tl-date.reveal { opacity: 0; transform: translateX(-10px); transition: opacity .45s ease, transform .45s ease; }
.tl-year.reveal.in, .ev .tl-date.reveal.in { opacity: 1; transform: none; }
.tl-year.in::before, .ev .tl-date.in::before { animation: dotPop .55s ease .1s backwards; }
@keyframes dotPop {
  0% { transform: translateY(-50%) scale(0); }
  70% { transform: translateY(-50%) scale(1.35); }
  100% { transform: translateY(-50%) scale(1); }
}
.tl-year.in::before { animation-name: dotPopYear; }
@keyframes dotPopYear {
  0% { transform: scale(0); }
  70% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline::after { display: none; }
  .tl-item.reveal, .tl-year.reveal, .ev .tl-date.reveal { opacity: 1; transform: none; transition: none; }
  .tl-year.in::before, .ev .tl-date.in::before { animation: none; }
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 100px; z-index: 65;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--maroon); cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .to-top { bottom: 26px; right: 26px; } }

/* ---------- 细节打磨 ---------- */
::selection { background: var(--gold-soft); color: var(--maroon-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}
h2, h3 { text-wrap: balance; }

/* ---------- 相册封面墙（活动回顾） ---------- */
.album-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.album-card {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .album-card:hover img { transform: scale(1.04); }
}
.album-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.album-card .album-info {
  position: absolute; inset: auto 0 0 0;
  padding: 38px 16px 13px;
  background: linear-gradient(180deg, rgba(30, 10, 6, 0) 0%, rgba(30, 10, 6, 0.78) 100%);
}
.album-card .album-info strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 19px; color: #fff; line-height: 1.35;
}
.album-card .album-info span { font-size: 13.5px; color: rgba(255, 240, 219, 0.85); }
.album-mini {
  display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.album-mini strong { font-family: "Noto Serif SC", serif; font-size: 18px; color: var(--maroon-deep); }
.album-mini span { font-size: 14px; color: var(--ink-soft); }
.year-h {
  font-family: "Noto Serif SC", serif;
  font-size: 1.55rem; color: var(--maroon-deep);
  margin: 6px 0 14px;
}

/* ---------- 相册页照片网格 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pgrid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; display: block; cursor: pointer;
  background: var(--gold-pale);
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 8, 5, 0.94);
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 96vw; max-height: 86vh;
  border-radius: 8px;
}
.lb-btn {
  position: fixed; z-index: 201;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: rgba(22, 12, 8, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.lb-btn:active { background: rgba(22, 12, 8, 0.8); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 201;
  color: #fff; font-size: 14.5px;
  background: rgba(22, 12, 8, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
@media (min-width: 768px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 480px) and (max-width: 767px) {
  .album-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 相册增强：分批 / 看过 / 播放 ---------- */
.pgrid img.hid { display: none; }
.pgrid img.seen { opacity: 0.45; }
.more-btn { margin: 16px auto 0; }
.album-progress {
  display: flex; align-items: center;
  font-size: 14.5px; color: var(--ink-soft);
  padding: 0 6px;
}
.lb-play { top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); }

/* ---------- 相册工具列（图标钮） ---------- */
.album-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.album-bar-bottom { justify-content: center; margin-top: 24px; margin-bottom: 0; }
.icon-btn {
  width: 48px; height: 48px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0;
  background: var(--gold-soft); color: var(--maroon-deep);
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.icon-btn:hover { background: #EEDCB4; box-shadow: var(--shadow-sm); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- 卡片按钮行：文字主钮 + 图标钮横排 ---------- */
.card-actions[data-cal], .card-actions.has-icons {
  flex-direction: row; align-items: center;
}
.card-actions[data-cal] .btn, .card-actions.has-icons .btn {
  flex: 1; white-space: nowrap; font-size: 16.5px; padding: 13px 12px;
}

/* ---------- 灯箱横屏模式（像把手机转过来） ---------- */
.lightbox img { transition: transform .3s ease, max-width .3s ease, max-height .3s ease; }
.lightbox img.r90 {
  transform: rotate(90deg);
  max-width: 100vh;
  max-height: 100vw;
  border-radius: 0;
}
.lb-rotate { top: auto; bottom: 16px; left: 16px; }

/* ---------- 滚动收缩顶栏 ---------- */
.site-header { transition: padding .28s ease; }
.brand-logo { transition: width .28s ease, height .28s ease; }
.brand-text {
  white-space: nowrap; overflow: hidden;
  max-width: 320px;
  transition: opacity .22s ease, max-width .28s ease;
}
@media (max-width: 767px) {
  body.scrolled .site-header { padding-top: 5px; padding-bottom: 5px; }
  body.scrolled .brand-logo { width: 36px; height: 36px; }
  body.scrolled .brand-text { opacity: 0; max-width: 0; }
}

/* ---------- 桌面：logo 滑入悬浮导航胶囊 ---------- */
.site-menu a.menu-logo { display: none; }
@media (min-width: 768px) {
  .site-menu a.menu-logo, .site-menu a.menu-logo.active {
    display: flex; align-items: center;
    order: -1;
    width: 0; opacity: 0; overflow: hidden;
    margin: 0; padding: 0;
    background: transparent;
    transition: width .3s ease, opacity .3s ease, margin .3s ease;
  }
  .menu-logo img { width: 30px; height: 30px; object-fit: contain; }
  body.scrolled .menu-logo {
    width: 30px; opacity: 1;
    margin-left: 6px; margin-right: 4px;
  }
}

/* ---------- 手机版灯箱：底部控制条（不压照片） ---------- */
@media (max-width: 767px) {
  .lightbox img { max-height: 74vh; }
  .lightbox img.r90 { max-height: 100vw; }
  .lb-rotate, .lb-prev, .lb-play, .lb-next {
    top: auto; bottom: 18px; right: auto;
    transform: none;
  }
  .lb-rotate { left: calc(50% - 124px); }
  .lb-prev   { left: calc(50% - 58px); }
  .lb-play   { left: calc(50% + 8px); }
  .lb-next   { left: calc(50% + 74px); }
}

/* ---------- 相册精选照片 ---------- */
.pgrid-featured { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.pgrid-featured img { aspect-ratio: 4 / 3; border-radius: 12px; }
@media (min-width: 768px) {
  .pgrid-featured { grid-template-columns: repeat(4, 1fr); }
}
.autoplay-btn { min-height: 48px; padding: 11px 20px; font-size: 16px; }

/* ---------- 相册页副标题 ---------- */
.page-sub { margin-top: 6px !important; font-size: 14px; opacity: .8; }

/* ---------- 活动回顾封面轮播 ---------- */
.album-card .cover-top {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none;
  transition: opacity 1.1s ease;
}
.album-card .cover-top.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .album-card .cover-top { display: none; }
}
