:root {
  --gold: #c9a45c;
  --gold-deep: #a8842f;
  --gold-light: #e8d3a1;
  --ink: #3d3327;
  --ink-soft: #6b5f4e;
  --paper: #faf6ee;
  --wine: #8c2f3a;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --kai: 'Kaiti SC', 'STKaiti', 'KaiTi', serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: #1a1512;
  font-family: var(--serif);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* 页面整体框架：移动端全屏，PC 端居中卡片 + 氛围背景 */
.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-ambient {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.45) saturate(0.9);
  transform: scale(1.15);
  z-index: 0;
}

.page-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26, 21, 18, 0.25), rgba(26, 21, 18, 0.75));
}

.page-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

@media (max-width: 600px) {
  .page-main {
    max-width: 100%;
    box-shadow: none;
  }
}

/* 通用滚动淡入（无 JS 时内容默认可见） */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-deep);
  font-size: 20px;
  letter-spacing: 6px;
  font-weight: 600;
}

.section-title::before,
.section-title::after {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ============ 封面 ============ */
.cover {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #14100d;
}

.cover-photo {
  position: absolute;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 30%;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-2.5%); }
}

.cover-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 11, 8, 0.55) 0%, rgba(15, 11, 8, 0.12) 34%, rgba(15, 11, 8, 0.18) 62%, rgba(15, 11, 8, 0.72) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(20, 14, 9, 0.45) 100%);
}

.cover-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 花瓣 */
.petal {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 18px;
  background: linear-gradient(135deg, #f7d9c4, #eab99a 60%, #d99a7d);
  border-radius: 60% 0 60% 0;
  animation: fall linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

@keyframes fall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translateY(105vh) rotate(340deg) translateX(60px); opacity: 0; }
}

/* 金色边框 */
.cover-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 164, 92, 0.5);
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
}

.corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.cover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12vh;
  text-align: center;
  color: #f5ecd9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.cover-eyebrow {
  font-size: 12px;
  letter-spacing: 7px;
  color: var(--gold-light);
  margin-bottom: 8px;
  animation: fadeUp 1.2s 0.2s both;
}

.cover-date-en {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(245, 236, 217, 0.75);
  margin-bottom: 26px;
  animation: fadeUp 1.2s 0.4s both;
}

.cover-names {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 400;
  animation: fadeUp 1.4s 0.6s both;
}

.name {
  font-size: clamp(34px, 9vw, 46px);
  font-family: var(--kai);
  letter-spacing: 6px;
  background: linear-gradient(180deg, #fdf3d8, var(--gold-light) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.amp {
  font-size: 20px;
  color: var(--wine);
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.92);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 14px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

.cover-date {
  margin-top: 22px;
  font-size: 15px;
  letter-spacing: 4px;
  animation: fadeUp 1.4s 0.85s both;
}

.cover-quote {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(245, 236, 217, 0.72);
  font-family: var(--kai);
  animation: fadeUp 1.4s 1.05s both;
}

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

/* 下滑提示 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(245, 236, 217, 0.85);
}

.mouse {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(245, 236, 217, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.mouse i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--gold-light);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

.hint-text {
  font-size: 11px;
  letter-spacing: 3px;
}

/* ============ 诚邀函 ============ */
.invite {
  padding: 72px 24px 64px;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 164, 92, 0.14), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(201, 164, 92, 0.14), transparent 34%),
    var(--paper);
}

.eyebrow {
  text-align: center;
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 10px;
}

.title {
  margin-bottom: 34px;
}

/* 信笺 */
.letter {
  position: relative;
  background: linear-gradient(160deg, #fffdf7, #f6efe0);
  border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 14px 40px rgba(90, 70, 30, 0.14);
  padding: 34px 26px 28px;
}

.letter::before,
.letter::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(201, 164, 92, 0.6);
}

.letter::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.letter::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.letter-inner {
  border: 1px dashed rgba(201, 164, 92, 0.5);
  padding: 24px 18px;
  text-align: left;
}

.seal {
  width: 52px;
  height: 52px;
  margin: -52px auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #b8454f, var(--wine) 70%);
  color: #f7ecdb;
  font-size: 26px;
  line-height: 52px;
  text-align: center;
  font-family: var(--kai);
  box-shadow: 0 4px 14px rgba(140, 47, 58, 0.4), inset 0 0 0 2px rgba(247, 236, 219, 0.5);
  transform: rotate(-8deg);
}

.letter-head {
  font-family: var(--kai);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 14px;
}

.letter-line {
  font-size: 13.5px;
  line-height: 2.15;
  letter-spacing: 1px;
  color: var(--ink-soft);
  font-family: var(--kai);
  text-align: left;
  text-indent: 2em;
}

.letter-sign {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold-deep);
  font-family: var(--kai);
  text-align: right;
}

