*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ========== 变量 ========== */
:root {
  --bg: #1a0e14;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --text: #d0c0b4; --text-title: #e8d0c0;
  --text-dim: rgba(255,255,255,0.22); --text-subtle: rgba(255,255,255,0.12);
  --accent: #e8a87c; --accent-rgb: 232,168,124;
  --accent-soft: rgba(232,168,124,0.08);
  --accent-border: rgba(232,168,124,0.15);
  --input-bg: rgba(255,255,255,0.04); --input-border: rgba(232,168,124,0.18);
  --glow-1: rgba(232,168,124,0.06);
  --glow-2: rgba(180,130,160,0.04);
  --hero-bg: linear-gradient(180deg, #1a0e18 0%, #1e1018 50%, #1a0e14 100%);
  --card-shadow: none;
  --particle-color: rgba(255,220,200,0.45);
  --divider-color: rgba(232,168,124,0.4);
  --decor-opacity: 0.05;
  --glass-highlight: rgba(255,255,255,0.08);
  --premium-shadow: 0 28px 90px rgba(0,0,0,0.24);
  --title-gradient: linear-gradient(135deg, #fff3df 0%, #e8a87c 42%, #d9a7c7 100%);
  --surface-line: rgba(255,255,255,0.08);
  --spotlight: rgba(232,168,124,0.18);
}

body.light {
  --bg: #fefaf5;
  --bg-card: rgba(0,0,0,0.02);
  --bg-card-hover: rgba(0,0,0,0.04);
  --text: #5c4a3a; --text-title: #7b5230;
  --text-dim: rgba(0,0,0,0.18); --text-subtle: rgba(0,0,0,0.1);
  --accent: #d4786e; --accent-rgb: 212,120,110;
  --accent-soft: rgba(212,120,110,0.08);
  --accent-border: rgba(212,120,110,0.12);
  --input-bg: rgba(0,0,0,0.03); --input-border: rgba(212,120,110,0.18);
  --glow-1: rgba(200,140,120,0.15);
  --glow-2: rgba(220,180,160,0.1);
  --hero-bg: linear-gradient(180deg, #fef8f2 0%, #fdf3ea 50%, #fefaf5 100%);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);
  --particle-color: rgba(180,140,120,0.2);
  --divider-color: rgba(212,120,110,0.35);
  --decor-opacity: 0.1;
  --glass-highlight: rgba(255,255,255,0.65);
  --premium-shadow: 0 26px 80px rgba(158,89,74,0.12);
  --title-gradient: linear-gradient(135deg, #7b5230 0%, #d4786e 46%, #d99b72 100%);
  --surface-line: rgba(120,72,54,0.1);
  --spotlight: rgba(212,120,110,0.16);
}

/* ========== 基础 ========== */
body {
  font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",sans-serif;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(var(--accent-rgb),0.035) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 10% 8%, rgba(var(--accent-rgb),0.14) 0, transparent 28vw),
    radial-gradient(circle at 88% 18%, var(--glow-1) 0, transparent 30vw),
    radial-gradient(ellipse at 75% 70%, var(--glow-2) 0%, transparent 60%),
    var(--hero-bg);
  background-attachment: fixed; min-height: 100vh;
  color: var(--text); overflow-x: hidden;
  transition: background 0.6s ease, color 0.4s ease;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 0%, transparent 0 30%, rgba(0,0,0,0.05) 100%);
  mix-blend-mode: multiply;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--spotlight), transparent 68%);
  transform: translate(-50%, -50%); opacity: 0;
  transition: opacity 0.35s ease;
  filter: blur(8px);
}

/* ========== 粒子 ========== */
.aurora {
  position: fixed; inset: -20% -10%; z-index: 0;
  pointer-events: none; overflow: hidden; filter: blur(28px);
}
.aurora span {
  position: absolute; width: 42vw; height: 42vw; min-width: 320px; min-height: 320px;
  border-radius: 50%; opacity: 0.28; mix-blend-mode: screen;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { left: 4%; top: 6%; background: rgba(var(--accent-rgb),0.42); }
.aurora span:nth-child(2) { right: 8%; top: 12%; background: rgba(217,167,199,0.28); animation-delay: -6s; }
.aurora span:nth-child(3) { left: 28%; bottom: 4%; background: rgba(255,214,165,0.22); animation-delay: -11s; }
@keyframes auroraDrift {
  from { transform: translate3d(-3%, 2%, 0) scale(0.92) rotate(0deg); }
  to { transform: translate3d(8%, -5%, 0) scale(1.12) rotate(18deg); }
}
.noise-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 76%);
}
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.particle {
  position: absolute; border-radius: 50%; background: var(--particle-color);
  animation: floatUp linear infinite; opacity: 0; transition: background 0.6s ease;
}
@keyframes floatUp {
  0%{transform:translateY(100vh)scale(0);opacity:0;}
  10%{opacity:0.9;} 90%{opacity:0.4;}
  100%{transform:translateY(-10vh)scale(1.3);opacity:0;}
}

