/* ============================================================
   婚礼请柬 - 样式文件
   色调：玫瑰金 #B76E79 / 暖白 #FFF8F0 / 深灰 #333
   字体：Noto Serif SC
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-primary: #B76E79;       /* 玫瑰金 */
  --color-primary-light: #d4a0a7; /* 浅玫瑰金 */
  --color-primary-dark: #8e4f58;  /* 深玫瑰金 */
  --color-bg: #FFF8F0;            /* 暖白背景 */
  --color-bg-alt: #FFF0E0;        /* 交替背景 */
  --color-text: #333333;          /* 主文字 */
  --color-text-light: #666666;    /* 浅文字 */
  --color-white: #FFFFFF;
  --color-gold: #C9A96E;          /* 金色点缀 */
  --color-border: rgba(183, 110, 121, 0.2);

  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.3s ease;
  --nav-height: 64px;
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用标题 ---------- */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-weight: 300;
}

/* ---------- 滚动渐入动画 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 248, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
}

.nav-logo:hover {
  color: var(--color-primary-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(183, 110, 121, 0.08);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* [占位背景] 替换为真实背景图 */
  background:
    linear-gradient(135deg, rgba(183, 110, 121, 0.15), rgba(201, 169, 110, 0.1)),
    url('images/hero-bg.jpg') center/cover no-repeat;
  background-color: #e8d5c4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 240, 0.3) 0%,
    rgba(255, 248, 240, 0.1) 50%,
    rgba(255, 248, 240, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-text);
}

.groom-name,
.bride-name {
  display: inline-block;
}

.ampersand {
  display: inline-block;
  margin: 0 16px;
  color: var(--color-primary);
  font-weight: 300;
  font-style: italic;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--color-primary);
  margin: 20px auto;
}

.hero-date {
  font-size: 1.3rem;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-weight: 400;
}

.hero-location {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.hero-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ============================================================
   倒计时
   ============================================================ */
.countdown-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding: 20px 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.countdown-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.countdown-separator {
  font-size: 2rem;
  color: var(--color-primary-light);
  font-weight: 300;
  padding-bottom: 20px;
}

/* ============================================================
   新人故事时间线
   ============================================================ */
.story-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* 垂直中线 */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-primary-light), transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline-item[data-side="left"] {
  left: 0;
  text-align: right;
}

.timeline-item[data-side="right"] {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  z-index: 1;
}

.timeline-item[data-side="left"] .timeline-dot {
  right: -8px;
}

.timeline-item[data-side="right"] .timeline-dot {
  left: -8px;
}

.timeline-content {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-primary-light));
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-image.placeholder::after {
  content: '照片占位';
  color: var(--color-primary);
  font-size: 0.9rem;
  opacity: 0.6;
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   婚礼信息
   ============================================================ */
.info-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.info-time {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.info-place {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.info-venue {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 16px;
}

.info-map-link {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.info-map-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.info-note {
  text-align: center;
  padding: 20px;
  background: rgba(183, 110, 121, 0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.info-note p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================================
   照片画廊（响应式瀑布流网格）
   ============================================================ */
.gallery-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-primary-light));
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* 占位图样式 */
.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.placeholder::after {
  content: '照片';
  color: var(--color-primary);
  font-size: 0.9rem;
  opacity: 0.5;
}

.gallery-item.placeholder img {
  display: none;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 16px;
  border-radius: 50%;
  transition: var(--transition);
  opacity: 0.7;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================================
   祝福留言墙
   ============================================================ */
.wishes-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wish-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.wish-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.wish-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.wish-body h4 {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 8px;
}

.wish-body p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   出席确认表单（RSVP）
   ============================================================ */
.rsvp-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.rsvp-form {
  max-width: 580px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.required {
  color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
}

/* 单选按钮 */
.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 400;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--color-primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.submit-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.submit-btn:disabled {
  background: var(--color-primary-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 加载动画 */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 表单消息提示 */
.form-message {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background: #eafaf1;
  color: #27ae60;
  border: 1px solid #a3d9b1;
}

.form-message.error {
  background: #fdf0ed;
  color: #e74c3c;
  border: 1px solid #f5c6cb;
}

/* ============================================================
   页尾
   ============================================================ */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt), #f5e6d8);
}

.footer-hearts {
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: 0.5em;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.footer-text {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
  font-weight: 300;
}

.footer-date {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.15em;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--color-primary-light);
  margin: 24px auto;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 300;
  opacity: 0.7;
}

/* ============================================================
   背景音乐按钮
   ============================================================ */
.music-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.music-toggle.playing {
  animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: var(--shadow-md); }
  50%      { box-shadow: 0 0 0 8px rgba(183, 110, 121, 0.15), var(--shadow-md); }
}

.music-icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

/* ============================================================
   响应式适配
   ============================================================ */

/* 平板 (<=900px) */
@media (max-width: 900px) {
  .wishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 移动端 (<=768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 10px 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .ampersand {
    margin: 0 10px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  .countdown-section,
  .story-section,
  .info-section,
  .gallery-section,
  .wishes-section,
  .rsvp-section {
    padding: 60px 0;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 16px 12px;
  }

  /* 时间线单列 */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    width: 100%;
    left: 0;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot {
    left: 12px;
    right: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .wishes-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-form {
    padding: 28px 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 10px;
    font-size: 1.5rem;
  }

  .music-toggle {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* 小屏手机 (<=480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .countdown-wrapper {
    gap: 8px;
  }

  .countdown-number {
    font-size: 1.6rem;
  }

  .countdown-item {
    min-width: 60px;
    padding: 12px 8px;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }
}
