@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700;900&display=swap");

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

:root {
  --crimson: #5a0a0a;
  --deep-red: #7a1515;
  --mid-red: #8b1c1c;
  --gold: #c8922a;
  --gold2: #e8aa40;
  --lt-gold: #f5d070;
  --pale: #fffbe0;
  --dark: #120303;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  font-family: "Noto Serif TC", serif;
  min-height: 100vh;
}

.scroll-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--mid-red);
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  box-shadow:
    0 0 80px rgba(200, 146, 42, 0.35),
    inset 0 0 120px rgba(0, 0, 0, 0.25);
  position: relative;
}

.wave {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 4px,
    var(--mid-red) 4px 8px
  );
}
.wave-thin {
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(200, 146, 42, 0.6) 0 3px,
    transparent 3px 6px
  );
}

.cloud-bar {
  background: var(--crimson);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(200, 146, 42, 0.5);
}
.cloud-bar-text {
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(245, 208, 112, 0.65);
  flex: 1;
  text-align: center;
}
.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(200, 146, 42, 0.8);
}

.hero {
  padding: 52px 30px 40px;
  text-align: center;
  background: radial-gradient(
    ellipse at center top,
    rgba(200, 146, 42, 0.18) 0%,
    transparent 70%
  );
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 40%,
      rgba(200, 146, 42, 0.06) 60px,
      transparent 60px
    ),
    radial-gradient(
      circle at 85% 60%,
      rgba(200, 146, 42, 0.06) 60px,
      transparent 60px
    );
  pointer-events: none;
}
.xi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 13vw, 110px);
  height: clamp(80px, 13vw, 110px);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--crimson),
    #a52020,
    #c00,
    #a52020,
    var(--crimson)
  );
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(200, 146, 42, 0.2),
    0 0 40px rgba(200, 146, 42, 0.5);
  margin-bottom: 20px;
  animation: glow-pulse 3s ease-in-out infinite;
}
.xi-badge span {
  font-size: clamp(38px, 7vw, 58px);
  color: var(--lt-gold);
  text-shadow: 0 0 14px rgba(255, 200, 50, 0.9);
  font-weight: 900;
  -webkit-text-stroke: 0.5px var(--gold);
}
@keyframes glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(200, 146, 42, 0.2),
      0 0 40px rgba(200, 146, 42, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(200, 146, 42, 0.12),
      0 0 60px rgba(200, 146, 42, 0.75);
  }
}

/* 標題與頂部說明樣式 */
.hero-title {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 900;
  color: var(--pale);
  letter-spacing: 8px;
  text-shadow:
    0 0 20px rgba(255, 200, 50, 0.45),
    1px 2px 6px rgba(0, 0, 0, 0.8);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(11px, 2vw, 14px);
  color: rgba(245, 208, 112, 0.7);
  letter-spacing: 4px;
  line-height: 2;
}
.hero-vert-l,
.hero-vert-r {
  position: absolute;
  top: 50px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(11px, 1.8vw, 16px);
  font-weight: 900;
  color: rgba(245, 208, 112, 0.5);
  letter-spacing: 6px;
}
.hero-vert-l {
  left: 14px;
}
.hero-vert-r {
  right: 14px;
}

.hero-title {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 900;
  color: var(--pale);
  letter-spacing: 8px;
  text-shadow:
    0 0 20px rgba(255, 200, 50, 0.45),
    1px 2px 6px rgba(0, 0, 0, 0.8);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(11px, 2vw, 14px);
  color: rgba(245, 208, 112, 0.7);
  letter-spacing: 4px;
  line-height: 2;
}
.hero-vert-l,
.hero-vert-r {
  position: absolute;
  top: 50px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(11px, 1.8vw, 16px);
  font-weight: 900;
  color: rgba(245, 208, 112, 0.5);
  letter-spacing: 6px;
}
.hero-vert-l {
  left: 14px;
}
.hero-vert-r {
  right: 14px;
}

.orn-div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  margin: 6px 0;
}
.orn-div::before,
.orn-div::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.orn-div-icon {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.slider-wrap {
  padding: 24px 28px;
}
.slider-box {
  position: relative;
  width: 100%;
  aspect-ratio: 380/430;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border: 2px solid rgba(200, 146, 42, 0.55);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}
.photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.photo img {
  position: absolute;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  transform-origin: top left;
}
.photo-left {
  clip-path: inset(0 50% 0 0);
}
.s-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--lt-gold) 12%,
    #fff8e0 50%,
    var(--lt-gold) 88%,
    transparent
  );
  box-shadow: 0 0 14px rgba(255, 210, 60, 0.9);
  z-index: 5;
  pointer-events: none;
}
.s-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--gold),
    var(--lt-gold),
    #fffbe0,
    var(--lt-gold),
    var(--gold)
  );
  border: 2.5px solid #fff8e0;
  box-shadow:
    0 0 20px rgba(200, 146, 42, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.6);
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-handle-in {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffbe0, #d4a030 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #4a2000;
  font-weight: 900;
  letter-spacing: 1px;
}
.sc {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 7;
  pointer-events: none;
}
.sc-tl {
  top: 5px;
  left: 5px;
}
.sc-tr {
  top: 5px;
  right: 5px;
  transform: scaleX(-1);
}
.sc-bl {
  bottom: 5px;
  left: 5px;
  transform: scaleY(-1);
}
.sc-br {
  bottom: 5px;
  right: 5px;
  transform: scale(-1, -1);
}
.s-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 208, 112, 0.8);
  font-size: 10px;
  letter-spacing: 3px;
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  animation: hintFade 3.5s 0.8s ease forwards;
}
@keyframes hintFade {
  0%,
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.slider-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(245, 208, 112, 0.55);
}

