/* ============================================================
 * dist/tailwind.css — 预编译静态运行样式表（单文件，无需构建/CDN，微信友好）
 *
 * 组成：Tailwind preflight 重置 + 主题令牌(:root) + 基础样式
 *       + 工具类(精简常用集) + 组件类 + 动画 + 微信兼容补丁
 *
 * 说明：本文件为运行时唯一样式入口，index.html 直接引用。
 *       如需规范 Tailwind 编译，可在装有 Node 的机器执行 npm run build 覆盖。
 *       构建源见 ../css/custom.css。
 * ============================================================ */

/* ---------- Tailwind Preflight 精简版（reset） ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { margin: 0; line-height: inherit; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; padding: 0; }
table { border-collapse: collapse; }

/* ---------- 主题令牌 ---------- */
:root {
  --color-champagne: #E8DCC8;
  --color-cream: #FAF6F0;
  --color-gold: #C9A961;
  --color-gold-light: #E6CFA5;
  --color-rose: #D8B5A0;
  --color-sage: #A8B5A0;
  --color-text-main: #5C4A3A;
  --color-text-soft: #8B7B6B;
  --bg-grad-start: #FAF6F0;
  --bg-grad-end: #F0E6D8;
  --font-title: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-script: "Great Vibes", cursive;
  --container-max: 480px;
  --section-pad-y: 3.5rem;
  --section-pad-x: 1.25rem;
  --radius: 12px;
  --touch-min: 44px;
  --shadow-soft: 0 4px 24px rgba(92, 74, 58, .08);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .4s;
  --petal-count: 18;
}

/* ---------- 基础样式 ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: linear-gradient(180deg, var(--bg-grad-start), var(--bg-grad-end));
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}
.page-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, var(--bg-grad-start), var(--bg-grad-end));
  min-height: 100vh;
}

/* ---------- 工具类（精简常用集） ---------- */
/* 文本对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
/* 文字颜色 */
.text-ink { color: var(--color-text-main); }
.text-ink-soft { color: var(--color-text-soft); }
.text-gold { color: var(--color-gold); }
.text-white { color: #fff; }
.text-cream { color: var(--color-cream); }
/* 字体 */
.font-title { font-family: var(--font-title); }
.font-body { font-family: var(--font-body); }
.font-script { font-family: var(--font-script); }
/* 字号 */
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
/* 字重 */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
/* 间距 padding-top（pt-x） */
.pt-2 { padding-top: .5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
/* 宽高 */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.h-full { height: 100%; }
/* 圆角 */
.rounded { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-soft { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
/* 阴影 */
.shadow-soft { box-shadow: var(--shadow-soft); }
/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
/* overflow */
.overflow-hidden { overflow: hidden; }
/* 透明度/间距通用 */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ---------- 组件类 ---------- */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}
.section-title {
  font-family: var(--font-title);
  text-align: center;
  color: var(--color-text-main);
  font-size: 1.6rem;
  letter-spacing: .15em;
  margin: 0 0 .4rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  margin: .6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
/* 触控规范 */
.touch-target { min-width: var(--touch-min); min-height: var(--touch-min); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 动画关键帧 ---------- */
@keyframes fade-up { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bounce-down { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .4; } }
.animate-fade-up { animation: fade-up .8s var(--ease) both; }
.animate-fade-in { animation: fade-in 1.2s ease both; }
.animate-bounce-down { animation: bounce-down 1.8s ease-in-out infinite; }

/* ---------- 微信兼容补丁 ---------- */
video { object-fit: cover; }
img, video { -webkit-touch-callout: none; }
#petal-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* ---------- 无障碍：减弱动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
 * 模块1：首屏封面 cover-section
 * ============================================================ */
.cover-section {
  position: relative;
  min-height: 100vh;       /* 全屏高度 */
  min-height: 100svh;      /* 适配移动端动态视口 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
/* 背景图（资源替换点①：assets/images/hero-bg.jpg） */
.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* 图片加载前占位渐变，避免白屏 */
  background-color: var(--color-champagne);
  z-index: 0;
  animation: cover-zoom 18s ease-out both; /* 缓慢推近，增加仪式感 */
}
@keyframes cover-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
/* 蒙层：上下渐变压暗，保证文字可读 */
.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(92, 74, 58, .28) 0%,
    rgba(92, 74, 58, .08) 35%,
    rgba(92, 74, 58, .08) 60%,
    rgba(92, 74, 58, .45) 100%);
}
/* 中央内容区 */
.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.cover-subtitle {
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .4em;
  margin: 0 0 1.2rem;
  opacity: .92;
}
.cover-names {
  font-size: 2.6rem;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  color: #fff;
}
.name-amp {
  display: inline-block;
  margin: 0 .3em;
  font-size: .85em;
  opacity: .9;
}
.cover-date {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: .2em;
  margin: 0 0 .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.date-sep { opacity: .6; }
.cover-date-lunar {
  font-size: .8rem;
  letter-spacing: .2em;
  opacity: .8;
  margin: 0;
}
/* 音乐控制按钮（右上角） */
.music-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.music-btn:active { background: rgba(255, 255, 255, .28); transform: scale(.94); }
/* 播放中：图标轻微旋转律动 */
.music-btn.is-playing .icon-music-on { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 底部向下滑动指引 */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  opacity: .85;
}
.scroll-hint-text {
  font-size: .72rem;
  letter-spacing: .25em;
  writing-mode: vertical-rl; /* 竖排文字 */
}

/* ============================================================
 * 模块2/通用：副标题、视频播放器、恋爱文案
 * ============================================================ */
/* 区块英文副标题 */
.section-subtitle {
  font-family: var(--font-script);
  text-align: center;
  color: var(--color-gold);
  font-size: 1.4rem;
  margin: 0 0 1.8rem;
  opacity: .9;
}
/* 视频容器（16:9） */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 比例 */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-champagne);
  margin-bottom: 1.5rem;
}
.video-el,
.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-el {
  object-fit: cover;
  background: #000;
}
/* 封面图（居中铺满，带轻微渐变蒙层） */
.video-cover {
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(92,74,58,.05), rgba(92,74,58,.25));
  pointer-events: none;
}
/* 播放按钮（毛玻璃圆形） */
.video-play-btn {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.video-play-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .35); }
.video-fullscreen-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.video-fullscreen-btn:active { transform: scale(.9); background: rgba(0, 0, 0, .55); }
.video-fullscreen-btn.is-active { background: rgba(201, 169, 97, .85); }
/* 恋爱文案 */
.love-text {
  text-align: center;
  font-size: .92rem;
  line-height: 2;
  color: var(--color-text-soft);
  letter-spacing: .08em;
  margin: 0;
  padding: 0 .25rem;
}

