:root {
  /* 歐式復古色票：霧霾藍 × 勃根地酒紅 × 手作棉紙暖白 */
  --slate-deep: #46607a;
  --slate-mid: #6d89a6;
  --slate-soft: #8ca8c4;
  --slate-ice: #dce6f1;

  --burgundy: #6e1d27;
  --burgundy-deep: #53131b;
  --burgundy-rose: #8c2633;
  --burgundy-tint: #f4e8ea;

  --paper-ivory: #f7f3eb;
  --paper-cotton: #efe9dd;
  --paper-warm: #e6ddd0;
  --paper-edge: #cfc3b2;

  --ink: #2c2627;
  --ink-soft: #5b5250;
  --muted: #8a7f7b;

  /* 盲壓浮雕光影（Letterpress Blind Emboss） */
  --emboss-highlight: rgba(255, 255, 255, 0.92);
  --emboss-shadow: rgba(146, 132, 114, 0.36);

  /* 字體系統：年輕文青手寫感（霞鶩文楷 + 細黑體 + Oooh Baby + Plus Jakarta Sans 等高數字） */
  --font-display-zh: "LXGW WenKai TC", "PingFang TC", "Heiti TC", sans-serif;
  --font-body-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-num-en: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: "Oooh Baby", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body-zh);
  font-weight: 400;
  line-height: 1.78;
  background-color: var(--slate-deep);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display-zh);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.38;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--paper-cotton);
  color: var(--burgundy);
}

/* ---------------- 按鈕系統 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.55rem;
  border-radius: 999px;
  font-family: var(--font-body-zh);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--burgundy);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-burgundy {
  background: var(--burgundy);
  color: #faf6ee;
  box-shadow: 0 6px 16px rgba(110, 29, 39, 0.22);
}

.btn-burgundy:hover {
  background: var(--burgundy-deep);
}

.btn-slate-outline {
  background: var(--paper-ivory);
  color: var(--slate-deep);
  border-color: var(--slate-mid);
  box-shadow:
    -2px -2px 5px var(--emboss-highlight),
    2px 3px 6px rgba(70, 96, 122, 0.14);
}

.btn-slate-outline:hover {
  background: var(--slate-ice);
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-sm {
  padding: 0.52rem 1.15rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-text-action {
  border: none;
  background: transparent;
  padding: 0.2rem 0.35rem;
  font-family: var(--font-body-zh);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--slate-deep);
  text-decoration: underline;
  text-decoration-color: rgba(70, 96, 122, 0.4);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.btn-text-action:hover {
  color: var(--burgundy);
}

/* ---------------- 進站前歐式信封密碼鎖 ---------------- */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.passcode-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  background-color: #2f4357;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(140, 168, 196, 0.28), transparent 62%),
    url("assets/toile-pattern.svg");
  background-size: 100% 100%, 240px 240px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.passcode-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-stage {
  position: relative;
  width: min(440px, 100%);
  padding-top: 26px;
}

.envelope-liner {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 150px;
  border-radius: 14px 14px 0 0;
  background: repeating-linear-gradient(
    90deg,
    #95b0cb 0 18px,
    #f5efe5 18px 36px
  );
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 36px rgba(18, 28, 38, 0.42);
}

.gate-card {
  position: relative;
  z-index: 2;
  padding: 2.1rem 1.85rem 3.3rem;
  background-color: var(--paper-ivory);
  background-image: radial-gradient(rgba(146, 132, 114, 0.08) 1px, transparent 0);
  background-size: 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 20px 44px rgba(18, 28, 38, 0.4),
    inset 0 0 28px rgba(196, 182, 162, 0.25);
  text-align: center;
}

.gate-card.is-shaking {
  animation: shake 0.4s ease;
}

.gate-card-border {
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(110, 29, 39, 0.28);
  pointer-events: none;
}

.gate-card-border::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  border: 1px dashed rgba(70, 96, 122, 0.35);
}

.gate-bow-svg {
  width: 96px;
  height: auto;
  margin: 0 auto 0.2rem;
  display: block;
}

.gate-eyebrow {
  font-family: var(--font-num-en);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--slate-deep);
}

.gate-title {
  margin-top: 0.35rem;
  font-size: 1.48rem;
  color: var(--burgundy);
}