.letter-sign span {
  display: block;
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* 倒计时 */
.countdown { margin-top: 44px; text-align: center; }

.cd-label {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.cd-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cd-cell {
  min-width: 68px;
  padding: 14px 8px 10px;
  background: linear-gradient(180deg, #fffdf7, #f3ecdc);
  border: 1px solid rgba(201, 164, 92, 0.5);
  box-shadow: 0 8px 22px rgba(90, 70, 30, 0.12);
}

.cd-cell b {
  display: block;
  font-size: 26px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.cd-cell span {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-soft);
}

/* ============ 相册 ============ */
.gallery {
  padding: 64px 0 60px;
  background: linear-gradient(180deg, var(--paper), #f3ecdc 50%, var(--paper));
  position: relative;
  overflow: hidden;
}

.gallery figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  color: #f5ecd9;
}

/* ① 视差大图 */
.hero {
  position: relative;
  height: 62vw;
  max-height: 420px;
  min-height: 280px;
  margin: 0 0 44px;
  overflow: hidden;
  cursor: pointer;
}

.hero-img {
  position: absolute;
  top: -18%;
  left: 0;
  width: 100%;
  height: 136%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(35, 24, 10, 0.65));
}

.cap-en {
  display: block;
  font-size: 10px;
  letter-spacing: 5px;
  opacity: 0.85;
  font-family: Georgia, serif;
  font-style: italic;
}

.cap-zh {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: 3px;
  font-family: var(--kai);
}

.zoom-tip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  color: rgba(245, 236, 217, 0.9);
  border: 1px solid rgba(245, 236, 217, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.hero:hover .zoom-tip { background: rgba(201, 164, 92, 0.85); border-color: transparent; }

/* ② 胶片跑马灯 + 拖拽 */
.film {
  position: relative;
  padding: 22px 0;
  background: linear-gradient(90deg, #241c12, #3a2f1f 12%, #241c12 88%);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.35), 0 12px 30px rgba(50, 38, 15, 0.3);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.film.is-dragging { cursor: grabbing; }

.film::before,
.film::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(circle, rgba(232, 211, 161, 0.75) 2.4px, transparent 3px);
  background-size: 18px 10px;
  pointer-events: none;
  z-index: 2;
}

.film::before { top: 4px; }
.film::after { bottom: 4px; }

.film-shift { will-change: transform; }

.film-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 10px 9px;
  animation: marquee 26s linear infinite;
}

.film.is-dragging .film-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.frame {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  background: #faf6ee;
  padding: 8px 8px 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
  pointer-events: auto;
}

.frame:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.frame img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.04);
  transition: filter 0.4s;
  pointer-events: none;
}

.frame:hover img { filter: none; }

.frame-no {
  position: absolute;
  bottom: 3px;
  left: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold-deep);
  font-family: Georgia, serif;
}

.drag-tip {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(245, 236, 217, 0.85);
  border: 1px solid rgba(245, 236, 217, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(20, 14, 9, 0.4);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.4s;
}

.film.is-dragging .drag-tip { opacity: 0; }

.film-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-soft);
  margin: 18px 0 44px;
}

/* ③ 双拼对比 */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px;
  max-width: 480px;
  margin: 0 auto;
}

.duo-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(70, 55, 25, 0.18);
}

.duo-card img {
  display: block;
  width: 100%;
  height: 52vw;
  max-height: 250px;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.duo-card:hover img { transform: scale(1.08); }

.duo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(40, 28, 12, 0.55));
}

.duo-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: calc(100% - 28px);
}

.duo-card b {
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 4px;
  font-weight: 500;
}

.duo-card span {
  font-size: 11px;
  font-family: Georgia, serif;
  font-style: italic;
  opacity: 0.8;
}

.js .duo-card.from-left { transform: translateX(-36px); }
.js .duo-card.from-right { transform: translateX(36px); }
.js .duo-card.from-left.visible,
.js .duo-card.from-right.visible { transform: translateX(0); }

.duo-note {
  text-align: center;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-soft);
  font-family: var(--kai);
  margin: 20px 0 44px;
}

/* ④ 语录横幅 */
.banner {
  position: relative;
  height: 46vw;
  max-height: 320px;
  min-height: 220px;
  margin: 0 0 44px;
  overflow: hidden;
  cursor: pointer;
}

.banner-img {
  position: absolute;
  top: -14%;
  left: 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  object-position: center 18%;
  will-change: transform;
  filter: brightness(0.72) saturate(0.92);
}

.banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #f5ecd9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 0 24px;
}

.b-en {
  font-size: 10px;
  letter-spacing: 4px;
  font-family: Georgia, serif;
  font-style: italic;
  opacity: 0.85;
}

.b-zh {
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: 5px;
  font-family: var(--kai);
}

/* ⑤ 三宫格 */
.trio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 0 18px;
  max-width: 480px;
  margin: 0 auto;
}

.trio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(70, 55, 25, 0.18);
}

.trio-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.trio-card:hover img { transform: scale(1.07); }

.trio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(40, 28, 12, 0.5));
}

.trio-card figcaption {
  left: 14px;
  bottom: 10px;
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.5s;
}

.trio-card:hover figcaption { opacity: 1; transform: none; }

.trio-0 {
  grid-row: 1 / 3;
  min-height: 62vw;
}
.trio-1, .trio-2 { min-height: 30vw; max-height: 240px; }

