/* ===== 零壹鸠零 - 剪贴本风格（增强版）===== */

/* --- 全局变量 --- */
:root {
  --kraft: #D9C5A8;
  --cream: #FFF8EE;
  --linen: #F5EBDC;
  --paper-white: #FFFFFF;
  --graphite: #5A4A42;
  --brown-ink: #8B6B52;
  --soft-graphite: #9A8E84;

  --blush: #F8D4D4;
  --rose: #E6A5AE;
  --sky-blue: #B8D4EA;
  --sage: #C2D8B9;
  --butter: #FFF0C4;
  --peach: #FFC9A8;
  --lavender: #D4C3E0;

  /* 温馨新增色 */
  --warm-cream: #FFF4E6;
  --warm-pink: #FFE0E0;
  --warm-orange: #FFD4B3;
  --warm-honey: #FFE8B0;
  --soft-coral: #FFB5A0;

  --shadow-paper: 2px 3px 10px rgba(139, 107, 82, 0.12);
  --shadow-polaroid: 3px 5px 14px rgba(139, 107, 82, 0.16);
  --shadow-deep: 5px 8px 20px rgba(139, 107, 82, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--warm-cream);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,224,224,0.4) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255,212,179,0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(255,232,176,0.3) 0%, transparent 50%),
    radial-gradient(circle at 30% 85%, rgba(248,212,212,0.25) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(255,201,168,0.3) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--graphite);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 牛皮纸纹理覆盖层（柔化） */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139,107,82,0.025) 2px, rgba(139,107,82,0.025) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(139,107,82,0.02) 3px, rgba(139,107,82,0.02) 6px);
  pointer-events: none;
  z-index: 0;
}

/* 飘落的纸屑装饰（背景，更柔和） */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 15% 20%, var(--blush) 0%, transparent 0.4%),
    radial-gradient(circle at 85% 40%, var(--peach) 0%, transparent 0.4%),
    radial-gradient(circle at 50% 80%, var(--butter) 0%, transparent 0.4%),
    radial-gradient(circle at 25% 60%, var(--warm-pink) 0%, transparent 0.4%),
    radial-gradient(circle at 75% 15%, var(--warm-orange) 0%, transparent 0.4%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* --- 导航栏 --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  background: var(--cream);
  border-bottom: 2px solid var(--kraft);
  box-shadow: 0 2px 12px rgba(74,69,67,0.15);
}

.nav-logo {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown-ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: var(--graphite);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.nav-links a:hover {
  background: var(--butter);
  transform: translateY(-1px);
}

/* --- 首页标题区 --- */
.hero {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

/* 装饰符号飘浮 */
.hero-deco {
  position: absolute;
  font-size: 2rem;
  color: var(--cream);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.deco-1 { top: 15%; left: 10%; animation-delay: 0s; color: var(--blush); }
.deco-2 { top: 25%; right: 12%; animation-delay: 1.5s; color: var(--butter); }
.deco-3 { bottom: 30%; left: 15%; animation-delay: 3s; color: var(--rose); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-inner {
  background: var(--cream);
  padding: 60px 50px;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  position: relative;
  max-width: 600px;
  z-index: 2;
}

.hero-date {
  font-family: 'Special Elite', monospace;
  font-size: 0.9rem;
  color: var(--soft-graphite);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--brown-ink);
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(196,168,130,0.3);
}

.hero-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  color: var(--soft-graphite);
  margin-top: 15px;
}

.hero-subtitle-2 {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  color: var(--rose);
  margin-top: 6px;
  letter-spacing: 1px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  color: var(--rose);
  font-size: 1.2rem;
}

.hero-divider-line {
  width: 80px;
  height: 1px;
  background: var(--soft-graphite);
  opacity: 0.5;
}

.hero-quote {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--brown-ink);
  font-style: italic;
  line-height: 1.6;
}

.hero-hint {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--cream);
  margin-top: 40px;
  animation: bounce 2s infinite;
  text-shadow: 1px 1px 2px rgba(74,69,67,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- 邮票 --- */
.stamp {
  position: absolute;
  width: 70px;
  height: 80px;
  background: var(--paper-white);
  border: 2px dashed var(--brown-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: var(--shadow-paper);
}

.stamp-top-right {
  top: -15px;
  right: -20px;
  transform: rotate(8deg);
}

.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.stamp-value {
  font-family: 'Special Elite', monospace;
  font-size: 0.7rem;
  color: var(--brown-ink);
  font-weight: 700;
  border-bottom: 1px solid var(--brown-ink);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.stamp-cancel {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.65rem;
  color: var(--rose);
  transform: rotate(-10deg);
}

/* --- 和纸胶带 --- */
.tape {
  position: absolute;
  width: 100px;
  height: 24px;
  opacity: 0.75;
  z-index: 5;
}

.tape-top-left {
  top: -12px;
  left: -15px;
  background: var(--blush);
  transform: rotate(-25deg);
}

.tape-bottom-right {
  bottom: -12px;
  right: -15px;
  background: var(--sage);
  transform: rotate(-20deg);
}

.tape-corner {
  top: -10px;
  right: 20px;
  background: var(--butter);
  transform: rotate(15deg);
  width: 80px;
}

.tape-top-center {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--sky-blue);
  width: 120px;
}

.tape-section-title {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--peach);
  width: 140px;
}

.tape-form {
  top: -10px;
  left: 30px;
  background: var(--lavender);
  transform: rotate(-8deg);
  width: 90px;
}

.tape-hint {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  background: var(--butter);
  width: 110px;
}

.tape-modal {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--sage);
  width: 100px;
}

/* --- 回形针 --- */
.paperclip {
  position: absolute;
  top: -8px;
  left: 30px;
  width: 20px;
  height: 40px;
  border: 2px solid var(--soft-graphite);
  border-radius: 10px;
  z-index: 5;
}

.paperclip::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 8px;
  height: 22px;
  border: 2px solid var(--soft-graphite);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* --- 序言 --- */
.intro {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.intro-card {
  background: var(--cream);
  padding: 45px 40px;
  max-width: 550px;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  position: relative;
  text-align: center;
  transform: rotate(-1deg);
}

.intro-title {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: var(--brown-ink);
  margin-bottom: 20px;
}

.intro-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
  color: var(--graphite);
  line-height: 2;
}

.intro-doodle {
  font-size: 2rem;
  color: var(--rose);
  margin-top: 20px;
  display: inline-block;
  animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* --- 时间线 --- */
.timeline-section {
  padding: 60px 20px 80px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--brown-ink);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--soft-graphite);
  margin-bottom: 50px;
  margin-top: 10px;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brown-ink);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--brown-ink) 0,
    var(--brown-ink) 8px,
    transparent 8px,
    transparent 14px
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 20px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 18px;
  height: 18px;
  background: var(--rose);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--brown-ink);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-content {
  background: var(--cream);
  padding: 18px 22px;
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  display: inline-block;
  position: relative;
}