.gate-subtitle {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.gate-form {
  position: relative;
  z-index: 2;
  margin-top: 1.35rem;
  display: grid;
  gap: 0.85rem;
}

.passcode-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.passcode-input-wrap input {
  width: 100%;
  padding: 0.85rem 3.8rem;
  border: 1.5px solid var(--paper-edge);
  border-radius: 10px;
  font-family: var(--font-num-en);
  font-size: 1.08rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-align: center;
  color: var(--burgundy);
  background: #fbf8f3;
  box-shadow: inset 1px 2px 4px rgba(146, 132, 114, 0.2);
}

.passcode-input-wrap input::placeholder {
  font-family: var(--font-body-zh);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-indent: 0;
  font-weight: 400;
  color: var(--muted);
}

.passcode-input-wrap input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow:
    inset 1px 2px 4px rgba(146, 132, 114, 0.18),
    0 0 0 3px rgba(110, 29, 39, 0.12);
}

.toggle-visibility-btn {
  position: absolute;
  right: 0.55rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  background: var(--paper-ivory);
  font-family: var(--font-body-zh);
  font-size: 0.76rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.gate-error {
  color: var(--burgundy-rose);
  font-size: 0.88rem;
  font-weight: 600;
}

.gate-hint {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* 立體霧霾藍火漆封蠟章 */
.wax-seal-badge {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  z-index: 4;
}

.wax-seal-outer {
  width: 66px;
  height: 66px;
  padding: 6px;
  border-radius: 47% 53% 49% 51% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 32% 28%, #a6bfd8 0%, #7d9ab8 55%, #5b7896 100%);
  box-shadow:
    -2px -2px 4px rgba(255, 255, 255, 0.45),
    3px 6px 14px rgba(20, 32, 44, 0.48),
    inset 2px 2px 4px rgba(255, 255, 255, 0.45),
    inset -2px -3px 6px rgba(42, 62, 82, 0.55);
  display: grid;
  place-items: center;
}

.wax-seal-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 1.5px 2px 4px rgba(34, 52, 70, 0.42);
  display: grid;
  place-items: center;
}

.wax-monogram {
  font-family: var(--font-num-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  color: rgba(247, 243, 235, 0.92);
  text-shadow: 0 1px 2px rgba(28, 44, 60, 0.55);
}

.envelope-pocket {
  position: relative;
  z-index: 1;
  height: 48px;
  margin: -18px -6px 0;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #7491ae 0%, #5c7894 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 32px rgba(15, 24, 34, 0.45);
}

/* ---------------- 歐式長卷軸主舞台與外層襯底 ---------------- */
.invitation-stage {
  position: relative;
  min-height: 100vh;
  padding: 2rem 1.25rem 3.5rem;
  background-color: var(--slate-deep);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(220, 230, 241, 0.16), transparent 40%),
    radial-gradient(circle at 82% 65%, rgba(220, 230, 241, 0.14), transparent 42%),
    url("assets/toile-pattern.svg");
  background-size: 100% 100%, 100% 100%, 240px 240px;
  overflow-x: hidden;
}

.stage-watermarks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wm-item {
  position: absolute;
  opacity: 0.24;
}

.wm-rings {
  top: 12vh;
  right: max(1.5vw, calc(50% - 540px));
  width: 145px;
}

.wm-table {
  top: 46vh;
  left: max(1vw, calc(50% - 560px));
  width: 210px;
}

.wm-glasses {
  bottom: 8vh;
  right: max(1.5vw, calc(50% - 520px));
  width: 128px;
}

.invitation-outer-frame {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.65rem;
  border: 1.5px solid rgba(250, 246, 238, 0.62);
  border-radius: 18px;
  background: rgba(58, 82, 106, 0.22);
  box-shadow: inset 0 0 0 6px rgba(250, 246, 238, 0.08);
}

.outer-frame-header {
  text-align: center;
  margin-bottom: 1.1rem;
}

.outer-bow-svg {
  width: 106px;
  height: auto;
  display: block;
  margin: -34px auto 0.15rem;
  background: transparent;
}

.outer-script-heading {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 4.6vw, 2.75rem);
  color: #faf6ee;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(26, 40, 56, 0.35);
}