/* ========== 浮动装饰 ========== */
.floating-decor {
  position: fixed; pointer-events: none; z-index: 0;
  font-size: 1.8rem; opacity: var(--decor-opacity);
  animation: floatDeco 12s ease-in-out infinite;
  transition: opacity 0.6s ease;
}
.floating-decor:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; font-size: 2rem; }
.floating-decor:nth-child(2) { top: 45%; right: 8%; animation-delay: -4s; font-size: 2.4rem; }
.floating-decor:nth-child(3) { top: 70%; left: 10%; animation-delay: -8s; font-size: 1.6rem; }
.floating-decor:nth-child(4) { top: 25%; right: 12%; animation-delay: -2s; font-size: 3rem; }
.floating-decor:nth-child(5) { top: 80%; right: 6%; animation-delay: -6s; font-size: 1.4rem; }
@keyframes floatDeco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-20px) rotate(8deg); }
  66%      { transform: translateY(10px) rotate(-5deg); }
}

.hidden { display: none !important; }

/* ========== 情书弹窗 ========== */
.love-letter-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.love-letter-card {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--accent-border);
  border-radius: 28px; padding: 44px 30px 38px;
  max-width: 540px; width: 100%; max-height: 85vh;
  overflow-y: auto; text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
  backdrop-filter: blur(18px);
  animation: modalIn 0.32s ease both;
  transition: background 0.4s ease, border-color 0.4s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.letter-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--accent-border); background: var(--bg-card);
  color: var(--text-dim); cursor: pointer; font-size: 1.3rem;
  line-height: 1; transition: all 0.25s ease;
}
.letter-close:hover { color: var(--accent); background: rgba(var(--accent-rgb),0.1); transform: rotate(90deg); }
.love-letter-card::before {
  content: ''; position: absolute;
  top: -40px; left: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite;
}
.love-letter-card::after {
  content: '💕'; position: absolute;
  bottom: 16px; right: 16px;
  font-size: 2rem; opacity: 0.1;
  pointer-events: none;
  animation: heroFloat 8s ease-in-out infinite;
}
.love-letter-card .hero-badge { margin-bottom: 20px; }
.love-letter-card .hero-title { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 8px; }
.love-letter-card .hero-sub { margin-bottom: 32px; }
.love-letter-card .confession-lines { gap: 14px; }
.love-letter-card .hero-divider { margin: 32px auto; }
.love-letter-card .hero-confession { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 24px; }
.love-letter-card .hero-signature { margin-top: 4px; }

/* ========== 布局容器 ========== */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; padding: 0 22px;
}

/* ========== 主题切换 ========== */
/* ========== 右下角主题按钮 ========== */
.side-toolbar {
  position: fixed; right: 18px; bottom: 18px;
  z-index: 200; display: flex;
}
.stb-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-card), rgba(var(--accent-rgb),0.08));
  border: 1px solid var(--accent-border);
  color: var(--accent); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(14px);
  transition: all 0.3s ease; font-family: inherit;
  text-decoration: none; box-shadow: 0 14px 32px rgba(0,0,0,0.08), inset 0 1px 0 var(--glass-highlight);
}
.stb-btn:hover {
  background: rgba(var(--accent-rgb),0.12);
  box-shadow: 0 16px 34px rgba(var(--accent-rgb),0.16);
  transform: translateY(-2px) scale(1.06);
}
.stb-btn.active { background: rgba(var(--accent-rgb),0.18); }

