/* ===================================================================
   浪漫恋爱网站 - 核心样式库 (双主题：梦幻星空 & 温暖手账)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Zeyada&display=swap');

:root {
  /* 基础动画时间 */
  --transition-speed: 0.6s;
  --font-serif: 'Noto Serif SC', 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Ma Shan Zheng', 'Zeyada', cursive, sans-serif;
}

/* ==================== 1. 主题变量 ==================== */

/* 🌌 梦幻星空主题 (默认 - 极致浪漫与深邃银河) */
body[data-theme="galaxy"] {
  --bg-gradient: radial-gradient(ellipse at 15% 12%, rgba(124, 58, 237, 0.28) 0%, transparent 55%),
                 radial-gradient(ellipse at 85% 25%, rgba(236, 72, 153, 0.32) 0%, transparent 50%),
                 radial-gradient(ellipse at 25% 75%, rgba(168, 85, 247, 0.26) 0%, transparent 60%),
                 radial-gradient(ellipse at 80% 80%, rgba(56, 189, 248, 0.22) 0%, transparent 55%),
                 radial-gradient(circle at 50% 35%, #0d0a21 0%, #060515 55%, #020108 100%);
  --text-main: #f3f4fc;
  --text-muted: #b0bfeb;
  --accent-color: #f472b6; /* 梦幻星辰粉 */
  --accent-glow: rgba(244, 114, 182, 0.55);
  --cyan-glow: #38bdf8;
  --card-bg: rgba(18, 22, 42, 0.65);
  --card-border: rgba(168, 85, 247, 0.25);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(236, 72, 153, 0.18);
  --glass-blur: blur(20px);
  --polaroid-bg: #151a2d;
  --polaroid-text: #e2e8f0;
  --polaroid-back-bg: #0d1222;
  --tape-color: rgba(244, 114, 182, 0.45);
  --vinyl-body: #101322;
  --vinyl-disk: #05070d;
}

/* ☀️ 温暖手账 / 拍立得日记风主题 */
body[data-theme="journal"] {
  --bg-gradient: radial-gradient(circle at 50% 10%, #fffcf5 0%, #f6efe2 50%, #eee3d1 100%);
  --text-main: #3d2f26;
  --text-muted: #826d5e;
  --accent-color: #d9664f; /* 暖陶土红 */
  --accent-glow: rgba(217, 102, 79, 0.25);
  --cyan-glow: #78a599;
  --card-bg: rgba(255, 253, 248, 0.85);
  --card-border: rgba(198, 177, 154, 0.4);
  --card-shadow: 0 14px 30px rgba(100, 75, 55, 0.12), 0 2px 8px rgba(100, 75, 55, 0.05);
  --glass-blur: blur(8px);
  --polaroid-bg: #ffffff;
  --polaroid-text: #423229;
  --polaroid-back-bg: #f9f4ea;
  --tape-color: rgba(230, 203, 168, 0.7);
  --vinyl-body: #ebd9c3;
  --vinyl-disk: #2b2420;
}

/* ==================== 2. 全局重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  color: var(--text-main);
  background: var(--bg-gradient);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* 纸张纹理轻微叠加 (仅在手账模式柔和呈现) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  z-index: 1;
}

/* 🌌 动态深空星云光晕层 (漂浮漫游星云) */
.cosmic-nebula-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.9;
  transition: opacity var(--transition-speed) ease;
}

body[data-theme="journal"] .cosmic-nebula-container {
  opacity: 0;
}

.cosmic-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: cosmic-float 26s ease-in-out infinite alternate;
}

.cosmic-cloud-1 {
  width: 600px;
  height: 600px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(168, 85, 247, 0.16) 55%, transparent 75%);
  animation-duration: 24s;
}

.cosmic-cloud-2 {
  width: 680px;
  height: 680px;
  top: 38%;
  left: -180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(56, 189, 248, 0.16) 50%, transparent 75%);
  animation-duration: 32s;
  animation-delay: -6s;
}

.cosmic-cloud-3 {
  width: 520px;
  height: 520px;
  bottom: -60px;
  right: 18%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.26) 0%, rgba(147, 51, 234, 0.18) 50%, transparent 70%);
  animation-duration: 28s;
  animation-delay: -14s;
}

@keyframes cosmic-float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(45px, 35px) scale(1.12) rotate(8deg); }
  100% { transform: translate(-35px, 45px) scale(0.92) rotate(-8deg); }
}

/* Canvas 星空/暖阳微粒背景 */
#galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 拍立得照片右上角快捷操作栏 (换图与删除独立布局，绝不重叠) */
.polaroid-top-actions {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.polaroid-action-btn {
  background: rgba(15, 12, 28, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-family: inherit;
  white-space: nowrap;
}

.polaroid-action-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-1px) scale(1.05);
}

.polaroid-action-btn.btn-del {
  background: rgba(35, 15, 25, 0.85);
  border-color: rgba(244, 63, 94, 0.35);
  padding: 0.25rem 0.5rem;
}

.polaroid-action-btn.btn-del:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.change-photo-mini-btn {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s;
  font-family: inherit;
}

/* 照片管理弹窗列表 */
.photo-mgr-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.2rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem 0.2rem;
}

.photo-mgr-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 0.8rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

body[data-theme="journal"] .photo-mgr-card {
  background: #ffffff;
}

.photo-mgr-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #000;
}

.photo-mgr-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-mgr-title {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-mgr-upload-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: inherit;
}

.photo-mgr-upload-btn:hover {
  transform: scale(1.08);
}

/* 容器限制 */
.main-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 7rem 1.25rem;
}

/* ==================== 3. 顶栏导航与工具栏 ==================== */
.top-header {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  transition: all var(--transition-speed) ease;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-color);
  font-size: 1.3rem;
  animation: pulse-heart 1.8s infinite;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.logo-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

/* 节日/事件选择器 */
.event-selector-wrap {
  position: relative;
}

.event-select {
  appearance: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.42rem 1.7rem 0.42rem 0.75rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.event-select:hover, .event-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.selector-arrow {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* 主题切换开关与顶栏按钮 */
.theme-btn, .modal-open-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.42rem 0.72rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}

.theme-btn:hover, .modal-open-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px var(--accent-glow);
  color: var(--accent-color);
}