.timeline-item.left .timeline-content {
  margin-right: 10px;
}

.timeline-item.right .timeline-content {
  margin-left: 10px;
}

.timeline-year {
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  color: var(--rose);
  display: block;
  margin-bottom: 5px;
}

.timeline-content p {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--brown-ink);
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-note {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  color: var(--soft-graphite);
  display: block;
}

/* 视频组（多个视频竖排） */
.video-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  flex-shrink: 0;
}

.video-group .video-frame {
  width: 100%;
  max-width: 380px;
}

.video-group .video-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 拍立得照片组（多张并排） */
.polaroid-group {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  flex-shrink: 0;
}

/* 并列时间节点（你 / 我） */
.parallel-nodes {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 40px auto 80px;
  max-width: 700px;
}

.parallel-node {
  background: var(--cream);
  padding: 25px 30px;
  box-shadow: var(--shadow-paper);
  flex: 1;
  text-align: center;
  position: relative;
  border-radius: 4px;
}

.node-you {
  transform: rotate(-1.5deg);
  border-top: 4px solid var(--rose);
}

.node-me {
  transform: rotate(1.5deg);
  border-top: 4px solid var(--sky-blue);
}

.node-label {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}

.node-you .node-label {
  color: var(--rose);
}

.node-me .node-label {
  color: var(--sky-blue);
}

.node-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: var(--graphite);
  line-height: 1.6;
}

/* 节点内的照片列 */
.node-photos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 15px;
}

.node-photo {
  background: var(--paper-white);
  padding: 8px 8px 8px 8px;
  box-shadow: var(--shadow-polaroid);
  width: 100%;
  max-width: 220px;
  transition: transform 0.3s, box-shadow 0.3s, z-index 0s 0s;
}

.node-photo:hover {
  transform: rotate(0deg) scale(1.08) !important;
  box-shadow: var(--shadow-deep);
  z-index: 20;
  position: relative;
}

.node-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.node-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: var(--soft-graphite);
  padding: 0 15px;
  opacity: 0.6;
}

/* 移动端：并列节点改为上下排列 */
@media (max-width: 600px) {
  .parallel-nodes {
    flex-direction: column;
    gap: 15px;
  }

  .node-divider {
    transform: rotate(90deg);
    padding: 5px 0;
  }
}

/* ===== 杂志感剪贴本（Magazine Spread）===== */
.magazine-spread {
  max-width: 1100px;
  margin: 100px auto;
  padding: 0 30px;
  position: relative;
}

