/* 各頁內容樣式 */

.page-scroll {
  position: relative;
  min-height: 100%;
  padding: 1.6rem 1.3rem 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.page-title {
  font-family: var(--font-serif-zh);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.3;
}

.page-subtitle-en {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: -0.3rem;
}

.section-subhead {
  font-family: var(--font-serif-zh);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--sage);
  margin-top: 0.6rem;
}

/* ---- 邀請頁 ---- */

.deco-foliage {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 86px;
  height: auto;
  opacity: 0.9;
}

.invite-couple {
  width: 78%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-top: 1.6rem;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 72%);
}

.invite-label-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}

.invite-names {
  font-family: var(--font-serif-zh);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
}

.invite-names .amp {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--gold);
  margin: 0 0.25em;
}

.invite-names-en {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--sage);
  letter-spacing: 0.03em;
}

.invite-date-badge {
  position: absolute;
  top: 1.4rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
}

.date-rule {
  width: 1px;
  height: 2.4rem;
  background: var(--gold);
  opacity: 0.7;
}

.date-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.date-year {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.date-big {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

.date-slash {
  font-style: italic;
  opacity: 0.55;
  font-size: 1rem;
}

.invite-date-text {
  font-family: var(--font-en);
  color: var(--sage);
}

.invite-schedule {
  font-weight: 700;
  color: var(--ink);
}

.gold-divider {
  width: 46px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  margin: 0.1rem 0;
}

.timeline-time,
.date-year,
.date-big,
.invite-date-text,
.invite-schedule {
  font-variant-numeric: lining-nums;
}

.invite-venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.venue-name {
  font-family: var(--font-serif-zh);
  font-weight: 500;
  color: var(--ink);
}

.venue-address {
  color: var(--sage);
  font-size: 1rem;
}

.invite-calendar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.invite-savedate {
  margin-top: auto;
  width: 220px;
  height: auto;
}

/* ---- 按鈕 ---- */

.btn {
  min-height: var(--touch);
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}

.btn-primary {
  background: var(--sage);
  color: var(--paper);
  box-shadow: 0 6px 16px var(--shadow);
}

.btn-outline {
  border: 1.4px solid var(--gold);
  color: var(--ink);
  text-decoration: none;
}

.btn-ghost {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
}

/* ---- 晚宴流程頁 ---- */

.deco-bridge {
  width: calc(100% + 2rem);
  margin: -1.6rem -1rem 0;
  height: 140px;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0 0 0 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.6s var(--ease-out);
}

.sheet.is-current .timeline::before {
  transform: scaleY(1);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.timeline-dot {
  position: absolute;
  left: -1.09rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--paper);
}

.sheet.is-current .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(1) { transition-delay: 0ms; }
.timeline-item:nth-child(2) { transition-delay: 90ms; }
.timeline-item:nth-child(3) { transition-delay: 180ms; }
.timeline-item:nth-child(4) { transition-delay: 270ms; }
.timeline-item:nth-child(5) { transition-delay: 360ms; }

.timeline-item img {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.timeline-time {
  font-family: var(--font-en);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
  width: 3.6rem;
  flex-shrink: 0;
}

.timeline-title {
  font-weight: 500;
  color: var(--ink);
}

.blessing-en {
  margin-top: auto;
  font-family: var(--font-en);
  font-style: italic;
  color: var(--sage);
  font-size: 1rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .timeline::before {
    transition: none;
    transform: scaleY(1);
  }
}

/* ---- 服裝與交通頁 ---- */

.dresscode {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.dresscode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1 1 0;
  min-width: 0;
}

.dresscode-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dresscode-item span {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--sage);
  text-align: center;
  overflow-wrap: break-word;
}

.map-image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
}

.transport-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
}

.transport-note {
  font-size: 1rem;
  color: var(--sage);
}

/* ---- 出席回覆頁 ---- */

.rsvp-page {
  justify-content: center;
  gap: 1rem;
}

.rsvp-invite-line {
  font-family: var(--font-serif-zh);
  font-size: 1.1rem;
  color: var(--ink);
}

.rsvp-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.rsvp-label-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.rsvp-page .deco-foliage {
  margin: 0;
}

.rsvp-savedate {
  width: 60%;
  max-width: 220px;
  height: auto;
  margin-top: 0.6rem;
  opacity: 0.85;
}

/* ---- 座位頁 ---- */

.seat-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
}

.seat-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  opacity: 0.55;
}

.seat-tint {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, 0.55);
}

.seat-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(78%, 260px);
  padding: 1.2rem 1rem;
  border: 1.4px solid var(--gold);
  border-radius: 14px;
  background: rgba(250, 248, 243, 0.92);
  text-align: center;
  box-shadow: 0 8px 20px var(--shadow);
}

.seat-notice {
  font-family: var(--font-serif-zh);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.seat-subnote {
  font-size: 1rem;
  color: var(--sage);
  text-wrap: balance;
}

/* ---- 封底（深綠布面＋燙金） ---- */

.cover-back {
  background-color: var(--sage);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
  background-blend-mode: normal;
}

.cover-back::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.85;
  pointer-events: none;
  border-radius: calc(var(--radius-page) - 10px);
}

.cover-back .page-scroll {
  justify-content: center;
}

.deco-treehouse {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-top: 0;
}

.cover-back .page-title {
  font-family: var(--font-serif-zh);
  font-weight: 700;
  font-size: 2.1rem;
  background: linear-gradient(100deg, #b8925a, #f3e2b8 45%, #a68456 60%, #e9d3a0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-soft);
}

.cover-back .page-subtitle-en {
  color: #e8dcc0;
  opacity: 0.95;
}

.music-credit {
  font-size: 0.75rem;
  color: var(--sage);
  max-width: 260px;
}

.cover-back .music-credit {
  color: #e8dcc0;
  opacity: 0.9;
}

.cover-back #open-privacy {
  color: #e8dcc0;
  text-decoration-color: rgba(232, 220, 192, 0.55);
}
