/* ============ 各区块组件样式 ============ */

/* ---------- 封面 ---------- */
.cover {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 26px 70px;
  overflow: hidden;
}
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.cover-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 42%,
    rgba(255,255,255,.90) 78%, var(--bg) 100%);
}
.cover-inner { position: relative; z-index: 2; }

.cover-eyebrow {
  font-size: var(--fs-tiny); letter-spacing: .42em; text-indent: .42em;
  color: var(--accent); margin-bottom: 26px;
}
.names {
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  font-size: var(--fs-hero);
  font-weight: 500; line-height: 1.35; color: var(--ink);
  letter-spacing: .06em;
}
.names .amp {
  display: block; font-size: calc(var(--fs-hero) * .42);
  color: var(--accent); margin: 6px 0; letter-spacing: .2em;
}
.cover-date {
  margin-top: 26px; font-size: var(--fs-h3); color: var(--ink-soft);
  letter-spacing: .1em;
}
.cover-venue {
  margin-top: 8px; font-size: var(--fs-small); color: var(--ink-faint);
  letter-spacing: .06em;
}
.cover-line {
  width: 1px; height: 46px; margin: 30px auto;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.cover-invite {
  font-size: var(--fs-small); color: var(--ink-soft);
  letter-spacing: .2em; text-indent: .2em;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; font-size: 11px; letter-spacing: .3em; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint span { width: 1px; height: 26px; background: var(--line); display: block; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint span { animation: bob 2.1s ease-in-out infinite; }
  @keyframes bob { 0%,100%{opacity:.25;transform:translateY(0)} 50%{opacity:1;transform:translateY(5px)} }
}

/* ---------- 倒计时 ---------- */
.count-box { text-align: center; padding: 30px 18px; }
.count-grid { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.count-cell { min-width: 62px; }
.count-num {
  font-family: "Songti SC", Georgia, serif;
  font-size: calc(30px * var(--scale)); line-height: 1.2;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.count-lbl { font-size: var(--fs-tiny); color: var(--ink-faint); letter-spacing: .1em; }
.count-note { margin-top: 16px; font-size: var(--fs-tiny); color: var(--ink-faint); }
.count-off { text-align: center; padding: 26px 18px; color: var(--ink-faint); font-size: var(--fs-small); }

/* ---------- 相册 · 瀑布流 ---------- */
.gallery { columns: 2; column-gap: 10px; }
.gallery figure {
  break-inside: avoid; margin-bottom: 10px; border-radius: 12px; overflow: hidden;
  background: var(--accent-soft); position: relative;
}
.gallery img { display: block; width: 100%; height: auto; }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  border: 1px solid var(--line); pointer-events: none;
}

/* ---------- 时间地点 ---------- */
.info-list { display: flex; flex-direction: column; gap: 2px; }
.info-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-k {
  flex: 0 0 4.2em; font-size: var(--fs-small); color: var(--ink-faint);
  letter-spacing: .1em; padding-top: 1px;
}
.info-v { flex: 1; font-size: var(--fs-body); color: var(--ink); }
.info-v em { font-style: normal; color: var(--accent); font-weight: 500; }

.addr-copy {
  margin-top: 12px; width: 100%; min-height: 46px;
  border-radius: 12px; border: 1px dashed var(--line);
  background: transparent; color: var(--ink-soft);
  font-size: var(--fs-small); font-family: inherit; cursor: pointer;
}
.addr-copy:active { background: var(--accent-soft); }

/* ---------- 流程时间轴 ---------- */
.timeline { margin-top: 4px; }
.tl-item { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 31px; top: 26px; bottom: -2px;
  width: 1px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-time {
  flex: 0 0 64px; text-align: right; font-size: var(--fs-small);
  color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 1px;
}
.tl-body { flex: 1; padding-left: 20px; position: relative; }
.tl-body::before {
  content: ""; position: absolute; left: -1px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--accent);
}
.tl-title { font-size: var(--fs-body); color: var(--ink); }
.tl-desc { font-size: var(--fs-tiny); color: var(--ink-faint); margin-top: 2px; }
.tl-item.key .tl-body::before { background: var(--accent); }
.tl-item.key .tl-title { color: var(--accent-deep); font-weight: 500; }

/* ---------- 交通住宿 ---------- */
.train {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.train:last-child { border-bottom: 0; }
.train-code { font-size: var(--fs-small); color: var(--accent); font-weight: 500; }
.train-route { flex: 1; font-size: var(--fs-tiny); color: var(--ink-soft); text-align: center; }
.train-dur { font-size: var(--fs-tiny); color: var(--ink-faint); white-space: nowrap; }

.tips { margin-top: 14px; padding-left: 2px; }
.tips li {
  list-style: none; font-size: var(--fs-small); color: var(--ink-soft);
  padding: 5px 0 5px 16px; position: relative;
}
.tips li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .5;
}

.note {
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  background: var(--accent-soft); font-size: var(--fs-small); color: var(--ink-soft);
}

/* ---------- 联系 ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.person {
  text-align: center; padding: 18px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
}
.person-role { font-size: var(--fs-tiny); color: var(--ink-faint); letter-spacing: .16em; }
.person-name { font-size: var(--fs-h3); margin-top: 4px; color: var(--ink); }
.person-tel {
  display: inline-block; margin-top: 10px; font-size: var(--fs-small);
  color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums;
}

/* ---------- 另一场 · 交叉引用 ---------- */
.cross {
  margin: 40px 0 0; padding: 24px 22px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); text-align: center;
}
.cross-t { font-size: var(--fs-tiny); color: var(--ink-faint); letter-spacing: .18em; }
.cross-name { font-size: var(--fs-h3); color: var(--ink); margin-top: 6px; }
.cross-when { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 4px; }
.cross .btn { margin-top: 16px; }

/* ---------- 页脚 ---------- */
.foot {
  padding: 46px 0 60px; text-align: center;
  font-size: var(--fs-tiny); color: var(--ink-faint); line-height: 2;
}

/* ---------- 相册灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 12, 12, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s;
}
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; }

/* ---------- 音乐按钮 ---------- */
.music {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow);
}
.music svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.music.off svg { stroke: var(--ink-faint); }
.music .wave { display: none; }
.music:not(.off) .wave { display: block; }
.music:not(.off) .mute { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .music:not(.off)::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--accent); opacity: .3; animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse { 0%{transform:scale(.9);opacity:.5} 100%{transform:scale(1.25);opacity:0} }
}