.mag-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 35px;
  padding-bottom: 15px;
  border-bottom: 2px dashed var(--soft-graphite);
  position: relative;
}

.mag-num {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--soft-graphite);
  letter-spacing: 1px;
}

.mag-title {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--graphite);
  line-height: 1;
  margin: 0;
}

.mag-tag {
  margin-left: auto;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: var(--paper-white);
  background: var(--soft-graphite);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

/* 布局容器 */
.mag-layout {
  position: relative;
  min-height: 400px;
}

/* 主图（大） */
.mag-main {
  position: relative;
  background: var(--paper-white);
  padding: 12px 12px 45px;
  box-shadow: var(--shadow-polaroid);
  transform: rotate(-2deg);
  transition: transform 0.35s, box-shadow 0.35s, z-index 0s 0s;
  z-index: 5;
}

.mag-main:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: var(--shadow-deep);
  z-index: 30;
}

.mag-main img {
  width: 100%;
  height: auto;
  display: block;
}

/* 小图 */
.mag-small {
  position: absolute;
  background: var(--paper-white);
  padding: 8px 8px 30px;
  box-shadow: var(--shadow-polaroid);
  transition: transform 0.35s, box-shadow 0.35s, z-index 0s 0s;
  z-index: 4;
}

.mag-small:hover {
  transform: rotate(0deg) scale(1.08) !important;
  box-shadow: var(--shadow-deep);
  z-index: 30;
}

.mag-small img {
  width: 100%;
  height: auto;
  display: block;
}

/* 角落手写配文 */
.mag-caption {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.9rem;
  color: var(--soft-graphite);
  text-align: center;
}

/* 和纸胶带（杂志版专用） */
.washi-tape {
  position: absolute;
  width: 80px;
  height: 22px;
  opacity: 0.75;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.washi-top-left {
  top: -10px;
  left: -15px;
  transform: rotate(-35deg);
}

.washi-top-right {
  top: -10px;
  right: -15px;
  transform: rotate(35deg);
}

.washi-bottom-left {
  bottom: 30px;
  left: -15px;
  transform: rotate(35deg);
}

.washi-bottom-right {
  bottom: 30px;
  right: -15px;
  transform: rotate(-35deg);
}

/* 配文区 */
.mag-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
  color: var(--graphite);
  line-height: 1.7;
  padding: 20px 25px;
  background: var(--cream);
  box-shadow: var(--shadow-paper);
  border-radius: 4px;
  margin-top: 30px;
}

/* === 布局1：单张大图（居中）=== */
.mag-layout-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.mag-layout-single .mag-main {
  max-width: 480px;
  width: 100%;
}

.mag-layout-single .mag-text {
  max-width: 480px;
  text-align: center;
}

/* === 布局2：视频版（主视频大 + 两个小视频）=== */
.mag-layout-video {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
  align-items: start;
}

.mag-video-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.mag-layout-video .mag-small-1 {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  transform: rotate(2deg);
}

.mag-layout-video .mag-small-2 {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  transform: rotate(-2deg);
}

.mag-layout-video .mag-text-video {
  grid-column: 1 / -1;
  grid-row: 3;
  text-align: center;
}

.mag-video-frame {
  background: #000;
  border-radius: 3px;
  overflow: hidden;
}

.mag-video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.mag-video-main .mag-video-frame video {
  max-height: 500px;
  object-fit: contain;
}

/* === 布局3：多图网格（主图大 + 小图环绕）=== */
.mag-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 35px 25px;
  align-items: start;
}

.mag-layout-grid .mag-main {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  max-width: 100%;
}

.mag-layout-grid .mag-small {
  position: relative;
}

.mag-layout-grid .mag-small-1 { transform: rotate(3deg); }
.mag-layout-grid .mag-small-2 { transform: rotate(-3deg); }
.mag-layout-grid .mag-small-3 { transform: rotate(2deg); }
.mag-layout-grid .mag-small-4 { transform: rotate(-2deg); }
.mag-layout-grid .mag-small-5 { transform: rotate(4deg); }
.mag-layout-grid .mag-small-6 { transform: rotate(-3deg); }
.mag-layout-grid .mag-small-7 { transform: rotate(2deg); }

.mag-layout-grid .mag-text-grid {
  grid-column: 1 / -1;
  grid-row: 3;
  text-align: center;
}

/* === 布局4：小网格（4张，主图 + 3小）=== */
.mag-layout-grid-small {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px 25px;
  align-items: start;
}

.mag-layout-grid-small .mag-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  max-width: 100%;
}

.mag-layout-grid-small .mag-small {
  position: relative;
}