.couple-section {
  padding: 36px 30px 28px;
  text-align: center;
  background: rgba(0, 0, 0, 0.12);
}
.sec-title {
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 900;
  color: var(--lt-gold);
  letter-spacing: 8px;
  margin-bottom: 6px;
}
.sec-title-bar {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 28px;
}
.couple-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.person {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}
.person-role {
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--gold);
  border: 1px solid rgba(200, 146, 42, 0.4);
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.person-name {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  color: var(--pale);
  letter-spacing: 6px;
  text-shadow:
    0 0 16px rgba(255, 200, 50, 0.4),
    1px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1;
  margin-bottom: 14px;
}
.person-parents {
  font-size: 11px;
  color: rgba(245, 208, 112, 0.6);
  letter-spacing: 2px;
  line-height: 2.2;
}
.couple-sep {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  color: var(--gold);
  font-size: 20px;
}
.couple-sep-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.details-section {
  padding: 32px 28px;
}
.detail-grid {
  display: grid;
  gap: 14px;
}
.detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(200, 146, 42, 0.22);
  border-left: 3px solid var(--gold);
  transition: background 0.3s;
}
.detail-card:hover {
  background: rgba(0, 0, 0, 0.28);
}
.d-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  padding-top: 2px;
}
.d-label {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 5px;
}
.d-val {
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--pale);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.7;
}
.d-sub {
  font-size: 11px;
  color: rgba(245, 208, 112, 0.6);
  margin-top: 4px;
  letter-spacing: 1px;
  line-height: 1.8;
}

.poetry-section {
  padding: 36px 30px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}
.poetry-text {
  font-size: clamp(13px, 2.2vw, 16px);
  color: rgba(245, 208, 112, 0.8);
  letter-spacing: 4px;
  line-height: 3;
}
.poetry-text::before {
  content: "\300C";
  font-size: 1.5em;
  color: var(--gold);
  vertical-align: -0.15em;
}
.poetry-text::after {
  content: "\300D";
  font-size: 1.5em;
  color: var(--gold);
  vertical-align: -0.15em;
}

.rsvp-section {
  padding: 40px 30px;
  text-align: center;
}
.rsvp-body {
  font-size: clamp(12px, 2vw, 14px);
  color: rgba(245, 208, 112, 0.75);
  letter-spacing: 2px;
  line-height: 2.6;
  margin-bottom: 30px;
}
.rsvp-deadline {
  display: inline-block;
  border: 1px solid rgba(200, 146, 42, 0.5);
  padding: 4px 16px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 3px;
  margin: 8px 0 20px;
}
.btn-rsvp {
  display: inline-block;
  padding: 15px 48px;
  background: linear-gradient(
    135deg,
    #a06010 0%,
    #f5d070 45%,
    #c8922a 55%,
    #f5d070 100%
  );
  color: #2a0800;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 900;
  letter-spacing: 5px;
  text-decoration: none;
  box-shadow:
    0 4px 22px rgba(200, 146, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-rsvp::before {
  content: "\25C7 ";
}
.btn-rsvp::after {
  content: " \25C7";
}
.btn-rsvp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(200, 146, 42, 0.7);
}

.map-section {
  padding: 32px 28px 40px;
}
.map-frame {
  width: 100%;
  height: 280px;
  border: 2px solid rgba(200, 146, 42, 0.4);
  overflow: hidden;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.transport-box {
  margin-top: 14px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(200, 146, 42, 0.22);
  border-left: 3px solid var(--gold);
}
.transport-title {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
}
.transport-item {
  font-size: 12px;
  color: rgba(245, 208, 112, 0.7);
  letter-spacing: 1.5px;
  line-height: 2.2;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.transport-icon {
  flex-shrink: 0;
}

.footer {
  padding: 40px 30px;
  text-align: center;
  background: var(--crimson);
  border-top: 2px solid rgba(200, 146, 42, 0.6);
}
.footer-quote {
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(245, 208, 112, 0.6);
  line-height: 3;
  margin-bottom: 16px;
}
.footer-xi {
  font-size: 32px;
  color: var(--lt-gold);
  display: block;
  text-shadow: 0 0 12px rgba(255, 200, 50, 0.5);
  animation: glow-pulse 4s ease-in-out infinite;
}