/* 中央手作棉紙長卷軸 */
.invitation-scroll {
  width: min(620px, 100%);
  margin: 0 auto;
  background-color: var(--paper-ivory);
  background-image:
    radial-gradient(rgba(146, 132, 114, 0.075) 1px, transparent 0),
    linear-gradient(180deg, #faf6ee 0%, #f5efe4 52%, #f1eade 100%);
  background-size: 20px 20px, 100% 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 24px 60px rgba(22, 34, 48, 0.45),
    0 4px 12px rgba(22, 34, 48, 0.22);
  overflow: hidden;
}

/* ---------------- 頂部導覽列：左旋轉小黑膠 / 中 G&B 日期 / 右展開選單 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 235, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 29, 39, 0.16);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.55rem 1.15rem;
  gap: 0.65rem;
  position: relative;
}

.brand-mark {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-monogram {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--paper-cotton);
  border: 1px solid var(--paper-edge);
  box-shadow:
    -1.5px -1.5px 3px var(--emboss-highlight),
    1.5px 1.5px 4px var(--emboss-shadow);
  font-family: var(--font-num-en);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  color: var(--burgundy);
}

.brand-date {
  font-family: var(--font-num-en);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.08em;
  color: var(--slate-deep);
}

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1.05rem 1.25rem;
  gap: 0.85rem;
  background: rgba(247, 243, 235, 0.98);
  border-bottom: 1px solid var(--paper-edge);
  box-shadow: 0 12px 26px rgba(34, 48, 62, 0.14);
  font-size: 0.92rem;
  color: var(--ink-soft);
  z-index: 39;
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav a:hover {
  color: var(--burgundy);
}

.primary-nav .nav-cta {
  padding: 0.36rem 1.1rem;
  border-radius: 999px;
  background: var(--burgundy);
  color: #faf6ee;
  font-size: 0.86rem;
}

/* 最左邊：旋轉小黑膠開關 */
@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes note-float-1 {
  0% { opacity: 0; transform: translate(0, 2px) scale(0.75); }
  35% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-7px, -14px) scale(1); }
}

@keyframes note-float-2 {
  0% { opacity: 0; transform: translate(0, 2px) scale(0.75); }
  35% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(7px, -16px) scale(1); }
}

.mini-vinyl-player {
  grid-column: 1;
  justify-self: start;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mini-vinyl-btn {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.mini-vinyl-btn:hover {
  transform: scale(1.06);
}

.mini-vinyl-btn:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.mini-vinyl-disc {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #302a2d 0%, #1d181a 56%, #110d0f 100%);
  box-shadow:
    0 3px 8px rgba(44, 38, 39, 0.28),
    0 0 0 1.5px rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  animation: vinyl-spin 4.6s linear infinite;
  animation-play-state: paused;
}

.mini-vinyl-player.is-playing .mini-vinyl-disc {
  animation-play-state: running;
  box-shadow:
    0 0 0 3px rgba(110, 29, 39, 0.22),
    0 4px 10px rgba(44, 38, 39, 0.34);
}

.mini-vinyl-grooves {
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0,
    transparent 1.8px,
    rgba(255, 255, 255, 0.08) 2.2px,
    transparent 2.7px
  );
}

.mini-vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 25deg,
    rgba(255, 255, 255, 0.18) 0deg 35deg,
    transparent 50deg 190deg,
    rgba(255, 255, 255, 0.14) 205deg 235deg,
    transparent 250deg 360deg
  );
}

.mini-vinyl-label {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle, #8c2633 0%, #6e1d27 100%);
  border: 1.5px solid #e7d5b5;
  display: grid;
  place-items: center;
}

.mini-vinyl-hole {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--paper-ivory);
}

.mini-vinyl-tonearm {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e5d2b0 0%, #b09872 100%);
  border: 0.8px solid rgba(44, 38, 39, 0.55);
  transform-origin: top center;
  transform: rotate(8deg);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.mini-vinyl-tonearm::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8c29d;
  border: 1px solid rgba(44, 38, 39, 0.6);
}

.mini-vinyl-player.is-playing .mini-vinyl-tonearm {
  transform: rotate(28deg);
}

.vinyl-floating-notes {
  position: absolute;
  top: -4px;
  left: -2px;
  pointer-events: none;
  opacity: 0;
}

.mini-vinyl-player.is-playing .vinyl-floating-notes {
  opacity: 1;
}

.vinyl-floating-notes span {
  position: absolute;
  font-size: 0.72rem;
  color: var(--burgundy);
}

.vinyl-floating-notes span:first-child {
  animation: note-float-1 2.2s ease-out infinite;
}

.vinyl-floating-notes span:last-child {
  left: 8px;
  animation: note-float-2 2.4s ease-out 0.9s infinite;
}

/* 最右邊：展開選單按鈕（桌機與手機皆常駐於最右側） */
.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--paper-cotton);
  border: 1px solid var(--paper-edge);
  border-radius: 9px;
  cursor: pointer;
  box-shadow:
    -1.5px -1.5px 3px var(--emboss-highlight),
    1.5px 1.5px 4px var(--emboss-shadow);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background: #fff;
  border-color: var(--burgundy);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--burgundy);
}