.mag-layout-grid-small .mag-small-1 {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(3deg);
}

.mag-layout-grid-small .mag-small-2 {
  grid-column: 3;
  grid-row: 1;
  transform: rotate(-3deg);
}

.mag-layout-grid-small .mag-small-3 {
  grid-column: 2 / span 2;
  grid-row: 2;
  transform: rotate(2deg);
}

.mag-layout-grid-small .mag-text-grid {
  grid-column: 1 / -1;
  grid-row: 3;
  text-align: center;
}

/* 响应式：移动端杂志感剪贴本 */
@media (max-width: 768px) {
  .magazine-spread {
    margin: 60px auto;
    padding: 0 20px;
  }

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

  .mag-layout-video {
    grid-template-columns: 1fr;
  }

  .mag-video-main {
    grid-column: 1;
    grid-row: 1;
  }

  .mag-layout-video .mag-small-1,
  .mag-layout-video .mag-small-2 {
    grid-column: 1;
  }

  .mag-layout-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }

  .mag-layout-grid .mag-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mag-layout-grid-small {
    grid-template-columns: 1fr 1fr;
  }

  .mag-layout-grid-small .mag-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mag-layout-grid-small .mag-small-1 {
    grid-column: 1;
    grid-row: 2;
  }

  .mag-layout-grid-small .mag-small-2 {
    grid-column: 2;
    grid-row: 2;
  }

  .mag-layout-grid-small .mag-small-3 {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* --- 故事区 --- */
.stories {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.story-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 90px;
  flex-wrap: wrap;
  justify-content: center;
}

.story-block.reverse {
  flex-direction: row-reverse;
}

/* 拍立得照片框 */
.polaroid {
  background: var(--paper-white);
  padding: 15px 15px 50px 15px;
  box-shadow: var(--shadow-polaroid);
  flex-shrink: 0;
  max-width: 320px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: var(--shadow-deep);
  z-index: 10;
}

.polaroid-small {
  max-width: 200px;
  padding: 10px 10px 40px 10px;
}

.photo-placeholder {
  width: 280px;
  height: 220px;
  background: var(--linen);
  border: 2px dashed var(--soft-graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--soft-graphite);
  text-align: center;
}

.photo-placeholder span {
  font-size: 2rem;
  margin-bottom: 8px;
}

.photo-placeholder small {
  font-size: 0.7rem;
  opacity: 0.7;
}

.photo-placeholder-sm {
  width: 170px;
  height: 140px;
}

.polaroid-small .photo-placeholder-sm span {
  font-size: 1.5rem;
}

.polaroid img {
  width: 280px;
  height: 220px;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  text-align: center;
  color: var(--graphite);
  margin-top: 12px;
}

.polaroid-small .polaroid-caption {
  font-size: 1.1rem;
  margin-top: 8px;
}

/* 故事文字区 */
.story-text {
  background: var(--cream);
  padding: 35px 30px;
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  position: relative;
}

.story-text-center {
  max-width: 500px;
}

.story-text-full {
  max-width: 100%;
  text-align: center;
}

.story-title {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--brown-ink);
  margin-bottom: 15px;
  margin-top: 10px;
}

.story-text p {
  font-size: 1rem;
  color: var(--graphite);
  margin-bottom: 12px;
}

/* 票根 */
.ticket {
  display: inline-flex;
  align-items: stretch;
  background: var(--linen);
  border: 2px dashed var(--brown-ink);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
  font-family: 'Special Elite', monospace;
  font-size: 0.8rem;
  color: var(--brown-ink);
  position: relative;
}

.ticket-left {
  padding: 4px 12px;
  border-right: 2px dashed var(--brown-ink);
}

.ticket-right {
  padding: 4px 12px;
}

/* 便签 */
.sticky-note {
  background: var(--butter);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-2deg);
  position: relative;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: var(--graphite);
  line-height: 1.6;
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(5deg);
  width: 60px;
  height: 18px;
  background: var(--rose);
  opacity: 0.6;
}

/* 故事涂鸦 */
.story-doodle {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--rose);
  opacity: 0.6;
  transform: rotate(15deg);
}

/* 视频框 */
.video-frame {
  background: var(--paper-white);
  padding: 15px 15px 40px 15px;
  box-shadow: var(--shadow-polaroid);
  flex-shrink: 0;
  max-width: 340px;
  transition: transform 0.4s;
}

.video-frame:hover {
  transform: rotate(0deg) scale(1.03) !important;
}

.video-placeholder {
  width: 300px;
  height: 200px;
  background: var(--linen);
  border: 2px dashed var(--soft-graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--soft-graphite);
  text-align: center;
}

.video-placeholder span {
  font-size: 2rem;
  margin-bottom: 8px;
}

