/* =========================================
   Wedding Page 1 — Ceremony Info
   ========================================= */

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

:root {
  --bg:          #F3E5D3;   /* 页面主背景 */
  --bg-soft:     #FBF7F2;   /* 分区浅背景 */
  --bg-card:     #FFFFFF;
  --text:        #3B2F2A;   /* 主标题 / 正文 */
  --text-md:     #5B4A42;   /* 副标题 / 次级说明 */
  --text-lt:     #9A8880;   /* 辅助文字 */
  --sage:        #FFF8F0;   /* 主色 */
  --sage-lt:     #FFF8F0;   /* 主色淡 */
  --sage-dk:     #E8D8C0;   /* 主色深 hover */
  --accent:      #8C5D63;   /* 辅助点缀 */
  --gold:        #C8A06A;   /* 细节高光 */
  --gold-lt:     #DCBC90;   /* 高光淡 */
  --border:      #E5D5C4;   /* 边框 */
  --white:       #FFFFFF;

  --font-display: 'Noto Serif SC', serif;
  --font-en:      'Noto Serif SC', serif;
  --font-cn:      'Noto Serif SC', serif;

  --radius: 18px;
  --shadow: 0 6px 32px rgba(59,47,42,.08);
  --trans:  all .4s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-cn); line-height: 1.8; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 36px;
  display: flex; justify-content: center;
  background: transparent;
  border-bottom: none;
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease;
}
.site-header.scrolled {
  background: transparent;
}
.header-inner { display: flex; align-items: center; gap: 16px; }
.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 56px;
}
.logo-container .flower-line {
  display: block;
}
.logo-container .flower-line path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawFlower 2.5s ease forwards;
}
.logo-container .letter {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #bfa15a;
  line-height: 1;
  z-index: 2;
}
.logo-container .letter:first-of-type {
  transform: translate(-110%, -50%);
}
.logo-container .letter:last-of-type {
  transform: translate(10%, -50%);
}
@keyframes drawFlower {
  to { stroke-dashoffset: 0; }
}
.logo-divider { width: 1px; height: 22px; background: rgba(200, 160, 106, 0.4); }
.logo-cn { font-family: var(--font-cn); font-size: .82rem; letter-spacing: .3em; color: rgba(220, 188, 144, 0.9); }

/* ── Hero ── */
.hero { position: relative; width: 100%; aspect-ratio: 2/3; max-height: 100vh; overflow: hidden; }

/* ── 加载遮罩 ── */
.hero-loader {
  position: absolute; inset: 0; z-index: 20;
  background: #2A201C;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease;
}
.hero-loader.loaded {
  opacity: 0;
  pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-bar-wrap {
  width: 160px; height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto 14px;
}
.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 2px;
  transition: width .3s ease;
}
.loader-text {
  font-family: var(--font-en); font-style: italic;
  font-size: .82rem; letter-spacing: .2em;
  color: rgba(255,255,255,.45);
}