/* ---------------- 共用章節排版 ---------------- */
.section {
  padding: 2.8rem 1.75rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.85rem;
}

.script-eyebrow {
  font-family: var(--font-script);
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--burgundy);
}

.section-heading h2 {
  margin-top: 0.15rem;
  font-size: 1.48rem;
  color: var(--ink);
}

.section-subtitle {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------------- 第一屏 Hero 主視覺：240px 古典黑膠雙主角 × 手繪新人 ---------------- */
.hero-section {
  padding: 1.75rem 1.4rem 2.4rem;
}

.hero-scallop-frame {
  position: relative;
  padding: 1.75rem 1.35rem 2.1rem;
  border-radius: 16px;
  border: 1.6px solid rgba(140, 168, 196, 0.75);
  background:
    radial-gradient(circle at 50% 0%, rgba(220, 230, 241, 0.28), transparent 55%),
    var(--paper-ivory);
  box-shadow: inset 0 0 0 5px var(--paper-ivory), inset 0 0 0 6.2px rgba(140, 168, 196, 0.42);
  text-align: center;
}

.hero-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hero-eyebrow {
  font-family: var(--font-num-en);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--slate-deep);
}

.hero-meta-dot {
  color: var(--burgundy);
  font-size: 0.7rem;
}

.hero-illustration-wrap {
  max-width: 340px;
  margin: 0 auto 0.4rem;
}

.hero-couple-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-script-title {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 5.5vw, 2.7rem);
  color: var(--burgundy);
  line-height: 1.18;
  margin-top: 0.25rem;
}

.couple-en {
  margin-top: 0.25rem;
  font-family: var(--font-num-en);
  font-size: 0.96rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--slate-deep);
}

.couple-zh {
  margin-top: 0.45rem;
  font-family: var(--font-display-zh);
  font-size: clamp(1.65rem, 4.2vw, 2.05rem);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

.heart-mark {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--burgundy);
}

.hero-quote {
  margin: 0.9rem auto 1.45rem;
  max-width: 440px;
  font-family: var(--font-display-zh);
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* 手繪愛心圈選當週日曆（像素級置中對位） */
.week-calendar {
  margin: 1.25rem auto 0.9rem;
  padding: 1.05rem 0.5rem;
  max-width: 440px;
  border-top: 1px solid rgba(110, 29, 39, 0.16);
  border-bottom: 1px solid rgba(110, 29, 39, 0.16);
}

.calendar-month-title {
  font-family: var(--font-script), var(--font-display-zh);
  font-size: 1.65rem;
  color: var(--slate-deep);
  margin-bottom: 0.7rem;
}

.week-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
  align-items: start;
}

.cal-day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.25rem 0.05rem;
}

.cal-weekday {
  font-family: var(--font-num-en);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-indent: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-num-box {
  position: relative;
  width: 44px;
  height: 44px;
  margin-top: 0.32rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.cal-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-num-en);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}

.cal-day-cell.is-wedding-day .cal-weekday {
  color: var(--burgundy);
  font-weight: 700;
}

.cal-day-cell.is-wedding-day .cal-num {
  color: var(--burgundy);
  font-weight: 700;
  transform: translateY(-1px);
}

.cal-heart-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  z-index: 1;
}

/* 手繪串燈分隔線 */
.string-lights-divider {
  max-width: 420px;
  margin: 0.85rem auto 0.6rem;
}

.string-lights-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 等高對稱壓紋棉紙倒數計時方卡 */
.countdown-block {
  margin-top: 0.4rem;
}

.countdown-heading {
  font-family: var(--font-num-en), var(--font-body-zh);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--slate-deep);
  margin-bottom: 0.7rem;
}

.countdown-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 372px;
  margin: 0 auto;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.25rem;
  border-radius: 12px;
  background: var(--paper-cotton);
  border: 1px solid rgba(146, 132, 114, 0.24);
  box-shadow:
    inset 1.5px 1.5px 4px rgba(146, 132, 114, 0.2),
    inset -1.5px -1.5px 4px var(--emboss-highlight);
}

.cd-val {
  font-family: var(--font-num-en);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--burgundy);
}

.cd-lbl {
  font-family: var(--font-num-en);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--muted);
  margin-top: 0.34rem;
}