.video-frame video {
  width: 300px;
  display: block;
}

/* 中间引言 */
.story-quote {
  text-align: center;
  margin: 60px auto;
  position: relative;
  max-width: 600px;
  padding: 30px;
}

.quote-mark {
  font-family: 'Caveat', cursive;
  font-size: 4rem;
  color: var(--rose);
  opacity: 0.4;
  line-height: 1;
}

.quote-mark.right {
  text-align: right;
}

.story-quote p {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: var(--cream);
  font-style: italic;
  line-height: 1.5;
  margin: 10px 0;
  text-shadow: 1px 1px 3px rgba(74,69,67,0.4);
}

/* 三张小照片横排 */
.story-photos-row {
  flex-direction: column;
  align-items: center;
}

.photos-row {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --- 照片墙 --- */
.gallery {
  background: var(--linen);
  padding: 70px 20px;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--kraft);
}

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.gallery .section-title {
  display: block;
  text-align: center;
  margin-top: 10px;
}

.gallery-group {
  margin-bottom: 70px;
}

.group-title {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: var(--brown-ink);
  text-align: center;
  margin-bottom: 35px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.group-label {
  font-family: 'Special Elite', monospace;
  font-size: 0.8rem;
  color: var(--cream);
  background: var(--brown-ink);
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.photo-grid {
  position: relative;
  background: #2a2520;
  border-radius: 6px;
  padding: 22px 14px;
  margin-bottom: 10px;
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.2);
}

/* 胶卷两侧打孔（用伪元素模拟底片孔）*/
.photo-grid::before,
.photo-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: radial-gradient(circle, #f5ebdc 4px, transparent 4.5px);
  background-size: 28px 14px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.photo-grid::before { top: 4px; }
.photo-grid::after { bottom: 4px; }

.photo-grid::-webkit-scrollbar {
  height: 8px;
}

.photo-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.photo-grid::-webkit-scrollbar-thumb {
  background: var(--brown-ink);
  border-radius: 4px;
}

.photo-card {
  flex: 0 0 auto;
  width: 200px;
  background: #1a1612;
  padding: 6px 6px 28px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.8s ease;
  border-radius: 2px;
  /* 显影前：模糊+褪色 */
  filter: blur(8px) grayscale(0.8) brightness(0.5);
  opacity: 0.6;
}

/* 滚动进入视口后显影 */
.photo-card.developed {
  filter: blur(0) grayscale(0) brightness(1);
  opacity: 1;
}

.photo-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  z-index: 20;
}

.photo-grid-placeholder {
  width: 200px;
  height: 180px;
  background: var(--linen);
  border: 2px dashed var(--soft-graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--soft-graphite);
  text-align: center;
}

.photo-grid-placeholder span {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.photo-grid-placeholder small {
  font-size: 0.65rem;
  opacity: 0.7;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}

.photo-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  background: #000;
}

/* 胶卷格底部的手写日期标注 */
.photo-card::after {
  content: attr(data-frame);
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 0.6rem;
  color: #f5ebdc;
  opacity: 0.5;
  letter-spacing: 1px;
}

/* ===== 照片墙结尾「未完待续」 ===== */
.gallery-end {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  padding: 30px 20px;
}

.gallery-end-text {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--brown-ink);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.gallery-end-dots {
  display: inline-block;
  animation: dots-blink 1.4s infinite;
}

@keyframes dots-blink {
  0%, 20% { opacity: 0.2; }
  50% { opacity: 1; }
  80%, 100% { opacity: 0.2; }
}

.photo-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  text-align: center;
  color: var(--graphite);
  margin-top: 10px;
  line-height: 1.4;
  padding: 0 4px;
}

.gallery-hint {
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  color: var(--soft-graphite);
  margin-top: 40px;
  font-style: italic;
}

/* 照片墙响应式 */
@media (max-width: 768px) {
  .photo-grid {
    gap: 8px;
    padding: 22px 10px;
  }

  .photo-card {
    width: 160px;
  }

  .photo-grid-placeholder, .photo-card img {
    height: 140px;
  }

  .photo-caption {
    font-size: 1rem;
  }

  .group-title {
    font-size: 2rem;
  }
}

/* --- 留言板 --- */
.guestbook {
  background: var(--linen);
  padding: 70px 20px;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--kraft);
  border-bottom: 3px solid var(--kraft);
}

.guestbook-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.guestbook .section-title {
  display: block;
  text-align: center;
  margin-top: 10px;
}

.guestbook-form {
  max-width: 500px;
  margin: 0 auto 50px;
  background: var(--cream);
  padding: 30px 25px;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.gb-input {
  padding: 10px 14px;
  border: 2px solid var(--kraft);
  border-radius: 4px;
  background: var(--paper-white);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--graphite);
  transition: border-color 0.2s;
}