/* ☀️ 手账模式下顶栏按钮与主题切换开关高对比度显色保护 */
body[data-theme="journal"] .theme-btn,
body[data-theme="journal"] .modal-open-btn,
body[data-theme="journal"] .event-select {
  background: rgba(255, 253, 248, 0.95) !important;
  border-color: rgba(198, 177, 154, 0.6) !important;
  color: #3d2f26 !important;
}

body[data-theme="journal"] .theme-btn:hover,
body[data-theme="journal"] .theme-btn:focus,
body[data-theme="journal"] .theme-btn:active,
body[data-theme="journal"] .modal-open-btn:hover,
body[data-theme="journal"] .modal-open-btn:focus,
body[data-theme="journal"] .modal-open-btn:active,
body[data-theme="journal"] .event-select:hover,
body[data-theme="journal"] .event-select:focus {
  background: #ffffff !important;
  color: #d9664f !important;
  border-color: #d9664f !important;
  box-shadow: 0 4px 14px rgba(217, 102, 79, 0.25) !important;
}

body[data-theme="journal"] .theme-btn span,
body[data-theme="journal"] .modal-open-btn span {
  color: inherit !important;
}

/* ==================== 更多设置毛玻璃下拉菜单 ==================== */
.more-menu-wrap {
  position: relative;
  display: inline-block;
  z-index: 101;
}

.more-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.more-arrow {
  font-size: 0.68rem;
  transition: transform 0.25s ease;
  opacity: 0.75;
  display: inline-block;
}

.more-menu-wrap.open .more-arrow {
  transform: rotate(180deg);
}

.more-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 195px;
  background: rgba(13, 16, 33, 0.96);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(236, 72, 153, 0.2);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}

body[data-theme="journal"] .more-menu-dropdown {
  background: rgba(255, 252, 245, 0.97);
  box-shadow: 0 16px 36px rgba(100, 80, 60, 0.18), 0 0 20px rgba(217, 102, 79, 0.1);
}

.more-menu-wrap.open .more-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.more-dropdown-header {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
  user-select: none;
}

body[data-theme="journal"] .more-dropdown-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.more-dropdown-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.52rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  white-space: nowrap;
  user-select: none;
}

.more-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-border);
  transform: translateX(3px);
  color: #ffffff;
}

body[data-theme="journal"] .more-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

.more-dropdown-item .item-icon {
  font-size: 0.95rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.more-dropdown-item .item-text {
  flex: 1;
}

/* 下拉菜单高亮项目 */
.more-dropdown-item.item-highlight {
  color: #f472b6;
}

.more-dropdown-item.item-highlight:hover {
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(244, 114, 182, 0.4);
  color: #ffffff;
}

.more-dropdown-item.item-secondary-highlight {
  color: #38bdf8;
}

.more-dropdown-item.item-secondary-highlight:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

/* ==================== 4. 英雄区：心跳 & 恋爱计时器 ==================== */
.hero-section {
  text-align: center;
  padding: 3.2rem 1.5rem 3.5rem 1.5rem;
  border-radius: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

/* 极光流动边框光晕层 (跨浏览器高兼容性硬件加速流光) */
.aurora-beam {
  position: absolute;
  inset: -1.5px;
  border-radius: 2rem;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.aurora-beam::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0%,
    #f43f5e 12%,
    #ec4899 26%,
    #a855f7 42%,
    #6366f1 58%,
    #06b6d4 74%,
    #10b981 88%,
    transparent 100%
  );
  animation: rotate-aurora 8s linear infinite;
}

.aurora-glow-card {
  box-shadow: var(--card-shadow), 0 0 35px rgba(236, 72, 153, 0.18);
}

body[data-theme="journal"] .aurora-beam::before {
  background: conic-gradient(
    transparent 0%,
    #f59e0b 15%,
    #ec4899 35%,
    #fb7185 55%,
    #d97706 75%,
    #f59e0b 90%,
    transparent 100%
  );
  opacity: 0.65;
}

@keyframes rotate-aurora {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 装饰光斑 */
.hero-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: var(--accent-glow);
  filter: blur(85px);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* 确保内部所有组件均位于极光层之上 */
.hero-section > *:not(.aurora-beam) {
  position: relative;
  z-index: 1;
}

/* 👫 情侣头像光环与心动连线 */
.couple-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.avatar-box {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.avatar-box:hover {
  transform: scale(1.08) translateY(-2px);
}

.avatar-halo {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: spin-avatar-halo 6s linear infinite;
  pointer-events: none;
}

.avatar-halo-boy {
  background: conic-gradient(from 0deg, #38bdf8, #818cf8, #c084fc, #38bdf8);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.avatar-halo-girl {
  background: conic-gradient(from 180deg, #f43f5e, #fb7185, #ec4899, #f43f5e);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
}

@keyframes spin-avatar-halo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.couple-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #060515;
  position: relative;
  z-index: 1;
  background: #1e1b4b;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body[data-theme="journal"] .couple-avatar {
  border-color: #faf5ee;
}

.avatar-edit-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 12, 35, 0.88);
  border: 1px solid var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  z-index: 2;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.avatar-box:hover .avatar-edit-badge {
  transform: scale(1.18);
  background: var(--accent-color);
}

/* 💓 心动脉冲连线 */
.avatar-connector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.connector-line {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--card-border), var(--accent-color), var(--card-border));
  opacity: 0.75;
}

.avatar-heart-pulse {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s;
}

.avatar-heart-pulse:hover {
  transform: scale(1.25);
}

.heart-core {
  font-size: 1.35rem;
  color: #f43f5e;
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.65);
  animation: pulse-heart 1.4s ease-in-out infinite;
  position: relative;
  z-index: 1;
  user-select: none;
}

.heart-pulse-wave {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 63, 94, 0.5);
  animation: ripple-wave 2.2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  pointer-events: none;
}

@keyframes ripple-wave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.couple-names {
  font-family: var(--font-handwriting);
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--accent-glow);
}