/* ⑥ 拍立得交错网格 */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 16px;
  padding: 0 26px;
  max-width: 480px;
  margin: 0 auto;
}

.polaroid {
  background: #fffdf7;
  padding: 10px 10px 14px;
  box-shadow: 0 12px 28px rgba(70, 55, 25, 0.2);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s;
  cursor: pointer;
}

.polaroid:nth-child(odd) { margin-top: 22px; }
.polaroid:nth-child(even) { margin-top: -14px; }

.polaroid:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
  box-shadow: 0 20px 40px rgba(70, 55, 25, 0.3);
  z-index: 1;
}

.ph-wrap { overflow: hidden; }

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease);
}

.polaroid:hover img { transform: scale(1.08); }

.polaroid figcaption {
  position: static;
  text-align: center;
  margin-top: 10px;
  font-family: var(--kai);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--gold-deep);
}

.js .polaroid.from-left { transform: translateX(-40px) rotate(var(--tilt, 0deg)); }
.js .polaroid.from-right { transform: translateX(40px) rotate(var(--tilt, 0deg)); }
.js .polaroid.from-left.visible,
.js .polaroid.from-right.visible {
  transform: translateX(0) rotate(var(--tilt, 0deg));
}

/* ============ 婚礼信息 ============ */
.info {
  padding: 64px 24px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 164, 92, 0.12), transparent 30%),
    var(--paper);
}

.card {
  margin: 32px auto 0;
  max-width: 460px;
  display: flex;
  background: linear-gradient(160deg, #fffdf7, #f4edde);
  border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 14px 36px rgba(90, 70, 30, 0.14);
}

.date-block {
  flex-shrink: 0;
  width: 110px;
  padding: 20px 0;
  background: linear-gradient(180deg, #a8842f, #c9a45c);
  color: #fff8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.year { font-size: 12px; letter-spacing: 4px; opacity: 0.85; }
.day { font-size: 40px; font-weight: 600; line-height: 1; }
.day i { font-style: normal; display: block; font-size: 12px; letter-spacing: 6px; margin-top: 4px; }
.lunar { font-size: 11px; letter-spacing: 2px; opacity: 0.9; }

.detail { padding: 20px 18px; flex: 1; }

.row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.row b {
  flex-shrink: 0;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 600;
}

.map-btn {
  display: block;
  margin-top: 14px;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  color: #fff8e8;
  background: linear-gradient(90deg, #a8842f, #c9a45c);
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(168, 132, 47, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.map-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(168, 132, 47, 0.45); }

/* 尾页 */
.finale { margin-top: 56px; padding-bottom: 0; }

.finale-frame {
  position: relative;
  margin: 0 -24px;
  padding: 64px 24px 70px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(201, 164, 92, 0.3), transparent 60%),
    #221a13;
  color: var(--gold-light);
}

.finale-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  pointer-events: none;
}

.fin-eyebrow { font-size: 10px; letter-spacing: 7px; color: rgba(232, 211, 161, 0.6); }

.fin-names {
  margin: 18px 0 14px;
  font-size: 28px;
  font-family: var(--kai);
  letter-spacing: 5px;
  background: linear-gradient(180deg, #fdf3d8, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.fin-line { font-size: 12px; letter-spacing: 3px; color: rgba(232, 211, 161, 0.8); }
.fin-date { margin-top: 10px; font-size: 12px; letter-spacing: 4px; color: rgba(232, 211, 161, 0.6); }

/* 不显眼的署名（含彩蛋） */
.fin-credit {
  margin-top: 34px;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(232, 211, 161, 0.22);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.4s;
}

.fin-credit:hover { color: rgba(232, 211, 161, 0.45); }

/* ============ 背景音乐按钮 ============ */
.music-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.8);
  background: rgba(20, 14, 9, 0.55);
  color: var(--gold-light);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.music-btn.spinning {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ 大图查看器 ============ */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 9, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}

.viewer.open { opacity: 1; }
.viewer[hidden] { display: none; }

.viewer-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-out;
}

.viewer img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.counter {
  color: rgba(245, 236, 217, 0.8);
  font-size: 13px;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

.nav {
  position: absolute;
  border: 1px solid rgba(201, 164, 92, 0.7);
  background: rgba(20, 14, 9, 0.55);
  color: var(--gold-light);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.nav:hover { background: rgba(201, 164, 92, 0.7); color: #1a1512; }

.close { top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; }
.prev { left: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; font-size: 26px; }
.next { right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; font-size: 26px; }

/* ============ 彩蛋 ============ */
.egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 6, 4, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  padding: 4vh 4vw;
  opacity: 1;
  transition: opacity 0.4s;
}

.egg-overlay[hidden] { display: none; }

.egg-overlay.closing { opacity: 0; }

.egg-overlay img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(201, 164, 92, 0.5);
  box-shadow: 0 0 80px rgba(201, 164, 92, 0.25);
  animation: eggZoom 0.7s var(--ease) both;
}

@keyframes eggZoom {
  from { transform: scale(0.86); }
  to { transform: scale(1); }
}

.egg-tip {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(232, 211, 161, 0.55);
}
