/* ============================================
   兔猫幸福电子日记 · JUNHAN DIARY
   法式复古电子手帐 × 杂志编辑风
   ============================================ */

/* === FONT IMPORTS (display=swap 防止白屏，国内镜像加速) === */
@import url('https://fonts.googleapis.cn/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Caveat:wght@400;600;700&family=Noto+Serif+SC:wght@300;400;500;700&display=swap');
/* 回退方案：字体加载失败时用系统字体，不影响阅读 */

/* === CSS VARIABLES === */
:root {
  --cream:        #FFF5F2;
  --soft-pink:    #F7D0D5;
  --rose-pink:    #E8A0AB;
  --light-peach:  #FDEDEF;
  --white:        #FFFFFF;
  --warm-brown:   #4A3538;
  --deep-rose:    #C87583;
  --pale-gold:    #D4B896;
  --lavender:     #D5CAD8;
  --soft-peach:   #F0C4CC;
  --text:         #4A3538;
  --text-light:   #8B7278;
  --card-bg:      #FFFBF9;
  --shadow:       0 2px 20px rgba(200, 120, 140, 0.12);
  --shadow-hover: 0 8px 35px rgba(200, 120, 140, 0.22);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --font-display:   'Playfair Display', 'Noto Serif SC', 'Georgia', 'STSong', serif;
  --font-body:      'Noto Serif SC', 'STSong', 'Songti SC', 'Georgia', serif;
  --font-hand:      'Caveat', 'STKaiti', 'KaiTi', cursive;
  --font-deco:      'Caveat', 'STKaiti', 'KaiTi', cursive;
  --font-serif-cn:  'Noto Serif SC', 'STSong', 'Songti SC', serif;
  --max-width: 1200px;
  --nav-height: 56px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(247, 208, 213, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(232, 160, 171, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 245, 242, 0.5) 0%, transparent 70%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--soft-pink); color: var(--warm-brown); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--warm-brown); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; height: auto; display: block; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--soft-pink); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose-pink); }

/* ============================================
   NAVIGATION BAR
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(255,245,242,0.95) 0%, rgba(255,245,242,0.7) 80%, rgba(255,245,242,0) 100%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav-logo { font-family: var(--font-hand); font-size: 1.3rem; color: var(--deep-rose); letter-spacing: 0.5px; }
.nav-back { font-family: var(--font-hand); font-size: 1.1rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.3s; }
.nav-back:hover { color: var(--deep-rose); }

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page-container {
  max-width: var(--max-width); margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 24px 80px; min-height: 100vh;
}
.page-title { text-align: center; margin-bottom: 48px; }
.page-title h1 { font-family: var(--font-display); color: var(--deep-rose); margin-bottom: 8px; }
.page-title .subtitle { font-family: var(--font-hand); font-size: 1.3rem; color: var(--text-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center; padding: 32px 24px; font-family: var(--font-hand);
  font-size: 0.85rem; color: var(--text-light); letter-spacing: 0.5px; opacity: 0.7;
}

/* ============================================
   MUSIC PLAYER
   ============================================ */
.music-player {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--soft-pink); border-radius: 40px;
  padding: 8px 18px 8px 8px; box-shadow: var(--shadow);
  transition: all 0.3s ease; cursor: pointer;
}
.music-player:hover { box-shadow: var(--shadow-hover); border-color: var(--rose-pink); }
.music-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--soft-pink); color: var(--warm-brown); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; flex-shrink: 0;
}
.music-btn:hover { background: var(--rose-pink); color: white; }
.music-btn.playing { background: var(--rose-pink); color: white; }
.music-label { font-family: var(--font-hand); font-size: 0.95rem; color: var(--text-light); white-space: nowrap; }
.music-volume { display: flex; align-items: center; gap: 4px; }
.music-volume input[type="range"] {
  -webkit-appearance: none; width: 60px; height: 4px;
  border-radius: 2px; background: var(--soft-pink); outline: none;
}
.music-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rose-pink); cursor: pointer;
}

/* ============================================
   OPENING ANIMATION OVERLAY
   ============================================ */
.intro-overlay {
  position: fixed; inset: 0; z-index: 9999; background: #1a1028;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.intro-overlay.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-enter {
  position: relative; z-index: 2; margin-top: 24px;
  font-family: var(--font-hand); font-size: 1rem; color: var(--lavender);
  opacity: 0; animation: introFadeIn 1.5s ease 3s forwards;
  cursor: pointer; pointer-events: auto; background: none;
  border: 1px solid rgba(212,184,150,0.3); border-radius: 30px;
  padding: 8px 28px; transition: all 0.3s ease;
}
.intro-enter:hover { border-color: var(--pale-gold); color: var(--pale-gold); box-shadow: 0 0 20px rgba(212,184,150,0.2); }
@keyframes introFadeIn { to { opacity: 1; } }