.countdown-status {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.calendar-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.action-dot {
  color: var(--muted);
}

/* ---------------- 我們的故事：浮雕橢圓徽章框 ---------------- */
.story-section {
  border-top: 1px solid rgba(110, 29, 39, 0.14);
  background: linear-gradient(180deg, rgba(239, 233, 221, 0.35) 0%, transparent 100%);
}

.section-bow-svg {
  width: 78px;
  height: auto;
  display: block;
  margin: 0 auto 0.25rem;
}

.cameo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cameo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cameo-medallion {
  position: relative;
  width: 176px;
  height: 214px;
  border-radius: 50% / 48%;
  background: var(--paper-cotton);
  padding: 16px;
  box-shadow:
    -4px -4px 9px var(--emboss-highlight),
    4px 6px 12px var(--emboss-shadow),
    inset 2px 2px 6px rgba(146, 132, 114, 0.25),
    inset -2px -2px 6px var(--emboss-highlight);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.cameo-inner-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50% / 48%;
  background: var(--paper-ivory);
  border: 1px solid rgba(146, 132, 114, 0.28);
  box-shadow: inset 2px 3px 7px rgba(146, 132, 114, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  overflow: hidden;
}

.cameo-inner-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cameo-monogram-art {
  width: 72px;
  height: 72px;
}

.cameo-role-en {
  font-family: var(--font-num-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--muted);
}

.cameo-bio {
  margin-top: 1rem;
}

.role-label {
  display: inline-block;
  font-family: var(--font-num-en), var(--font-body-zh);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--slate-deep);
}

.cameo-bio h3 {
  margin-top: 0.2rem;
  font-size: 1.24rem;
  color: var(--burgundy);
}

.cameo-bio p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.story-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.milestone-card {
  padding: 1.15rem 0.95rem;
  border-radius: 12px;
  background: var(--paper-ivory);
  border: 1px solid rgba(110, 29, 39, 0.2);
  box-shadow:
    inset 0 0 0 3px var(--paper-ivory),
    inset 0 0 0 4px rgba(140, 168, 196, 0.35),
    0 6px 14px rgba(146, 132, 114, 0.14);
  text-align: center;
}

.milestone-tag {
  display: block;
  font-family: var(--font-num-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--slate-deep);
}

.milestone-card h4 {
  margin-top: 0.35rem;
  font-size: 1.02rem;
  color: var(--burgundy);
}

.milestone-card p {
  margin-top: 0.35rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------------- 典藏婚紗相簿：立體盲壓浮雕雕花框 × 多圖輪播 ---------------- */
.gallery-section {
  border-top: 1px solid rgba(110, 29, 39, 0.14);
}

.embossed-frame-card {
  position: relative;
  padding: 2.35rem 1.5rem 1.55rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #f3ede2 0%, #ebe3d5 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    -5px -5px 12px var(--emboss-highlight),
    6px 8px 18px var(--emboss-shadow),
    inset 0 0 28px rgba(162, 148, 128, 0.18);
}

.embossed-ornament-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.embossed-aperture-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.embossed-oval-window {
  width: min(355px, calc(100% - 76px));
  aspect-ratio: 3 / 4;
  padding: 12px;
  border-radius: 180px 180px 26px 26px;
  background: #ece4d6;
  box-shadow:
    -3px -3px 7px var(--emboss-highlight),
    4px 5px 10px var(--emboss-shadow),
    inset 3px 4px 8px rgba(146, 132, 114, 0.34),
    inset -2px -2px 6px var(--emboss-highlight);
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 170px 170px 18px 18px;
  overflow: hidden;
  background: var(--paper-ivory);
  border: 1px solid rgba(146, 132, 114, 0.25);
  box-shadow: inset 0 2px 10px rgba(80, 68, 54, 0.16);
  cursor: zoom-in;
  touch-action: pan-y;
}

.carousel-stage:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.55s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 無圖片時的典藏手繪插畫槽位 */
.slide-placeholder {
  width: 100%;
  height: 100%;
  padding: 1.5rem 1.25rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(220, 230, 241, 0.45), transparent 65%),
    linear-gradient(180deg, #faf6ee 0%, #f1e9dc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
}

.slide-scene-tag {
  font-family: var(--font-num-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--slate-deep);
}

.slide-placeholder-svg {
  width: 82px;
  height: 82px;
  margin: 0.25rem 0;
}

.slide-placeholder-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--burgundy);
}

.slide-placeholder-hint {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 210px;
}

