/* ============================================================
   assets/css/style.css ?情侣网站设计系统 v3
   全宽舒展布局 · 毛玻璃质?· 分区层次?
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 卡通风主题 */
  --rose-50:   #fff7fb;
  --rose-100:  #ffe2f0;
  --rose-200:  #ffc0dd;
  --rose-300:  #ff9cc8;
  --rose-400:  #ff77b3;
  --rose-500:  #ff5a9f;
  --rose-600:  #e43b86;
  --gold-400:  #ffd166;
  --gold-glow: 0 0 18px rgba(255, 209, 102, 0.35);

  /* 卡通背?*/
  --hero-gradient: linear-gradient(180deg, #fff7fb 0%, #fff0f7 45%, #f4fbff 100%);
  --hero-accent: radial-gradient(circle at 18% 18%, rgba(255,122,170,0.18) 0%, transparent 38%), radial-gradient(circle at 82% 22%, rgba(255,209,102,0.2) 0%, transparent 28%);

  /* 轻泡泡感 */
  --glass-bg:       rgba(255, 255, 255, 0.84);
  --glass-bg-heavy: rgba(255, 255, 255, 0.96);
  --glass-border:   rgba(255, 255, 255, 0.78);
  --glass-blur:     blur(18px) saturate(1.25);
  /* 薄荷?*/
  --mint-100:  #e6f7f0;
  --mint-400:  #34d399;
  --mint-500:  #10b981;
  /* 天蓝 */
  --sky-100:   #e8f4fd;
  --sky-400:   #38bdf8;
  /* 中性色 ?更冷更灰 */
  --gray-25:   #fafbfc;
  --gray-50:   #f4f5f7;
  --gray-100:  #e8eaed;
  --gray-200:  #d1d5db;
  --gray-300:  #b4b9c2;
  --gray-400:  #8c919a;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --gray-900:  #111827;
  /* 文字 */
  --text-h:    #27223a;
  --text-body: #5d5670;
  --text-mute: #9a94aa;
  --text-light: #d1d5db;
  /* ??*/
  --white:  #ffffff;
  --black:  #0f0f0f;
  /* 毛玻?*/
  --glass-bg:       rgba(255, 255, 255, 0.72);
  --glass-bg-heavy: rgba(255, 255, 255, 0.88);
  --glass-border:   rgba(255, 255, 255, 0.5);
  --glass-blur:     blur(20px) saturate(1.8);
  /* 主题卡片语义变量 */
  --theme-surface: rgba(255, 255, 255, 0.92);
  --theme-surface-soft: rgba(255, 245, 250, 0.92);
  --theme-surface-strong: rgba(255, 255, 255, 0.98);
  --theme-border: rgba(255, 122, 170, 0.14);
  --theme-shadow: 0 12px 30px rgba(255, 93, 162, 0.10);
  --theme-accent: #ff5a9f;
  --theme-accent-2: #ffd166;
  --theme-accent-soft: rgba(255, 122, 170, 0.12);
  --theme-accent-strong: #e43b86;
  --theme-card-text: var(--text-h);
  --stat-card-1-bg-a: #ffe4ea;
  --stat-card-1-bg-b: #ffc2d1;
  --stat-card-1-fg: #9b1b42;
  --stat-card-2-bg-a: #dbeafe;
  --stat-card-2-bg-b: #bfdbfe;
  --stat-card-2-fg: #1e40af;
  --stat-card-3-bg-a: #d1fae5;
  --stat-card-3-bg-b: #a7f3d0;
  --stat-card-3-fg: #065f46;
  --stat-card-4-bg-a: #fef3c7;
  --stat-card-4-bg-b: #fde68a;
  --stat-card-4-fg: #92400e;
  --stat-card-5-bg-a: #ede9fe;
  --stat-card-5-bg-b: #ddd6fe;
  --stat-card-5-fg: #5b21b6;
  --stat-card-6-bg-a: #f1f5f9;
  --stat-card-6-bg-b: #e2e8f0;
  --stat-card-6-fg: #334155;
  /* 阴影 ?更柔和冷?*/
  --shadow-xs: 0 2px 8px rgba(63, 47, 90, .06);
  --shadow-sm: 0 6px 16px rgba(63, 47, 90, .08);
  --shadow-md: 0 12px 28px rgba(63, 47, 90, .10);
  --shadow-lg: 0 18px 36px rgba(63, 47, 90, .14);
  --shadow-glow: 0 0 24px rgba(255, 90, 159, .14);
  /* 圆角 */
  --r-sm:  16px;
  --r-md:  22px;
  --r-lg:  28px;
  --r-xl:  44px;
  --r-full:9999px;
  /* 间距基准 4px */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10:40px;
  --sp-12:48px; --sp-16:64px;
  /* 过渡 */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --tr-fast: 180ms var(--ease);
  --tr-norm: 320ms var(--ease);
  --tr-slow: 500ms var(--ease-out);
  /* 补充变量 */
  --border: #e5dde2;
  --border-light: rgba(255, 176, 206, .18);
  --rose-25: #fffbfd;
  --peach-50: #fff8f0;
  --sky-500: #38bdf8;
  --mint-600: #059669;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', -apple-system, 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.85) 0, transparent 26%),
    radial-gradient(circle at 80% 15%, rgba(255,209,102,.22) 0, transparent 18%),
    linear-gradient(180deg, #fff9fc 0%, #fff4f8 55%, #f5fbff 100%);
  color: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== 主题背景?========== */
body.theme-rose {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.60) 100%),
    url('../images/themes/rose.png') center/cover no-repeat fixed;
}
body.theme-peach {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.60) 100%),
    url('../images/themes/peach.png') center/cover no-repeat fixed;
}
body.theme-midnight {
  background:
    linear-gradient(180deg, rgba(30,30,55,0.70) 0%, rgba(20,20,40,0.75) 100%),
    url('../images/themes/midnight.png') center/cover no-repeat fixed;
}
body.theme-valentine {
  background:
    linear-gradient(180deg, rgba(255,240,245,0.70) 0%, rgba(255,235,240,0.60) 100%),
    url('../images/themes/valentine.png') center/cover no-repeat fixed;
}
body.theme-520 {
  background:
    linear-gradient(180deg, rgba(255,240,248,0.70) 0%, rgba(255,235,245,0.60) 100%),
    url('../images/themes/520.png') center/cover no-repeat fixed;
}
body.theme-anniversary {
  background:
    linear-gradient(180deg, rgba(255,250,235,0.70) 0%, rgba(255,245,225,0.60) 100%),
    url('../images/themes/anniversary.png') center/cover no-repeat fixed;
}
/* ================================= */
.theme-rose {
  --rose-50: #fff7fb;
  --rose-100: #ffe2f0;
  --rose-200: #ffc0dd;
  --rose-300: #ff9cc8;
  --rose-400: #ff77b3;
  --rose-500: #ff5a9f;
  --rose-600: #e43b86;
  --hero-gradient: linear-gradient(180deg, #fff7fb 0%, #fff0f7 45%, #f4fbff 100%);
  --page-bg: linear-gradient(180deg, #fff9fc 0%, #fff4f8 55%, #f5fbff 100%);
  --theme-surface: rgba(255, 255, 255, 0.94);
  --theme-surface-soft: rgba(255, 245, 250, 0.94);
  --theme-surface-strong: rgba(255, 255, 255, 0.99);
  --theme-border: rgba(255, 122, 170, 0.14);
  --theme-shadow: 0 12px 30px rgba(255, 93, 162, 0.10);
  --theme-accent: #ff5a9f;
  --theme-accent-2: #ffd166;
  --theme-accent-soft: rgba(255, 122, 170, 0.12);
  --theme-accent-strong: #e43b86;
  --theme-card-text: #2c2440;
  --stat-card-1-bg-a: #ffe4ea;
  --stat-card-1-bg-b: #ffc2d1;
  --stat-card-1-fg: #9b1b42;
  --stat-card-2-bg-a: #dbeafe;
  --stat-card-2-bg-b: #bfdbfe;
  --stat-card-2-fg: #1e40af;
  --stat-card-3-bg-a: #d1fae5;
  --stat-card-3-bg-b: #a7f3d0;
  --stat-card-3-fg: #065f46;
  --stat-card-4-bg-a: #fef3c7;
  --stat-card-4-bg-b: #fde68a;
  --stat-card-4-fg: #92400e;
  --stat-card-5-bg-a: #ede9fe;
  --stat-card-5-bg-b: #ddd6fe;
  --stat-card-5-fg: #5b21b6;
  --stat-card-6-bg-a: #f1f5f9;
  --stat-card-6-bg-b: #e2e8f0;
  --stat-card-6-fg: #334155;
}
.theme-peach {
  --rose-50: #fff8f1;
  --rose-100: #ffe8d8;
  --rose-200: #ffd0b0;
  --rose-300: #ffb47d;
  --rose-400: #ff9956;
  --rose-500: #ff7c2f;
  --rose-600: #e85f17;
  --hero-gradient: linear-gradient(180deg, #fff8f1 0%, #fff0e2 45%, #f5fbff 100%);
  --page-bg: linear-gradient(180deg, #fff9f5 0%, #fff4ea 55%, #f7fbff 100%);
  --theme-surface: rgba(255, 250, 245, 0.94);
  --theme-surface-soft: rgba(255, 241, 228, 0.94);
  --theme-surface-strong: rgba(255, 255, 255, 0.99);
  --theme-border: rgba(255, 153, 86, 0.16);
  --theme-shadow: 0 12px 30px rgba(255, 124, 47, 0.10);
  --theme-accent: #ff7c2f;
  --theme-accent-2: #ffb47d;
  --theme-accent-soft: rgba(255, 153, 86, 0.14);
  --theme-accent-strong: #e85f17;
  --theme-card-text: #402313;
  --stat-card-1-bg-a: #fff1e6;
  --stat-card-1-bg-b: #ffd9bd;
  --stat-card-1-fg: #9a3412;
  --stat-card-2-bg-a: #ffedd5;
  --stat-card-2-bg-b: #fed7aa;
  --stat-card-2-fg: #c2410c;
  --stat-card-3-bg-a: #fef3c7;
  --stat-card-3-bg-b: #fde68a;
  --stat-card-3-fg: #92400e;
  --stat-card-4-bg-a: #dcfce7;
  --stat-card-4-bg-b: #bbf7d0;
  --stat-card-4-fg: #166534;
  --stat-card-5-bg-a: #e0f2fe;
  --stat-card-5-bg-b: #bae6fd;
  --stat-card-5-fg: #075985;
  --stat-card-6-bg-a: #f3e8ff;
  --stat-card-6-bg-b: #e9d5ff;
  --stat-card-6-fg: #6b21a8;
}
.theme-midnight {
  --rose-50: #f3f4ff;
  --rose-100: #e2e4ff;
  --rose-200: #c8ccff;
  --rose-300: #a8afff;
  --rose-400: #7f8aff;
  --rose-500: #5f6bff;
  --rose-600: #4451d6;
  --hero-gradient: linear-gradient(180deg, #f4f5ff 0%, #ecf0ff 45%, #f5fbff 100%);
  --page-bg: linear-gradient(180deg, #f5f6ff 0%, #eef0ff 55%, #f7fbff 100%);
  --theme-surface: rgba(247, 248, 255, 0.94);
  --theme-surface-soft: rgba(231, 235, 255, 0.94);
  --theme-surface-strong: rgba(255, 255, 255, 0.99);
  --theme-border: rgba(95, 107, 255, 0.16);
  --theme-shadow: 0 12px 30px rgba(95, 107, 255, 0.10);
  --theme-accent: #5f6bff;
  --theme-accent-2: #a8afff;
  --theme-accent-soft: rgba(95, 107, 255, 0.12);
  --theme-accent-strong: #4451d6;
  --theme-card-text: #24294a;
  --stat-card-1-bg-a: #e0e7ff;
  --stat-card-1-bg-b: #c7d2fe;
  --stat-card-1-fg: #3730a3;
  --stat-card-2-bg-a: #dbeafe;
  --stat-card-2-bg-b: #bfdbfe;
  --stat-card-2-fg: #1d4ed8;
  --stat-card-3-bg-a: #ede9fe;
  --stat-card-3-bg-b: #ddd6fe;
  --stat-card-3-fg: #5b21b6;
  --stat-card-4-bg-a: #cffafe;
  --stat-card-4-bg-b: #a5f3fc;
  --stat-card-4-fg: #155e75;
  --stat-card-5-bg-a: #f1f5f9;
  --stat-card-5-bg-b: #e2e8f0;
  --stat-card-5-fg: #334155;
  --stat-card-6-bg-a: #fce7f3;
  --stat-card-6-bg-b: #fbcfe8;
  --stat-card-6-fg: #be185d;
}
.theme-valentine,
.theme-520,
.theme-anniversary {
  --rose-50: #fff7fb;
  --rose-100: #ffe2f0;
  --rose-200: #ffc0dd;
  --rose-300: #ff9cc8;
  --rose-400: #ff77b3;
  --rose-500: #ff5a9f;
  --rose-600: #e43b86;
  --hero-gradient: linear-gradient(180deg, #fff7fb 0%, #fff0f7 45%, #f4fbff 100%);
  --page-bg: linear-gradient(180deg, #fff9fc 0%, #fff4f8 55%, #f5fbff 100%);
}
.theme-valentine {
  --hero-accent: radial-gradient(circle at 15% 18%, rgba(255,122,170,0.24) 0%, transparent 34%), radial-gradient(circle at 85% 20%, rgba(255,209,102,0.16) 0%, transparent 22%);
  --theme-surface: rgba(255, 248, 251, 0.95);
  --theme-surface-soft: rgba(255, 236, 244, 0.95);
  --theme-surface-strong: rgba(255, 255, 255, 0.99);
  --theme-border: rgba(255, 122, 170, 0.16);
  --theme-shadow: 0 12px 30px rgba(255, 93, 162, 0.12);
  --theme-accent: #ff5a9f;
  --theme-accent-2: #ffd166;
  --theme-accent-soft: rgba(255, 122, 170, 0.14);
  --theme-accent-strong: #e43b86;
  --theme-card-text: #2c2440;
}
.theme-520 {
  --rose-50: #fff6fa;
  --rose-100: #ffe0ec;
  --rose-200: #ffc0db;
  --rose-300: #ff97c0;
  --rose-400: #ff6fa6;
  --rose-500: #ff4f97;
  --rose-600: #e3317f;
  --hero-gradient: linear-gradient(180deg, #fff6fa 0%, #fff0f7 45%, #fff9f3 100%);
  --page-bg: linear-gradient(180deg, #fff7fb 0%, #fff1f7 55%, #fffaf6 100%);
  --theme-surface: rgba(255, 247, 250, 0.95);
  --theme-surface-soft: rgba(255, 232, 240, 0.95);
  --theme-surface-strong: rgba(255, 255, 255, 0.99);
  --theme-border: rgba(255, 79, 151, 0.16);
  --theme-shadow: 0 12px 30px rgba(255, 79, 151, 0.12);
  --theme-accent: #ff4f97;
  --theme-accent-2: #ffb347;
  --theme-accent-soft: rgba(255, 79, 151, 0.14);
  --theme-accent-strong: #e3317f;
  --theme-card-text: #40142c;
}
.theme-anniversary {
  --rose-50: #fffdf3;
  --rose-100: #fff1c4;
  --rose-200: #ffe28c;
  --rose-300: #ffd155;
  --rose-400: #f7c873;
  --rose-500: #d9a441;
  --rose-600: #b57d1f;
  --gold-400: #f7c873;
  --hero-gradient: linear-gradient(180deg, #fffdf7 0%, #fff5cf 45%, #fff9f3 100%);
  --page-bg: linear-gradient(180deg, #fffdf7 0%, #fff6d9 55%, #fffaf6 100%);
  --hero-accent: radial-gradient(circle at 18% 18%, rgba(247,200,115,0.22) 0%, transparent 34%), radial-gradient(circle at 82% 22%, rgba(255,122,170,0.12) 0%, transparent 24%);
  --theme-surface: rgba(255, 251, 241, 0.95);
  --theme-surface-soft: rgba(255, 243, 207, 0.95);
  --theme-surface-strong: rgba(255, 255, 255, 0.99);
  --theme-border: rgba(245, 200, 115, 0.18);
  --theme-shadow: 0 12px 30px rgba(181, 125, 31, 0.12);
  --theme-accent: #b57d1f;
  --theme-accent-2: #f7c873;
  --theme-accent-soft: rgba(245, 200, 115, 0.16);
  --theme-accent-strong: #8f6118;
  --theme-card-text: #5b4209;
}
.theme-520 .site-header,
.theme-valentine .site-header,
.theme-anniversary .site-header {
  box-shadow: 0 8px 22px rgba(255,122,170,.12);
}
.theme-520 .site-footer,
.theme-valentine .site-footer {
  background: linear-gradient(180deg, #ff7ab5, #ff5a9f);
}
.theme-anniversary .site-header,
.theme-anniversary .site-footer {
  background: linear-gradient(180deg, #f7d87a, #f0bf45);
  color: #6b4200;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- 滚动条美?---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ---------- 粒子动画?---------- */
#petals-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.petal {
  position: absolute; top: -40px;
  animation: float linear infinite;
  user-select: none;
  opacity: 0;
}
@keyframes float {
  0%   { transform: translateY(0) rotate(0deg) scale(.8); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(105vh) rotate(360deg) scale(.4); opacity: 0; }
}

/* ---------- 顶部导航 ?全宽毛玻?---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: var(--glass-bg-heavy);
  border-bottom: 1px solid rgba(255,122,170,.12);
  height: 66px;
  display: flex; align-items: center;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  box-shadow: 0 8px 22px rgba(255,122,170,.08);
  transition: background var(--tr-norm);
}
.site-header .logo {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 1.45rem;
  color: var(--rose-500);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.site-header nav { margin-left: auto; display: flex; gap: var(--sp-1); }
.site-header nav a {
  padding: 8px 15px;
  border-radius: var(--r-full);
  font-size: .84rem; font-weight: 800;
  color: var(--text-mute);
  transition: all var(--tr-fast);
  position: relative;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--rose-500);
  background: linear-gradient(180deg, #fff, var(--rose-50));
  box-shadow: var(--shadow-xs);
}

.site-header nav a {
  position: relative;
}
.site-header nav a.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-400), var(--gold-400));
}

/* ---------- 页面容器系统 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}
.container-sm {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}
.container-narrow {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}
.container-lg {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

/* ---------- 全宽 Section 分区 ---------- */
.section {
  width: 100%;
  padding: var(--sp-12) 0;
}
.section-alt {
  width: 100%;
  padding: var(--sp-12) 0;
  background: rgba(250,251,252,0.25);
}
.section-hero {
  width: 100%;
  padding: var(--sp-16) 0 var(--sp-12);
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 60%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-accent);
  pointer-events: none;
  z-index: 0;
}
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(245,192,94,.10) 0%, transparent 48%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 卡片 ?白底微毛玻璃 ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,122,170,.10);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--tr-norm), box-shadow var(--tr-norm);
}
.card:hover { transform: translateY(-4px) rotate(-0.2deg); box-shadow: var(--shadow-md); }
.card-body { padding: var(--sp-6); }

/* 毛玻璃卡?*/
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}

.hero-main-title,
.sec-title {
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

/* ---------- Section 标题 ---------- */
.sec-tag {
  display: inline-block;
  background: var(--theme-surface-strong);
  color: var(--theme-accent);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .1em;
  padding: 5px 14px; border-radius: var(--r-full);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  border: 1px solid var(--theme-border);
}
.sec-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-h);
  line-height: 1.25;
  margin-bottom: var(--sp-2);
}
.sec-desc { color: var(--text-mute); font-size: .95rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 26px;
  border-radius: var(--r-full);
  font-weight: 700; font-size: .88rem;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: all var(--tr-fast);
  white-space: nowrap;
  letter-spacing: .02em;
}
.btn:focus-visible { outline: 2px solid var(--rose-400); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong));
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-accent) 40%, transparent);
}
.btn-outline {
  background: var(--theme-surface-strong);
  color: var(--theme-accent);
  border: 1.5px solid var(--theme-border);
}
.btn-outline:hover:not(:disabled) {
  background: var(--theme-surface-soft);
  border-color: var(--theme-accent-2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mute);
}
.btn-ghost:hover { background: var(--gray-50); color: var(--rose-500); }
.btn-sm { padding: 6px 18px; font-size: .8rem; }
.btn-lg { padding: 14px 40px; font-size: 1rem; }

/* ---------- 主题选择?---------- */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-3);
}
.theme-option {
  border: 2px solid rgba(255,93,162,.10);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--sp-3);
  text-align: left;
  cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}
.theme-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.theme-option.is-active {
  border-color: var(--rose-400);
  box-shadow: 0 10px 22px rgba(255,93,162,.14);
}
.theme-option__preview {
  height: 84px;
  border-radius: 18px;
  margin-bottom: var(--sp-3);
  background: linear-gradient(180deg, var(--rose-50), #fff);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -18px 28px rgba(255,255,255,.20);
}
.theme-option__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-option__name {
  display: block;
  font-weight: 800;
  color: var(--text-h);
  font-size: .95rem;
}
.theme-option__desc {
  display: block;
  margin-top: 4px;
  font-size: .76rem;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ---------- 猫咪养成?---------- */
.cat-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}
.cat-score-card__title {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-h);
}
.cat-score-card__desc,
.cat-score-card__hint {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--text-mute);
}
.cat-score-card__bar {
  width: min(260px, 36vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(255,93,162,.10);
  overflow: hidden;
}
.cat-score-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-400), var(--gold-400));
}