/* ============================================================
 * 模块4：婚礼详情信息
 * ============================================================ */
/* 详情卡片 */
.detail-card {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 97, .18);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}
.detail-card-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .85rem;
}
.detail-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 169, 97, .12);
  color: var(--color-gold);
}
.detail-card-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--color-text-main);
  letter-spacing: .1em;
}
/* 仪式时间 */
.detail-time { padding-left: .25rem; }
.time-solar {
  font-size: 1.02rem;
  color: var(--color-text-main);
  margin: 0 0 .3rem;
  font-weight: 500;
}
.time-lunar {
  font-size: .82rem;
  color: var(--color-text-soft);
  margin: 0;
  letter-spacing: .05em;
}
/* 婚宴地址 */
.detail-address {
  font-size: .92rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin: 0 0 1rem .25rem;
}
/* 导航按钮组 */
.nav-btns {
  display: flex;
  gap: .75rem;
}
.nav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: var(--touch-min);
  padding: .55rem .5rem;
  border-radius: var(--radius);
  font-size: .82rem;
  letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  box-shadow: 0 4px 12px rgba(201, 169, 97, .28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-btn:active { transform: scale(.96); box-shadow: 0 2px 8px rgba(201, 169, 97, .2); }
/* 流程时间轴 */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: .25rem 0 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--color-gold-light), transparent);
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding: .5rem 0;
}
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: .85rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, .15);
}
.timeline-time {
  font-family: var(--font-title);
  color: var(--color-gold);
  font-size: .95rem;
  font-weight: 600;
  min-width: 3rem;
}
.timeline-event {
  font-size: .92rem;
  color: var(--color-text-main);
}
/* 温馨提示 */
.tips-list {
  margin: .25rem 0 0;
  padding-left: .25rem;
}
.tips-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .5rem;
  font-size: .85rem;
  color: var(--color-text-soft);
  line-height: 1.8;
}
.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-light);
}

/* ============================================================
 * 模块5：RSVP 宾客回执（跳转腾讯问卷版）
 * ============================================================ */
.rsvp-intro {
  text-align: center;
  margin-bottom: 1.8rem;
}
.rsvp-intro p {
  font-size: .92rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin: 0;
}
.rsvp-tip {
  font-size: .8rem !important;
  color: var(--color-text-soft);
  letter-spacing: .1em;
  margin-top: .3rem !important;
}
.rsvp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 52px;
  padding: .85rem 1.2rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  box-shadow: 0 6px 20px rgba(201, 169, 97, .35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.rsvp-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
  pointer-events: none;
}
.rsvp-submit-btn:active { transform: scale(.96); box-shadow: 0 3px 10px rgba(201, 169, 97, .2); }

/* ============================================================
 * 模块6：页脚
 * ============================================================ */
.footer-section {
  text-align: center;
  padding-bottom: 4rem;
}
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2rem;
}
.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.divider-dot {
  color: var(--color-gold);
  font-size: .65rem;
}
.footer-invite {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-text-main);
  letter-spacing: .15em;
  margin: 0 0 .6rem;
  line-height: 1.8;
}
.footer-welcome {
  font-size: .85rem;
  color: var(--color-text-soft);
  letter-spacing: .2em;
  margin: 0 0 2rem;
}
.footer-names {
  font-size: 1.6rem;
  color: var(--color-gold);
  margin: 0 0 2.5rem;
}
.footer-share {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 97, .2);
}
.share-tip {
  font-size: .78rem;
  color: var(--color-text-soft);
  letter-spacing: .1em;
  margin: 0 0 .3rem;
}
.share-date {
  font-family: var(--font-title);
  font-size: .9rem;
  color: var(--color-gold);
  letter-spacing: .15em;
  margin: 0;
}