.carousel-nav-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(146, 132, 114, 0.35);
  background: var(--paper-ivory);
  color: var(--burgundy);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    -2px -2px 5px var(--emboss-highlight),
    2px 3px 6px var(--emboss-shadow);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.carousel-nav-btn:hover {
  transform: scale(1.08);
  background: #fff;
}

.carousel-meta-bar {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.35rem;
}

.carousel-counter {
  font-family: var(--font-num-en);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.1em;
  color: var(--burgundy);
}

.carousel-caption {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  flex: 1 1 auto;
}

.carousel-autoplay-btn {
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 132, 114, 0.38);
  background: var(--paper-ivory);
  font-family: var(--font-body-zh);
  font-size: 0.74rem;
  color: var(--slate-deep);
  cursor: pointer;
}

.carousel-autoplay-btn[aria-pressed="true"] {
  border-color: rgba(110, 29, 39, 0.35);
  color: var(--burgundy);
}

/* 橫向縮圖膠卷列 */
.carousel-thumbs-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0.95rem;
}

.carousel-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb-item {
  flex: 0 0 54px;
  height: 68px;
  padding: 3px;
  border-radius: 28px 28px 8px 8px;
  border: 1.5px solid rgba(146, 132, 114, 0.32);
  background: var(--paper-ivory);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px 24px 5px 5px;
  display: block;
}

.thumb-num {
  font-family: var(--font-num-en);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--slate-deep);
}

.thumb-sub {
  font-size: 0.6rem;
  color: var(--muted);
}

.thumb-item.is-active {
  border-color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(110, 29, 39, 0.22);
}

.thumb-item.is-active .thumb-num {
  color: var(--burgundy);
}

.gallery-preview-tools {
  position: relative;
  z-index: 2;
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------------- 霧霾藍直條紋時間軸區塊 ---------------- */
.timeline-band {
  position: relative;
  padding: 3.1rem 1.35rem;
  background: repeating-linear-gradient(
    90deg,
    var(--slate-ice) 0 18px,
    #f9f5ed 18px 36px
  );
  border-block: 1px solid rgba(70, 96, 122, 0.22);
}

.timeline-paper-card {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 16px;
  background: var(--paper-ivory);
  border: 1.5px solid rgba(70, 96, 122, 0.35);
  box-shadow:
    inset 0 0 0 5px var(--paper-ivory),
    inset 0 0 0 6px rgba(110, 29, 39, 0.22),
    0 14px 30px rgba(52, 74, 96, 0.14);
  text-align: center;
}

.timeline-paper-card h2 {
  font-size: 1.48rem;
}

.band-date-sub {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--slate-deep);
  letter-spacing: 0.06em;
  margin-bottom: 1.65rem;
}

.illustrated-timeline {
  display: grid;
  gap: 0.4rem;
}

.tl-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 0.55rem 0.5rem;
}

.tl-step-reverse {
  grid-template-columns: 1fr 120px;
}

.tl-step-reverse .tl-illustration {
  order: 2;
}

.tl-step-reverse .tl-content {
  order: 1;
  text-align: right;
}

.tl-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.tl-time {
  display: inline-block;
  font-family: var(--font-num-en);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--burgundy);
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(110, 29, 39, 0.32);
  padding-bottom: 0.12rem;
}

.tl-content h3 {
  margin-top: 0.32rem;
  font-size: 1.06rem;
  color: var(--ink);
}