/* ============================================
   HOMEPAGE - HERO
   ============================================ */
.home-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 60px; min-height: 70vh; padding-top: 20px;
}
.hero-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-image-inner {
  position: relative; padding: 16px; background: var(--white);
  box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform 0.5s ease;
}
.hero-image-inner:hover { transform: rotate(0deg); }
.hero-image-inner img { width: 100%; max-width: 500px; }
.hero-tape { position: absolute; top: -12px; left: 30%; width: 80px; height: 28px; background: rgba(247, 208, 213, 0.5); transform: rotate(-3deg); z-index: 2; }
.hero-tape-2 { position: absolute; bottom: -14px; right: 20%; width: 60px; height: 24px; background: rgba(247, 208, 213, 0.4); transform: rotate(5deg); z-index: 2; }
.hero-text { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hero-text .hand-note { font-family: var(--font-hand); font-size: 1.5rem; color: var(--deep-rose); transform: rotate(-2deg); margin-bottom: -8px; }
.hero-text h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; color: var(--warm-brown); line-height: 1.1; letter-spacing: 2px; }
.hero-text h1 .highlight { color: var(--deep-rose); font-style: italic; }
.hero-text .kr-quote { font-family: var(--font-serif-cn); font-size: 1.1rem; color: var(--text-light); font-style: italic; letter-spacing: 2px; }
.hero-text .en-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--pale-gold); letter-spacing: 4px; font-style: italic; }
.hero-text .hand-annotation { font-family: var(--font-hand); font-size: 1.2rem; color: var(--text-light); transform: rotate(1deg); align-self: flex-end; margin-top: 12px; }

/* === FALLING PETALS (homepage decoration) === */
.petals-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.petal {
  position: absolute; top: -60px;
  width: 20px; height: 20px;
  background: radial-gradient(ellipse at 30% 30%, rgba(247,208,213,0.7), rgba(232,160,171,0.15));
  border-radius: 50% 0 50% 50%;
  animation: petalFall linear infinite;
  opacity: 0;
}
.petal:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; width: 18px; height: 18px; }
.petal:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; width: 14px; height: 14px; }
.petal:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 4s; width: 22px; height: 22px; }
.petal:nth-child(4) { left: 35%; animation-duration: 18s; animation-delay: 1s; width: 16px; height: 16px; }
.petal:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s; width: 20px; height: 20px; }
.petal:nth-child(6) { left: 55%; animation-duration: 16s; animation-delay: 5s; width: 15px; height: 15px; }
.petal:nth-child(7) { left: 65%; animation-duration: 11s; animation-delay: 0s; width: 19px; height: 19px; }
.petal:nth-child(8) { left: 75%; animation-duration: 14s; animation-delay: 2s; width: 17px; height: 17px; }
.petal:nth-child(9) { left: 85%; animation-duration: 17s; animation-delay: 4s; width: 21px; height: 21px; }
.petal:nth-child(10) { left: 95%; animation-duration: 12s; animation-delay: 1s; width: 13px; height: 13px; }

@keyframes petalFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  5% { opacity: 0.6; }
  50% { opacity: 0.4; }
  90% { opacity: 0.1; }
  100% { transform: translateY(105vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* === Homepage floating decorations === */
.home-deco {
  position: fixed; pointer-events: none; z-index: 0; opacity: 0.12;
  font-size: 2rem; animation: floatDeco 8s ease-in-out infinite;
}
.home-deco:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; font-size: 2.5rem; }
.home-deco:nth-child(2) { top: 25%; right: 10%; animation-delay: 2s; font-size: 1.8rem; }
.home-deco:nth-child(3) { top: 60%; left: 12%; animation-delay: 4s; font-size: 2rem; }
.home-deco:nth-child(4) { top: 70%; right: 8%; animation-delay: 1s; font-size: 1.5rem; }
.home-deco:nth-child(5) { top: 40%; left: 90%; animation-delay: 3s; font-size: 1.6rem; }
.home-deco:nth-child(6) { top: 80%; left: 50%; animation-delay: 5s; font-size: 2.2rem; }

@keyframes floatDeco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(10px) rotate(-5deg); }
}

/* ============================================
   HOMEPAGE - NAVIGATION CARDS
   ============================================ */