/* 动态温情问候 (按时辰智能变化) */
.hero-greeting-box {
  max-width: 680px;
  margin: 0.3rem auto 1.8rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: 9999px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-size: 0.78rem;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}

.greeting-badge:hover {
  transform: translateY(-2px);
  background: rgba(244, 63, 94, 0.2);
}

.greeting-days-tag {
  padding-left: 0.4rem;
  border-left: 1px solid rgba(244, 63, 94, 0.35);
  font-weight: 600;
}

.hero-greeting {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
  transition: opacity 0.4s ease;
  font-family: inherit;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.2rem auto;
  line-height: 1.8;
}

/* 计时器数字大网格 */
.timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.time-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  min-width: 110px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s;
}

body[data-theme="journal"] .time-box {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(100, 75, 55, 0.08);
}

.time-box:hover {
  transform: translateY(-4px);
}

.time-number {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-color);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.time-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 心跳统计条 */
.heartbeat-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.heartbeat-icon {
  color: var(--accent-color);
  animation: pulse-heart 1.2s infinite;
}

/* ==================== 5. 3D星空 / 时间轴轨迹 ==================== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50%;
  height: 3px;
  background: var(--accent-color);
  margin: 0.5rem auto 0 auto;
  border-radius: 9999px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 星辰轨迹容器 */
.milestones-wrapper {
  position: relative;
  margin-bottom: 5rem;
}

/* 贯穿时间轴线 */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-color) 15%, var(--cyan-glow) 85%, transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.timeline-node {
  display: flex;
  align-items: center;
  width: 100%;
}

.timeline-node:nth-child(odd) {
  flex-direction: row;
}

.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}

.node-content {
  width: calc(50% - 2.5rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.node-content:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 16px 36px var(--accent-glow);
}

/* 中心星辰图标点 */
.node-point {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 3;
  margin: 0 1rem;
  flex-shrink: 0;
  transition: transform 0.4s;
  cursor: pointer;
}

.timeline-node:hover .node-point {
  transform: scale(1.2) rotate(15deg);
  background: var(--accent-color);
  color: #fff;
}

.node-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: var(--accent-glow);
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.node-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.node-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.node-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.node-img-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-top: 0.8rem;
  border: 1px solid var(--card-border);
}

/* ==================== 6. 拍立得照片墙 (3D翻转效果) ==================== */
.polaroids-section {
  margin-bottom: 5rem;
}

.polaroids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
  padding: 1rem 0;
}

/* 单个拍立得卡片外包装 (控制旋转与透视) */
.polaroid-wrapper {
  perspective: 1200px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.polaroid-wrapper:hover {
  transform: translateY(-8px) scale(1.03) !important;
  z-index: 10;
}

/* 和纸胶带贴纸效果 */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--tape-color);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
}

/* 翻转卡片核心结构 */
.polaroid-card {
  width: 100%;
  min-height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  border-radius: 0.6rem;
  box-shadow: var(--card-shadow);
}

.polaroid-card.is-flipped {
  transform: rotateY(180deg);
}

/* 正反面通用 */
.card-front, .card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.6rem;
  padding: 1.1rem 1.1rem 1.8rem 1.1rem;
  display: flex;
  flex-direction: column;
}

/* 拍立得正面 */
.card-front {
  background: var(--polaroid-bg);
  border: 1px solid var(--card-border);
  color: var(--polaroid-text);
}

.polaroid-img-box {
  width: 100%;
  height: 250px;
  border-radius: 0.3rem;
  overflow: hidden;
  background: #111;
  position: relative;
}

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

.polaroid-card:hover .polaroid-img {
  transform: scale(1.05);
}

.polaroid-footer {
  margin-top: 1.1rem;
  text-align: center;
}

.polaroid-title {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  color: var(--polaroid-text);
  margin-bottom: 0.2rem;
}

.polaroid-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.flip-hint {
  font-size: 0.72rem;
  color: var(--accent-color);
  margin-top: 0.4rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* 拍立得背面（心声手记） */
.card-back {
  background: var(--polaroid-back-bg);
  border: 1px solid var(--card-border);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: left;
}

/* 背面邮票与小印章 */
.card-back-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.2rem;
  height: 2.6rem;
  border: 2px dashed var(--accent-color);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.back-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.back-note {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  position: relative;
}

.back-note::before {
  content: "“";
  font-size: 2.5rem;
  position: absolute;
  top: -1.2rem;
  left: -0.8rem;
  opacity: 0.2;
}

/* ==================== 7. 专属解谜密室与打字机情书 ==================== */
.letter-section {
  margin-bottom: 5rem;
}

.letter-vault-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 2rem;
  padding: 3rem 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

/* 锁住的信封状态 */
.lock-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.envelope-icon-wrap {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-color);
  box-shadow: 0 0 30px var(--accent-glow);
  cursor: pointer;
  animation: float-gentle 3s ease-in-out infinite;
}

.vault-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.vault-prompt {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}

.cipher-form {
  display: flex;
  gap: 0.8rem;
  max-width: 380px;
  width: 100%;
}

.cipher-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  font-family: inherit;
  transition: all 0.3s;
}

body[data-theme="journal"] .cipher-input {
  background: #ffffff;
}

.cipher-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.cipher-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.cipher-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.cipher-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.7;
}

/* 解锁后的真实信笺 (打字机效果) */
.unlocked-letter {
  display: none; /* JS 解锁后变为 block */
  text-align: left;
  padding: 2.5rem;
  border-radius: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  position: relative;
}

body[data-theme="journal"] .unlocked-letter {
  background: #fdfaf3;
  box-shadow: inset 0 0 30px rgba(180, 150, 120, 0.15);
}

.letter-salutation {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-family: var(--font-handwriting);
}

.letter-content {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--text-main);
  white-space: pre-line;
  min-height: 180px;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--accent-color);
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
}