.tl-content p {
  margin-top: 0.25rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.tl-arrow-svg {
  width: 118px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.info-note {
  margin-top: 1.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------- Dress Code 波浪卡 & 松山意舍交通指南 ---------------- */
.details-section {
  display: grid;
  gap: 2.2rem;
}

.dresscode-card {
  position: relative;
  padding: 2.3rem 1.45rem 1.85rem;
  border-radius: 22px;
  background: var(--paper-ivory);
  border: 1.5px solid rgba(110, 29, 39, 0.36);
  box-shadow:
    inset 0 0 0 5px var(--paper-ivory),
    inset 0 0 0 6.5px rgba(140, 168, 196, 0.45),
    0 10px 24px rgba(146, 132, 114, 0.16);
  text-align: center;
}

.dresscode-bow-svg {
  width: 88px;
  height: auto;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.dresscode-card h2 {
  font-size: 1.38rem;
}

.dresscode-desc {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.swatch-palette {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.05rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
}

.swatch-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid #fff;
  box-shadow:
    -2px -2px 4px var(--emboss-highlight),
    2px 4px 8px rgba(110, 96, 80, 0.28);
}

.swatch-name {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* 婚禮地點卡 */
.venue-card {
  padding: 1.65rem 1.45rem;
  border-radius: 16px;
  background: var(--paper-ivory);
  border: 1.5px solid rgba(70, 96, 122, 0.42);
  box-shadow:
    inset 0 0 0 5px var(--paper-ivory),
    inset 0 0 0 6px rgba(70, 96, 122, 0.24),
    0 10px 24px rgba(146, 132, 114, 0.15);
  text-align: center;
}

.venue-card h2 {
  margin-top: 0.15rem;
  font-size: 1.34rem;
}

.venue-address {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: var(--slate-deep);
  font-weight: 500;
  margin-bottom: 1.35rem;
}

.traffic-list {
  display: grid;
  gap: 0.8rem;
  text-align: left;
  margin-bottom: 1.45rem;
}

.traffic-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: rgba(239, 233, 221, 0.48);
  border: 1px solid rgba(146, 132, 114, 0.28);
}

.traffic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.4rem;
  border-radius: 999px;
  background: var(--paper-ivory);
  border: 1px solid rgba(70, 96, 122, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-deep);
}

.traffic-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--burgundy);
  margin-bottom: 0.15rem;
}

.traffic-item p {
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---------------- RSVP 歐式紙本回函卡 ---------------- */
.rsvp-section {
  border-top: 1px solid rgba(110, 29, 39, 0.14);
  background: linear-gradient(180deg, transparent 0%, rgba(220, 230, 241, 0.24) 100%);
}

.rsvp-shell {
  padding: 1.9rem 1.55rem 2.1rem;
  border-radius: 16px;
  background: var(--paper-ivory);
  border: 1.5px solid rgba(110, 29, 39, 0.3);
  box-shadow:
    inset 0 0 0 5px var(--paper-ivory),
    inset 0 0 0 6px rgba(140, 168, 196, 0.38),
    0 12px 26px rgba(146, 132, 114, 0.15);
}

.rsvp-toast-svg {
  width: 156px;
  height: auto;
  display: block;
  margin: 0 auto 0.35rem;
}

.rsvp-heading {
  margin-bottom: 1.5rem;
}

.rsvp-form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group label,
.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.required {
  color: var(--burgundy);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--paper-edge);
  border-radius: 8px;
  background: #fbf8f2;
  font-family: var(--font-body-zh);
  font-size: 1rem;
  color: var(--ink);
  box-shadow: inset 1px 1.5px 3px rgba(146, 132, 114, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow:
    inset 1px 1.5px 3px rgba(146, 132, 114, 0.14),
    0 0 0 3px rgba(110, 29, 39, 0.12);
}

.radio-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pill-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--paper-edge);
  border-radius: 10px;
  background: #fbf8f2;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option:has(input:checked) {
  border-color: var(--burgundy);
  background: var(--burgundy-tint);
  color: var(--burgundy);
  font-weight: 600;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--burgundy);
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.form-error {
  color: var(--burgundy-rose);
  font-size: 0.88rem;
  font-weight: 600;
}

.rsvp-success {
  text-align: center;
  padding: 1.2rem 0.5rem;
}

.success-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  display: grid;
  place-items: center;
  background: var(--burgundy-tint);
  color: var(--burgundy);
  font-size: 1.4rem;
}

.rsvp-success h3 {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.rsvp-success p {
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.rsvp-delivery-note {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  margin-bottom: 1.3rem !important;
}

/* ---------------- 頁尾：勃根地酒紅橢圓浮雕紋章 ---------------- */
.site-footer {
  padding: 2.6rem 1.5rem 2.8rem;
  border-top: 1px solid rgba(110, 29, 39, 0.16);
  text-align: center;
  background: linear-gradient(180deg, rgba(239, 233, 221, 0.45) 0%, #ede4d5 100%);
}

.burgundy-medallion {
  width: 108px;
  height: 136px;
  margin: 0 auto 1rem;
  padding: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #8c2633 0%, #6e1d27 65%, #53131b 100%);
  box-shadow:
    -2px -2px 6px var(--emboss-highlight),
    3px 6px 14px rgba(83, 19, 27, 0.34),
    inset 1.5px 1.5px 4px rgba(255, 220, 224, 0.22);
  display: grid;
  place-items: center;
}

.burgundy-medallion-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(247, 243, 235, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #faf6ee;
}

.medallion-monogram {
  font-family: var(--font-script), var(--font-num-en);
  font-size: 1.7rem;
  line-height: 1.1;
}

.medallion-sub {
  font-family: var(--font-num-en);
  font-size: 0.65rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  opacity: 0.9;
}

.footer-names {
  font-family: var(--font-display-zh);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--burgundy);
}

.footer-date {
  margin-top: 0.25rem;
  font-family: var(--font-num-en);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--slate-deep);
}

.footer-tools {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.btn-link {
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-body-zh);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--burgundy);
}