.nav-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 60px; position: relative; z-index: 1;
}
.nav-cards::before {
  content: '✦ 翻开属于他们的每一页 ✦';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; color: var(--pale-gold); letter-spacing: 3px;
  font-family: var(--font-hand); white-space: nowrap;
}
.nav-card {
  position: relative; background: var(--card-bg); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer; border: 1px solid rgba(247, 208, 213, 0.3);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; overflow: visible; z-index: 1;
}
.nav-card:nth-child(1) { transform: rotate(-1.5deg); border-radius: 16px 8px 16px 8px; }
.nav-card:nth-child(2) { transform: rotate(1deg); border-radius: 8px 16px 8px 16px; }
.nav-card:nth-child(3) { transform: rotate(-0.8deg); border-radius: 12px 12px 20px 6px; }
.nav-card:nth-child(4) { transform: rotate(1.5deg); border-radius: 6px 20px 12px 12px; }
.nav-card:nth-child(5) { transform: rotate(-1deg); border-radius: 18px 6px 14px 10px; }
.nav-card:nth-child(6) { transform: rotate(0.5deg); border-radius: 10px 14px 6px 18px; }
.nav-card:hover { transform: rotate(0deg) translateY(-6px) !important; box-shadow: var(--shadow-hover); border-color: var(--rose-pink); }
.nav-card-icon { font-size: 2.2rem; margin-bottom: 4px; }
.nav-card h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--warm-brown); }
.nav-card .card-desc { font-family: var(--font-hand); font-size: 1rem; color: var(--text-light); }
.nav-card .card-tape { position: absolute; top: -10px; width: 50px; height: 20px; background: rgba(247, 208, 213, 0.45); z-index: 2; }

/* ============================================
   HOME SECTION DIVIDER
   ============================================ */
.home-section-divider {
  text-align: center; margin: 48px 0; font-family: var(--font-hand);
  font-size: 1.1rem; color: var(--text-light); letter-spacing: 2px; opacity: 0.6;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.about-person {
  position: relative; background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); border: 1px solid rgba(247, 208, 213, 0.3);
}
.about-person img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 20px; }
.about-person h2 { font-family: var(--font-display); color: var(--deep-rose); margin-bottom: 16px; font-size: 1.6rem; }
.about-person .info-text { font-family: var(--font-body); font-size: 0.95rem; line-height: 2; color: var(--text); white-space: pre-line; }
.about-story {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 40px 32px;
  box-shadow: var(--shadow); border: 1px solid rgba(247, 208, 213, 0.3);
  margin-bottom: 60px; position: relative;
}
.about-story::before { content: '🌸'; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; }
.about-story h2 { text-align: center; color: var(--deep-rose); margin-bottom: 24px; }
.about-story .story-text { font-family: var(--font-body); font-size: 0.95rem; line-height: 2.2; color: var(--text); white-space: pre-line; }

/* ============================================
   ELLE PAGE
   ============================================ */
.elle-magazine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 48px; }
.elle-magazine-item {
  position: relative; background: var(--white); padding: 12px;
  box-shadow: var(--shadow); border-radius: 4px; transition: all 0.3s ease; cursor: pointer;
}
.elle-magazine-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.elle-magazine-item img { width: 100%; border-radius: 2px; }
.elle-magazine-item .elle-caption { font-family: var(--font-hand); font-size: 0.9rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.elle-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.elle-video-card {
  position: relative; background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: all 0.3s ease;
}
.elle-video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.elle-video-card video { width: 100%; object-fit: cover; }
.elle-video-card .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.elle-video-card .play-icon {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  color: var(--deep-rose); transition: all 0.3s ease;
}
.elle-video-card:hover .play-icon { background: var(--rose-pink); color: white; }

/* ============================================
   COUPLE PHOTOS PAGE
   ============================================ */
.photos-wall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px; margin: 0 auto; padding: 20px 0;
}
.photo-polaroid {
  background: var(--white); padding: 12px 12px 40px 12px;
  box-shadow: 2px 4px 16px rgba(180, 140, 150, 0.2);
  cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; display: inline-block; width: fit-content;
}
.photo-polaroid:nth-child(odd) { transform: rotate(-1.5deg); }
.photo-polaroid:nth-child(even) { transform: rotate(1.5deg); }
.photo-polaroid:nth-child(3n) { transform: rotate(-1deg); }
.photo-polaroid:nth-child(5n) { transform: rotate(2deg); }
.photo-polaroid:hover { transform: rotate(0deg) scale(1.04) !important; box-shadow: 4px 8px 30px rgba(200, 120, 140, 0.3); z-index: 10; }
.photo-polaroid img { width: 100%; max-width: 320px; }
.photo-polaroid .photo-tape { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 55px; height: 20px; background: rgba(247, 208, 213, 0.5); border-radius: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10000; background: rgba(30, 10, 18, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; cursor: pointer;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 0 60px rgba(232, 160, 171, 0.3); }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 2rem; color: white; cursor: pointer; z-index: 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; border: none; }