.letter-footer {
  margin-top: 2.5rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.letter-closing {
  font-family: var(--font-handwriting);
  font-size: 1.6rem;
  color: var(--accent-color);
}

.letter-signdate {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 红色火漆印章 */
.wax-seal {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: radial-gradient(circle, #e11d48, #9f1239);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(159, 18, 57, 0.5), inset 0 2px 4px rgba(255,255,255,0.3);
  margin-top: 1rem;
}

/* ==================== 8. 复古黑胶唱片机 (BGM 悬浮控制器) ==================== */
.vinyl-player-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--vinyl-body);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border-radius: 9999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  backdrop-filter: var(--glass-blur);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vinyl-player-widget:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px var(--accent-glow);
}

/* 黑胶黑胶唱片盘 */
.vinyl-disk-wrapper {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  cursor: pointer;
}

.vinyl-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1f1d 20%, var(--vinyl-disk) 21%, var(--vinyl-disk) 100%);
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin-vinyl 4s linear infinite;
  animation-play-state: paused;
}

.vinyl-disk.is-playing {
  animation-play-state: running;
}

/* 黑胶同心纹路 */
.vinyl-disk::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  pointer-events: none;
}

.vinyl-center-label {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
}

/* 唱针 */
.tonearm {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform-origin: top right;
  transform: rotate(-30deg);
  transition: transform 0.6s ease;
  color: #d1d5db;
}

.vinyl-player-widget.playing .tonearm {
  transform: rotate(0deg);
}

.player-info {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.song-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 🎵 黑胶控制器切歌按键组 */
.vinyl-controls-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vinyl-ctrl-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.25s ease;
}

.vinyl-ctrl-mini-btn:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: scale(1.15);
}

.play-toggle-btn {
  background: var(--accent-glow);
  color: var(--accent-color);
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.play-toggle-btn:hover {
  transform: scale(1.15);
}

.vinyl-sub-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.25s;
}

.vinyl-sub-btn:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: #ec4899;
  transform: scale(1.12);
}

.vinyl-sub-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: scale(1.1);
  border-color: transparent;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* 漂浮的音符动效 */
.music-note-particle {
  position: absolute;
  color: var(--accent-color);
  font-size: 1rem;
  pointer-events: none;
  animation: float-note 2s ease-out forwards;
}

/* ==================== 8.5 🚀 星际快捷导航 Dock (Floating Interstellar Quick Nav) ==================== */
.cosmic-quick-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  max-width: 95vw;
  background: rgba(14, 11, 30, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(236, 72, 153, 0.15);
  border-radius: 9999px;
  padding: 0.35rem 0.5rem;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

body[data-theme="journal"] .cosmic-quick-nav {
  background: rgba(254, 250, 244, 0.92);
  border: 1px solid rgba(190, 150, 110, 0.35);
  box-shadow: 0 10px 30px rgba(120, 80, 50, 0.15);
}

.quick-nav-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.1rem 0.25rem;
}

.quick-nav-track::-webkit-scrollbar {
  display: none;
}

.quick-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
}

.quick-nav-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

body[data-theme="journal"] .quick-nav-pill:hover {
  background: rgba(160, 110, 60, 0.08);
}

.quick-nav-pill.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.9), rgba(168, 85, 247, 0.9));
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.45);
  transform: scale(1.05);
}

body[data-theme="journal"] .quick-nav-pill.active {
  color: #5c3b1e;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
  border-color: #f472b6;
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.35);
}

.pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.pill-text {
  line-height: 1;
  font-size: 0.8rem;
}

/* 音乐管理弹窗组件 */
.music-drop-zone {
  border: 2px dashed var(--accent-color);
  border-radius: 1.2rem;
  padding: 2.4rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  margin: 1.2rem 0;
}

body[data-theme="journal"] .music-drop-zone {
  background: #ffffff;
}

.music-drop-zone:hover {
  background: var(--card-bg);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-2px);
}

.music-current-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  padding: 0.9rem 1.2rem;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

body[data-theme="journal"] .music-current-status {
  background: #ffffff;
}

/* 轻量轻提示 Toast */
.love-toast {
  position: fixed;
  top: 1.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  color: var(--text-main);
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 25px var(--accent-glow);
  z-index: 9999;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.love-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==================== 9. 自定义日期/密码/音乐/通用弹窗 ==================== */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.custom-modal.active {
  display: flex;
  animation: modal-overlay-fade 0.22s ease-out;
}

@keyframes modal-overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: rgba(18, 22, 42, 0.96);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow), 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 1.8rem 1.6rem 1.4rem 1.6rem;
  border-radius: 1.4rem;
  max-width: 520px;
  width: 100%;
  color: var(--text-main);
  position: relative;
  max-height: min(88vh, 800px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  scrollbar-width: none;
  animation: modal-box-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

body[data-theme="journal"] .modal-box {
  background: rgba(255, 252, 245, 0.98);
}

@keyframes modal-box-pop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box::-webkit-scrollbar {
  display: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--accent-color);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 0.55rem;
  padding: 0.52rem 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s ease;
}

/* 🌟 下拉选框与选项高对比度适配 (解决黑色背景下文字看不清问题) */
select.form-input,
.event-select,
select {
  background-color: #1a1429 !important;
  color: #f8fafc !important;
  cursor: pointer;
}

select.form-input option,
.event-select option,
select option {
  background-color: #1a1429 !important;
  color: #f8fafc !important;
  padding: 0.6rem 0.8rem;
}

/* 暖色日记主题下保持优雅棕木配色 */
body[data-theme="journal"] .form-input {
  background: #ffffff;
  color: #2b1f1d;
}

body[data-theme="journal"] select.form-input,
body[data-theme="journal"] .event-select,
body[data-theme="journal"] select {
  background-color: #fffaf0 !important;
  color: #2b1f1d !important;
}

body[data-theme="journal"] select.form-input option,
body[data-theme="journal"] .event-select option,
body[data-theme="journal"] select option {
  background-color: #fffaf0 !important;
  color: #2b1f1d !important;
}

.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* 💖 浪漫自定义对话框 (无阻塞原生感弹窗) */
.custom-dialog-box {
  animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 25px var(--accent-glow) !important;
}

@keyframes modal-pop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  bottom: -1.4rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
}

/* ==================== 9.5 可视化自由创建与管理 UI 组件 ==================== */
.add-item-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(168, 85, 247, 0.16));
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.85rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.add-item-action-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.roulette-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.roulette-add-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.roulette-add-pill-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* 拍立得新增卡片 */
.polaroid-add-card {
  border: 2px dashed rgba(244, 63, 94, 0.45) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  transition: all 0.3s ease;
  border-radius: 0.6rem;
}