.yt-hidden-host {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 240px;
  height: 135px;
  opacity: 0.001;
  pointer-events: none;
}

/* ---------------- 燈箱 & 管理後台彈窗 ---------------- */
.lightbox,
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(31, 45, 59, 0.84);
  backdrop-filter: blur(6px);
  padding: 1.25rem;
}

.lightbox[hidden],
.admin-modal[hidden] {
  display: none;
}

.lightbox-stage {
  width: min(560px, 100%);
  text-align: center;
}

.lightbox-frame {
  aspect-ratio: 3 / 4;
  max-height: 76vh;
  margin: 0 auto;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper-ivory);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: #faf6ee;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: var(--paper-ivory);
  color: var(--burgundy);
  border: 1px solid var(--paper-edge);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lightbox-close { top: 1.1rem; right: 1.1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.admin-dialog {
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper-ivory);
  border: 1.5px solid var(--burgundy);
  border-radius: 18px;
  padding: 1.65rem;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-eyebrow {
  font-family: var(--font-num-en);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--slate-deep);
}

.admin-header h3 {
  margin-top: 0.2rem;
  font-size: 1.32rem;
}

.admin-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--paper-edge);
  background: #fff;
  color: var(--burgundy);
  font-size: 1.3rem;
  cursor: pointer;
}

.admin-auth-form {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.admin-auth-row {
  display: flex;
  gap: 0.65rem;
}

.admin-auth-row input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--paper-edge);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body-zh);
  font-size: 1rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-box {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--paper-edge);
  background: #fff;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: var(--font-num-en);
  font-size: 1.45rem;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--burgundy);
}

.stat-box span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.admin-source-tag {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--paper-edge);
  border-radius: 10px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body-zh);
  font-size: 0.84rem;
}

.admin-table th,
.admin-table td {
  padding: 0.62rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee7dc;
  white-space: nowrap;
}

.admin-table th {
  background: var(--paper-cotton);
  font-weight: 600;
  color: var(--burgundy);
}

/* 進場動畫 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mini-vinyl-disc,
  .vinyl-floating-notes span {
    animation: none !important;
  }
}

/* ---------------- RWD 響應式調整 ---------------- */
@media (max-width: 720px) {
  .invitation-stage {
    padding: 1.2rem 0.5rem 2.2rem;
  }

  .stage-watermarks {
    display: none;
  }

  .invitation-outer-frame {
    padding: 0.6rem 0.55rem 0.9rem;
    border-radius: 14px;
  }

  .outer-bow-svg {
    width: 82px;
    margin-top: -22px;
  }

  .nav-inner {
    padding: 0.5rem 0.85rem;
  }

  .section {
    padding: 2.2rem 1rem;
  }

  .hero-section {
    padding: 1.1rem 0.75rem 1.8rem;
  }

  .hero-scallop-frame {
    padding: 1.35rem 0.9rem 1.65rem;
  }

  .cal-num-box {
    width: 38px;
    height: 38px;
  }

  .cal-num {
    font-size: 0.96rem;
  }

  .countdown-row {
    gap: 0.45rem;
  }

  .cd-unit {
    padding: 0.6rem 0.15rem;
  }

  .cd-val {
    font-size: 1.25rem;
  }

  .cameo-pair,
  .story-milestones,
  .form-row,
  .radio-pills {
    grid-template-columns: 1fr;
  }

  .embossed-frame-card {
    padding: 1.75rem 0.75rem 1.3rem;
  }

  .embossed-oval-window {
    width: calc(100% - 68px);
    padding: 8px;
  }

  .carousel-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .timeline-band {
    padding: 2.2rem 0.75rem;
  }

  .timeline-paper-card {
    padding: 1.5rem 1rem;
  }

  .tl-step,
  .tl-step-reverse {
    grid-template-columns: 88px 1fr;
    gap: 0.75rem;
  }

  .tl-step-reverse .tl-illustration {
    order: 0;
  }

  .tl-step-reverse .tl-content {
    order: 0;
    text-align: left;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}