/* ============================================
   CHALLENGE PAGE
   ============================================ */
.challenge-tv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; max-width: 900px; margin: 0 auto; }
.challenge-tv {
  position: relative; background: #3D2A30; border-radius: 18px; padding: 16px;
  box-shadow: 0 0 0 4px #5C3D44, 0 0 0 8px #2E1D23, 0 8px 40px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.challenge-tv:hover { transform: translateY(-6px); box-shadow: 0 0 0 4px var(--deep-rose), 0 0 0 8px #2E1D23, 0 12px 50px rgba(200, 120, 140, 0.3); }
.challenge-tv-screen { position: relative; border-radius: 8px; overflow: hidden; background: #1a1a1a; cursor: pointer; }
.challenge-tv-screen video { width: 100%; object-fit: cover; }
.challenge-tv-screen .tv-static {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px);
}
.challenge-tv:hover .tv-static { opacity: 1; }
.challenge-tv-label { text-align: center; font-family: var(--font-hand); font-size: 1rem; color: var(--soft-pink); margin-top: 12px; }

/* ============================================
   LOVING 24 PAGE
   ============================================ */
.loving-section { margin-bottom: 48px; }
.loving-section-title {
  text-align: center; font-family: var(--font-display); font-size: 1.4rem;
  color: var(--deep-rose); margin-bottom: 28px; letter-spacing: 2px;
}
.loving-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px;
  max-width: 900px; margin: 0 auto;
}
.loving-photo-item {
  background: var(--white); padding: 10px 10px 32px 10px;
  box-shadow: 2px 4px 16px rgba(180, 140, 150, 0.2);
  cursor: pointer; transition: all 0.3s ease; position: relative;
}
.loving-photo-item:nth-child(odd) { transform: rotate(-1.2deg); }
.loving-photo-item:nth-child(even) { transform: rotate(1.2deg); }
.loving-photo-item:hover { transform: rotate(0deg) scale(1.04) !important; box-shadow: 4px 8px 30px rgba(200, 120, 140, 0.3); z-index: 5; }
.loving-photo-item img { width: 100%; }
.loving-photo-number {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-hand); font-size: 0.85rem; color: var(--text-light);
}
/* LOVING 24 videos */
.loving-video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.loving-video-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: all 0.3s ease; background: #1a1a1a;
}
.loving-video-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.loving-video-item img { width: 100%; }
.loving-video-item .video-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
}
.loving-video-item .video-play-icon {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  color: var(--deep-rose); transition: all 0.3s ease;
}
.loving-video-item:hover .video-play-icon { background: var(--rose-pink); color: white; }
.loving-video-number {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-hand); font-size: 0.9rem; color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); z-index: 2;
}
.loving-finale { text-align: center; padding: 48px 24px; font-family: var(--font-display); color: var(--deep-rose); }
.loving-finale h2 { font-size: 2rem; font-style: italic; }
.loving-finale .finale-quote { font-family: var(--font-hand); font-size: 1.5rem; color: var(--pale-gold); margin-top: 12px; }

/* ============================================
   MESSAGE BOARD
   ============================================ */