.gb-input:focus {
  outline: none;
  border-color: var(--brown-ink);
}

.gb-textarea {
  padding: 10px 14px;
  border: 2px solid var(--kraft);
  border-radius: 4px;
  background: var(--paper-white);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--graphite);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}

.gb-textarea:focus {
  outline: none;
  border-color: var(--brown-ink);
}

.gb-button {
  padding: 12px 20px;
  background: var(--peach);
  border: 2px solid var(--brown-ink);
  border-radius: 4px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.2rem;
  color: var(--graphite);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 2px 2px 0 var(--brown-ink);
}

.gb-button:hover {
  background: var(--rose);
  color: var(--cream);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--brown-ink);
}

.gb-button:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--brown-ink);
}

/* 留言列表（便签墙） */
.guestbook-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gb-loading, .gb-empty {
  font-family: 'Patrick Hand', cursive;
  color: var(--soft-graphite);
  text-align: center;
  width: 100%;
  font-size: 1.1rem;
}

.gb-message {
  background: var(--butter);
  padding: 20px;
  width: 240px;
  min-height: 150px;
  box-shadow: var(--shadow-paper);
  position: relative;
  border-radius: 2px;
  transition: transform 0.3s;
  animation: noteAppear 0.5s ease-out;
}

.gb-message:hover {
  transform: rotate(0deg) scale(1.05) !important;
  z-index: 10;
}

@keyframes noteAppear {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
  }
  to {
    opacity: 1;
  }
}

.gb-message:nth-child(4n+1) { background: var(--butter); transform: rotate(-2deg); }
.gb-message:nth-child(4n+2) { background: var(--blush); transform: rotate(1.5deg); }
.gb-message:nth-child(4n+3) { background: var(--sage); transform: rotate(-1deg); }
.gb-message:nth-child(4n) { background: var(--sky-blue); transform: rotate(2deg); }

.gb-message-name {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--brown-ink);
  margin-bottom: 8px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(107,82,61,0.3);
  padding-bottom: 5px;
}

.gb-message-content {
  font-size: 0.95rem;
  color: var(--graphite);
  word-break: break-word;
}

.gb-message-date {
  font-size: 0.75rem;
  color: var(--soft-graphite);
  margin-top: 10px;
  font-family: 'Patrick Hand', cursive;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* "我"的留言：可双击删除 */
.gb-message-mine {
  outline: 2px dashed rgba(201,162,62,0.6);
  outline-offset: 2px;
  cursor: pointer;
}

.gb-message-mine:hover {
  outline-color: rgba(201,162,62,0.9);
}

.gb-mine-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.65rem;
  background: rgba(201,162,62,0.25);
  color: var(--brown-ink);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  vertical-align: middle;
}

.gb-del-hint {
  font-size: 0.65rem;
  color: rgba(201,62,62,0.75);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.25s;
}

.gb-message-mine:hover .gb-del-hint {
  opacity: 1;
}

/* --- 信封区 --- */
.letter-section {
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.letter-deco {
  position: absolute;
  font-size: 2.5rem;
  color: var(--cream);
  opacity: 0.3;
  animation: float 5s ease-in-out infinite;
}

.deco-letter-1 { top: 20%; left: 10%; }
.deco-letter-2 { bottom: 30%; right: 12%; animation-delay: 2s; color: var(--rose); }

.letter-hint {
  margin-bottom: 40px;
  position: relative;
  padding-top: 20px;
}

.hint-text {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--cream);
  text-shadow: 1px 1px 3px rgba(74,69,67,0.4);
}

.hint-password {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: var(--butter);
  margin-top: 8px;
}

/* 信封 */
.envelope {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
  margin-top: 20px;
}

.envelope:hover {
  transform: scale(1.08) rotate(-2deg);
}

.envelope-wax {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.2rem;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(212,145,154,0.6);
  border: 2px solid var(--brown-ink);
}

.envelope-flap {
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 55px solid var(--rose);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  filter: brightness(0.95);
}

.envelope-body {
  width: 180px;
  height: 110px;
  background: var(--peach);
  border: 3px solid var(--brown-ink);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -3px;
  box-shadow: var(--shadow-polaroid);
}

.envelope-icon {
  font-size: 2.5rem;
}

.envelope-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  color: var(--graphite);
  margin-top: 5px;
}

/* 密码弹窗 */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(74,69,67,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--cream);
  padding: 40px 35px;
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
  text-align: center;
  max-width: 350px;
  width: 90%;
  position: relative;
  animation: modalPop 0.4s;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content h3 {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--brown-ink);
  margin-bottom: 10px;
}