.polaroid-add-card:hover {
  border-color: var(--accent-color) !important;
  background: rgba(244, 63, 94, 0.08) !important;
  transform: scale(1.03);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.add-card-inner {
  text-align: center;
  padding: 2rem 1rem;
}

.add-card-inner .add-icon {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

.add-card-inner .add-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
}

.add-card-inner .add-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* 足迹地图增加按钮与操作 */
.map-add-btn {
  background: transparent;
  border: 1px dashed var(--accent-color);
  color: var(--accent-color);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.map-add-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* 回忆时间轴卡片删除/编辑角标 */
.node-action-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.node-action-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.node-action-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.node-action-btn.btn-del:hover {
  color: #ef4444;
  border-color: #ef4444;
}

/* 弹窗中的上传预览框与布局 */
.modal-upload-preview-box {
  border: 2px dashed var(--card-border);
  border-radius: 1rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  overflow: hidden;
}

.modal-upload-preview-box:hover {
  border-color: var(--accent-color);
  background: rgba(244, 63, 94, 0.08);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-textarea {
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

/* 高亮操作按钮（如：📲 桌面App）- 采用晶莹玫瑰粉光晕与高对比白字，彻底告别暗红难以辨识问题 */
.highlight-btn {
  border: 1px solid rgba(244, 114, 182, 0.6) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.32), rgba(244, 63, 94, 0.32)) !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25) !important;
}

.highlight-btn:hover {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
  color: #ffffff !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.65) !important;
  transform: translateY(-2px);
}

body[data-theme="journal"] .highlight-btn {
  color: #be123c !important;
  border-color: #fb7185 !important;
  background: rgba(254, 226, 226, 0.9) !important;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.15) !important;
}

body[data-theme="journal"] .highlight-btn:hover {
  background: #f43f5e !important;
  color: #ffffff !important;
}

/* 次级高亮按钮（如：💾 导出）- 采用星空冰蓝渐变微光，色彩丰富且层次分明 */
.secondary-highlight-btn {
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25)) !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.secondary-highlight-btn:hover {
  background: linear-gradient(135deg, #0284c7, #6366f1) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-2px);
}

body[data-theme="journal"] .secondary-highlight-btn {
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
  background: rgba(224, 242, 254, 0.9) !important;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.15) !important;
}

body[data-theme="journal"] .secondary-highlight-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* ==================== 10. 页脚 ==================== */
.footer-wrap {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 4rem;
}

.footer-heart {
  color: var(--accent-color);
  animation: pulse-heart 1.5s infinite;
  display: inline-block;
}

/* ==================== 11. 关键动画定义 ==================== */
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-music-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 10px var(--accent-glow); }
  50% { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 20px rgba(244, 114, 182, 0.65); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-note {
  0% { opacity: 1; transform: translate(0, 0) scale(0.8); }
  100% { opacity: 0; transform: translate(-25px, -50px) scale(1.3); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.error-shake {
  animation: shake 0.5s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* ==================== 12. 响应式布局 ==================== */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem 1rem 6.5rem 1rem;
  }
  .top-header {
    border-radius: 1.2rem;
    padding: 0.9rem 1.1rem;
  }
  .couple-names {
    font-size: 2.2rem;
  }
  .time-box {
    min-width: 80px;
    padding: 0.9rem 1rem;
  }
  .time-number {
    font-size: 2rem;
  }
  /* 手机端时间轴单列对齐 */
  .timeline-line {
    left: 1.8rem;
  }
  .timeline-node, .timeline-node:nth-child(even) {
    flex-direction: row;
  }
  .node-point {
    margin: 0 1rem 0 0;
  }
  .node-content {
    width: calc(100% - 4.5rem);
  }
  .polaroids-grid {
    grid-template-columns: 1fr;
  }
  .vinyl-player-widget {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: space-between;
  }
  .song-name {
    max-width: 160px;
  }
}

/* ==================== 13. 🎆 全屏烟花盛宴与寄语动效 ==================== */
#fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  pointer-events: none;
}

/* 烟花绽放时的浪漫浮动字句 */
.firework-float-quote {
  position: fixed;
  z-index: 85;
  color: #fff;
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  padding: 0.5rem 1.1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.6);
  pointer-events: none;
  animation: float-up-fade 2.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  white-space: nowrap;
}

@keyframes float-up-fade {
  0% { opacity: 0; transform: translateY(20px) scale(0.85); }
  20% { opacity: 1; transform: translateY(0) scale(1.05); }
  75% { opacity: 0.95; transform: translateY(-15px) scale(1); }
  100% { opacity: 0; transform: translateY(-35px) scale(0.95); }
}

/* ==================== 14. ⏳ 时光穿梭舱 (时间胶囊) ==================== */
.capsule-section {
  margin-bottom: 5.5rem;
}

.capsule-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 2.2rem;
  padding: 3.5rem 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

/* 动态旋转时空光环 */
.capsule-orb-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capsule-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--accent-color);
  pointer-events: none;
}

.capsule-ring-1 {
  width: 155px;
  height: 155px;
  border-color: rgba(244, 114, 182, 0.4);
  animation: spin-capsule 18s linear infinite;
}

.capsule-ring-2 {
  width: 125px;
  height: 125px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  animation: spin-capsule 12s linear infinite reverse;
}

.capsule-sphere {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ec4899 0%, #7c3aed 50%, #1e1145 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 35px var(--accent-glow), inset 0 2px 8px rgba(255,255,255,0.4);
  position: relative;
  z-index: 2;
  cursor: pointer;
  animation: pulse-sphere 3s ease-in-out infinite;
}

@keyframes spin-capsule {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-sphere {
  0%, 100% { transform: scale(1); box-shadow: 0 0 35px var(--accent-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 55px rgba(244, 114, 182, 0.8); }
}

/* 倒计时小卡片 */
.capsule-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.8rem 0;
}

.capsule-time-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 0.9rem 1.2rem;
  min-width: 80px;
}

body[data-theme="journal"] .capsule-time-box {
  background: #ffffff;
}