.voice-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-mute);
  cursor: pointer;
}
.msg-item.voice-note .msg-text {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg, #fff7fb, #fef3f6);
  border-radius: var(--r-xl);
  position: relative;
}
.msg-item.voice-note .msg-text::before {
  content: '🐱';
  font-size: 1.5rem;
}
.msg-item.voice-note .msg-text::after {
  content: '';
  display: inline-block;
  width: 48px;
  height: 24px;
  background: repeating-linear-gradient(90deg, var(--rose-400) 0 3px, transparent 3px 6px);
  border-radius: 6px;
  animation: voiceWave 1s ease infinite;
  margin-left: auto;
  flex-shrink: 0;
}
@keyframes voiceWave {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
@keyframes catFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: .7; }
  100% { transform: translateY(-120px) rotate(20deg); opacity: 0; }
}

/* ---------- 双人心愿?---------- */
.wish-garden__tree { font-size: 3rem; }
.wish-garden__title { margin-top: var(--sp-2); font-size: 1.2rem; font-weight: 800; color: var(--text-h); }
.wish-garden__desc { margin-top: 4px; font-size: .82rem; color: var(--text-mute); }
.wish-garden__flowers { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.wish-flower { font-size: 1.8rem; transition: transform .3s ease; }
.wish-flower.bud { opacity: .5; }
.wish-flower.bloom { animation: bloomBounce .6s ease; }
@keyframes bloomBounce { 0% { transform: scale(.3); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.wish-garden__full { margin-top: var(--sp-4); font-size: 1.1rem; font-weight: 700; color: var(--rose-500); }

/* ---------- 照片故事模式 ---------- */
.photo-grid.story-mode {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.photo-grid.story-mode .photo-item {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border: 1px solid rgba(255,122,170,.08);
  box-shadow: var(--shadow-sm);
}
.photo-grid.story-mode .photo-item img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.photo-grid.story-mode .photo-item .photo-overlay {
  display: none;
}
.photo-grid.story-mode .photo-item::after {
  content: attr(data-caption);
  font-size: .92rem;
  color: var(--text-body);
  line-height: 1.8;
  flex: 1;
}
@media (max-width: 640px) {
  .photo-grid.story-mode .photo-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .photo-grid.story-mode .photo-item img {
    width: 100%;
    height: 200px;
  }
}

/* ---------- 节日事件?---------- */
.holiday-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #fff7fb, #fff0dc);
  border: 2px solid rgba(255,122,170,.16);
  box-shadow: var(--shadow-glow);
}
.holiday-banner__icon {
  font-size: 3rem;
}
.holiday-banner__title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rose-600);
}
.holiday-banner__desc {
  margin-top: 6px;
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- 情绪天气 ---------- */
.mood-card {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fdfdff, #f8f4ff);
  border: 1px solid rgba(139,92,246,.10);
  box-shadow: var(--shadow-xs);
}
.mood-card__row {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}
.mood-card__person {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.mood-card__name {
  font-weight: 700;
  color: var(--text-h);
  font-size: .88rem;
}
.mood-card__emoji {
  font-size: 1.5rem;
}
.mood-select {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-size: .78rem;
  background: #fff;
  color: var(--text-body);
}

/* ---------- 今日小任?---------- */
.daily-task-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fffef9, #fff9ec);
  border: 1px solid rgba(247,200,115,.16);
  box-shadow: var(--shadow-xs);
}
.daily-task-card__icon {
  font-size: 2rem;
}
.daily-task-card__label {
  font-size: .72rem;
  font-weight: 800;
  color: var(--rose-500);
  letter-spacing: .06em;
}
.daily-task-card__title {
  margin-top: 4px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-h);
}
.daily-task-card__done {
  margin-top: 4px;
  font-size: .84rem;
  color: var(--mint-500);
  font-weight: 700;
}

/* ---------- 相册上传/预览 ---------- */
.upload-dropzone {
  border: 2px dashed rgba(255,93,162,.18);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff, #fff7fb);
  padding: var(--sp-4);
  transition: border-color var(--tr-fast), background var(--tr-fast), transform var(--tr-fast);
}
.upload-dropzone.is-dragover {
  border-color: var(--rose-400);
  background: linear-gradient(180deg, #fff8fc, #fff0f7);
  transform: translateY(-1px);
}
.upload-input {
  margin-bottom: var(--sp-3);
}
.upload-dropzone__hint {
  display: grid;
  gap: 4px;
  color: var(--text-h);
  font-size: .9rem;
}
.upload-dropzone__hint span,
.upload-dropzone__name {
  color: var(--text-mute);
  font-size: .78rem;
}
.upload-dropzone__name {
  margin-top: var(--sp-2);
}
.photo-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 32, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
}
.photo-preview-modal.open {
  display: flex;
}
.photo-preview-modal img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.photo-preview-modal#lottery-preview-modal img {
  max-width: min(92vw, 760px);
  max-height: 88vh;
  object-fit: contain;
  background: rgba(255,255,255,.04);
}
.photo-preview-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--text-h);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 表单元素 ---------- */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: .84rem; font-weight: 700;
  color: var(--gray-700);
  margin-bottom: var(--sp-2);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: .92rem; font-family: inherit;
  color: var(--text-h);
  background: var(--white);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rose-300);
  box-shadow: 0 0 0 3px rgba(232,69,107,.08);
}
.form-textarea { resize: vertical; min-height: 110px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .7rem; font-weight: 700;
}
.badge-pink   { background: var(--rose-50); color: var(--rose-500); border: 1px solid var(--rose-100); }
.badge-green  { background: var(--mint-100); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.badge-blue   { background: var(--sky-100);  color: #075985; border: 1px solid rgba(56,189,248,.2); }
.badge-yellow { background: var(--amber-100); color: #92400e; border: 1px solid rgba(245,166,35,.2); }

/* ---------- 进度?---------- */
.progress {
  width: 100%; height: 6px;
  background: var(--gray-100);
  border-radius: 3px; overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-300), var(--rose-500));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ---------- 骨架?---------- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-50) 25%, var(--gray-100) 50%, var(--gray-50) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 弹窗 ?毛玻璃背?---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,25,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.96);
  transition: transform .3s var(--ease);
  border: 1px solid rgba(255,255,255,.8);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 1.4rem; color: var(--text-h);
  margin-bottom: var(--sp-4);
  text-align: center;
}