.modal-hint {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  color: var(--soft-graphite);
  margin-bottom: 18px;
}

.password-input {
  padding: 12px 16px;
  border: 2px solid var(--kraft);
  border-radius: 4px;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 8px;
  background: var(--paper-white);
  color: var(--graphite);
  width: 100%;
  margin-bottom: 10px;
  font-family: 'Special Elite', monospace;
}

.password-input:focus {
  outline: none;
  border-color: var(--brown-ink);
}

.password-error {
  color: var(--rose);
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.btn-cancel, .btn-confirm {
  padding: 8px 22px;
  border: 2px solid var(--brown-ink);
  border-radius: 4px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel {
  background: var(--linen);
  color: var(--graphite);
}

.btn-confirm {
  background: var(--peach);
  color: var(--graphite);
  box-shadow: 2px 2px 0 var(--brown-ink);
}

.btn-confirm:hover {
  background: var(--rose);
  color: var(--cream);
}

.btn-cancel:hover {
  background: var(--soft-graphite);
  color: var(--cream);
}

/* 信的内容 */
.letter-content {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  animation: letterReveal 1s ease-out;
}

@keyframes letterReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.letter-paper {
  background: var(--paper-white);
  max-width: 550px;
  padding: 60px 45px 50px;
  box-shadow: var(--shadow-deep);
  position: relative;
  border-radius: 2px;
  background-image: repeating-linear-gradient(transparent, transparent 31px, var(--linen) 31px, var(--linen) 32px);
}

.letter-stamp {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 50px;
  height: 55px;
  border: 2px dashed var(--brown-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transform: rotate(5deg);
}

.letter-stamp span {
  font-size: 1.3rem;
  color: var(--rose);
}

.letter-stamp small {
  font-family: 'Special Elite', monospace;
  font-size: 0.55rem;
  color: var(--brown-ink);
  margin-top: 2px;
}

.letter-greeting {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--brown-ink);
  margin-bottom: 25px;
}

.letter-body p {
  font-size: 1.1rem;
  color: var(--graphite);
  margin-bottom: 18px;
  line-height: 32px;
}

.letter-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--brown-ink);
  text-align: right;
  margin-top: 35px;
}

/* ===== 庆祝20周年模块 ===== */
.celebrate-section {
  padding: 90px 20px;
  background: linear-gradient(180deg, var(--warm-cream) 0%, var(--warm-pink) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.celebrate-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.tape-celebrate {
  width: 120px;
  height: 22px;
  background: var(--rose);
  margin: 0 auto 25px;
  opacity: 0.7;
  transform: rotate(-3deg);
}

.celebrate-title {
  font-family: 'Caveat', cursive;
  font-size: 3.5rem;
  color: var(--brown-ink);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.celebrate-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.3rem;
  color: var(--soft-graphite);
  margin-bottom: 35px;
}

.celebrate-message {
  font-family: 'LXGW WenKai Screen', 'Patrick Hand', cursive;
  font-size: 1.15rem;
  color: var(--graphite);
  margin-top: 30px;
  line-height: 1.8;
}

/* 气球飘动 */
.celebrate-balloons {
  position: relative;
  height: 90px;
  margin-bottom: 15px;
}

.balloon {
  position: absolute;
  font-size: 2.5rem;
  display: inline-block;
  animation: balloon-float 4s ease-in-out infinite;
}

.balloon-1 { left: 15%; animation-delay: 0s; }
.balloon-2 { left: 32%; animation-delay: 0.6s; font-size: 2rem; }
.balloon-3 { left: 50%; animation-delay: 1.2s; }
.balloon-4 { left: 68%; animation-delay: 0.3s; font-size: 2rem; }
.balloon-5 { left: 85%; animation-delay: 0.9s; }

@keyframes balloon-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

/* 彩纸飘落 */
.celebrate-confetti {
  position: relative;
  height: 50px;
  margin: 20px 0;
}

.confetti {
  position: absolute;
  font-size: 1.5rem;
  color: var(--rose);
  animation: confetti-fall 3s ease-in infinite;
  top: -20px;
}

.c1 { left: 10%; animation-delay: 0s; color: var(--rose); }
.c2 { left: 25%; animation-delay: 0.5s; color: var(--sky-blue); }
.c3 { left: 42%; animation-delay: 1s; color: var(--sage); }
.c4 { left: 58%; animation-delay: 1.5s; color: var(--peach); }
.c5 { left: 75%; animation-delay: 0.8s; color: var(--butter); }
.c6 { left: 90%; animation-delay: 2s; color: var(--lavender); }

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(50px) rotate(360deg); opacity: 0; }
}