.capsule-time-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  font-feature-settings: "tnum";
}

.capsule-time-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.capsule-locked-desc {
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 胶囊提前预览密匙开关 */
.preview-capsule-toggle {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.preview-capsule-toggle:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* 解锁后的时空信件 */
.capsule-unlocked-paper {
  display: none;
  text-align: left;
  padding: 2.5rem;
  border-radius: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 30px var(--accent-glow);
  position: relative;
  margin-top: 1.5rem;
}

body[data-theme="journal"] .capsule-unlocked-paper {
  background: #fdfaf3;
}

.capsule-salutation {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  font-family: var(--font-handwriting);
}

.capsule-content {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--text-main);
  white-space: pre-line;
}

/* ==================== 15. 🌸 爱情生命之树 ==================== */
.tree-section {
  margin-bottom: 5.5rem;
}

.tree-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 2.2rem;
  padding: 2.5rem 1.8rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tree-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  border-radius: 1.5rem;
}

#love-tree-canvas {
  width: 100%;
  height: 420px;
  display: block;
}

.tree-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tree-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body[data-theme="journal"] .tree-status-badge {
  background: #ffffff;
}

.water-tree-btn {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: #fff;
  border: none;
  padding: 0.8rem 2.2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  font-family: inherit;
}

.water-tree-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.water-tree-btn:active {
  transform: scale(0.96);
}

/* ==================== 16. 🎰 宇宙灵感抽卡机 ==================== */
.roulette-section {
  margin-bottom: 5.5rem;
}

.roulette-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 2.2rem;
  padding: 3rem 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.roulette-deck-tabs {
  display: inline-flex;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  padding: 0.35rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

body[data-theme="journal"] .roulette-deck-tabs {
  background: #ffffff;
}

.deck-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.deck-tab-btn.active {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.roulette-display-box {
  min-height: 200px;
  background: rgba(0, 0, 0, 0.2);
  border: 1.5px dashed var(--accent-color);
  border-radius: 1.6rem;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s;
  position: relative;
}

body[data-theme="journal"] .roulette-display-box {
  background: #ffffff;
}

.roulette-display-box.shuffling {
  animation: shuffle-shake 0.15s infinite;
  border-color: var(--cyan-glow);
}

@keyframes shuffle-shake {
  0% { transform: translateY(-2px) rotate(-0.5deg); }
  50% { transform: translateY(2px) rotate(0.5deg); }
  100% { transform: translateY(-2px) rotate(-0.5deg); }
}

.roulette-result-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.8rem;
  font-family: var(--font-handwriting);
}

.roulette-result-tip {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
}

.draw-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  padding: 0.9rem 2.8rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: all 0.3s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.draw-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.6);
}

/* ==================== 17. 🗺️ 星空漫游足迹地图 ==================== */
.footprint-section {
  margin-bottom: 5.5rem;
}

.footprint-map-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 2.2rem;
  padding: 2.5rem 1.8rem;
  box-shadow: var(--card-shadow);
}

.map-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.map-tab-btn {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.5rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

body[data-theme="journal"] .map-tab-btn {
  background: #ffffff;
}

.map-tab-btn.active {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.map-canvas-area {
  position: relative;
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(30, 20, 60, 0.4) 0%, rgba(10, 8, 25, 0.7) 100%);
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 1.8rem;
}

body[data-theme="journal"] .map-canvas-area {
  background: radial-gradient(circle at 50% 50%, #fdf9f2 0%, #f2e9dc 100%);
}

/* 🗺️ 发光中国版图与星空底图轮廓 */
.map-silhouette-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.88;
  transition: opacity 0.4s ease;
}

body[data-theme="journal"] .map-silhouette-bg {
  opacity: 0.6;
  filter: sepia(0.8) contrast(1.1);
}

.map-flight-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* 地图标注点 Pin */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.25);
  z-index: 10;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.pin-wish .pin-dot {
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.pin-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  animation: pulse-pin 2s infinite;
  pointer-events: none;
}

@keyframes pulse-pin {
  0% { transform: translateX(-50%) scale(0.6); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.8); opacity: 0; }
}

.pin-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-top: 0.3rem;
  white-space: nowrap;
}

body[data-theme="journal"] .pin-label {
  background: rgba(255, 255, 255, 0.85);
  color: #3d2f26;
}

/* 选中的足迹详情卡片 */
.map-detail-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 1.2rem;
  border-radius: 1.2rem;
  text-align: left;
}

body[data-theme="journal"] .map-detail-card {
  background: #ffffff;
}

.detail-img-wrap {
  width: 140px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #000;
}

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

.detail-content-wrap {
  flex: 1;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.detail-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--accent-glow);
  color: var(--accent-color);
  font-weight: 600;
}