/* ---------- 底部固定导航（仅移动端）---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border-top: 2px solid rgba(255,93,162,.10);
  box-shadow: 0 -6px 18px rgba(255,93,162,.08);
  height: 60px;
  display: none;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a,
.bottom-nav__more {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-size: .58rem; font-weight: 700;
  color: var(--text-mute);
  transition: all var(--tr-fast);
  padding: 5px 1px 7px;
  position: relative;
  text-decoration: none;
  background: transparent;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}
.bottom-nav .nav-emoji,
.bottom-nav__more .nav-emoji {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-size: .9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fff4f8);
  box-shadow: var(--shadow-xs);
}
.bottom-nav a:hover,
.bottom-nav a.active,
.bottom-nav__more:hover,
.bottom-nav__more.active { color: var(--rose-500); }
.bottom-nav a.active::after,
.bottom-nav__more.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 22%; right: 22%;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-400), var(--gold-400));
  border-radius: 3px 3px 0 0;
}

.bottom-nav__more.active .nav-emoji {
  background: linear-gradient(180deg, #fff, #fff0f6);
}
.bottom-nav__more {
  cursor: pointer;
}
.bottom-nav__more:focus-visible {
  outline: 2px solid var(--rose-400);
  outline-offset: -2px;
}

/* ---------- Hero ??全宽大气 ---------- */
.hero {
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-couple {
  display: flex; gap: var(--sp-8);
  align-items: flex-end; justify-content: center;
  margin-bottom: var(--sp-8);
}
.char-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8) var(--sp-5);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  transition: transform var(--tr-norm), box-shadow var(--tr-norm);
  min-width: 160px;
}
.char-card:first-child:hover { transform: translateY(-8px) rotate(-2deg); }
.char-card:last-child:hover  { transform: translateY(-8px) rotate(2deg); }
.char-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rose-100);
  background: var(--rose-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.char-avatar-boy  { background: linear-gradient(135deg,#e3edf7,#c7d9ed); }
.char-avatar-girl { background: linear-gradient(135deg,#ffe4ea,#ffd0db); }
.char-avatar .avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.6);
}
.char-name { font-size: 1.05rem; font-weight: 800; color: var(--text-h); }
.char-city { font-size: .78rem; color: var(--text-mute); }
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.status-dot.online  { background: var(--mint-400); box-shadow: 0 0 6px var(--mint-400); }
.status-dot.offline { background: var(--gray-300); }
.char-status { font-size: .72rem; color: var(--text-mute); }

.heart-center {
  font-size: 2.6rem;
  animation: heartbeat 1.3s ease-in-out infinite;
  align-self: center; flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(232,69,107,.35));
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* --- 双栏 Hero 布局（参考图风格?-- */
.hero-split {
  display: flex;
  gap: var(--sp-6);
  align-items: stretch;
}

.hero-split-left,
.hero-split-right {
  flex: 1;
  min-width: 0;
}

.hero-split-right {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--sp-4);
  align-content: start;
  grid-auto-rows: min-content;
}
.hero-split-right .checkin-card,
.hero-split-right .horoscope-card {
  grid-column: 1 / -1;
}
.hero-split-right .weather-card {
  grid-column: 1 / -1;
  grid-row: 3;
}
.hero-split-right .lottery-card {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    gap: var(--sp-8);
  }
  .hero-split-right {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    width: 100%;
    align-self: stretch;
    flex: none;
  }
  .hero-split-right > * {
    width: 100%;
  }
  .checkin-panel {
    padding: 1.5rem;
    width: 100%;
    margin-left: 0;
  }
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .hero-bento__wide {
    grid-column: auto;
  }
}
.hero-split-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--sp-5);
}
.hero-story {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
}
.hero-split-left .hero-subtitle {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-split-left .hero-main-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: clamp(2.4rem, 5.4vw, 3.5rem);
  color: var(--text-h);
  line-height: 1.2;
}
.hero-split-left .hero-desc {
  font-size: 1.04rem;
  color: var(--text-mute);
  line-height: 1.8;
  max-width: 540px;
}
.hero-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.hero-bento__wide {
  grid-column: 1 / -1;
}
.hero-split-right {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-self: flex-start;
  width: 100%;
}

.hero-bento .hero-info-row,
.hero-bento .cat-score-card,
.hero-bento .daily-task-card,
.hero-bento .mood-card,
.hero-bento .weather-card,
.hero-bento .hero-btns {
  margin-top: 0 !important;
}

.hero-bento .hero-btns {
  margin-top: var(--sp-1) !important;
}

.hero-bento .weather-card {
  min-height: 0;
}

/* ========== 恋爱能量?========== */
.horoscope-card {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}
.horoscope-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.horoscope-card__tip {
  font-size: .76rem;
  color: var(--text-mute);
  font-weight: 700;
}
.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.horoscope-mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,250,.94));
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  padding: var(--sp-4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.horoscope-mini-card__hd {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}
.horoscope-mini-card__name {
  font-weight: 800;
  color: var(--theme-card-text);
}
.horoscope-mini-card__meta {
  margin-top: 4px;
  font-size: .76rem;
  color: var(--text-mute);
}
.horoscope-mini-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--theme-accent-2), color-mix(in srgb, var(--theme-accent-2) 55%, #fff));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  flex-shrink: 0;
}
.horoscope-mini-card__body {
  display: grid;
  gap: 10px;
}
.horoscope-mini-card__title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--theme-accent);
  letter-spacing: .04em;
}
.horoscope-mini-card__text {
  font-size: .86rem;
  line-height: 1.7;
  color: var(--theme-card-text);
}
.horoscope-mini-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-mute);
}
.horoscope-mini-card__luck,
.horoscope-mini-card__num {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--theme-surface-strong);
  border: 1px solid var(--theme-border);
}

@media (max-width: 768px) {
  .horoscope-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 今日抽签 ========== */
.today-status-card {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}
.today-status-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.today-status-card__tip {
  font-size: .76rem;
  color: var(--text-mute);
  font-weight: 700;
}
.today-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}
.today-status-item {
  padding: var(--sp-3);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--theme-border);
}
.today-status-item__label {
  display: block;
  font-size: .72rem;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.today-status-item__value {
  font-size: .92rem;
  color: var(--theme-card-text);
  font-weight: 800;
}
.lottery-card {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}
.lottery-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.lottery-card__tip {
  font-size: .76rem;
  color: var(--text-mute);
  font-weight: 700;
}
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.lottery-mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,245,250,.94));
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.lottery-mini-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}
.lottery-mini-card__name {
  font-weight: 800;
  color: var(--theme-card-text);
}
.lottery-mini-card__meta {
  margin-top: 4px;
  font-size: .76rem;
  color: var(--text-mute);
}
.lottery-mini-card__badge {
  font-size: .72rem;
  font-weight: 800;
  color: var(--theme-accent);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--theme-surface-strong);
  border: 1px solid var(--theme-border);
  white-space: nowrap;
}
.lottery-mini-card__cover {
  height: 150px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
}
.lottery-mini-card__cover:hover {
  transform: translateY(-1px);
}
.lottery-mini-card__cover[style*="cursor: zoom-in"]:hover {
  box-shadow: 0 12px 24px rgba(255, 93, 162, 0.12);
  border-color: color-mix(in srgb, var(--theme-accent) 30%, var(--theme-border));
}
.lottery-mini-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lottery-mini-card__placeholder {
  font-size: 2.8rem;
  opacity: .7;
}
.lottery-mini-card__body {
  display: grid;
  gap: 8px;
}
.lottery-mini-card__scroll {
  display: grid;
  gap: 8px;
  max-height: 138px;
  overflow-y: auto;
  padding-right: 4px;
}
.lottery-mini-card__title {
  font-size: .8rem;
  font-weight: 800;
  color: var(--theme-accent);
}
.lottery-mini-card__text {
  font-size: .86rem;
  color: var(--theme-card-text);
  line-height: 1.7;
}
.lottery-mini-card__poem {
  font-size: .8rem;
  color: var(--text-mute);
  white-space: pre-line;
}
.lottery-mini-card__btn {
  width: 100%;
}
.lottery-mini-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lottery-mini-card__share {
  width: 100%;
}

.lottery-history {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--theme-border);
}
.lottery-history__title {
  font-size: .76rem;
  font-weight: 800;
  color: var(--theme-accent);
  margin-bottom: var(--sp-2);
}
.lottery-history__list {
  display: grid;
  gap: 8px;
}
.lottery-history__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--theme-card-text);
}

.english-card {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}
.english-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.english-card__tip {
  font-size: .76rem;
  color: var(--text-mute);
  font-weight: 700;
}
.english-card__body {
  display: grid;
  gap: 10px;
  padding: var(--sp-4);
  border-radius: 24px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--theme-border);
  min-height: 300px;
}
.english-card__quote {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--theme-card-text);
  font-weight: 800;
}
.english-card__word,
.english-card__meta {
  font-size: .82rem;
  color: var(--text-mute);
  line-height: 1.6;
}
.english-card__meta {
  white-space: pre-line;
}

.hero-split-left .english-card__body {
  min-height: 250px;
}

@media (max-width: 768px) {
  .today-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lottery-grid {
    grid-template-columns: 1fr;
  }
  .lottery-mini-card__actions {
    grid-template-columns: 1fr;
  }
  .english-card__hd,
  .lottery-card__hd {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .hero-split-left .english-card {
    min-height: 380px;
  }
}

@media (min-width: 769px) {
  .hero-split-right {
    gap: var(--sp-5);
  }

  .weather-card {
    background:
      radial-gradient(circle at top right, color-mix(in srgb, var(--theme-accent-2) 18%, transparent) 0%, transparent 34%),
      radial-gradient(circle at bottom left, var(--theme-accent-soft) 0%, transparent 28%),
      linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,255,255,.65) inset;
    display: grid;
    gap: var(--sp-4);
  }

  .weather-card__body {
    margin-top: 0;
    padding: var(--sp-4);
    border-radius: 24px;
    background: color-mix(in srgb, var(--theme-surface-strong) 72%, transparent);
    border: 1px solid var(--theme-border);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--sp-3) var(--sp-4);
    align-items: stretch;
  }

  .weather-card__temp {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
  }

  .weather-card__detail,
  .weather-card__reminder {
    grid-column: 2;
  }

  .weather-card__detail {
    font-size: .92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
  }

  .weather-card__reminder {
    color: var(--theme-card-text);
    background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  }
}
.quick-link-item__icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff0f6, #ffe4ee);
  border-radius: 50%;
}
.quick-link-item__text {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-h);
}