/* --- 页脚 --- */
.footer {
  text-align: center;
  padding: 35px 20px;
  background: var(--brown-ink);
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.footer-main {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.footer-sub {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* --- 工具类 --- */
.hidden {
  display: none !important;
}

/* --- 滚动显现动画 --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 15px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 3px 8px;
  }

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

  .hero-inner {
    padding: 40px 25px;
  }

  .stamp {
    width: 55px;
    height: 65px;
  }

  .story-block, .story-block.reverse {
    flex-direction: column;
    align-items: center;
  }

  .story-text {
    max-width: 320px;
  }

  .photo-placeholder, .polaroid img {
    width: 240px;
    height: 190px;
  }

  .polaroid {
    max-width: 270px;
  }

  /* 时间线移动端改为单列 */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-item .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }

  .gb-message {
    width: 100%;
    max-width: 300px;
  }

  .photos-row {
    gap: 15px;
  }

  .hero-quote {
    font-size: 1.2rem;
  }
}

/* ===== 温馨增强：手写字体应用 ===== */
body {
  font-family: 'LXGW WenKai Screen', 'Nunito', sans-serif;
}

.hero-title,
.mag-title,
.section-title,
.group-title,
.story-title,
.letter-title {
  font-family: 'LXGW WenKai Screen', 'Caveat', cursive !important;
}

.mag-caption,
.polaroid-caption,
.node-text,
.mag-text,
.letter-body,
.guestbook-form input,
.guestbook-form textarea {
  font-family: 'LXGW WenKai Screen', 'Patrick Hand', cursive !important;
}

/* ===== 鼠标跟随暖光点 ===== */
.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,170,0.28) 0%, rgba(255,220,190,0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
  filter: blur(4px);
}

.cursor-glow.active {
  opacity: 0.85;
}

/* ===== 飘动装饰（小花/星星/爱心） ===== */
.floating-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.float-item {
  position: fixed;
  font-size: 1.5rem;
  opacity: 0.5;
  animation: floatGentle 8s ease-in-out infinite;
  will-change: transform;
}

.float-flower {
  color: var(--rose);
}

.float-star {
  color: var(--warm-honey);
}

.float-heart {
  color: var(--soft-coral);
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-25px) rotate(15deg);
    opacity: 0.7;
  }
}

/* ===== 照片呼吸动效 ===== */
.mag-main,
.mag-small,
.polaroid,
.photo-card,
.node-photo {
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* 注意：呼吸动效不能覆盖inline的rotate，所以用更柔和的方式 */
.mag-main {
  animation: breatheMain 7s ease-in-out infinite;
}

@keyframes breatheMain {
  0%, 100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-5px);
  }
}

.mag-small {
  animation: none;
}

/* 小图用更细微的浮动 */
.mag-layout-grid .mag-small-1 { animation: breatheS1 8s ease-in-out infinite; }
.mag-layout-grid .mag-small-2 { animation: breatheS2 9s ease-in-out infinite; }
.mag-layout-grid .mag-small-3 { animation: breatheS3 7s ease-in-out infinite; }
.mag-layout-grid .mag-small-4 { animation: breatheS4 8.5s ease-in-out infinite; }
.mag-layout-grid .mag-small-5 { animation: breatheS5 7.5s ease-in-out infinite; }
.mag-layout-grid .mag-small-6 { animation: breatheS6 9.5s ease-in-out infinite; }
.mag-layout-grid .mag-small-7 { animation: breatheS7 8s ease-in-out infinite; }

@keyframes breatheS1 {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-3px); }
}
@keyframes breatheS2 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-4px); }
}
@keyframes breatheS3 {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-3px); }
}
@keyframes breatheS4 {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-4px); }
}
@keyframes breatheS5 {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-3px); }
}
@keyframes breatheS6 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-4px); }
}
@keyframes breatheS7 {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-3px); }
}

/* 悬停时暂停呼吸 */
.mag-main:hover,
.mag-small:hover,
.polaroid:hover,
.photo-card:hover {
  animation-play-state: paused;
}

/* ===== 优化滚动显现动画（更慢更柔和） ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 信封轻微跳动 ===== */
.envelope {
  animation: envelopeBeat 3s ease-in-out infinite;
}

@keyframes envelopeBeat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

/* ===== 移动端：关闭部分动效以省电 ===== */
@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }

  .float-item {
    font-size: 1.2rem;
  }

  .mag-main,
  .polaroid,
  .photo-card {
    animation: none;
  }
}

/* 尊重用户减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .float-item,
  .mag-main,
  .mag-small,
  .polaroid,
  .photo-card,
  .envelope {
    animation: none !important;
  }

  .reveal {
    transition: opacity 0.5s;
    transform: none;
  }
}