.message-form-wrap {
  max-width: 600px; margin: 0 auto 48px; background: var(--card-bg);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
  border: 1px solid rgba(247, 208, 213, 0.3);
}
.message-form-wrap label { display: block; font-family: var(--font-hand); font-size: 1.1rem; color: var(--text); margin-bottom: 6px; margin-top: 16px; }
.message-form-wrap label:first-child { margin-top: 0; }
.message-form-wrap input, .message-form-wrap textarea {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(247, 208, 213, 0.5);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--white); transition: all 0.3s ease; resize: vertical;
}
.message-form-wrap input:focus, .message-form-wrap textarea:focus { outline: none; border-color: var(--rose-pink); box-shadow: 0 0 0 3px rgba(232, 160, 171, 0.15); }
.message-form-wrap textarea { min-height: 100px; }
.color-picker { display: flex; gap: 10px; margin-top: 6px; }
.color-option { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: all 0.2s ease; }
.color-option:hover, .color-option.selected { border-color: var(--deep-rose); transform: scale(1.15); }
.btn-submit {
  display: block; width: 100%; margin-top: 24px; padding: 14px;
  background: var(--rose-pink); color: white; border: none; border-radius: 30px;
  font-family: var(--font-hand); font-size: 1.2rem; cursor: pointer;
  transition: all 0.3s ease; letter-spacing: 1px;
}
.btn-submit:hover { background: var(--deep-rose); box-shadow: 0 4px 20px rgba(200, 120, 140, 0.4); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.messages-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.message-note { padding: 24px 20px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; transition: all 0.3s ease; }
.message-note:nth-child(odd) { transform: rotate(-1deg); }
.message-note:nth-child(even) { transform: rotate(1.5deg); }
.message-note:nth-child(3n) { transform: rotate(-0.5deg); }
.message-note:hover { transform: rotate(0deg) scale(1.03) !important; box-shadow: var(--shadow-hover); }
.message-note .note-name { font-family: var(--font-hand); font-size: 1.15rem; color: var(--deep-rose); margin-bottom: 8px; }
.message-note .note-text { font-family: var(--font-body); font-size: 0.9rem; color: var(--text); line-height: 1.6; word-break: break-word; }
.message-note .note-time { font-family: var(--font-hand); font-size: 0.75rem; color: var(--text-light); margin-top: 12px; text-align: right; }
.message-note .note-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--rose-pink); box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.note-delete-btn {
  position: absolute; top: 8px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(180,140,150,0.15);
  color: #b8a0a8; font-size: 0.7rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; z-index: 2; line-height: 1;
}
.note-delete-btn:hover { background: #e88a9a; color: white; }
.note-pink { background: #FDE8EC; }
.note-cream { background: #FFFBF7; }
.note-lavender { background: #F3EFF5; }
.note-peach { background: #FEF0EC; }
.note-mint { background: #EDF5F0; }

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; min-height: auto; text-align: center; }
  .hero-text .hand-annotation { align-self: center; }
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .about-duo { grid-template-columns: 1fr; gap: 28px; }
  .elle-magazine-grid, .elle-video-grid { grid-template-columns: 1fr 1fr; }
  .photos-wall { grid-template-columns: repeat(2, 1fr); }
  .challenge-tv-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .loving-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .loving-video-grid { grid-template-columns: 1fr 1fr; }
  .messages-wall { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 600px) {
  .nav { padding: 8px 16px; }
  .nav-logo { font-size: 1rem; }
  .page-container { padding: calc(var(--nav-height) + 24px) 16px 60px; }
  .home-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .hero-image-inner { padding: 10px; }
  .hero-image-inner img { max-width: 100%; }
  .hero-tape, .hero-tape-2 { width: 50px; height: 18px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text .hand-note { font-size: 1.2rem; }
  .hero-text .kr-quote { font-size: 0.9rem; }
  .hero-text .en-name { font-size: 1.05rem; letter-spacing: 1.5px; }
  .nav-cards { grid-template-columns: 1fr; gap: 16px; }
  .nav-card { padding: 20px 16px; }
  .nav-card:nth-child(n) { transform: rotate(-0.5deg); }
  .nav-cards::before { font-size: 0.7rem; letter-spacing: 1px; }
  .about-duo { grid-template-columns: 1fr; }
  .elle-magazine-grid, .elle-video-grid { grid-template-columns: 1fr; gap: 20px; }
  .photos-wall { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .photo-polaroid { padding: 8px 8px 28px 8px; }
  .photo-polaroid img { max-width: 100%; }
  .challenge-tv-grid { grid-template-columns: 1fr; gap: 28px; }
  .loving-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .loving-video-grid { grid-template-columns: 1fr; gap: 16px; }
  .loving-photo-item { padding: 6px 6px 24px 6px; }
  .messages-wall { grid-template-columns: 1fr; gap: 16px; }
  .message-form-wrap { padding: 20px 16px; }
  .music-player { bottom: 16px; right: 12px; padding: 6px 14px 6px 6px; }
  .music-label { font-size: 0.8rem; }
  .music-volume input[type="range"] { width: 40px; }
  /* 手机端关闭花瓣和装饰，省性能 */
  .petals-container { display: none; }
  .home-deco { display: none; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes floatUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes softPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
.float-anim { animation: floatUpDown 4s ease-in-out infinite; }
.pulse-anim { animation: softPulse 3s ease-in-out infinite; }

/* Fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 10000; background: rgba(20, 5, 12, 0.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-inner { position: relative; width: 90vw; max-width: 800px; }
.video-modal-inner video { width: 100%; border-radius: 8px; box-shadow: 0 0 40px rgba(232, 160, 171, 0.3); }
.video-modal-close { position: absolute; top: -40px; right: 0; font-size: 1.6rem; color: white; cursor: pointer; background: none; border: none; }
video[poster] { background: #1a1a1a; }