/* ========== 签到面板 - 全新设计 ========== */
.checkin-panel {
  background: linear-gradient(180deg, var(--theme-surface-strong) 0%, var(--theme-surface-soft) 100%);
  border-radius: 34px;
  border: 2px solid var(--theme-border);
  box-shadow: var(--theme-shadow), inset 0 1px 0 rgba(255,255,255,.8);
  padding: 1rem 1.35rem 1.35rem;
  width: min(100%, 460px);
  margin-left: auto;
  position: relative;
  overflow: hidden;
  margin-top: -var(--sp-2);
}
.checkin-panel::before {
  content: '';
  position: absolute;
  top: -60%; right: -40%; width: 100%; height: 100%;
  background: radial-gradient(circle, color-mix(in srgb, var(--theme-accent-2) 24%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.checkin-panel::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -30%; width: 80%; height: 80%;
  background: radial-gradient(circle, var(--theme-accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.checkin-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.admin-form-shell {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: var(--sp-6);
}
.admin-form-section {
  padding: var(--sp-6);
}
.admin-form-section__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.admin-form-section__title {
  font-weight: 800;
  color: var(--text-h);
  font-size: 1.02rem;
}
.admin-form-section__desc {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--text-mute);
}
.admin-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.admin-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}
.admin-form-full {
  grid-column: 1 / -1;
}
.admin-credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

@media (max-width: 960px) {
  .admin-form-shell {
    grid-template-columns: 1fr;
  }
}

/* 头部 */
.checkin-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkin-hd .tag {
  font-size: .9rem;
  font-weight: 800;
  color: var(--rose-500);
  letter-spacing: .02em;
}
.checkin-hd .date {
  font-size: .78rem;
  color: var(--text-mute);
  background: var(--white);
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--gray-100);
}

/* 连续天数 - 环形发光卡片 */
.checkin-streak {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent-2) 72%, #fff), var(--theme-accent) 48%, var(--theme-accent-strong) 100%);
  border-radius: 34px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(255,111,165,.18), 0 0 0 1px rgba(255,255,255,.22) inset;
  position: relative;
  overflow: hidden;
}
.checkin-streak::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15) 0%, transparent 50%);
  pointer-events: none;
}
.streak-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.streak-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.streak-main .fire {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(255,200,0,.5));
  animation: fire-flicker 1.5s ease-in-out infinite;
}
@keyframes fire-flicker {
  0%,100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-3deg); }
  75% { transform: scale(1.05) rotate(3deg); }
}
.streak-main .num {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.streak-main .unit {
  font-size: 1rem;
  opacity: .85;
  font-weight: 700;
}
.streak-sub {
  font-size: .78rem;
  opacity: .75;
  font-weight: 600;
  letter-spacing: .05em;
}
.streak-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 10px 0;
}
.streak-reward-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .7rem;
  line-height: 1.2;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.streak-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.streak-stat {
  text-align: center;
  padding: 8px 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
}
.streak-stat__label {
  display: block;
  font-size: .68rem;
  color: rgba(255,255,255,.74);
  margin-bottom: 3px;
  letter-spacing: .02em;
}
.streak-stat__value {
  font-size: .86rem;
  color: rgba(255,255,255,.96);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* 签到按钮 - 圆形脉冲 */
.checkin-btn-wrap {
  display: flex;
  justify-content: center;
  padding: .5rem 0;
}
.checkin-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border: none;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--theme-accent-2), var(--theme-accent));
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255,90,159,.28);
  transition: all var(--tr-fast);
  letter-spacing: .03em;
  overflow: hidden;
}
.checkin-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--theme-accent-2), var(--theme-accent));
  z-index: -1;
  animation: btn-glow 2s ease-in-out infinite;
}
@keyframes btn-glow {
  0%,100% { opacity: 0; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.05); }
}
.checkin-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--theme-accent) 42%, transparent);
}
.checkin-btn:active { transform: scale(.97); }
.checkin-btn:disabled {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent-2) 45%, #fff), color-mix(in srgb, var(--theme-accent) 72%, #fff));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-accent) 25%, transparent);
  cursor: default;
}
.checkin-btn:disabled::before { animation: none; opacity: 0; }
.checkin-btn:disabled:hover { transform: none; }

.weather-pet {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 260;
}
.weather-pet__bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 36px));
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(255,93,162,.14);
  color: var(--text-h);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.weather-pet__face {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
  flex-shrink: 0;
}
.weather-pet__text {
  font-size: .8rem;
  line-height: 1.45;
  text-align: left;
}
.weather-pet__close {
  border: 0;
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--theme-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.weather-pet.is-rainy .weather-pet__bubble {
  border: 1px solid color-mix(in srgb, var(--theme-accent) 25%, var(--sky-400));
}
.weather-pet.is-rainy .weather-pet__face {
  background: linear-gradient(135deg, var(--sky-100), var(--sky-400));
}
.weather-pet.is-sunny .weather-pet__face {
  background: linear-gradient(135deg, var(--theme-accent-2), color-mix(in srgb, var(--theme-accent-2) 55%, #fff));
}

/* checkin-mini-stat 样式已移?checkin-streak，此处保留兼容占?*/
.checkin-mini-stats { display: none; }
.checkin-mini-stat { display: none; }

/* 提示文案 */
.checkin-msg {
  font-size: .82rem;
  color: var(--text-mute);
  text-align: center;
  font-weight: 600;
}

/* 礼物展示 */
.checkin-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--theme-accent-2), color-mix(in srgb, var(--theme-accent-2) 55%, #fff));
  color: var(--theme-card-text);
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: .88rem;
  font-weight: 700;
  animation: prize-show 0.4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 16px rgba(245,166,35,.2);
}
@keyframes prize-show {
  0% { transform: scale(.6) rotate(-5deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 双方状?*/
.checkin-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rose-100);
}
.checkin-users .user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.checkin-users .user img,
.checkin-users .user span:first-child {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
  transition: all .3s ease;
  aspect-ratio: 1 / 1;
  min-width: 50px;
  min-height: 50px;
}
.checkin-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 50px;
}
.checkin-users .status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-accent) 30%, var(--gray-300));
  border: 3px solid var(--white);
  transition: all .3s ease;
}
.checkin-users .status-dot.checked {
  background: var(--theme-accent-2);
  box-shadow: 0 0 10px color-mix(in srgb, var(--theme-accent-2) 55%, transparent);
  animation: dot-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes dot-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.checkin-users .user-name {
  font-size: .78rem;
  color: var(--text-mute);
  font-weight: 700;
}
.checkin-users .heart {
  font-size: 1.4rem;
  animation: heart-pulse 1.5s ease-in-out infinite;
}
@keyframes heart-pulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* 庆祝动画关键?*/
@keyframes floatUp {
  to {
    transform: translateY(-120vh) rotate(25deg);
    opacity: 0;
  }
}

/* 动画 */
.checkin-btn.animating {
  animation: btn-press 0.15s ease-in-out;
}

@keyframes btn-press {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); }
}

/* --- 状态信息条 --- */
.hero-info-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.hero-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 700;
  border: 1.5px solid var(--theme-border);
  background: var(--theme-surface-strong);
  color: var(--theme-accent);
}
.hero-info-chip--neutral {
  border-color: var(--theme-border);
  background: var(--theme-surface-strong);
  color: var(--text-mute);
}

/* ---------- 天气卡片 ---------- */
.weather-card {
  padding: var(--sp-5);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow), 0 0 0 1px rgba(255,255,255,.55) inset;
  min-height: 100%;
}
.weather-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
}
.weather-card__title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 1.35rem;
  color: var(--text-h);
  margin-top: 6px;
}
.weather-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
  box-shadow: inset 0 0 0 1px var(--theme-border);
}
.weather-card__body {
  display: grid;
  gap: 10px;
  margin-top: var(--sp-4);
}
.weather-card__temp {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 2.5rem;
  color: var(--rose-600);
  line-height: 1;
}
.weather-card__detail {
  font-size: .9rem;
  color: var(--theme-card-text);
}
.weather-card__reminder {
  font-size: .9rem;
  color: var(--theme-card-text);
  background: linear-gradient(135deg, var(--theme-surface-strong), var(--theme-surface-soft));
  border: 1px solid var(--theme-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
}

/* 计时?*/
.timer-wrap {
  margin: var(--sp-6) auto var(--sp-8);
  max-width: 520px;
  background: var(--glass-bg-heavy);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--gold-glow);
}
.timer-digits {
  display: flex; gap: var(--sp-4); justify-content: center; align-items: flex-end;
}
.timer-unit {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.timer-num {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(232,69,107,0.15);
  border-radius: var(--r-md);
  min-width: 78px;
  padding: 14px 10px 8px;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--rose-600);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s var(--ease);
}
.timer-num:hover { transform: scale(1.05); }
.timer-unit-label { font-size: .7rem; color: var(--text-mute); font-weight: 700; }
.timer-sep { font-size: 1.8rem; color: var(--rose-300); margin-bottom: 8px; }

/* 首页按钮?*/
.hero-btns {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

.hero-btns .btn {
  padding: var(--sp-3) var(--sp-5);
  font-size: .9rem;
}

@media (max-width: 768px) {
  .hero-btns {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 距离徽章 */
.distance-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 6px 20px;
  font-size: .85rem; color: var(--text-mute); font-weight: 700;
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--sp-5);
}

/* ---------- 统计网格 ?彩色卡片?---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin: var(--sp-8) 0;
}
.stat-card {
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-5);
  text-align: left;
  transition: all var(--tr-norm);
  cursor: pointer;
  text-decoration: none; color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  position: relative;
  overflow: hidden;
  border: none;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -12px; bottom: -12px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }

/* 各色卡片背景 */
.stat-card--rose  { background: linear-gradient(135deg, var(--stat-card-1-bg-a), var(--stat-card-1-bg-b)); color: var(--stat-card-1-fg); }
.stat-card--sky   { background: linear-gradient(135deg, var(--stat-card-2-bg-a), var(--stat-card-2-bg-b)); color: var(--stat-card-2-fg); }
.stat-card--mint  { background: linear-gradient(135deg, var(--stat-card-3-bg-a), var(--stat-card-3-bg-b)); color: var(--stat-card-3-fg); }
.stat-card--amber { background: linear-gradient(135deg, var(--stat-card-4-bg-a), var(--stat-card-4-bg-b)); color: var(--stat-card-4-fg); }
.stat-card--violet{ background: linear-gradient(135deg, var(--stat-card-5-bg-a), var(--stat-card-5-bg-b)); color: var(--stat-card-5-fg); }
.stat-card--slate { background: linear-gradient(135deg, var(--stat-card-6-bg-a), var(--stat-card-6-bg-b)); color: var(--stat-card-6-fg); }

.stat-card .stat-icon {
  font-size: 1.6rem;
  margin-bottom: var(--sp-2);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.45);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.stat-card .stat-num {
  font-size: 1.8rem; font-weight: 800; line-height: 1;
  margin-top: var(--sp-2);
}
.stat-card .stat-sub {
  font-size: .75rem; margin-top: 4px; opacity: .7;
}
.stat-card .stat-label {
  font-size: .85rem; font-weight: 700; margin-top: 4px;
}

/* 兼容?.stat-icon / .stat-num / .stat-sub / .stat-label（非彩色卡片内） */
.stats-grid:not(.stats-grid--color) .stat-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-xs);
  text-align: center;
  min-height: auto;
}
.stats-grid:not(.stats-grid--color) .stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
  width: auto; height: auto;
  background: none;
  border-radius: 0;
}
.stats-grid:not(.stats-grid--color) .stat-card .stat-num { color: var(--rose-500); }
.stats-grid:not(.stats-grid--color) .stat-card .stat-sub { color: var(--text-mute); }
.stats-grid:not(.stats-grid--color) .stat-card .stat-label { color: var(--gray-700); }
.stats-grid:not(.stats-grid--color) .stat-card::after { display: none; }

/* ---------- 文章列表 ?大卡片版 ---------- */
.article-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.article-list--horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-5);
}
.article-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  transition: all var(--tr-norm);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* 横排网格内的卡片变纵?*/
.article-list--horizontal .article-card {
  flex-direction: column;
}
.article-list--horizontal .article-cover {
  width: 100%;
  height: 180px;
}
.article-cover {
  width: 200px; flex-shrink: 0;
  object-fit: cover;
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-body { padding: var(--sp-6); flex: 1; min-width: 0; }
.article-meta {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}
.article-author {
  font-size: .78rem; font-weight: 800;
  color: var(--rose-500);
  display: flex; align-items: center; gap: 4px;
}
.article-date   { font-size: .78rem; color: var(--text-mute); }
.article-title  {
  font-size: 1.1rem; font-weight: 800;
  color: var(--text-h);
  margin-bottom: var(--sp-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.article-excerpt {
  font-size: .88rem; color: var(--text-mute);
  line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-footer {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-3);
  font-size: .78rem; color: var(--text-mute);
}

/* ---------- 时光??精致节点设计 ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: var(--sp-4) 0; counter-reset: timeline-chapter; }
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    var(--rose-200) 5%, 
    var(--rose-400) 30%, 
    var(--rose-300) 70%, 
    var(--rose-200) 95%, 
    transparent 100%
  );
  transform: translateX(-50%);
  border-radius: 3px;
  box-shadow: 0 0 0 5px rgba(255,122,170,.05);
}
.tl-item { 
  display: flex; 
  padding-bottom: 56px; 
  position: relative;
  counter-increment: timeline-chapter;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:nth-child(odd) { flex-direction: row-reverse; }
.tl-content {
  width: calc(50% - 48px);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.94) 0%, transparent 32%),
    linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  border-radius: 28px;
  padding: var(--sp-6) var(--sp-7);
  border: 2px solid rgba(255,93,162,.12);
  box-shadow: 0 10px 24px rgba(255,93,162,.08), inset 0 1px 0 rgba(255,255,255,.82);
  transition: all var(--tr-norm);
  position: relative;
  overflow: hidden;
}
.tl-content::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 86px;
  height: 86px;
  transform: translate(-35%, -35%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,170,.18) 0%, rgba(255,122,170,.08) 40%, transparent 72%);
  opacity: .9;
  transition: opacity var(--tr-norm);
  pointer-events: none;
}
.tl-content::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,209,102,.18), rgba(255,122,170,.12));
  transform: rotate(12deg);
  opacity: .7;
  pointer-events: none;
}
.tl-content > * {
  position: relative;
  z-index: 1;
}
.tl-content:hover { 
  box-shadow: 0 16px 34px rgba(255,93,162,.14), 0 6px 18px rgba(0,0,0,.05); 
  transform: translateY(-6px) rotate(-0.4deg) scale(1.01); 
}
.tl-content:hover::before { opacity: 1; }
.tl-dot {
  position: absolute; left: 50%; top: 24px;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #fff, #fff4f9);
  border: 3px solid rgba(255,122,170,.28);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 18px rgba(255,93,162,.10), 0 0 0 7px rgba(255,122,170,.08);
  z-index: 2;
  transition: all var(--tr-norm);
}
.tl-dot::after {
  content: counter(timeline-chapter);
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--gold-400));
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(255,93,162,.18);
}
.tl-item:hover .tl-dot {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 12px 24px rgba(255,93,162,.16), 0 0 0 10px rgba(255,122,170,.12);
  border-color: var(--rose-400);
}
.tl-date { 
  font-size: .82rem; 
  font-weight: 800; 
  color: var(--rose-500); 
  margin-bottom: var(--sp-2); 
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,122,170,.08);
  border: 1px solid rgba(255,122,170,.10);
}
.tl-date::before {
  content: '📅';
  font-size: .9rem;
}
.tl-title { 
  font-size: 1.15rem; 
  font-weight: 800; 
  color: var(--text-h); 
  margin-bottom: var(--sp-3);
  line-height: 1.4;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid rgba(255,122,170,.18);
}
.tl-text { 
  font-size: .92rem; 
  color: var(--text-mute); 
  line-height: 1.85;
  padding-left: 14px;
  position: relative;
}
.tl-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: .35em;
  width: 4px;
  height: .9em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose-400), var(--gold-400));
}
/* 连接线装?*/
.tl-connector {
  position: absolute;
  top: 36px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-200), var(--rose-300));
  z-index: 1;
}
.tl-item:nth-child(odd) .tl-connector { right: calc(50% + 28px); }
.tl-item:nth-child(even) .tl-connector { left: calc(50% + 28px); }

/* ---------- 相册网格 ?瀑布流风?---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.photo-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--gray-50);
  aspect-ratio: 1;
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--tr-norm);
  box-shadow: var(--shadow-sm);
}
.photo-item--more { display: none; }
.photo-item:hover { 
  transform: translateY(-6px) scale(1.02); 
  box-shadow: 0 16px 32px rgba(0,0,0,.12); 
}
.photo-item img { 
  width: 100%; height: 100%; 
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-item:hover img { transform: scale(1.08); }
.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
  display: flex; 
  align-items: flex-end; 
  justify-content: center;
  opacity: 0; 
  transition: opacity .3s;
  padding: var(--sp-4);
}
.photo-overlay-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-item:hover .photo-overlay-icon { transform: translateY(0); }

/* 相册卡片头部优化 */
.album-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--rose-50) 0%, var(--white) 100%);
}
.album-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 1.5rem;
  color: var(--text-h);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.album-count {
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  color: white;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 700;
}