.detail-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.detail-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==================== 18. 📱 移动端与全端沉浸响应式深度优化 ==================== */
@media (max-width: 768px) {
  .main-container {
    padding: 0.8rem 0.8rem 6.8rem 0.8rem;
  }

  /* 顶部导航移动端适配 (横向平滑滚动的极简灵动工具条) */
  .top-header {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1.4rem;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.8rem;
  }

  .logo-wrap {
    justify-content: center;
  }

  /* 顶部导航移动端适配：整洁双层居中排布，彻底消除横向滚动和任何溢出裁剪 */
  .top-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    gap: 0.4rem;
    padding: 0;
  }

  .event-selector-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.15rem;
  }

  .event-select {
    padding: 0.42rem 1.8rem 0.42rem 1rem;
    font-size: 0.82rem;
    max-width: 100%;
  }

  .modal-open-btn, .theme-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 9999px;
  }

  /* 更多下拉菜单移动端自适应浮动，彻底摆脱父级裁剪 */
  .more-menu-wrap {
    position: relative;
    z-index: 1000;
  }

  .more-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: -35px;
    width: 205px;
    max-width: 88vw;
    z-index: 99999;
  }

  /* 英雄区计时器移动端 4 列紧凑排布 (确保任何手机单行完整显示) */
  .hero-section {
    padding: 2.2rem 0.8rem 2.4rem 0.8rem;
    border-radius: 1.6rem;
    margin-bottom: 2.8rem;
  }

  .couple-names {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.6rem;
  }

  .timer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.4rem;
  }

  .time-box {
    min-width: unset;
    padding: 0.75rem 0.2rem;
    border-radius: 0.9rem;
  }

  .time-number {
    font-size: 1.55rem;
  }

  .time-label {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .heartbeat-stats {
    font-size: 0.76rem;
    padding: 0.45rem 0.9rem;
  }

  /* 🌸 爱情树移动端适配 */
  .tree-card {
    padding: 1.8rem 0.9rem;
    border-radius: 1.6rem;
  }

  #love-tree-canvas {
    height: 310px;
  }

  .water-tree-btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.92rem;
  }

  /* 🎰 抽卡机移动端适配 */
  .roulette-card {
    padding: 2rem 1rem;
    border-radius: 1.6rem;
  }

  .roulette-deck-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    justify-content: flex-start;
  }

  .deck-tab-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .roulette-display-box {
    padding: 1.6rem 1rem;
    min-height: 170px;
  }

  .roulette-result-title {
    font-size: 1.35rem;
  }

  .roulette-result-tip {
    font-size: 0.85rem;
  }

  .draw-btn {
    padding: 0.8rem 2.2rem;
    font-size: 1rem;
  }

  /* 🗺️ 足迹地图移动端适配 */
  .footprint-map-card {
    padding: 1.8rem 0.9rem;
    border-radius: 1.6rem;
  }

  .map-canvas-area {
    height: 290px;
    border-radius: 1.2rem;
  }

  .map-detail-card {
    flex-direction: column;
    padding: 1rem;
    gap: 0.9rem;
  }

  .detail-img-wrap {
    width: 100%;
    height: 140px;
  }

  /* 🌟 时间轴单列化 */
  .timeline-line {
    left: 1.6rem;
  }

  .timeline-node, .timeline-node:nth-child(even) {
    flex-direction: row;
  }

  .node-point {
    margin: 0 0.8rem 0 0;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
  }

  .node-content {
    width: calc(100% - 3.8rem);
    padding: 1.1rem;
    border-radius: 1.2rem;
  }

  /* 📷 拍立得单列平铺 */
  .polaroids-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ⏳ 时光穿梭舱移动端适配 */
  .capsule-card {
    padding: 2.2rem 1rem;
    border-radius: 1.6rem;
  }

  .capsule-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }

  .capsule-time-box {
    min-width: unset;
    padding: 0.65rem 0.2rem;
  }

  .capsule-time-num {
    font-size: 1.45rem;
  }

  .capsule-unlocked-paper {
    padding: 1.5rem 1rem;
  }

  /* 💌 解密密室移动端适配 */
  .letter-vault-card {
    padding: 2.2rem 1.1rem;
    border-radius: 1.6rem;
  }

  .cipher-form {
    flex-direction: column;
    width: 100%;
  }

  .cipher-btn {
    width: 100%;
    padding: 0.8rem;
  }

  .unlocked-letter {
    padding: 1.6rem 1.1rem;
  }

  .letter-content {
    font-size: 0.95rem;
    line-height: 2;
  }

  /* 🎵 悬浮黑胶音乐控制器移动端：优化为右下角精致悬浮黑胶徽章，绝不遮挡倒计时 */
  .vinyl-player-widget {
    bottom: 4.8rem;
    right: 0.85rem;
    left: auto;
    width: 44px;
    height: 44px;
    padding: 3px;
    gap: 0;
    border-radius: 50%;
    background: rgba(16, 19, 34, 0.92);
    border: 1.5px solid var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
  }

  .vinyl-disk-wrapper {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .vinyl-player-widget.playing {
    box-shadow: 0 0 16px var(--accent-glow), 0 0 28px rgba(236, 72, 153, 0.45);
    animation: pulse-music-glow 2.5s infinite ease-in-out;
  }

  /* 移动端默认收起，隐藏冗长文字与多余小按钮，不挤占屏幕 */
  .vinyl-player-widget .player-info,
  .vinyl-player-widget .vinyl-controls-group {
    display: none;
  }

  /* 展开状态（点击唱片徽章展开迷你面板） */
  .vinyl-player-widget.is-expanded {
    width: auto;
    height: auto;
    border-radius: 9999px;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    gap: 0.45rem;
    max-width: 240px;
    background: var(--vinyl-body);
  }

  .vinyl-player-widget.is-expanded .player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 85px;
  }

  .vinyl-player-widget.is-expanded .vinyl-controls-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .song-name {
    max-width: 85px;
    font-size: 0.75rem;
  }

  .artist-name {
    font-size: 0.62rem;
  }

  /* 移动端抗闪烁与性能保护 */
  .aurora-beam {
    animation: none !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.7), rgba(168, 85, 247, 0.7), rgba(56, 189, 248, 0.7)) !important;
    opacity: 0.65 !important;
  }
  
  .cosmic-cloud {
    filter: blur(40px) !important;
    mix-blend-mode: normal !important;
    animation: none !important;
  }

  #galaxy-canvas, #fireworks-canvas {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
  }

  /* 🚀 星际快捷导航移动端优化 (稳稳吸附在最底端，大拇指极佳操作触感) */
  .cosmic-quick-nav {
    bottom: 0.65rem;
    max-width: 96vw;
    padding: 0.28rem 0.35rem;
  }

  .quick-nav-pill {
    padding: 0.38rem 0.62rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .pill-icon {
    font-size: 0.85rem;
  }

  /* 👫 情侣头像光环与问候移动端 */
  .couple-avatar-wrap {
    gap: 0.9rem;
    margin-bottom: 0.9rem;
  }

  .avatar-box {
    width: 72px;
    height: 72px;
  }

  .connector-line {
    width: 14px;
  }

  .avatar-heart-pulse {
    width: 28px;
    height: 28px;
  }

  .heart-core {
    font-size: 1.15rem;
  }

  .hero-greeting-box {
    margin: 0.2rem auto 1.4rem auto;
  }

  .hero-greeting {
    font-size: 0.88rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }

  /* 弹窗通用移动端适配 */
  .modal-box {
    padding: 1.4rem 1.1rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1.4rem;
    margin: auto;
  }

  .photo-mgr-list {
    grid-template-columns: 1fr;
  }
}