.theme-toggle { display: none; }

/* ========== 顶部导航 ========== */
.site-topbar {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 210; width: min(920px, calc(100% - 36px));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px 10px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  border: 1px solid var(--accent-border);
  box-shadow: 0 18px 52px rgba(0,0,0,0.12), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.site-topbar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--surface-line), transparent);
  transform: translateX(-100%); animation: navSheen 7s ease-in-out infinite;
}
@keyframes navSheen { 55%, 100% { transform: translateX(100%); } }
.brand-mark {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-title); text-decoration: none; letter-spacing: 0.04em;
}
.brand-mark span {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.95), rgba(var(--accent-rgb),0.52));
  box-shadow: 0 10px 22px rgba(var(--accent-rgb),0.18);
}
.top-nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; }
.top-nav a,
.top-nav button {
  border: 0; background: transparent; color: var(--text-dim); cursor: pointer;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font: inherit; font-size: 0.86rem; letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.top-nav a:hover,
.top-nav button:hover { color: var(--accent); background: rgba(var(--accent-rgb),0.09); }

/* ========== Hero 区 ========== */
.hero {
  position: relative; z-index: 1;
  min-height: 76vh;
  padding: 108px 0 70px; text-align: center;
  overflow: hidden;
  display: flex; align-items: center;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute;
  top: -80px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite;
}
.hero::after {
  content: '💕'; position: absolute;
  bottom: 20px; left: 10%;
  font-size: 2.5rem; opacity: 0.12;
  pointer-events: none;
  animation: heroFloat 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.6; }
  50%      { transform: translate(20px,-20px) scale(1.2); opacity: 0.9; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(5deg); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; letter-spacing: 0.14em;
  color: var(--accent); padding: 7px 18px;
  border: 1px solid var(--accent-border);
  border-radius: 999px; margin-bottom: 24px;
  background: rgba(var(--accent-rgb),0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.4s ease;
}
.hero-title {
  font-size: clamp(2.25rem, 7.8vw, 5.4rem);
  font-weight: 900; color: var(--text-title);
  letter-spacing: 0.02em; margin: 0 auto 20px;
  line-height: 1.08; max-width: 900px;
  text-wrap: balance;
  background: var(--title-gradient);
  background-size: 160% 160%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 46px rgba(var(--accent-rgb),0.12);
  animation: titleShimmer 8s ease-in-out infinite alternate;
  transition: color 0.4s ease;
}
@keyframes titleShimmer {
  from { background-position: 0% 50%; filter: drop-shadow(0 16px 28px rgba(var(--accent-rgb),0.08)); }
  to { background-position: 100% 50%; filter: drop-shadow(0 22px 42px rgba(var(--accent-rgb),0.18)); }
}
.hero-sub {
  font-size: clamp(0.95rem, 2.4vw, 1.12rem); color: var(--text-dim);
  letter-spacing: 0.06em; margin: 0 auto 34px;
  line-height: 1.9; max-width: 640px;
  transition: color 0.4s ease;
}
.hero-actions {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.hero-primary,
.hero-secondary {
  position: relative; overflow: hidden;
  min-width: 142px; padding: 13px 26px; border-radius: 999px;
  font: inherit; letter-spacing: 0.06em; cursor: pointer;
  transition: all 0.28s ease; text-decoration: none;
}
.hero-primary::after,
.hero-secondary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.hero-primary:hover::after,
.hero-secondary:hover::after { transform: translateX(120%); }
.hero-primary {
  border: 1px solid rgba(var(--accent-rgb),0.35);
  color: #fff; background: linear-gradient(135deg, rgba(var(--accent-rgb),0.92), rgba(var(--accent-rgb),0.58));
  box-shadow: 0 14px 30px rgba(var(--accent-rgb),0.18);
}
.hero-secondary {
  border: 1px solid var(--accent-border);
  color: var(--accent); background: rgba(var(--accent-rgb),0.06);
}
.hero-primary:hover,
.hero-secondary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(var(--accent-rgb),0.22); }
.hero-orbit {
  position: absolute; inset: -80px 0 auto; height: 420px; z-index: -1;
  pointer-events: none; opacity: 0.55;
}
.hero-orbit span {
  position: absolute; left: 50%; top: 50%; border: 1px solid rgba(var(--accent-rgb),0.16);
  border-radius: 50%; transform: translate(-50%, -50%);
  animation: orbitSpin 22s linear infinite;
}
.hero-orbit span:nth-child(1) { width: 320px; height: 320px; }
.hero-orbit span:nth-child(2) { width: 480px; height: 480px; animation-duration: 30s; animation-direction: reverse; }
.hero-orbit span:nth-child(3) { width: 640px; height: 640px; animation-duration: 40s; }
.hero-orbit span::before {
  content: ''; position: absolute; top: 12%; left: 12%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb),0.7);
}
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; max-width: 620px; margin: 40px auto 0;
}
.hero-stat {
  position: relative; overflow: hidden;
  padding: 15px 14px; border-radius: 18px;
  background: linear-gradient(145deg, var(--bg-card), rgba(var(--accent-rgb),0.06));
  border: 1px solid var(--accent-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 18px 50px rgba(0,0,0,0.06);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.hero-stat::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(var(--accent-rgb),0.13), transparent 44%);
  opacity: 0; transition: opacity 0.28s ease;
}
.hero-stat:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),0.28); }
.hero-stat:hover::before { opacity: 1; }
.hero-stat strong {
  display: block; color: var(--accent); font-size: 1.25rem; line-height: 1;
  margin-bottom: 7px; letter-spacing: 0.04em;
}
.hero-stat span { color: var(--text-dim); font-size: 0.76rem; letter-spacing: 0.08em; }
.hero-console {
  max-width: 620px; margin: 14px auto 0;
  border: 1px solid var(--accent-border); border-radius: 22px;
  background: linear-gradient(145deg, var(--bg-card), rgba(var(--accent-rgb),0.045));
  box-shadow: 0 18px 54px rgba(0,0,0,0.08), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(16px); overflow: hidden;
}
.console-row {
  display: grid; grid-template-columns: 110px 1fr; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid rgba(var(--accent-rgb),0.08);
  text-align: left;
}
.console-row:last-child { border-bottom: 0; }
.console-row span {
  color: var(--text-subtle); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.console-row strong { color: var(--text-title); font-size: 0.92rem; letter-spacing: 0.06em; }

.confession-lines {
  list-style: none; display: flex; flex-direction: column;
  gap: 16px; margin-bottom: 40px;
}
.confession-lines .cl {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.8; color: var(--text);
  padding: 0 4px; transition: color 0.4s ease;
}
.confession-lines .cl .hl {
  color: var(--accent); font-weight: 600; transition: color 0.4s ease;
}

.hero-divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg,transparent,var(--divider-color),transparent);
  margin: 0 auto 36px; transition: background 0.4s ease;
}