/* ---------- 心愿清单 ?更宽间距 ---------- */
/* ---------- 心愿清单 ?彩色卡片 + 进度可视?---------- */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.wish-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--sp-3);
  position: relative;
  transition: all var(--tr-norm);
  overflow: hidden;
}
.wish-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-300), var(--pink-400), var(--rose-300));
  opacity: 0.6;
  transition: opacity var(--tr-norm);
}
.wish-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: var(--shadow-lg); 
}
.wish-card:hover::before { opacity: 1; }
/* 彩色卡片变体 */
.wish-card:nth-child(6n+1)::before { background: linear-gradient(90deg, var(--rose-400), var(--pink-500)); }
.wish-card:nth-child(6n+2)::before { background: linear-gradient(90deg, var(--amber-400), var(--amber-500)); }
.wish-card:nth-child(6n+3)::before { background: linear-gradient(90deg, var(--mint-400), var(--mint-500)); }
.wish-card:nth-child(6n+4)::before { background: linear-gradient(90deg, var(--sky-400), #0ea5e9); }
.wish-card:nth-child(6n+5)::before { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.wish-card:nth-child(6n+6)::before { background: linear-gradient(90deg, #f472b6, #ec4899); }
.wish-card.done {
  background: linear-gradient(135deg, #f0fdf4 0%, var(--white) 100%);
  border-color: rgba(16,185,129,.25);
  box-shadow: 0 0 0 1px rgba(16,185,129,.1), var(--shadow-sm);
}
.wish-card.done::before {
  background: linear-gradient(90deg, #34d399, #10b981);
  opacity: 1;
}
.wish-badge-done {
  position: absolute; top: -8px; right: -8px;
  background: linear-gradient(135deg,#34d399,#10b981);
  color: #fff; font-size: .72rem; font-weight: 800;
  padding: 6px 14px; border-radius: var(--r-full);
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
  z-index: 2;
}
.wish-icon { 
  font-size: 3rem; 
  margin-bottom: var(--sp-1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}
.wish-title { 
  font-weight: 800; 
  color: var(--text-h); 
  font-size: 1.05rem;
  line-height: 1.4;
}
.wish-desc { 
  font-size: .85rem; 
  color: var(--text-mute); 
  line-height: 1.6;
}
/* 进度条美?*/
.wish-progress-wrap {
  width: 100%;
  margin-top: var(--sp-2);
}
.wish-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
  font-size: .75rem;
  color: var(--text-mute);
  font-weight: 700;
}
.wish-progress-pct {
  color: var(--rose-500);
  font-weight: 800;
}
.wish-progress {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--r-full);
  overflow: hidden;
}
.wish-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-400), var(--pink-500));
  border-radius: var(--r-full);
  transition: width .6s ease;
}
/* 完成日期 */
.wish-done-date {
  font-size: .75rem;
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

/* ---------- 认证?---------- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--sp-4);
  background: var(--page-bg, radial-gradient(ellipse at 50% 20%, rgba(255, 192, 221, .42) 0%, rgba(255, 247, 251, .95) 60%, rgba(245, 251, 255, 1) 100%));
}
.auth-card {
  max-width: 420px;
  width: 100%;
  padding: var(--sp-10) var(--sp-8);
  border-radius: 32px;
}
.auth-title {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 1.9rem;
  color: var(--rose-500);
}
.auth-subtitle {
  font-size: .85rem;
  color: var(--text-mute);
  margin-top: 6px;
}
.auth-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px;
  border-radius: 14px;
  margin: 20px 0;
}
.auth-note {
  margin-top: 20px;
  font-size: .85rem;
  color: var(--text-mute);
  text-align: center;
}

/* ---------- 留言?---------- */
.msg-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.msg-item {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-xs);
  display: flex; gap: var(--sp-4); align-items: flex-start;
  transition: transform var(--tr-norm), box-shadow var(--tr-norm);
}
.msg-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.msg-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-400), var(--gold-400));
}
.msg-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-50), var(--gray-50));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-xs);
}
.msg-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.msg-body  { flex: 1; min-width: 0; }
.msg-header{ display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 4px; flex-wrap: wrap; }
.msg-nick  { font-size: .9rem; font-weight: 800; color: var(--text-h); }
.msg-qq-badge {
  font-size: .68rem;
  padding: 1px 8px;
  border-radius: var(--r-full);
  background: var(--rose-50);
  color: var(--rose-500);
  font-weight: 700;
  border: 1px solid var(--rose-100);
}
.msg-time  { font-size: .72rem; color: var(--text-mute); }
.msg-ip    { font-size: .7rem; color: var(--text-mute); margin-bottom: 4px; opacity: .7; }
.msg-text  { font-size: .9rem; color: var(--text-body); line-height: 1.65; }

/* 私密留言 */
.private-lock-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.private-lock-card .lock-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff, #fff2f8);
  border: 2px solid rgba(255,93,162,.12);
  box-shadow: var(--shadow-sm);
}

.private-lock-card .lock-icon,
.lock-icon {
  aspect-ratio: 1 / 1;
}
.lock-icon {
  font-size: 3.5rem;
  animation: lockPulse 2s ease-in-out infinite;
}
@keyframes lockPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.private-msg-input {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px dashed var(--gray-200);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.msg-item-private {
  border-color: rgba(232,69,107,.15);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(232,69,107,.08);
}

/* 留言输入?*/
.msg-input-wrap {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(0,0,0,.06);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--sp-6);
}
.msg-input-row { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.msg-input-row .form-input { flex: 1; }

/* ---------- 页脚 ?全宽深色 ---------- */
.site-footer {
  background: linear-gradient(180deg, #ff8fc1, #ff6fae);
  color: rgba(255,255,255,.86);
  text-align: center;
  padding: var(--sp-10) var(--sp-4);
  font-size: .8rem;
  line-height: 2;
}
.site-footer .brand {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  color: #fff;
  font-size: 1.3rem;
  display: block;
  margin-bottom: var(--sp-2);
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }

/* ---------- 空状?---------- */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
  color: var(--text-mute);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: var(--sp-4); }
.empty-state p { font-size: .9rem; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex; gap: var(--sp-2); justify-content: center;
  margin-top: var(--sp-10); flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 700;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--text-mute);
  transition: all var(--tr-fast);
}
.pagination a:hover { background: var(--gray-50); color: var(--rose-500); border-color: var(--rose-100); }
.pagination .active { background: var(--rose-500); color: #fff; border-color: var(--rose-500); }

/* ---------- Toast 提示 ---------- */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 300;
  background: var(--gray-900);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: .88rem; font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ---------- 移动端底部导航更多抽?---------- */
.bottom-nav__more {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0;
}
.bottom-drawer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
}
.bottom-drawer.open {
  display: block;
}
.bottom-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(6px);
}
.bottom-drawer__sheet {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%) translateY(18px);
  width: min(100vw - 20px, 560px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,244,250,.96));
  border: 1px solid rgba(255, 122, 170, 0.16);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  padding: 14px 14px 18px;
  animation: drawerUp .22s ease-out forwards;
}
@keyframes drawerUp {
  from { opacity: 0; transform: translateX(-50%) translateY(28px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bottom-drawer__handle {
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 93, 162, .24);
  margin: 0 auto 12px;
}
.bottom-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bottom-drawer__title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-h);
}
.bottom-drawer__sub {
  margin-top: 4px;
  font-size: .76rem;
  color: var(--text-mute);
}
.bottom-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-xs);
  color: var(--text-h);
  font-size: 22px;
  line-height: 1;
}
.bottom-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bottom-drawer__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
  border-radius: 20px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(255, 122, 170, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  text-decoration: none;
}
.bottom-drawer__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff0f6, #ffe4ee);
  font-size: 1.1rem;
}
.bottom-drawer__label {
  font-size: .74rem;
  color: var(--text-h);
  font-weight: 800;
}
.drawer-open {
  overflow: hidden;
}

/* ---------- 管理后台 ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-main { min-width: 0; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: linear-gradient(180deg, #ff8fc1, #ff6fae);
  padding: var(--sp-6) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-1);
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 8px 0 24px rgba(255,93,162,.12);
}
.admin-sidebar .logo {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  color: rgba(255,255,255,.95);
  font-size: 1.2rem;
  padding: var(--sp-3) var(--sp-2) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,.18);
  margin-bottom: var(--sp-3);
}
.admin-sidebar a {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 18px;
  color: rgba(255,255,255,.82);
  font-size: .88rem; font-weight: 700;
  transition: all var(--tr-fast);
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.admin-main { flex: 1; padding: var(--sp-8); background: var(--gray-25); }
.admin-title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-h); margin-bottom: var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-2);
}

.admin-main table {
  width: 100%;
}

/* ---------- 图标选择?---------- */
.icon-picker {
  display: grid;
  gap: var(--sp-4);
}
.icon-picker__preview {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #fff0f6);
  border: 1px solid var(--rose-100);
}
.icon-picker__preview-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-accent-soft);
  font-size: 1.5rem;
}
.icon-picker__preview-label {
  font-size: .78rem;
  color: var(--text-mute);
  font-weight: 700;
}
.icon-picker__group {
  display: grid;
  gap: 6px;
}
.icon-picker__group-name {
  font-size: .76rem;
  font-weight: 800;
  color: var(--rose-500);
  letter-spacing: .04em;
}
.icon-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 6px;
}
.icon-picker__item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.95);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--tr-fast);
  padding: 0;
}
.icon-picker__item:hover {
  background: #fff0f6;
  border-color: var(--rose-200);
  transform: scale(1.08);
}
.icon-picker__item.is-selected {
  background: linear-gradient(135deg, var(--rose-100), #fff0f6);
  border-color: var(--rose-400);
  box-shadow: 0 4px 12px rgba(255,93,162,.16);
  transform: scale(1.12);
}

/* ---------- 任务模板列表 ---------- */
.task-template-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
}
.task-template-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7fb);
  border: 1px solid rgba(255,93,162,.08);
  transition: all var(--tr-fast);
}
.task-template-item:hover {
  border-color: rgba(255,93,162,.16);
  box-shadow: var(--shadow-xs);
}
.task-template-item.is-inactive {
  opacity: .55;
}
.task-template-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose-50), #fff);
  border: 1px solid var(--rose-100);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.task-template-item__body {
  flex: 1;
  min-width: 0;
}
.task-template-item__title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-template-item__badges {
  margin-top: 4px;
  display: flex;
  gap: 4px;
}
.task-template-item__actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.task-template-item__actions .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