/* ==================== 10. 回忆与足迹时空联动专属样式 ==================== */
/* 📍 回忆卡片上关联足迹的跳转小胶囊 */
.linked-footprint-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  margin-top: 0.65rem;
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
  user-select: none;
}

.linked-footprint-capsule:hover {
  background: #38bdf8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
}

/* 🚀 时空穿梭瞬移时地标的高亮波纹闪烁 */
.pin-teleport-focus {
  z-index: 100 !important;
}

.pin-teleport-focus .pin-dot {
  transform: scale(2.2) !important;
  background: #38bdf8 !important;
  box-shadow: 0 0 25px #38bdf8, 0 0 50px #f43f5e !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.pin-teleport-focus .pin-pulse {
  animation: pin-hyper-pulse 0.75s ease-out infinite !important;
  border-color: #38bdf8 !important;
}

@keyframes pin-hyper-pulse {
  0% { transform: scale(0.6); opacity: 1; border-width: 3px; }
  100% { transform: scale(4.2); opacity: 0; border-width: 0.5px; }
}

/* ==================== 📱 9.0 移动端 / iOS PWA 沉浸模式与安全区适配 ==================== */
@supports (padding-top: env(safe-area-inset-top)) {
  .top-header {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  .cosmic-quick-nav {
    bottom: max(1.2rem, calc(env(safe-area-inset-bottom) + 0.6rem));
  }
}

/* PWA 图标展示与微光 */
.pwa-app-icon-preview {
  position: relative;
  display: inline-block;
}

.pwa-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
  animation: pwa-pulse 2.5s infinite alternate ease-in-out;
}

@keyframes pwa-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.9; }
}

/* PWA 步骤导引 */
.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.35);
}

.pwa-step-text strong {
  font-size: 0.88rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.2rem;
}

.pwa-step-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.share-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  color: #38bdf8;
}

/* 顶部与浮动安装小贴士 */
.pulse-glow {
  animation: pulse-glow-btn 2s infinite ease-in-out;
}

@keyframes pulse-glow-btn {
  0%, 100% { box-shadow: 0 0 0 rgba(236, 72, 153, 0); }
  50% { box-shadow: 0 0 16px rgba(236, 72, 153, 0.75); border-color: #ec4899; }
}

.pwa-floating-tip {
  position: fixed;
  bottom: 5.5rem;
  right: 1.2rem;
  z-index: 94;
  background: rgba(18, 14, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(236, 72, 153, 0.4);
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  color: #fce7f3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(236, 72, 153, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float-gentle 3s ease-in-out infinite;
}

.pwa-floating-tip:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #f472b6;
  background: rgba(28, 20, 56, 0.95);
}

.pwa-tip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  margin-left: 0.2rem;
  cursor: pointer;
}

/* 📱 手机端浮动提示避开右下角黑胶唱片，轻巧停靠在左下侧 */
@media (max-width: 768px) {
  .pwa-floating-tip {
    bottom: 4.8rem;
    left: 0.85rem;
    right: auto;
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
    max-width: 210px;
  }
}

/* ☀️ 手账模式下的浮动提示温馨纸质配色 */
body[data-theme="journal"] .pwa-floating-tip {
  background: rgba(255, 252, 245, 0.95) !important;
  border: 1px solid rgba(217, 102, 79, 0.4) !important;
  color: #3d2f26 !important;
  box-shadow: 0 8px 24px rgba(100, 75, 55, 0.16) !important;
}

body[data-theme="journal"] .pwa-tip-content {
  color: #3d2f26 !important;
}

body[data-theme="journal"] .pwa-tip-close {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #826d5e !important;
}

body[data-theme="journal"] .pwa-floating-tip:hover {
  background: #ffffff !important;
  border-color: #d9664f !important;
  color: #d9664f !important;
}

/* ==================== 🔍 10.0 全屏沉浸式照片灯箱 (Romantic Image Lightbox) ==================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 4, 15, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  width: 94vw;
  max-width: 920px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.2rem;
}

.lightbox-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.lightbox-close-btn:hover {
  background: rgba(236, 72, 153, 0.8);
  border-color: #ec4899;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 15;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 16, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.lightbox-prev-btn { left: 0.5rem; }
.lightbox-next-btn { right: 0.5rem; }

.lightbox-nav-btn:hover {
  background: rgba(236, 72, 153, 0.8);
  border-color: #f472b6;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

.lightbox-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.lightbox-stage.zoomed {
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(236, 72, 153, 0.25);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  transform: scale(0.92);
  opacity: 0;
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-stage.zoomed .lightbox-img {
  transform: scale(1.6);
}

/* 底部信息胶囊 */
.lightbox-caption-bar {
  width: 100%;
  max-width: 740px;
  background: rgba(20, 15, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 1.2rem;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  flex: 1;
  min-width: 0;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.lightbox-tag {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.lightbox-date {
  color: #38bdf8;
  font-size: 0.76rem;
}

.lightbox-counter {
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-left: auto;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.lightbox-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lightbox-heart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.lightbox-heart-btn:hover {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.6);
}

.heart-pulse-icon {
  font-size: 1.3rem;
  animation: pulse-heart 1.5s infinite;
}

.heart-pulse-text {
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ==================== 🎵 11.0 歌单列表管理样式 ==================== */
.music-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.playlist-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.playlist-track-item:hover {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateX(3px);
}

.playlist-track-item.is-active {
  background: rgba(236, 72, 153, 0.18);
  border-color: #ec4899;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}

.track-left-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.track-index-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.playlist-track-item.is-active .track-index-num {
  color: #ec4899;
  font-weight: bold;
}

.track-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.track-badge-playing {
  font-size: 0.68rem;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  padding: 0.12rem 0.52rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.track-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.track-delete-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}

@media (max-width: 640px) {
  .lightbox-container {
    width: 98vw;
    height: 94vh;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
  .lightbox-caption-bar {
    padding: 0.7rem 0.9rem;
  }
  .lightbox-title {
    font-size: 0.92rem;
  }
}


