/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; height: 100%;
  background: #1a0606;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
:root {
  --red: #a51c1c;       /* 党旗红 */
  --red-deep: #6e0d0d;
  --red-dark: #3d0606;
  --gold: #d9a441;      /* 金 */
  --gold-light: #f3d68a;
  --ink: #2a1414;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ 三屏容器 ============ */
.pages {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}
.page {
  position: absolute; left: 0; width: 100%; height: 100%;
  top: 0;
  overflow: hidden;
}
/* 屏2、屏3、屏4 依次堆叠在屏1下方 */
.page-intro { top: 100%; }
.page-list  { top: 200%; }
.page-photo { top: 300%; }

/* ============ 启动页 splash ============ */
.splash {
  position: fixed; inset: 0; z-index: 500;
  background: #000;
  overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 整个 overlay：顶部固定偏移量（屏下 1/3），其余内容紧跟其后 */
.splash-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* 内容整体下移 2/3 屏幕（顶部固定偏移） */
  padding-top: 66vh;
}
.splash-bar {
  width: 70vw; max-width: 420px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.28); overflow: hidden;
  transition: opacity .4s ease;
}
.splash-bar.hidden { opacity: 0; pointer-events: none; }
.splash-pct.hidden { opacity: 0; }
.splash-bar-fill {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 3px;
}
.splash-pct {
  margin-top: 1.6vh;
  font-size: 3.2vw; color: rgba(255,255,255,.82);
  letter-spacing: .15em; text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.splash-enter {
  width: 64vw; max-width: 300px;
  height: calc(64vw * 0.333); max-height: 100px;
  margin-top: 6vh;
  padding: 0; border: none; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition: opacity .5s ease;
}
.splash-enter img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.splash-enter { opacity: 0; }
/* 渐显在按钮自身（无 transform）；呼吸放大在 img（与 flex 居中完全解耦） */
.splash-enter.show {
  animation: btnIn .5s ease both;
}
.splash-enter.show img {
  animation: breathe 2s ease-in-out infinite .5s;
}
.splash-enter:active img { opacity: .7; }
.splash-enter[hidden] { display: none; }
@keyframes btnIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ============ 背景音乐开关 ============ */
.bgm-toggle {
  position: fixed; top: 2.6vh; right: 4vw; z-index: 300;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(217,164,65,.5);
  border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.bgm-toggle:active { transform: scale(.9); }
.bgm-icon { width: 62%; height: 62%; object-fit: contain; transform-origin: 50% 50%; }
/* 默认音乐开启：显示 on，隐藏 off */
.bgm-icon-off { display: none; }
/* 关闭状态：显示 off，隐藏 on */
.bgm-toggle.off .bgm-icon { display: none; }
.bgm-toggle.off .bgm-icon-off { display: block; }
@keyframes bgmSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* 音乐开启时，第一张图标以中心为原点慢速旋转（12秒一圈） */
.bgm-toggle:not(.off) #bgmIconOn { animation: bgmSpin 12s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .bgm-toggle:not(.off) #bgmIconOn { animation: none; }
  .cover-enter.show { animation: none; }
  .cover-enter.show::before { animation: none; }
  .enter-arrow::before,
  .enter-arrow::after { animation: none; }
  .slide-hint-arrow::before,
  .slide-hint-arrow::after { animation: none; }
  .photo-btn { animation: none; }
}


.page-cover {
  background: #000;
  overflow: hidden;
  /* 锁定封面页：禁止任何滚动 */
  touch-action: none;
  overscroll-behavior: none;
}
.cover-gif {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.cover-mask {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%);
}
.cover-enter {
  position: absolute; bottom: 16vh; left: 50%; transform: translateX(-50%);
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.cover-enter.show {
  opacity: 1; visibility: visible;
  animation: floatUp 2s ease-in-out infinite;
}
.cover-enter.show::before {
  animation: ringGlow 3s ease-in-out infinite;
}
.cover-enter[hidden] { display: none; }

/* 按钮环形光晕 */
.cover-enter::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  border: 1.5px solid rgba(217,164,65,0);
  pointer-events: none;
}

.enter-txt { display: block; font-size: 4.6vw; font-weight: 700; letter-spacing: .3em; color: var(--gold); opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* 箭头容器：CSS 双 chevron */
.enter-arrow {
  display: block;
  width: 28px; height: 20px;
  margin: 0.8vh auto 0;
  position: relative;
  font-size: 0;
}
.enter-arrow::before,
.enter-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 14px; height: 14px;
  border-right: 2.5px solid var(--gold-light);
  border-bottom: 2.5px solid var(--gold-light);
  border-radius: 1px;
  transform: translateX(-50%) rotate(45deg);
}
.enter-arrow::before {
  top: 0;
  animation: chevronPulse 1.6s ease-in-out infinite;
}
.enter-arrow::after {
  top: 7px;
  animation: chevronPulse 1.6s ease-in-out infinite .3s;
}

/* 点击反馈 */
.cover-enter:active {
  transform: translateX(-50%) scale(.95);
  transition: transform .15s ease;
}
.cover-enter:active .enter-txt {
  color: var(--gold-light);
}

@keyframes floatUp {
  0%,100% { transform: translate(-50%, 0); opacity: .85; }
  50% { transform: translate(-50%, -8px); opacity: 1; }
}
@keyframes chevronPulse {
  0%,100% { opacity: .35; }
  50% { opacity: 1; }
}
@keyframes ringGlow {
  0%,100% { border-color: rgba(217,164,65,.06); }
  50% { border-color: rgba(217,164,65,.28); }
}

/* ============ 屏2 主视觉+文字 ============ */
.page-intro {
  background: radial-gradient(120% 80% at 50% 0%, #7a1414 0%, var(--red-deep) 45%, var(--red-dark) 100%);
}
.intro-scroll {
  position: relative;
  width: 100%; height: 100%;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #000;
}
/* 视频+最后一帧的叠加容器 */
.intro-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
}
/* 屏2 整图：铺满宽度，高度自适应，纵向居中 */
.intro-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* 最后一帧静态图：与 GIF 重叠，结束后替换显示 */
.intro-last {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
  pointer-events: none;
}
/* GIF 提升为独立合成层，避免 iOS 在 transform 祖先容器内的渲染问题 */
.intro-gif {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.intro-stage.ended .intro-gif { visibility: hidden; }
.intro-stage.ended .intro-last { display: block; }
.slide-hint {
  position: absolute; bottom: 4vh; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
  white-space: nowrap;
  width: max-content;
}
.slide-hint-txt { display: block; white-space: nowrap; font-size: 4vw; font-weight: 700; letter-spacing: .2em; color: var(--gold); text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* 向上箭头容器：CSS 双 chevron（与封面 enter-arrow 同构，方向朝上） */
.slide-hint-arrow {
  display: block;
  width: 28px; height: 20px;
  margin: 0.8vh auto 0;
  position: relative;
  font-size: 0;
}
.slide-hint-arrow::before,
.slide-hint-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 14px; height: 14px;
  border-left: 2.5px solid var(--gold-light);
  border-top: 2.5px solid var(--gold-light);
  border-radius: 1px;
  transform: translateX(-50%) rotate(45deg);
}
.slide-hint-arrow::before {
  top: 0;
  animation: chevronPulse 1.6s ease-in-out infinite;
}
.slide-hint-arrow::after {
  top: 7px;
  animation: chevronPulse 1.6s ease-in-out infinite .3s;
}

/* ============ 屏3 长图列表 ============ */
.page-list {
  background: linear-gradient(to bottom, var(--red-dark), #1a0606 60%, #1a0606);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.list-head {
  position: sticky; top: 0; z-index: 5;
  text-align: center; padding: 3.5vh 0 2vh;
  background: linear-gradient(to bottom, var(--red-dark) 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.list-head h2 {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 6.8vw; font-weight: 900; letter-spacing: .18em;
  background: linear-gradient(180deg, #fff3d6 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.list-head p { margin-top: 0.8vh; font-size: 3.3vw; color: rgba(255,255,255,.75); letter-spacing: .12em; font-weight: 500; }
.list-head .back-btn {
  position: absolute; top: 2.6vh; left: 4vw; z-index: 2;
  height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); border: 1px solid rgba(217,164,65,.5);
  color: var(--gold-light);
  font-size: 3.4vw; padding: 0 3.2vw; border-radius: 18px;
  letter-spacing: .08em; box-sizing: border-box;
}
.list-head .back-btn:active { background: rgba(217,164,65,.25); }

.list { padding: 1.2vh 4vw 2vh; display: flex; flex-direction: column; gap: 2.2vh; }

.card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #2e0c0c 0%, #1f0707 100%);
  border: 1px solid rgba(217,164,65,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.card:active { transform: scale(.98); box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.card-media { width: 100%; aspect-ratio: 3/2; background: #3d0e0e; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:active .card-media img { transform: scale(1.04); }
/* 缺图占位卡 */
.card.no-photo .card-media {
  background:
    repeating-linear-gradient(45deg, rgba(217,164,65,.08) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 50% 50%, #5a1212, #3d0e0e);
  display: flex; align-items: center; justify-content: center;
}
.card.no-photo .card-media::after {
  content: "照片待补"; color: rgba(243,214,138,.55); font-size: 3.6vw; letter-spacing: .3em;
}
.card-info { padding: 2vh 4.2vw 2.2vh; }
.card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5vw;
}
.card-title {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 4.8vw; font-weight: 700; color: #fff;
  line-height: 1.38; letter-spacing: .02em;
  flex: 1; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.card-date {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 2.8vw; font-weight: 600; color: var(--gold-light);
  background: rgba(217,164,65,.14); border: 1px solid rgba(217,164,65,.35);
  padding: 0.3vh 2.4vw; border-radius: 12px;
  white-space: nowrap; letter-spacing: .05em; margin-top: 0.2vh;
}
.card-persons {
  margin-top: 1.2vh; font-size: 3.3vw; color: rgba(243,214,138,.85);
  letter-spacing: .04em;
}

.list-foot { padding: 4vh 6vw 8vh; text-align: center; }
.list-foot p { font-size: 3.2vw; color: rgba(255,255,255,.5); line-height: 1.8; }
.list-foot .copy { margin-top: 1vh; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.to-photo-btn {
  margin-top: 3vh; display: inline-block;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--red-deep); font-weight: 700; letter-spacing: .12em;
  font-size: 3.6vw; padding: 1.4vh 6vw; border-radius: 24px;
  border: none; box-shadow: 0 4px 14px rgba(217,164,65,.4);
}
.to-photo-btn:active { transform: translateY(1px); }

/* ============ 屏4 合影邀请 ============ */
.page-photo {
  background: var(--red-dark);
  touch-action: none;
  overscroll-behavior: none;
}
.photo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.photo-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  display: block;
}
.photo-btn {
  position: absolute; left: 50%; bottom: 8vh;
  transform: translateX(-50%);
  width: 60vw; max-width: 360px;
  background: none; border: none; padding: 0; cursor: pointer;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.5));
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  /* 持续呼吸动效：放大↔缩小，吸引点击 */
  animation: photoBreathe 2.4s ease-in-out infinite;
}
.photo-btn img { width: 100%; height: auto; display: block; }
/* 点击瞬间回弹放大，再触发拍照，增强反馈 */
.photo-btn.popping { animation: photoPop .5s ease; }
@keyframes photoBreathe {
  0%, 100% { transform: translateX(-50%) scale(1);    filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
  50%      { transform: translateX(-50%) scale(1.06); filter: drop-shadow(0 6px 22px rgba(217,164,65,.55)); }
}
@keyframes photoPop {
  0%   { transform: translateX(-50%) scale(1.06); }
  35%  { transform: translateX(-50%) scale(1.18); }
  70%  { transform: translateX(-50%) scale(.94); }
  100% { transform: translateX(-50%) scale(1); }
}
.photo-back {
  position: absolute; top: 2.6vh; left: 4vw; z-index: 2;
  height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); border: 1px solid rgba(217,164,65,.5);
  color: var(--gold-light);
  font-size: 3.4vw; padding: 0 3.2vw; border-radius: 18px;
  letter-spacing: .08em; box-sizing: border-box;
}
.photo-back:active { background: rgba(217,164,65,.25); }

/* ============ 合影信息表单弹窗 ============ */
.photo-form {
  position: fixed; inset: 0; z-index: 210;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.photo-form.show { visibility: visible; opacity: 1; }
.photo-form-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.8);
}
.photo-form-sheet {
  position: absolute; left: 6vw; right: 6vw; bottom: 0;
  background: linear-gradient(180deg, #3a0f0f 0%, #2a0808 100%);
  border: 1px solid rgba(217,164,65,.4);
  border-radius: 18px 18px 0 0;
  padding: 4vh 6vw calc(4vh + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1.8vh;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.photo-form.show .photo-form-sheet { transform: translateY(0); }
.photo-form-close {
  position: absolute; top: 1.6vh; right: 4vw;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 18px; line-height: 1;
}
.photo-form-title {
  font-size: 4.4vw; color: var(--gold); font-weight: 800; letter-spacing: .12em; text-align: center;
}
.photo-form-sub {
  font-size: 3vw; color: rgba(255,255,255,.7); text-align: center; margin-top: -.6vh;
}
.field { display: flex; flex-direction: column; gap: .6vh; }
.field-label { font-size: 3vw; color: var(--gold-light); letter-spacing: .1em; }
.field input {
  height: 5vh; min-height: 40px; border-radius: 10px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(217,164,65,.35);
  color: #fff; font-size: 3.6vw; padding: 0 3vw;
}
.field input::placeholder { color: rgba(255,255,255,.35); }
.field input:focus { outline: none; border-color: var(--gold); }
.photo-form-error { font-size: 2.8vw; color: #ff9a9a; min-height: 1.2em; }
.photo-form-note { font-size: 2.6vw; color: rgba(255,255,255,.45); text-align: center; }
.photo-form-submit {
  margin-top: 1vh; height: 6vh; min-height: 48px; border: none; border-radius: 24px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--red-deep); font-weight: 800; font-size: 4vw; letter-spacing: .15em;
}
.photo-form-submit:active { transform: translateY(1px); }

/* ============ 合影预览/上传弹窗 ============ */
.photo-preview {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.photo-preview.show { visibility: visible; opacity: 1; }
.photo-preview-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.9);
}
.photo-preview-sheet {
  position: absolute; inset: 8vh 6vw;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2vh;
}
.photo-preview-close {
  position: absolute; top: -2vh; right: -2vw; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 22px; line-height: 1;
}
.photo-preview-title {
  font-size: 3.6vw; color: var(--gold); letter-spacing: .1em; font-weight: 700;
}
.photo-preview-media {
  max-width: 90vw; max-height: 60vh; overflow: hidden; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.photo-preview-media img {
  display: block; max-width: 90vw; max-height: 60vh; object-fit: contain;
}
.photo-preview-msg { font-size: 3vw; min-height: 1.4em; text-align: center; }
.photo-submit-btn {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--red-deep); font-weight: 800; letter-spacing: .12em;
  font-size: 3.8vw; padding: 1.4vh 8vw; border: none; border-radius: 24px;
}
.photo-submit-btn:active { transform: translateY(1px); }
.photo-submit-btn:disabled { opacity: .6; }

/* ============ 详情弹窗 ============ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden; opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
}
.modal-sheet {
  position: absolute; left: 50%; bottom: 0;
  width: 100%; max-width: 640px;
  transform: translate(-50%, 100%);
  background: linear-gradient(to bottom, #3d0e0e, #1a0606);
  border-radius: 18px 18px 0 0;
  max-height: 92vh; overflow-y: auto;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  padding-bottom: 4vh;
}
.modal.open .modal-sheet { transform: translate(-50%, 0); }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.4); color: #fff;
  font-size: 22px; line-height: 1;
}
.modal-media { width: 100%; aspect-ratio: 3/2; background: #2a0a0a; overflow: hidden; }
.modal-media.iframe-mode { aspect-ratio: auto; height: 62vh; background: #fff; }
.modal-media.iframe-mode::after { display: none; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal.no-photo .modal-media {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, #5a1212, #2a0a0a);
}
.modal.no-photo .modal-media::after {
  content: "照片待补"; color: rgba(243,214,138,.5); font-size: 4vw; letter-spacing: .3em;
}
.modal-meta { padding: 2.4vh 6vw 0; display: flex; align-items: center; justify-content: space-between; }
.modal-no { display: none; }
.modal-date {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 3vw; font-weight: 600; color: var(--gold-light);
  background: rgba(217,164,65,.16); border: 1px solid rgba(217,164,65,.4);
  padding: 0.3vh 3vw; border-radius: 12px; letter-spacing: .05em;
}
.modal-title {
  padding: 1.2vh 6vw 0;
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 5.6vw; font-weight: 800; color: #fff;
  line-height: 1.35; letter-spacing: .02em;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.modal-persons {
  padding: 0.8vh 6vw 0; font-size: 3.5vw;
  color: var(--gold-light); letter-spacing: .04em;
}
.modal-text {
  padding: 2vh 6vw 2.5vh; font-size: 3.8vw; line-height: 1.88;
  color: rgba(255,255,255,.92); letter-spacing: .03em;
  text-align: justify;
}
.modal-actions {
  padding: 1vh 6vw 0; display: flex; gap: 2.5vw; flex-wrap: wrap;
}
.action-btn {
  flex: 1; min-width: 28vw; padding: 1.8vh 2vw;
  border-radius: 30px; font-size: 3.6vw; font-weight: 600;
  letter-spacing: .1em; border: 1px solid rgba(217,164,65,.5);
  transition: background .2s ease, color .2s ease;
}
.action-video { background: var(--gold); color: var(--red-dark); border-color: var(--gold); font-weight: 700; }
.action-audio { background: transparent; color: var(--gold-light); }
.action-article { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }
.action-btn:active { transform: scale(.97); }

/* ============ toast ============ */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9);
  background: rgba(0,0,0,.82); color: #fff; border-radius: 10px;
  padding: 2vh 5vw; font-size: 3.4vw; line-height: 1.6; text-align: center;
  z-index: 200; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  max-width: 80vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }

/* ============ 故事音频：顶部播放条 ============ */
.audio-bar {
  position: fixed; left: 50%; top: 0; z-index: 220;
  transform: translate(-50%, -100%);
  width: 94vw; max-width: 480px;
  display: flex; align-items: center; gap: 2.4vw;
  padding: 2vh 3vw 2vh 3.2vw;
  background: linear-gradient(180deg, rgba(42,10,10,.96), rgba(26,6,6,.96));
  border: 1px solid rgba(217,164,65,.42);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden;
  transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .34s ease, visibility .34s ease;
}
.audio-bar.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.audio-bar-play {
  flex: 0 0 auto;
  width: 9vw; height: 9vw; min-width: 38px; min-height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.audio-bar-play:active { transform: scale(.9); }
.audio-bar-play svg { width: 58%; height: 58%; fill: #2a1414; }
.audio-bar-icon-pause { display: none; }
.audio-bar.playing .audio-bar-icon-play { display: none; }
.audio-bar.playing .audio-bar-icon-pause { display: block; }
.audio-bar-body { flex: 1 1 auto; min-width: 0; }
.audio-bar-title {
  font-size: 3.5vw; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .8vh;
}
.audio-bar-progress {
  width: 100%; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.22); overflow: hidden;
}
.audio-bar-fill {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 2px; transition: width .18s linear;
}
.audio-bar-time {
  flex: 0 0 auto; font-size: 3vw; color: rgba(243,214,138,.85);
  font-variant-numeric: tabular-nums;
}
.audio-bar-close {
  flex: 0 0 auto; font-size: 5.4vw; line-height: 1; color: rgba(255,255,255,.7);
  width: 7vw; min-width: 30px; height: 7vw; min-height: 30px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.audio-bar-close:active { transform: scale(.9); }
