/* ============================================================
   婚礼请柬 · 样式
   配色：暖白背景 / 香槟金主色 / 柔粉点缀
   移动端优先，桌面端居中限宽
   ============================================================ */

:root {
  --bg: #fbf7f1;
  --bg-soft: #fffdf9;
  --ink: #4a3f35;
  --ink-soft: #8a7d6f;
  --gold: #c9a86a;
  --gold-soft: #e8d5ae;
  --blush: #f3ddd8;
  --line: #ecdfce;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(120, 96, 60, 0.12);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 首屏 ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, var(--blush) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, var(--gold-soft) 0%, transparent 45%),
    var(--bg-soft);
}

.hero-inner { max-width: 520px; animation: fade-up 1s ease both; }

.hero-eyebrow {
  letter-spacing: 0.35em;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
}

.hero-heart { color: var(--gold); font-size: 0.8em; }

.hero-date {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.hero-sub { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scroll-hint 1.6s infinite;
}

/* ---------- 通用区块 ---------- */
.section {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-title {
  font-family: var(--serif);
  font-size: 24px;
  text-align: center;
  color: var(--ink);
  margin-bottom: 28px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* ---------- 信息卡片 ---------- */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.info-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.info-row:last-of-type { border-bottom: none; }

.info-label {
  flex: 0 0 64px;
  color: var(--gold);
  font-weight: 600;
}

.info-value { flex: 1; color: var(--ink); }

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ---------- 倒计时 ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  min-width: 62px;
}

.cd-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
}

.cd-label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 故事 / 时间线 ---------- */
.story-text {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.timeline { list-style: none; }

.timeline-item {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 1px solid var(--gold-soft);
  margin-left: 8px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-date {
  display: block;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
}

.timeline-text { color: var(--ink-soft); font-size: 15px; }

/* ---------- 照片墙 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blush);
  border: 1px solid var(--line);
}

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

/* ---------- 流程 ---------- */
.schedule-list { list-style: none; }

.schedule-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.schedule-list li:last-child { border-bottom: none; }

.time {
  flex: 0 0 64px;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
}

.event { color: var(--ink); }

/* ---------- 祝福留言 ---------- */
.wishes-tip { text-align: center; color: var(--ink-soft); margin-bottom: 20px; }

.wish-form { display: flex; flex-direction: column; gap: 12px; }

.wish-form input,
.wish-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
}
.wish-form input:focus,
.wish-form textarea:focus { border-color: var(--gold); }

.wish-form .btn { align-self: center; }

.wish-list { list-style: none; margin-top: 24px; }

.wish-list li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.wish-list .wish-name { color: var(--gold); font-weight: 600; font-size: 14px; }
.wish-list .wish-text { margin-top: 4px; color: var(--ink); font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--ink-soft);
  font-size: 14px;
  font-family: var(--serif);
}

/* ---------- 动画 ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-hint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* 滚动进入动画（JS 加 .in-view） */
.section { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.section.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 桌面端微调 ---------- */
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