.hero-confession {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; margin-bottom: 32px;
  transition: color 0.4s ease;
}

.hero-heart-btn {
  margin-bottom: 8px;
}
.hero-heart-btn button {
  background: none; border: 2px solid rgba(var(--accent-rgb),0.45);
  color: var(--accent); font-size: 0.95rem;
  padding: 10px 36px; border-radius: 30px; cursor: pointer;
  letter-spacing: 0.08em; font-family: inherit;
  transition: all 0.3s ease;
}
.hero-heart-btn button:hover {
  background: rgba(var(--accent-rgb),0.1);
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.15);
}

.hero-signature {
  font-size: 0.8rem; color: var(--text-subtle);
  letter-spacing: 0.1em; transition: color 0.4s ease;
}

/* ========== 波浪分隔 ========== */
.wave-divider {
  position: relative; z-index: 1;
  line-height: 0; margin-top: -8px;
}
.wave-divider svg {
  display: block; width: 100%; height: 60px;
}
.wave-divider path {
  fill: var(--accent-soft);
  transition: fill 0.4s ease;
}

/* ========== 计时器区 ========== */
.timer-section {
  position: relative; z-index: 1;
  padding: 18px 0 64px; text-align: center;
}
.timer-card {
  position: relative; display: inline-block;
  padding: 38px 66px; overflow: hidden;
  background: linear-gradient(145deg, var(--bg-card), rgba(var(--accent-rgb),0.075));
  border: 1px solid var(--accent-border);
  border-radius: 30px; box-shadow: var(--premium-shadow);
  backdrop-filter: blur(18px);
  transition: all 0.4s ease;
}
.timer-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--glass-highlight), transparent 36%, rgba(var(--accent-rgb),0.08));
}
.timer-card:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(var(--accent-rgb),0.32); }
.timer-glow {
  position: absolute; inset: -50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none; opacity: 0.6;
  animation: glowPulse 4s ease-in-out infinite;
  transition: background 0.4s ease;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.1); }
}
.timer-days {
  position: relative; z-index: 1;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 900; color: var(--accent);
  letter-spacing: 0.03em; transition: color 0.4s ease;
  text-shadow: 0 10px 26px rgba(var(--accent-rgb),0.18);
}
.timer-days .heart-css {
  display: inline-block; width: 22px; height: 22px;
  background: var(--accent); position: relative;
  transform: rotate(-45deg); margin: 0 6px;
  vertical-align: middle; transition: background 0.4s ease;
}
.timer-days .heart-css::before,
.timer-days .heart-css::after {
  content: ''; position: absolute;
  width: 22px; height: 22px; background: var(--accent);
  border-radius: 50%; transition: background 0.4s ease;
}
.timer-days .heart-css::before { top: -11px; left: 0; }
.timer-days .heart-css::after  { left: 11px; top: 0; }
.timer-label {
  position: relative; z-index: 1;
  font-size: 0.86rem; color: var(--text-dim);
  letter-spacing: 0.14em; margin-top: 8px; transition: color 0.4s ease;
}
.timer-sub {
  position: relative; z-index: 1;
  font-size: 0.76rem; color: var(--text-subtle);
  margin-top: 6px; letter-spacing: 0.08em; transition: color 0.4s ease;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1) rotate(-45deg); }
  15%      { transform: scale(1.22) rotate(-45deg); }
  30%      { transform: scale(1) rotate(-45deg); }
  45%      { transform: scale(1.25) rotate(-45deg); }
  60%      { transform: scale(1) rotate(-45deg); }
}
.timer-card:hover .heart-css {
  animation: heartbeat 1.2s ease-in-out infinite;
}