.slideshow { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: contain; background-position: center center;
  background-repeat: no-repeat;
  background-color: #3B2F2A;
  opacity: 0; transition: opacity 1.2s ease;
  will-change: opacity;
}
.slide.active { opacity: 1; }
/* 第4张：双图并排各占50% */
.slide-duo { background: #3B2F2A; display: flex; gap: 0; }
.slide-duo-left,
.slide-duo-right {
  flex: 1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.slide-overlay { position: absolute; inset: 0; background: rgba(20,12,8,.15); pointer-events: none; }

/* 移动端：填满轮播区域 */
@media (max-width: 768px) {
  .slide { background-size: cover; background-position: center center; }
  .slide-duo-left, .slide-duo-right { background-size: cover; background-position: center center; }
}

.slide-dots {
  position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: var(--trans);
}
.dot.active { background: var(--white); width: 22px; border-radius: 3px; }

.hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center; color: var(--white); padding: 20px 20px 120px;
  z-index: 5; pointer-events: none;
}
.hero-sub,
.hero-title,
.hero-date { opacity: 0; transform: translateY(12px); }

.hero-sub {
  font-family: var(--font-en); font-size: clamp(.75rem,1.2vw,.95rem);
  text-transform: uppercase; letter-spacing: .42em; margin-bottom: 13px; font-weight: 400;
  animation: cinemaLine 1.2s cubic-bezier(.22,.6,.36,1) forwards;
  animation-delay: 1.4s;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 60px; font-weight: 400;
  line-height: 1.02; margin-bottom: 13px;
  text-shadow: 0 4px 40px rgba(0,0,0,.22);
  animation: cinemaLine 1.6s cubic-bezier(.22,.6,.36,1) forwards;
  animation-delay: 2.0s;
}
.hero-date {
  font-family: var(--font-en); font-size: clamp(.88rem,1.4vw,1.1rem);
  letter-spacing: .3em; font-weight: 300;
  animation: cinemaLine 1.2s cubic-bezier(.22,.6,.36,1) forwards;
  animation-delay: 2.9s;
}

@keyframes cinemaLine {
  0%   { opacity: 0; transform: translateY(18px); letter-spacing: .6em; }
  60%  { opacity: .45; }
  100% { opacity: .45; transform: translateY(0); letter-spacing: inherit; }
}

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55); cursor: pointer; z-index: 10;
  opacity: 0;
  animation: fadeInHint .8s ease forwards;
  animation-delay: 4.2s;
}
.scroll-hint svg { width: 26px; height: 26px; }
@keyframes fadeInHint { to { opacity: 1; } }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }
.scroll-hint.bouncing { animation: fadeInHint .8s ease forwards, bounce 2s 4.2s infinite; }

/* ── Section 通用 ── */
section { padding: 96px 24px; }

.section-label {
  text-align: center; font-family: var(--font-en);
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  text-align: center; font-family: var(--font-display);
  font-size: clamp(2rem,4.5vw,3rem); color: var(--text);
  font-weight: 400; margin-bottom: 14px;
}
.title-ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 56px;
}
.title-ornament span { display: block; width: 56px; height: 1px; background: var(--border); }
.title-ornament svg { width: 40px; height: 10px; overflow: visible; }
.title-ornament svg circle { fill: var(--gold-lt); }

.card-icon-gif {
  background: transparent;
  border: none;
  box-shadow: none;
}
.icon-gif {
  width: 72px; height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;   /* 白色背景与底色融合，视觉上透明 */
}
.btn-icon-gif {
  width: 22px; height: 22px;
  object-fit: contain;
  vertical-align: middle;
  mix-blend-mode: multiply;
}