/* ---------- 响应?---------- */
@media (max-width: 768px) {
  .site-header nav { display: none; }
  .bottom-nav { display: flex; }
  .site-footer { padding-bottom: calc(var(--sp-8) + 60px + env(safe-area-inset-bottom, 0)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid.stats-grid--color { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-couple { gap: var(--sp-4); }
  .char-card { min-width: 120px; padding: var(--sp-4); }
  .char-avatar { width: 64px; height: 64px; font-size: 1.8rem; }
  .timeline::before { left: 24px; }
  .tl-item, .tl-item:nth-child(odd) { flex-direction: column; }
  .tl-content { 
    width: calc(100% - 64px); 
    margin-left: 64px;
    padding: var(--sp-5);
    border-radius: 22px;
  }
  .tl-dot { 
    left: 24px; 
    top: 24px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  .tl-connector { display: none; }
  .tl-content::after { width: 48px; height: 48px; right: 12px; bottom: 12px; }
  .article-card { flex-direction: column; }
  .article-cover { width: 100%; height: 180px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: var(--sp-3); border-radius: 0 0 24px 24px; }
  .admin-sidebar .logo { width: 100%; padding-bottom: var(--sp-3); margin-bottom: var(--sp-2); }
  .admin-sidebar a { flex: 1 1 calc(50% - 6px); justify-content: center; min-width: 0; }
  .admin-sidebar a[href$='logout.php'] { flex-basis: 100%; }
  .admin-main { padding: var(--sp-5) var(--sp-4) calc(var(--sp-8) + 60px); }
  .admin-title { font-size: 1.25rem; margin-bottom: var(--sp-4); }
  .admin-main .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-main table { display: block; width: 100%; overflow-x: auto; }
  .admin-main table thead,
  .admin-main table tbody { min-width: 560px; }
  .admin-main .btn { white-space: nowrap; }
  .section, .section-alt { padding: var(--sp-8) 0; }
  .section-hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-right {
    min-height: auto;
    padding: var(--sp-4);
    width: 100%;
    align-self: stretch;
    flex: none;
  }
  .hero-split-left .hero-main-title { font-size: 1.8rem; }
  .hero-info-row { gap: var(--sp-2); }
  .weather-card { padding: var(--sp-4); }
  .weather-pet { right: 12px; bottom: 78px; }
  .weather-pet__bubble { max-width: min(280px, calc(100vw - 24px)); }
  .article-list--horizontal { grid-template-columns: 1fr; }
  /* 关于页面响应?*/
  .about-card { padding: var(--sp-8) var(--sp-5); }
  .couple-avatars { gap: var(--sp-5); }
  .avatar-ring { width: 80px; height: 80px; }
  .avatar-emoji { font-size: 2.4rem; }
  .heart-divider { font-size: 2.2rem; }
  .days-number { font-size: 2.8rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .about-stat-card { padding: var(--sp-4) var(--sp-3); }
  .stats-grid.stats-grid--color .stat-card { padding: var(--sp-4) var(--sp-3); min-height: 112px; }
  .stats-grid.stats-grid--color .stat-card .stat-icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .stats-grid.stats-grid--color .stat-card .stat-num { font-size: 1.25rem; }
  .stats-grid.stats-grid--color .stat-card .stat-sub { font-size: .68rem; }
  .stats-grid.stats-grid--color .stat-card .stat-label { font-size: .72rem; }
  
  /* 签到游戏响应?*/
  .checkin-panel { padding: 1rem; border-radius: 28px; }
  .checkin-card { gap: var(--sp-3); }
  .streak-stats { grid-template-columns: 1fr; }
  .streak-main .num { font-size: 2.5rem; }
  .checkin-btn { padding: 12px 28px; font-size: .9rem; }
  .checkin-users .user img { width: 40px; height: 40px; }
  
  /* 关于页面响应?- 修复头像布局 */
  .about-card { padding: var(--sp-6) var(--sp-4); }
  .couple-avatars { flex-direction: row; gap: var(--sp-4); }
  .avatar-ring { width: 80px; height: 80px; }
  .avatar-emoji { font-size: 2rem; }
  .heart-divider { font-size: 2rem; }
  .days-number { font-size: 2.5rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .about-stat-card { padding: var(--sp-4) var(--sp-2); }
  .about-stat-card .stat-icon { font-size: 1.5rem; }
  .about-stat-card .stat-num { font-size: 1.5rem; }
  .about-stat-card .stat-label { font-size: .7rem; }

  /* 移动端专属主题背?*/
  body.theme-rose {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.60) 100%),
      url('../images/themes/rose-m.png') center/cover no-repeat fixed;
  }
  body.theme-peach {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.60) 100%),
      url('../images/themes/peach-m.webp') center/cover no-repeat fixed;
  }
  body.theme-midnight {
    background:
      linear-gradient(180deg, rgba(30,30,55,0.70) 0%, rgba(20,20,40,0.75) 100%),
      url('../images/themes/midnight-m.png') center/cover no-repeat fixed;
  }
  body.theme-valentine {
    background:
      linear-gradient(180deg, rgba(255,240,245,0.70) 0%, rgba(255,235,240,0.60) 100%),
      url('../images/themes/valentine-m.png') center/cover no-repeat fixed;
  }
  body.theme-520 {
    background:
      linear-gradient(180deg, rgba(255,240,248,0.70) 0%, rgba(255,235,245,0.60) 100%),
      url('../images/themes/520-m.png') center/cover no-repeat fixed;
  }
  body.theme-anniversary {
    background:
      linear-gradient(180deg, rgba(255,250,235,0.70) 0%, rgba(255,245,225,0.60) 100%),
      url('../images/themes/anniversary-m.png') center/cover no-repeat fixed;
  }
}


@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .timer-num  { min-width: 50px; font-size: 1.4rem; padding: var(--sp-1) var(--sp-2); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .wish-grid { grid-template-columns: repeat(2, 1fr); }
  /* 关于页面小屏幕适配 */
  .about-card { padding: var(--sp-5) var(--sp-3); }
  .couple-avatars { flex-direction: row; gap: var(--sp-3); }
  .avatar-ring { width: 60px; height: 60px; padding: 2px; }
  .avatar-emoji { font-size: 1.8rem; }
  .avatar-name { font-size: .9rem; }
  .avatar-city { font-size: .7rem; }
  .heart-divider { font-size: 1.5rem; }
  .days-number { font-size: 2rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
  .about-stat-card { padding: var(--sp-3) var(--sp-2); }
  .about-stat-card .stat-icon { font-size: 1.2rem; }
  .about-stat-card .stat-num { font-size: 1.2rem; }
  .about-stat-card .stat-label { font-size: .65rem; }
  .admin-main { padding: var(--sp-4) var(--sp-3) calc(var(--sp-8) + 60px); }
  .admin-sidebar a { flex: 1 1 calc(50% - 6px); font-size: .78rem; padding: 8px 10px; }
  .admin-sidebar .logo { font-size: 1rem; }
  .admin-title { font-size: 1.1rem; }
  .admin-main .card { border-radius: 22px; }
  .admin-main table thead,
  .admin-main table tbody { min-width: 520px; }
  .admin-form-shell,
  .admin-form-grid-2,
  .admin-form-grid-3,
  .admin-credential-grid { grid-template-columns: 1fr !important; }
  .admin-form-section { padding: var(--sp-4); }
  .admin-form-section__hd { flex-direction: column; align-items: flex-start; }
  .admin-form-full { grid-column: auto; }
  .admin-form-grid-2 .form-group,
  .admin-form-grid-3 .form-group,
  .admin-credential-grid .form-group { grid-column: auto; }
}

@media (max-width: 420px) {
  .admin-sidebar a {
    flex-basis: 100%;
  }

  .admin-main table thead,
  .admin-main table tbody {
    min-width: 460px;
  }

  .admin-main .stats-grid,
  .admin-main .stats-grid.stats-grid--color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-main .stats-grid.stats-grid--color .stat-card {
    min-height: 92px;
    padding: 12px 10px;
  }

  .admin-main .stats-grid.stats-grid--color .stat-card .stat-icon {
    width: 30px;
    height: 30px;
    font-size: .95rem;
    margin-bottom: 6px;
  }

  .admin-main .stats-grid.stats-grid--color .stat-card .stat-num {
    font-size: 1rem;
  }

  .admin-main .stats-grid.stats-grid--color .stat-card .stat-sub,
  .admin-main .stats-grid.stats-grid--color .stat-card .stat-label {
    font-size: .58rem;
  }

  .admin-form-shell,
  .admin-form-grid-2,
  .admin-form-grid-3,
  .admin-credential-grid {
    gap: var(--sp-3);
  }

  .admin-form-section__title {
    font-size: .98rem;
  }

  .admin-form-section__desc {
    font-size: .78rem;
  }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .timer-num  { min-width: 50px; font-size: 1.4rem; padding: var(--sp-1) var(--sp-2); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid.stats-grid--color { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
  .wish-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { padding: var(--sp-5) var(--sp-3); }
  .couple-avatars { flex-direction: row; gap: var(--sp-3); }
  .avatar-ring { width: 60px; height: 60px; padding: 2px; }
  .avatar-emoji { font-size: 1.8rem; }
  .avatar-name { font-size: .9rem; }
  .avatar-city { font-size: .7rem; }
  .heart-divider { font-size: 1.5rem; }
  .days-number { font-size: 2rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
  .about-stat-card { padding: var(--sp-3) var(--sp-2); }
  .about-stat-card .stat-icon { font-size: 1.2rem; }
  .about-stat-card .stat-num { font-size: 1.2rem; }
  .about-stat-card .stat-label { font-size: .65rem; }
  .stats-grid.stats-grid--color .stat-card { padding: var(--sp-3) var(--sp-2); min-height: 98px; }
  .stats-grid.stats-grid--color .stat-card .stat-icon { width: 32px; height: 32px; font-size: 1rem; }
  .stats-grid.stats-grid--color .stat-card .stat-num { font-size: 1.05rem; }
  .stats-grid.stats-grid--color .stat-card .stat-sub { font-size: .62rem; }
  .stats-grid.stats-grid--color .stat-card .stat-label { font-size: .62rem; }
  .checkin-panel { padding: .9rem; }
  .checkin-streak { padding: 1.1rem .9rem; border-radius: 28px; }
  .checkin-users { gap: 1rem; }
  .hero-split-left {
    gap: var(--sp-4);
  }
  .hero-split-left .hero-main-title {
    font-size: clamp(1.9rem, 10vw, 2.4rem);
    line-height: 1.15;
  }
  .hero-split-left .hero-desc {
    font-size: .94rem;
    line-height: 1.7;
  }
  .timer-wrap {
    margin: var(--sp-4) auto var(--sp-6);
    padding: var(--sp-3);
    max-width: 100%;
  }
  .timer-digits {
    display: grid;
    grid-template-columns: 1.15fr .45fr 1fr .45fr 1fr .45fr 1fr;
    gap: 3px;
    align-items: end;
  }
  .timer-unit { min-width: 0; }
  .timer-num {
    min-width: 0;
    width: 100%;
    font-size: 1.15rem;
    padding: 10px 4px 6px;
  }
  .timer-sep {
    font-size: .95rem;
    margin-bottom: 4px;
  }
  .hero-info-row {
    gap: var(--sp-2);
    margin-top: var(--sp-3);
  }
  .hero-info-chip {
    width: 100%;
    justify-content: center;
    padding: 7px 12px;
    font-size: .8rem;
  }
  .hero-bento {
    gap: var(--sp-3);
  }
  .daily-task-card,
  .mood-card,
  .weather-card,
  .english-card,
  .horoscope-card,
  .lottery-card {
    padding: var(--sp-4);
    border-radius: 24px;
  }
  .weather-card__hd,
  .english-card__hd,
  .horoscope-card__hd,
  .lottery-card__hd,
  .checkin-hd {
    gap: var(--sp-2);
    align-items: flex-start;
  }
  .weather-card__body,
  .english-card__body {
    gap: 8px;
  }
  .daily-task-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .daily-task-card__icon {
    font-size: 1.7rem;
  }
  .daily-task-card__body {
    width: 100%;
    min-width: 0;
  }
  .daily-task-card__label,
  .daily-task-card__title,
  .daily-task-card__done {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .daily-task-card__title {
    font-size: .92rem;
    line-height: 1.45;
  }
  .mood-card__row {
    flex-direction: column;
    gap: 10px;
  }
  .mood-card__person {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 8px;
  }
  .mood-card__name {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .mood-select {
    width: 100%;
    max-width: none;
    margin-top: 2px;
  }
  .weather-card__temp {
    font-size: 2rem;
  }
  .english-card__quote {
    font-size: .96rem;
    line-height: 1.7;
  }
  .checkin-btn {
    width: 100%;
    padding: 12px 22px;
    font-size: .92rem;
  }
  .checkin-users {
    gap: .75rem;
  }
  .checkin-users .user {
    min-width: 0;
    gap: 6px;
    flex: 1;
  }
  .checkin-users .user-name {
    font-size: .8rem;
  }
  .checkin-users .heart {
    font-size: 1.3rem;
  }
  .streak-main .num {
    font-size: 2.2rem;
  }
  .streak-reward-pill {
    font-size: .65rem;
    padding: 5px 8px;
  }
  .streak-stat__label {
    font-size: .62rem;
  }
  .streak-stat__value {
    font-size: .78rem;
  }
  .bottom-drawer__sheet {
    width: min(100vw - 12px, 560px);
    bottom: 72px;
    padding: 12px 12px 14px;
  }
  .bottom-drawer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bottom-drawer__item {
    min-height: 78px;
    border-radius: 18px;
  }
  .bottom-drawer__label {
    font-size: .7rem;
    text-align: center;
  }
  .page-home .stats-grid.stats-grid--color { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .stats-grid.stats-grid--color .stat-card { min-height: 102px; }
  .page-home .stats-grid.stats-grid--color .stat-card:last-child { grid-column: 1 / -1; }

  .page-articles .stats-grid.stats-grid--color,
  .page-gallery .stats-grid.stats-grid--color,
  .page-messages .stats-grid.stats-grid--color,
  .page-wishlist .stats-grid.stats-grid--color,
  .page-timeline .stats-grid.stats-grid--color,
  .page-private .stats-grid.stats-grid--color,
  .page-about .stats-grid.stats-grid--color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-articles .stats-grid.stats-grid--color .stat-card:last-child,
  .page-gallery .stats-grid.stats-grid--color .stat-card:last-child,
  .page-messages .stats-grid.stats-grid--color .stat-card:last-child,
  .page-wishlist .stats-grid.stats-grid--color .stat-card:last-child,
  .page-timeline .stats-grid.stats-grid--color .stat-card:last-child,
  .page-private .stats-grid.stats-grid--color .stat-card:last-child,
  .page-about .stats-grid.stats-grid--color .stat-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .section, .section-alt { padding: var(--sp-6) 0; }
  .container,
  .container-sm,
  .container-narrow,
  .container-lg {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header {
    height: auto;
    min-height: 60px;
    padding: 0 12px;
  }
  .site-header .logo {
    font-size: 1.2rem;
  }
  .site-header nav {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar {
    display: none;
  }
  .site-header nav a {
    padding: 7px 10px;
    font-size: .75rem;
    white-space: nowrap;
  }
  .hero-split {
    gap: var(--sp-6);
  }
  .hero-split-left .hero-main-title {
    font-size: 1.8rem;
  }
  .hero-split-left .hero-desc {
    font-size: .9rem;
  }
  .hero-info-chip {
    font-size: .76rem;
  }
  .timer-wrap {
    padding: 10px;
  }
  .timer-num {
    font-size: 1.05rem;
    padding: 9px 3px 6px;
  }
  .timer-sep { font-size: .9rem; }
  .daily-task-card {
    padding: var(--sp-3);
    gap: 8px;
  }
  .daily-task-card__icon { font-size: 1.5rem; }
  .daily-task-card__title { font-size: .88rem; }
  .mood-card { padding: var(--sp-3); }
  .mood-card__name { font-size: .82rem; }
  .mood-card__emoji { font-size: 1.25rem; }
  .mood-select { font-size: .75rem; }
  .weather-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .bottom-nav {
    height: 58px;
  }
  .bottom-nav a,
  .bottom-nav__more {
    font-size: .54rem;
  }
  .bottom-nav .nav-emoji,
  .bottom-nav__more .nav-emoji {
    width: 22px;
    height: 22px;
    font-size: .82rem;
  }
  .bottom-drawer__grid {
    gap: 6px;
  }
  .bottom-drawer__item {
    min-height: 74px;
  }
}

@media (max-width: 360px) {
  .hero-split-left .hero-main-title {
    font-size: 1.72rem;
  }
  .hero-info-chip {
    padding: 6px 10px;
    font-size: .72rem;
  }
  .timer-digits {
    grid-template-columns: 1.1fr .36fr .95fr .36fr .95fr .36fr .95fr;
    gap: 2px;
  }
  .timer-num {
    font-size: .98rem;
    padding: 8px 2px 5px;
  }
  .timer-sep {
    font-size: .82rem;
    margin-bottom: 3px;
  }
  .stats-grid.stats-grid--color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stats-grid.stats-grid--color .stat-card {
    min-height: 92px;
    padding: 12px 10px;
  }
  .stats-grid.stats-grid--color .stat-card .stat-icon {
    width: 30px;
    height: 30px;
    font-size: .95rem;
    margin-bottom: 6px;
  }
  .stats-grid.stats-grid--color .stat-card .stat-num {
    font-size: 1rem;
  }
  .stats-grid.stats-grid--color .stat-card .stat-sub,
  .stats-grid.stats-grid--color .stat-card .stat-label {
    font-size: .58rem;
  }
  .bottom-nav {
    height: 56px;
  }
  .bottom-nav a,
  .bottom-nav__more {
    font-size: .52rem;
    padding-top: 4px;
    padding-bottom: 6px;
  }
  .bottom-nav .nav-emoji,
  .bottom-nav__more .nav-emoji {
    width: 20px;
    height: 20px;
    font-size: .78rem;
  }
  .bottom-drawer__sheet {
    width: calc(100vw - 10px);
    bottom: 66px;
    border-radius: 24px;
  }
  .bottom-drawer__item {
    min-height: 70px;
  }
}

/* ---------- 滚动入场动画 ---------- */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.in { opacity: 1; transform: none; }

/* ---------- 工具?---------- */
.text-center { text-align: center; }
.mt-4  { margin-top: var(--sp-4);  }
.mt-6  { margin-top: var(--sp-6);  }
.mt-8  { margin-top: var(--sp-8);  }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.w-full{ width: 100%; }

/* ---------- 关于我们页面 ?精致个人卡片 ---------- */
.about-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--rose-400), var(--pink-400), var(--rose-300));
}
/* 情侣头像区域 */
.couple-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.avatar-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--rose-200), var(--pink-300));
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-norm);
}
.avatar-boy .avatar-ring {
  background: linear-gradient(135deg, #a7d7f5, #7ec8e3);
}
.avatar-girl .avatar-ring {
  background: linear-gradient(135deg, #ffb6c1, #ff91a4);
}
.avatar-card:hover .avatar-ring {
  transform: scale(1.05);
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.avatar-name {
  font-weight: 700;
  color: var(--text-h);
  font-size: 1rem;
}
.avatar-city {
  font-size: .75rem;
  color: var(--text-mute);
}
.heart-divider {
  font-size: 3rem;
  animation: heartbeat 1.3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(232,69,107,.2));
}
/* 在一起天?*/
.love-days {
  margin-bottom: var(--sp-4);
}
.days-number {
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  font-size: 3.5rem;
  color: var(--rose-500);
  line-height: 1;
  display: inline-block;
}
.days-label {
  font-size: 1.2rem;
  color: var(--text-mute);
  margin-left: var(--sp-2);
}
.love-since {
  font-size: .92rem;
  color: var(--text-mute);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}
/* 一言 */
.hitokoto-wrap {
  border-top: 2px dashed var(--rose-100);
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
}
.hitokoto-text {
  font-size: .88rem;
  color: var(--text-mute);
  line-height: 1.9;
}
.hitokoto-quote {
  color: var(--rose-400);
  font-style: italic;
  font-weight: 600;
}
/* 关于页面统计卡片 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.about-stat-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--tr-norm);
  position: relative;
  overflow: hidden;
}
.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  opacity: 0.8;
}
.about-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.stat-articles::before { background: linear-gradient(90deg, var(--rose-400), var(--pink-500)); }
.stat-photos::before { background: linear-gradient(90deg, var(--amber-400), var(--amber-500)); }
.stat-wishes::before { background: linear-gradient(90deg, var(--mint-400), var(--mint-500)); }
.about-stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}
.about-stat-card .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-h);
  margin-bottom: var(--sp-1);
}
.about-stat-card .stat-label {
  font-size: .82rem;
  color: var(--text-mute);
  font-weight: 700;
}

@media (max-width: 480px) {
  .checkin-panel { padding: .9rem; }
  .checkin-streak { padding: 1.1rem .9rem; border-radius: 28px; }
  .checkin-users { gap: 1rem; }
  .page-home .stats-grid.stats-grid--color { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .stats-grid.stats-grid--color .stat-card:last-child { grid-column: auto; }

  .page-articles .stats-grid.stats-grid--color,
  .page-gallery .stats-grid.stats-grid--color,
  .page-messages .stats-grid.stats-grid--color,
  .page-wishlist .stats-grid.stats-grid--color,
  .page-timeline .stats-grid.stats-grid--color,
  .page-private .stats-grid.stats-grid--color,
  .page-about .stats-grid.stats-grid--color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-articles .stats-grid.stats-grid--color .stat-card:last-child,
  .page-gallery .stats-grid.stats-grid--color .stat-card:last-child,
  .page-messages .stats-grid.stats-grid--color .stat-card:last-child,
  .page-wishlist .stats-grid.stats-grid--color .stat-card:last-child,
  .page-timeline .stats-grid.stats-grid--color .stat-card:last-child,
  .page-private .stats-grid.stats-grid--color .stat-card:last-child,
  .page-about .stats-grid.stats-grid--color .stat-card:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Cartoon Theme Override
   ============================================================ */
:root {
  --rose-50: #fff7fb;
  --rose-100: #ffe4f1;
  --rose-200: #ffc7e0;
  --rose-300: #ffadd0;
  --rose-400: #ff7fb8;
  --rose-500: #ff5da2;
  --rose-600: #e8458c;
  --gold-400: #ffd166;
  --mint-100: #e8fbef;
  --mint-400: #4ade80;
  --mint-500: #22c55e;
  --sky-100: #e9f5ff;
  --sky-400: #60a5fa;
  --text-h: #2c2440;
  --text-body: #5f5676;
  --text-mute: #9a90ae;
  --gray-25: #fffdfd;
  --gray-50: #fff9fb;
  --gray-100: #f7eaf1;
  --gray-200: #edd7e3;
  --glass-bg: rgba(255,255,255,.9);
  --glass-bg-heavy: rgba(255,255,255,.98);
  --glass-border: rgba(255,255,255,.9);
  --glass-blur: blur(14px) saturate(1.08);
  --hero-gradient: linear-gradient(180deg, #fff9fd 0%, #fff1f8 40%, #f7fbff 100%);
  --hero-accent: radial-gradient(circle at 15% 20%, rgba(255,93,162,.14) 0%, transparent 22%), radial-gradient(circle at 80% 24%, rgba(255,209,102,.18) 0%, transparent 18%);
  --shadow-xs: 0 3px 10px rgba(103, 67, 128, .05);
  --shadow-sm: 0 8px 18px rgba(103, 67, 128, .08);
  --shadow-md: 0 14px 30px rgba(103, 67, 128, .10);
  --shadow-lg: 0 20px 42px rgba(103, 67, 128, .14);
  --shadow-glow: 0 0 24px rgba(255,93,162,.16);
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 42px;
}

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,.9) 0 10%, transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(255,209,102,.18) 0 8%, transparent 16%),
    radial-gradient(circle at 20% 82%, rgba(74,222,128,.12) 0 8%, transparent 16%),
    linear-gradient(180deg, #fffafd 0%, #fff4f9 46%, #f7fbff 100%);
}

.site-header {
  height: 70px;
  border-bottom: 2px solid rgba(255,93,162,.10);
  box-shadow: 0 8px 18px rgba(255,93,162,.06);
}

.site-header .logo {
  font-size: 1.5rem;
}

.site-header nav a,
.bottom-nav a,
.bottom-nav__more,
.btn,
.stat-card,
.article-card,
.card,
.about-stat-card,
.wish-card,
.msg-item,
.private-lock-card,
.timeline-item,
.timeline .tl-content,
.admin-sidebar a {
  border-radius: 28px;
}

.btn-primary,
.checkin-btn {
  background: linear-gradient(135deg, #ff84be, #ff5da2);
  box-shadow: 0 10px 24px rgba(255,93,162,.24);
}

.btn-outline {
  background: #fff;
  border-color: var(--rose-200);
}

.card,
.article-card,
.stat-card,
.wish-card,
.msg-item,
.private-lock-card,
.about-stat-card,
.timeline .tl-content,
.admin-sidebar a {
  border: 2px solid rgba(255,93,162,.08);
  box-shadow: var(--shadow-sm);
}

.article-card:hover,
.stat-card:hover,
.wish-card:hover,
.msg-item:hover,
.about-stat-card:hover {
  transform: translateY(-4px) rotate(-0.2deg);
}

.sec-tag {
  background: #fff;
  color: var(--rose-500);
  border: 2px solid var(--rose-100);
  box-shadow: 0 6px 14px rgba(255,93,162,.08);
}

.hero-main-title,
.sec-title {
  color: var(--text-h);
}

.hero-split-right,
.checkin-panel,
.checkin-streak,
.checkin-prize,
.bottom-nav a.active::after {
  box-shadow: 0 10px 24px rgba(255,93,162,.12);
}

.checkin-panel {
  padding: 1rem;
}

.checkin-card {
  gap: .9rem;
}

.checkin-users .user img,
.checkin-avatar,
.char-avatar .avatar-img,
.avatar-ring img {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
}

.checkin-users .user img,
.checkin-avatar {
  object-fit: cover;
}

.site-footer {
  background: linear-gradient(180deg, #ff8fc1, #ff6fae);
}

.bottom-nav {
  background: rgba(255,255,255,.96);
  border-top: 2px solid rgba(255,93,162,.10);
}

.bottom-nav a,
.bottom-nav__more {
  font-size: .58rem;
}

.bottom-nav .nav-emoji,
.bottom-nav__more .nav-emoji {
  width: 24px;
  height: 24px;
  font-size: .9rem;
}

.admin-sidebar {
  background: linear-gradient(180deg, #ff8fc1, #ff6fae);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* ---------- 主题组件覆盖 ---------- */
.theme-520 .site-header {
  background: linear-gradient(180deg, rgba(255,248,252,.98), rgba(255,235,244,.96));
  border-bottom-color: rgba(255,93,162,.18);
  box-shadow: 0 10px 24px rgba(255,93,162,.10);
}
.theme-520 .site-header .logo,
.theme-520 .site-header nav a.active,
.theme-520 .site-header nav a:hover {
  color: #ff4f97;
}
.theme-520 .site-header nav a.active::after {
  background: linear-gradient(90deg, #ff4f97, #ffb347);
}
.theme-520 .section-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,93,162,.16) 0%, transparent 28%),
    linear-gradient(180deg, #fff6fa 0%, #fff0f7 46%, #fffaf7 100%);
}
.theme-520 .card,
.theme-520 .stat-card,
.theme-520 .article-card,
.theme-520 .wish-card,
.theme-520 .msg-item,
.theme-520 .private-lock-card,
.theme-520 .about-stat-card,
.theme-520 .timeline .tl-content,
.theme-520 .admin-sidebar a {
  border-color: rgba(255,93,162,.14);
}
.theme-520 .btn-primary,
.theme-520 .checkin-btn {
  background: linear-gradient(135deg, #ff84be, #ff4f97);
  box-shadow: 0 12px 26px rgba(255,79,151,.26);
}
.theme-520 .btn-outline {
  color: #ff4f97;
  border-color: rgba(255,79,151,.20);
}
.theme-520 .sec-tag {
  color: #ff4f97;
  border-color: rgba(255,79,151,.14);
}
.theme-520 .site-footer,
.theme-520 .admin-sidebar {
  background: linear-gradient(180deg, #ff8fc1, #ff5a9f);
}

.theme-anniversary .site-header {
  background: linear-gradient(180deg, rgba(255,251,241,.98), rgba(255,240,202,.96));
  border-bottom-color: rgba(245,200,107,.22);
  box-shadow: 0 10px 24px rgba(183,125,31,.10);
}
.theme-anniversary .site-header .logo,
.theme-anniversary .site-header nav a.active,
.theme-anniversary .site-header nav a:hover {
  color: #b57d1f;
}
.theme-anniversary .site-header nav a.active::after {
  background: linear-gradient(90deg, #b57d1f, #f7c873);
}
.theme-anniversary .section-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(247,200,115,.12) 0%, transparent 28%),
    linear-gradient(180deg, rgba(255,253,245,0.15) 0%, rgba(255,243,207,0.05) 46%, transparent 100%);
}
.theme-anniversary .card,
.theme-anniversary .stat-card,
.theme-anniversary .article-card,
.theme-anniversary .wish-card,
.theme-anniversary .msg-item,
.theme-anniversary .private-lock-card,
.theme-anniversary .about-stat-card,
.theme-anniversary .timeline .tl-content,
.theme-anniversary .admin-sidebar a {
  border-color: rgba(245,200,115,.18);
}
.theme-anniversary .btn-primary,
.theme-anniversary .checkin-btn {
  background: linear-gradient(135deg, #f7d87a, #d9a441);
  color: #6b4200;
  box-shadow: 0 12px 26px rgba(217,164,65,.22);
}
.theme-anniversary .btn-outline {
  color: #b57d1f;
  border-color: rgba(181,125,31,.20);
}
.theme-anniversary .sec-tag {
  color: #b57d1f;
  border-color: rgba(181,125,31,.16);
}
.theme-anniversary .site-footer,
.theme-anniversary .admin-sidebar {
  background: linear-gradient(180deg, #f7d87a, #f0bf45);
  color: #6b4200;
}
.theme-anniversary .site-footer .brand,
.theme-anniversary .site-footer a {
  color: #6b4200;
}

@media (max-width: 480px) {
  body:not(.page-home) .stats-grid.stats-grid--color {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
    margin-top: var(--sp-4);
    margin-bottom: var(--sp-5);
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card {
    min-height: 108px;
    padding: var(--sp-4) var(--sp-3);
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card:nth-child(1),
  body:not(.page-home) .stats-grid.stats-grid--color .stat-card:nth-child(2) {
    grid-column: span 1;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 122px;
    padding: var(--sp-5) var(--sp-4);
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card .stat-num {
    font-size: 1.15rem;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card .stat-label {
    font-size: .68rem;
    letter-spacing: .02em;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card .stat-sub {
    font-size: .62rem;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card:nth-child(3) .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card:nth-child(3) .stat-num {
    font-size: 1.35rem;
  }

  body:not(.page-home) .stats-grid.stats-grid--color .stat-card:nth-child(3) .stat-label {
    font-size: .78rem;
  }
}

/* ============================================================
   UI Polish 2026-07
   Cleaner surfaces, steadier spacing, and calmer motion
   ============================================================ */
:root {
  --ui-ink: #241f33;
  --ui-body: #5d5870;
  --ui-muted: #928aa1;
  --ui-line: rgba(120, 90, 130, .12);
  --ui-surface: rgba(255, 255, 255, .9);
  --ui-surface-solid: #ffffff;
  --ui-soft: rgba(255, 247, 251, .78);
  --ui-shadow-card: 0 16px 36px rgba(72, 52, 92, .10);
  --ui-shadow-lift: 0 22px 50px rgba(72, 52, 92, .14);
  --ui-focus: 0 0 0 4px color-mix(in srgb, var(--theme-accent) 22%, transparent);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
}

html {
  text-rendering: optimizeLegibility;
}

body {
  color: var(--ui-body);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.42) 42%, rgba(247,251,255,.74)),
    radial-gradient(circle at 12% 10%, rgba(255,93,162,.10) 0 14%, transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255,209,102,.14) 0 11%, transparent 23%),
    radial-gradient(circle at 20% 84%, rgba(52,211,153,.09) 0 10%, transparent 22%),
    linear-gradient(180deg, #fffafd 0%, #fff4f8 48%, #f6fbff 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}

.site-header {
  height: 68px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--ui-line);
  box-shadow: 0 10px 30px rgba(62, 44, 82, .07);
  gap: 18px;
}

.site-header .logo {
  color: var(--ui-ink);
  font-size: 1.28rem;
  letter-spacing: 0;
}

.site-header nav {
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  color: var(--ui-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  line-height: 1;
  padding: 10px 14px;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--theme-accent-strong);
  background: rgba(255,255,255,.88);
  border-color: var(--theme-border);
  box-shadow: 0 8px 22px rgba(72, 52, 92, .08);
}

.site-header nav a.active::after {
  left: 50%;
  right: auto;
  bottom: 4px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
}

.section {
  padding: clamp(34px, 6vw, 72px) 0;
}

.section-alt {
  padding: clamp(34px, 6vw, 72px) 0;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.08));
  border-block: 1px solid rgba(255,255,255,.52);
}

.section-hero {
  min-height: min(760px, calc(100vh - 68px));
  display: flex;
  align-items: center;
  padding: clamp(42px, 7vw, 84px) 0 clamp(34px, 5vw, 60px);
}

.section-hero::before {
  opacity: .8;
}

.container,
.container-sm,
.container-narrow,
.container-lg {
  position: relative;
  z-index: 1;
}

.hero-split {
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-split-left {
  gap: 22px;
}

.hero-story {
  max-width: 700px;
}

.hero-split-left .hero-subtitle,
.sec-tag {
  letter-spacing: .08em;
}

.hero-split-left .hero-main-title {
  color: var(--ui-ink);
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.06;
  text-shadow: 0 1px 0 rgba(255,255,255,.76);
}

.hero-split-left .hero-desc {
  max-width: 620px;
  color: var(--ui-body);
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  line-height: 1.9;
}

.hero-bento {
  gap: 14px;
}

.hero-split-right,
.checkin-panel,
.card,
.card-glass,
.article-card,
.stat-card,
.wish-card,
.msg-item,
.private-lock-card,
.about-card,
.about-stat-card,
.timeline .tl-content,
.weather-card,
.daily-task-card,
.horoscope-mini-card,
.lottery-mini-card,
.english-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--r-xl);
  box-shadow: var(--ui-shadow-card);
  backdrop-filter: blur(16px) saturate(1.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.16);
}

.card,
.article-card,
.stat-card,
.wish-card,
.msg-item,
.about-stat-card,
.timeline .tl-content,
.daily-task-card,
.horoscope-mini-card,
.lottery-mini-card {
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.card:hover,
.article-card:hover,
.stat-card:hover,
.wish-card:hover,
.msg-item:hover,
.about-stat-card:hover,
.timeline .tl-content:hover,
.daily-task-card:hover,
.horoscope-mini-card:hover,
.lottery-mini-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
  box-shadow: var(--ui-shadow-lift);
}

.sec-title,
.card h2,
.card h3,
.weather-card__title,
.daily-task-card__title,
.horoscope-mini-card__name,
.lottery-mini-card__name {
  color: var(--ui-ink);
}

.sec-desc,
.weather-card__detail,
.weather-card__reminder,
.horoscope-mini-card__meta,
.lottery-mini-card__meta {
  color: var(--ui-muted);
}

.btn,
.checkin-btn,
.lottery-mini-card__btn,
.lottery-mini-card__share {
  border-radius: 999px;
  min-height: 40px;
  letter-spacing: 0;
  box-shadow: none;
}

.btn-primary,
.checkin-btn {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong));
  color: #fff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

.btn-primary:hover:not(:disabled),
.checkin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--theme-accent) 32%, transparent);
}

.btn-outline,
.lottery-mini-card__share {
  background: rgba(255,255,255,.78);
  color: var(--theme-accent-strong);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
}

.btn:focus-visible,
.checkin-btn:focus-visible,
.site-header nav a:focus-visible,
.bottom-nav a:focus-visible,
.bottom-nav__more:focus-visible {
  outline: none;
  box-shadow: var(--ui-focus);
}

.stats-grid {
  gap: clamp(12px, 2vw, 20px);
}

.stats-grid.stats-grid--color .stat-card {
  min-height: 132px;
  padding: 22px 18px;
  overflow: hidden;
}

.stats-grid.stats-grid--color .stat-card::after {
  opacity: .16;
}

.stats-grid.stats-grid--color .stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62);
}

.stats-grid.stats-grid--color .stat-card .stat-num {
  color: var(--ui-ink);
  line-height: 1.1;
}

.article-card,
.wish-card,
.msg-item {
  background: rgba(255,255,255,.86);
}

.timeline::before {
  background: linear-gradient(180deg, transparent, var(--theme-accent), var(--theme-accent-2), transparent);
  opacity: .56;
}

.timeline .tl-dot {
  box-shadow: 0 0 0 6px rgba(255,255,255,.82), 0 8px 18px color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

.bottom-nav {
  background: rgba(255,255,255,.9);
  border-top: 1px solid var(--ui-line);
  box-shadow: 0 -12px 32px rgba(62,44,82,.08);
}

.bottom-nav a,
.bottom-nav__more {
  color: var(--ui-muted);
  border-radius: 16px;
}

.bottom-nav .nav-emoji,
.bottom-nav__more .nav-emoji {
  background: transparent;
}

.bottom-nav a.active,
.bottom-nav__more.active {
  color: var(--theme-accent-strong);
}

.bottom-nav a.active .nav-emoji,
.bottom-nav__more.active .nav-emoji {
  background: var(--theme-accent-soft);
}

.site-footer {
  margin-top: clamp(34px, 6vw, 72px);
  background: linear-gradient(135deg, #30263d, #6e4166 52%, #d65a93);
  color: rgba(255,255,255,.82);
}

.site-footer .brand,
.site-footer a {
  color: #fff;
}

.toast {
  border-radius: 999px;
  background: rgba(36,31,51,.88);
  box-shadow: 0 18px 42px rgba(36,31,51,.22);
}

@media (max-width: 900px) {
  .site-header {
    overflow: hidden;
  }

  .site-header nav {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .section-hero {
    min-height: auto;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    height: auto;
    min-height: 62px;
    padding: 8px 14px;
  }

  .site-header .logo {
    font-size: 1.08rem;
  }

  .site-header nav a {
    padding: 9px 11px;
    font-size: .76rem;
  }

  .section,
  .section-alt {
    padding: 30px 0;
  }

  .section-hero {
    padding-top: 28px;
  }

  .hero-split-left .hero-main-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-bento {
    grid-template-columns: 1fr;
  }

  .hero-bento__wide {
    grid-column: auto;
  }

  .stats-grid.stats-grid--color .stat-card {
    min-height: 104px;
    padding: 16px 12px;
  }

  .stats-grid.stats-grid--color .stat-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}

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

  #petals-canvas {
    display: none;
  }
}

/* Gallery loading resilience */
.photo-item {
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,247,251,.74)),
    repeating-linear-gradient(45deg, rgba(255,93,162,.06) 0 10px, rgba(255,209,102,.06) 10px 20px);
}

.photo-item img.gallery-thumb {
  background: transparent;
  opacity: 0;
}

.photo-item img.gallery-thumb.loaded,
.photo-item img.gallery-thumb[src]:not([src=""]) {
  opacity: 1;
}

.photo-item img.gallery-thumb.is-error {
  opacity: 0;
}

.photo-item:has(img.gallery-thumb.is-error)::before {
  content: 'Image unavailable';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--ui-muted, #928aa1);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.gallery-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ui-muted, #928aa1);
  font-size: .78rem;
  font-weight: 700;
  background: rgba(255,255,255,.5);
}

.photo-overlay-icon {
  position: relative;
}

.photo-overlay-icon::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 3px solid var(--theme-accent, #ff5da2);
  border-radius: 50%;
  display: block;
}

.photo-overlay-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 3px;
  background: var(--theme-accent, #ff5da2);
  border-radius: 999px;
  right: 9px;
  bottom: 10px;
  transform: rotate(45deg);
  transform-origin: right center;
}