/* ========== 日记区 ========== */
.diary-section {
  position: relative; z-index: 1;
  padding: 0 0 100px;
}
.diary-section-header {
  text-align: center; margin-bottom: 54px;
}
.section-kicker {
  display: inline-block; margin-bottom: 10px;
  color: var(--accent); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.diary-section-title {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 900; color: var(--text-title);
  letter-spacing: 0.05em; margin-bottom: 10px;
  transition: color 0.4s ease;
  position: relative; display: inline-block;
  background: var(--title-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.diary-section-title::after {
  content: ''; position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--accent); border-radius: 1px;
  transition: background 0.4s ease;
}
.diary-section-sub {
  font-size: 0.85rem; color: var(--text-dim);
  letter-spacing: 0.1em; transition: color 0.4s ease;
}

.timeline {
  position: relative; padding-left: 28px;
}
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 6px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(var(--accent-rgb),0.55) 0%,
    rgba(var(--accent-rgb),0.18) 58%,
    rgba(var(--accent-rgb),0.02) 100%);
  box-shadow: 0 0 22px rgba(var(--accent-rgb),0.22);
  transition: background 0.4s ease;
}

.diary-entry {
  position: relative; margin-bottom: 36px;
}
.diary-entry::before {
  content: ''; position: absolute; left: -24px; top: 18px;
  width: 12px; height: 12px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 0 8px rgba(var(--accent-rgb),0.08), 0 0 22px rgba(var(--accent-rgb),0.42);
  transition: background 0.4s ease;
  animation: dotBreathe 3s ease-in-out infinite;
}
@keyframes dotBreathe {
  0%, 100% { box-shadow: 0 0 4px rgba(var(--accent-rgb),0.2); }
  50%      { box-shadow: 0 0 10px rgba(var(--accent-rgb),0.45); }
}