.details { background: var(--bg-card); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.info-card {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 44px 28px 40px; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: var(--trans);
}
.info-card:hover { transform: translateY(-7px); box-shadow: 0 20px 52px rgba(59,47,42,.12); }

.card-icon {
  width: 72px; height: 72px;
  background: var(--bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; color: var(--sage);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(59,47,42,.06);
}
.card-icon svg { width: 34px; height: 34px; }
.card-title {
  font-family: var(--font-en); font-size: .76rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--text-lt); margin-bottom: 12px;
}
.card-main {
  font-family: var(--font-display); font-size: min(1.65rem, 5.5vw); font-weight: 400;
  color: var(--text); margin-bottom: 10px; line-height: 1.2;
  white-space: nowrap;
}
.card-sub {
  font-family: var(--font-cn); font-size: .9rem;
  color: var(--text-md); line-height: 1.75;
}

/* ── CTA ── */
.cta-section {
  text-align: center; color: var(--white);
}
/* 宾客参加方式收集独立配色 */
.cta-section.cta-entry {
  background: linear-gradient(160deg, #6B5040 0%, #4A3020 100%);
}
.cta-desc {
  font-family: var(--font-cn); font-size: clamp(1rem,2.5vw,1.25rem);
  letter-spacing: .1em; margin-bottom: 40px; opacity: .92;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--white); text-decoration: none;
  padding: 15px 44px; border-radius: 60px;
  font-family: var(--font-cn); font-size: .95rem; letter-spacing: .12em;
  transition: var(--trans); box-shadow: 0 6px 28px rgba(200,160,106,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(200,160,106,.5); }
.btn-primary svg { width: 17px; height: 17px; }
.cta-note { margin-top: 18px; font-size: .76rem; letter-spacing: .12em; opacity: .5; }

/* ── 三板块统一尺寸基础 ── */
.cta-section,
.game-entry-section {
  padding: 88px 24px;
  max-width: 100%;
}
.cta-section .cta-desc {
  max-width: none;
  white-space: nowrap;
}
.game-entry-section .game-entry-desc {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

/* ── 游戏入口 ── */
.game-entry-section {
  background: var(--bg-soft); text-align: center;
  border-top: 1px solid var(--border);
}
/* 祝福 MBTI 入口独立配色 */
.game-entry-section.mbti-entry {
  background: linear-gradient(160deg, #F9EFF5 0%, #F3E5D3 100%);
}
/* 万美好运棋局独立配色 */
.game-entry-section.game-entry {
  background: linear-gradient(160deg, #EBF3FF 0%, #F3E5D3 100%);
}
.game-entry-desc {
  font-size: .88rem; color: var(--text-lt); margin-bottom: 28px; letter-spacing: .06em;
}
.btn-game {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent, #8C5D63) 0%, #a87080 100%);
  color: var(--white); text-decoration: none;
  padding: 15px 44px; border-radius: 60px;
  font-family: var(--font-cn); font-size: .95rem; letter-spacing: .12em;
  transition: var(--trans); box-shadow: 0 6px 28px rgba(140,93,99,.3);
}
.btn-game:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(140,93,99,.45); }

/* ── Footer ── */
.site-footer {
  background: #2A201C; text-align: center;
  padding: 40px 24px; color: rgba(255,255,255,.5);
}
.footer-names {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: .15em; margin-bottom: 8px; color: var(--gold-lt);
}
.footer-quote { font-family: var(--font-en); font-style: italic; font-size: .85rem; letter-spacing: .08em; opacity: .7; }

/* ── 入场动画 ── */
.fade-in-up { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .30s; }
.delay-3 { transition-delay: .45s; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  section { padding: 64px 20px; }
  .cta-section,
  .game-entry-section { padding: 68px 20px; }
  .title-ornament { margin-bottom: 36px; }
  .site-header { padding: 8px 22px; top: 12px; }
}

@media (max-width: 480px) {
  /* Header */
  .site-header { padding: 12px 16px; }
  .logo-container { min-width: 72px; min-height: 46px; }
  .logo-container .flower-line { width: 72px; height: 46px; }
  .logo-container .letter { font-size: 1.3rem; }
  .logo-cn { font-size: .7rem; letter-spacing: .15em; }

  /* Hero */
  .hero-title { font-size: clamp(2.4rem,12vw,3.6rem); }
  .hero-sub   { letter-spacing: .25em; }
  .slide-dots { bottom: 80px; }

  /* Section */
  section { padding: 48px 16px; }
  .section-title { font-size: clamp(1.6rem,6vw,2.2rem); }
  .title-ornament { margin-bottom: 28px; }

  /* 卡片：手机端单列 */
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .info-card  { padding: 28px 20px; }
  .card-icon  { width: 60px; height: 60px; }
  .card-icon svg { width: 28px; height: 28px; }
  .card-main  { font-size: min(1.4rem, 5vw); }
  .card-sub   { font-size: .84rem; }

  /* CTA + 游戏入口 */
  .cta-section,
  .game-entry-section { padding: 52px 16px; }
  .cta-section .cta-desc { white-space: normal; font-size: .92rem; }
  .btn-primary { padding: 14px 32px; font-size: .88rem; }
}