.diary-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--bg-card), rgba(var(--accent-rgb),0.05));
  border: 1px solid var(--accent-border);
  border-radius: 24px; padding: 26px 28px;
  box-shadow: var(--premium-shadow);
  backdrop-filter: blur(16px);
  transition: all 0.34s ease;
}
.diary-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}
.diary-card::after {
  content: ''; position: absolute; width: 160px; height: 160px; right: -90px; top: -90px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.14), transparent 68%);
  pointer-events: none;
}
.diary-card:hover {
  border-color: rgba(var(--accent-rgb),0.34);
  background: var(--bg-card-hover);
  transform: translateX(6px) translateY(-2px);
}

.diary-entry-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text-title); margin-bottom: 6px;
  letter-spacing: 0.03em; transition: color 0.4s ease;
}
.diary-entry-meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap;
}
.diary-entry-date {
  font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.06em; font-weight: 500;
  transition: color 0.4s ease;
}
.diary-entry-location {
  font-size: 0.75rem; color: var(--text-dim);
  letter-spacing: 0.04em; transition: color 0.4s ease;
}
.diary-entry-image {
  position: relative; margin-bottom: 16px; border-radius: 18px; overflow: hidden;
  max-height: 360px; border: 1px solid var(--accent-border);
  box-shadow: 0 18px 46px rgba(0,0,0,0.12);
}
.diary-entry-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.18));
  pointer-events: none;
}
.diary-entry-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: 18px;
  transition: transform 0.65s ease, filter 0.65s ease;
}
.diary-card:hover .diary-entry-image img { transform: scale(1.045); filter: saturate(1.08) contrast(1.03); }
.diary-entry-body {
  font-size: clamp(0.9rem, 2vw, 1rem); line-height: 1.85;
  color: var(--text); transition: color 0.4s ease;
}
.diary-entry-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.diary-entry-tag {
  font-size: 0.7rem; padding: 2px 10px;
  border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.diary-add-hint {
  margin-top: 48px; text-align: center;
  font-size: 0.85rem; color: var(--text-subtle);
  letter-spacing: 0.08em; transition: color 0.4s ease;
}

.admin-entry {
  margin-top: 40px; text-align: center;
}
.admin-entry a {
  color: var(--text-subtle); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.08em; transition: color 0.3s;
}
.admin-entry a:hover { color: var(--accent); }

.site-footer {
  position: relative; z-index: 1; text-align: center;
  padding: 30px 20px 44px; color: var(--text-subtle);
  font-size: 0.7rem; letter-spacing: 0.08em; line-height: 2;
  transition: color 0.4s ease;
}
.site-footer p { margin: 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb),0.22);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb),0.4); }

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.diary-entry.reveal { transition-delay: calc(var(--reveal-index, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding: 84px 0 44px; }
  .hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-stats { grid-template-columns: 1fr; max-width: 260px; margin-top: 28px; }
  .hero-orbit { opacity: 0.28; transform: scale(0.72); }
  .hero-actions { gap: 10px; }
  .hero-primary, .hero-secondary { width: min(100%, 220px); padding: 11px 20px; }
  .confession-lines { gap: 12px; }
  .timer-card { padding: 26px 30px; border-radius: 20px; }
  .diary-card { padding: 18px 18px; border-radius: 18px; }
  .diary-card:hover { transform: none; }
  .timeline { padding-left: 22px; }
  .diary-entry::before { left: -17px; width: 7px; height: 7px; }
  .side-toolbar { right: 12px; bottom: 12px; }
  .site-topbar { top: 10px; width: calc(100% - 20px); padding: 8px 9px 8px 12px; }
  .brand-mark strong { display: none; }
  .top-nav a, .top-nav button { padding: 7px 9px; font-size: 0.78rem; }
  .console-row { grid-template-columns: 80px 1fr; padding: 11px 14px; }
  .stb-btn { width: 36px; height: 36px; font-size: 1rem; }
}
