/* 我们俩 · 1:1 鸿蒙端设计系统（四套主题：glass 樱花奶霜 / line 线稿手账 / fuguang 浮光·星屿 / xingguang 杏光·留白） */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/app/assets/fonts/instrument-serif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/app/assets/fonts/fraunces.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/app/assets/fonts/outfit.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('/app/assets/fonts/noto-serif-sc.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-display: 'Noto Serif SC', "Songti SC", Georgia, serif;
  --font-serif: 'Noto Serif SC', "Songti SC", Georgia, serif;
  --font-num: 'Instrument Serif', Georgia, serif;
  --font-title: var(--font-sans);
  --emo-weight: 400;

  --ink: #24212C;
  --ink2: #5E5A6B;
  --ink3: #8E8A9B;
  --muted: #7A7689;
  --pink: #EE7A98;
  --pink-deep: #D9567A;
  --pink-light: #F6A2B6;
  --rose-soft: #FBE6EC;
  --gold: #C28A2E;
  --gold-deep: #9A6B1E;
  --gold-soft: #FBEFD9;
  --glass: rgba(255, 255, 255, 0.34);
  --glass-strong: rgba(255, 255, 255, 0.52);
  --glass-line: rgba(255, 255, 255, 0.60);
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.75);
  --hair: rgba(36, 33, 44, 0.08);
  --dim: rgba(36, 33, 44, 0.22);
  --fill-bg: #24212C;
  --fill-ink: #FFFFFF;
  --on-pink: #FFFFFF;
  --paper-bg: #FFFFFF;
  --pop-bg: #FFFFFF;
  --sheet-bg: #F4F2F8;
  --chip-bg: rgba(255, 255, 255, 0.80);
  --chip-border: 0px solid transparent;
  --glass-shadow: 0 8px 30px rgba(60, 70, 110, 0.10);
  --card-shadow: 0 8px 30px rgba(60, 70, 110, 0.10);
  --surface-bg: rgba(255, 255, 255, 0.52);
  --surface-border: 1px solid rgba(255, 255, 255, 0.60);
  --surface-blur: blur(22px);
  --surface-sm-shadow: var(--glass-shadow);
  --outer-bg: #DCE4F0;
}

body[data-theme="line"] {
  --font-num: 'Fraunces', Georgia, serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-title: 'Noto Serif SC', Georgia, serif;
  --emo-weight: 400;

  --ink: #2B2A4C;
  --ink2: #6B6880;
  --ink3: #A6A1B5;
  --muted: #A6A1B5;
  --pink: #F08AA2;
  --pink-deep: #D4567A;
  --pink-light: #F7B3C3;
  --rose-soft: #FFD0D8;
  --gold: #C28A2E;
  --gold-deep: #9A6B1E;
  --gold-soft: #FBEFD9;
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-line: #2B2A4C;
  --card: #FFFFFF;
  --line: #2B2A4C;
  --hair: #ECE4DE;
  --dim: rgba(43, 42, 76, 0.25);
  --fill-bg: #2B2A4C;
  --fill-ink: #FFFFFF;
  --on-pink: #2B2A4C;
  --paper-bg: #FFFFFF;
  --pop-bg: #FFFFFF;
  --sheet-bg: #FBF7F2;
  --chip-bg: #FFFFFF;
  --chip-border: 1.3px solid #2B2A4C;
  --glass-shadow: 3px 4px 0 #2B2A4C;
  --card-shadow: 3px 4px 0 #2B2A4C;
  --surface-bg: #FFFFFF;
  --surface-border: 1.5px solid #2B2A4C;
  --surface-blur: none;
  --surface-sm-shadow: 2px 3px 0 #2B2A4C;
  --outer-bg: #F4E8EC;
}

body[data-theme="fuguang"] {
  --font-num: 'Instrument Serif', Georgia, serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-title: 'Noto Serif SC', Georgia, serif;
  --emo-weight: 400;

  --ink: #F4F2E9;
  --ink2: #D0DCE4;
  --ink3: #AFC2CF;
  --muted: #AFC2CF;
  --pink: #DAB0B4;
  --pink-deep: #F0B8BE;
  --pink-light: #E9CDD1;
  --rose-soft: rgba(218, 176, 180, 0.18);
  --gold: #E7D2AE;
  --gold-deep: #E9D2A3;
  --gold-soft: rgba(216, 188, 146, 0.15);
  --glass: rgba(223, 239, 250, 0.115);
  --glass-strong: rgba(223, 239, 250, 0.115);
  --glass-line: rgba(239, 249, 252, 0.30);
  --card: #2D465C;
  --line: rgba(239, 249, 252, 0.30);
  --hair: rgba(236, 245, 247, 0.16);
  --dim: rgba(243, 247, 248, 0.35);
  --fill-bg: #F4F2E9;
  --fill-ink: #263A4B;
  --on-pink: #263A4B;
  --paper-bg: rgba(226, 240, 250, 0.10);
  --pop-bg: #2D465C;
  --sheet-bg: #2D465C;
  --chip-bg: rgba(226, 240, 250, 0.11);
  --chip-border: 1px solid rgba(239, 249, 252, 0.30);
  --glass-shadow: 0 8px 16px rgba(4, 16, 28, 0.20);
  --card-shadow: 0 8px 20px rgba(4, 16, 28, 0.28);
  --surface-bg: linear-gradient(120deg, rgba(231, 241, 247, 0.115), rgba(212, 231, 241, 0.055));
  --surface-border: 1px solid rgba(242, 246, 248, 0.28);
  --surface-blur: blur(20px);
  --surface-sm-shadow: var(--glass-shadow);
  --outer-bg: #162939;
  color-scheme: dark;
}

body[data-theme="xingguang"] {
  --font-num: 'Outfit', -apple-system, sans-serif;
  --font-serif: var(--font-sans);
  --font-title: var(--font-sans);
  --emo-weight: 600;

  --ink: #282724;
  --ink2: #746B60;
  --ink3: #8C8276;
  --muted: #8C8276;
  --pink: #C38A91;
  --pink-deep: #AC4F59;
  --pink-light: #E2BFC2;
  --rose-soft: #F3E3E1;
  --gold: #B89653;
  --gold-deep: #8C6A33;
  --gold-soft: #F1DDCA;
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-line: #FFFFFF;
  --card: #FFFFFF;
  --line: #DED4C8;
  --hair: #EEE5DB;
  --dim: #DAD0C5;
  --fill-bg: #282724;
  --fill-ink: #FFFFFF;
  --on-pink: #FFFFFF;
  --paper-bg: #FFFFFF;
  --pop-bg: #FFFFFF;
  --sheet-bg: #F7F4F0;
  --chip-bg: #FFFFFF;
  --chip-border: 1px solid #E8DFD4;
  --glass-shadow: none;
  --card-shadow: 0 6px 16px rgba(120, 95, 70, 0.08);
  --surface-bg: #FFFFFF;
  --surface-border: 0px solid transparent;
  --surface-blur: none;
  --surface-sm-shadow: none;
  --outer-bg: #E5E0DA;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--outer-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.shell-frame {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

@media (min-width: 500px) {
  .shell-frame {
    max-width: 430px;
    box-shadow: 0 24px 80px rgba(20, 24, 42, 0.20);
  }
}

/* 整页背景 */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background 0.25s ease;
}

body[data-theme="glass"][data-bg="home"] .backdrop {
  background-color: #D5E1F0;
  background-image: url('/app/assets/bg_morning.webp');
}
body[data-theme="glass"][data-bg="soft"] .backdrop {
  background-color: #D5E1F0;
  background-image: url('/app/assets/bg_soft.webp');
}
body[data-theme="glass"][data-bg="sky"] .backdrop {
  background-color: #161A42;
  background-image: url('/app/assets/bg_glass_sky.webp');
}

body[data-theme="line"][data-bg="home"] .backdrop {
  background: linear-gradient(170deg, #F7D3DD 0%, #EADFF3 32%, #FBEDE6 62%, #FBF7F2 100%);
}
body[data-theme="line"][data-bg="soft"] .backdrop,
body[data-theme="line"][data-bg="sky"] .backdrop {
  background: linear-gradient(165deg, #F9DFE5 0%, #FAEEEC 30%, #FBF7F2 62%, #F6F2F6 100%);
}

body[data-theme="fuguang"][data-bg="home"] .backdrop {
  background: url('/app/assets/bg_fg_home.webp') center/cover no-repeat,
    linear-gradient(154deg, #506C80 0%, #527389 18%, #54748F 40%, #345771 66%, #132736 100%);
}
body[data-theme="fuguang"][data-bg="soft"] .backdrop {
  background: url('/app/assets/bg_fg_soft.webp') center/cover no-repeat,
    linear-gradient(154deg, #506C80 0%, #527389 18%, #54748F 40%, #345771 66%, #132736 100%);
}
body[data-theme="fuguang"][data-bg="sky"] .backdrop {
  background: url('/app/assets/bg_fg_sky.webp') center/cover no-repeat,
    linear-gradient(154deg, #274054 0%, #1B3246 55%, #112233 100%);
}

body[data-theme="xingguang"] .backdrop {
  background: #F2EFEB;
}
body[data-theme="xingguang"][data-bg="sky"] .backdrop {
  background: radial-gradient(circle at 78% 12%, #514A41 0%, #35322E 45%, #2B2A28 100%);
}

.app-root, .overlay-root, .modal-root, .toast-root {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.overlay-root, .modal-root, .toast-root {
  pointer-events: none;
}
.overlay-root > *, .modal-root > *, .toast-root > * {
  pointer-events: auto;
}
.overlay-root, .modal-root { z-index: auto; }
.toast-root { z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding-top: calc(var(--safe-top) + 18px); }

.boot-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.boot-title {
  font-family: 'Noto Serif SC', Georgia, serif;
  font-size: 46px;
  letter-spacing: 8px;
  padding-left: 8px;
  color: var(--ink);
}
.boot-sub {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink2);
}

/* 通用玻璃 / 线稿 / 浮光 / 杏光表面 */
.glass-card {
  background: var(--surface-bg);
  border: var(--surface-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--surface-blur);
  backdrop-filter: var(--surface-blur);
  border-radius: 24px;
}
.glass-card.r22 { border-radius: 22px; }
.glass-card.r28 { border-radius: 28px; }
.glass-card.r20 { border-radius: 20px; }
.glass-card.r18 { border-radius: 18px; box-shadow: var(--surface-sm-shadow); }

body[data-theme="fuguang"] .glass-card {
  border-top-color: rgba(244, 250, 251, 0.48);
  border-bottom-color: rgba(242, 246, 248, 0.24);
}

.dark-glass {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
}
body[data-theme="line"] .dark-glass {
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1.5px solid #2B2A4C;
  box-shadow: 3px 4px 0 #2B2A4C;
}
body[data-theme="fuguang"] .dark-glass {
  background: linear-gradient(120deg, rgba(231, 241, 247, 0.115), rgba(212, 231, 241, 0.055));
  border-top-color: rgba(244, 250, 251, 0.48);
  border-left-color: rgba(242, 246, 248, 0.28);
  border-right-color: rgba(242, 246, 248, 0.28);
  border-bottom-color: rgba(242, 246, 248, 0.24);
}

.solid-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}
body[data-theme="line"] .solid-card {
  border: 1.5px solid #2B2A4C;
}

/* 按钮 */
.rose-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fill-ink);
  background: var(--fill-bg);
  transition: transform 0.12s, opacity 0.15s;
}
.rose-btn:active { transform: scale(0.97); }
.rose-btn:disabled { opacity: 0.4; pointer-events: none; }
.rose-btn.full { width: 100%; }
.rose-btn.h48 { height: 48px; }
.rose-btn.h50 { height: 50px; }
.rose-btn.h40 { height: 40px; font-size: 14px; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.12s, opacity 0.15s;
}
body[data-theme="line"] .ghost-btn {
  background: #FFFFFF;
  border: 1.3px solid #2B2A4C;
}
body[data-theme="fuguang"] .ghost-btn {
  background: rgba(236, 245, 248, 0.06);
  border: 1px solid rgba(239, 249, 252, 0.30);
}
body[data-theme="xingguang"] .ghost-btn {
  background: #F5F1ED;
  border: 1px solid #EEE5DC;
}
.ghost-btn:disabled { opacity: 0.5; pointer-events: none; }
.ghost-btn.full { width: 100%; }
.ghost-btn.h40 { height: 40px; }
.ghost-btn.h48 { height: 48px; }
.ghost-btn.h52 { height: 52px; font-size: 15px; }

.glass-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 17px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fill-ink);
  background: var(--fill-bg);
}
body[data-theme="xingguang"] .glass-btn-dark.with-heart {
  background: linear-gradient(150deg, #EABD96 0%, #D69C88 55%, #C4857F 100%);
}
.glass-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 17px;
  border-radius: 18px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 0px solid transparent;
}
body[data-theme="line"] .glass-btn-light {
  background: #FFFFFF;
  border: 1.3px solid #2B2A4C;
}
body[data-theme="fuguang"] .glass-btn-light {
  background: rgba(226, 240, 250, 0.11);
  border: 1px solid rgba(239, 249, 252, 0.30);
}
body[data-theme="xingguang"] .glass-btn-light {
  background: #FFFFFF;
  border: 1px solid #E8DFD4;
}

/* 圆形玻璃按钮 */
.glass-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--surface-sm-shadow);
  color: var(--ink);
}
.glass-circle.s42 { width: 42px; height: 42px; }
.glass-circle.s36 { width: 36px; height: 36px; }
body[data-theme="line"] .glass-circle {
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1.5px solid #2B2A4C;
  box-shadow: 2px 3px 0 #2B2A4C;
}
body[data-theme="fuguang"] .glass-circle {
  background: linear-gradient(120deg, rgba(231, 241, 247, 0.115), rgba(212, 231, 241, 0.055));
  border: 1px solid rgba(242, 246, 248, 0.28);
  border-top-color: rgba(244, 250, 251, 0.48);
}
body[data-theme="xingguang"] .glass-circle {
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.glass-circle.on-dark:not(.line-stay) {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  box-shadow: none;
}
body[data-theme="line"] .glass-circle.on-dark {
  background: #FFFFFF;
  border: 1.5px solid #2B2A4C;
  color: #2B2A4C;
  box-shadow: 2px 3px 0 #2B2A4C;
}
body[data-theme="fuguang"] .glass-circle.on-dark {
  color: var(--ink);
}

/* 玻璃功能块 */
.glass-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}
.glass-tile-box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.glass-tile-shine {
  position: absolute;
  top: 1px;
  left: 10%;
  width: 80%;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.12) 55%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* 主视图框架与底栏 */
.main-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.main-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.tab-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar { display: none; }

.subpage-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body[data-theme="glass"] .subpage-backdrop[data-sub-bg="soft"] {
  background-color: #D5E1F0;
  background-image: url('/app/assets/bg_soft.webp');
}
body[data-theme="glass"] .subpage-backdrop[data-sub-bg="sky"] {
  background-color: #161A42;
  background-image: url('/app/assets/bg_glass_sky.webp');
}
body[data-theme="line"] .subpage-backdrop {
  background: linear-gradient(165deg, #F9DFE5 0%, #FAEEEC 30%, #FBF7F2 62%, #F6F2F6 100%);
}
body[data-theme="fuguang"] .subpage-backdrop[data-sub-bg="soft"] {
  background: url('/app/assets/bg_fg_soft.webp') center/cover no-repeat,
    linear-gradient(154deg, #506C80 0%, #527389 18%, #54748F 40%, #345771 66%, #132736 100%);
}
body[data-theme="fuguang"] .subpage-backdrop[data-sub-bg="sky"] {
  background: url('/app/assets/bg_fg_sky.webp') center/cover no-repeat,
    linear-gradient(154deg, #274054 0%, #1B3246 55%, #112233 100%);
}
body[data-theme="xingguang"] .subpage-backdrop {
  background: #F2EFEB;
}
body[data-theme="xingguang"] .subpage-backdrop[data-sub-bg="sky"] {
  background: radial-gradient(circle at 78% 12%, #514A41 0%, #35322E 45%, #2B2A28 100%);
}

.subpage-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.subpage-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subpage-scroll::-webkit-scrollbar { display: none; }

/* 二级顶栏 */
.glass-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: calc(max(var(--safe-top), 16px) + 6px) 16px 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.glass-header-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-theme="line"] .glass-header-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
body[data-theme="fuguang"] .glass-header-title,
body[data-theme="xingguang"] .glass-header-title {
  text-align: left;
  margin-left: 12px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
}
body[data-theme="fuguang"] .glass-header-title { font-weight: 500; }
.glass-header.on-dark .glass-header-title { color: #FFFFFF; }
body[data-theme="line"] .glass-header.on-dark .glass-header-title { color: #2B2A4C; }
body[data-theme="fuguang"] .glass-header.on-dark .glass-header-title { color: var(--ink); }

/* 底部 5 Tab 导航 */
.tab-bar-float {
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 6px;
  margin: 6px 14px calc(max(var(--safe-bottom), 10px));
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
body[data-theme="line"] .tab-bar-float {
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1.5px solid #2B2A4C;
  box-shadow: 3px 4px 0 #2B2A4C;
}
body[data-theme="fuguang"] .tab-bar-float {
  background: linear-gradient(120deg, rgba(231, 241, 247, 0.115), rgba(212, 231, 241, 0.055));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(242, 246, 248, 0.28);
  border-top-color: rgba(244, 250, 251, 0.48);
}
.tab-bar-float.dark {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.tab-bar-xg {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 4px 17px calc(max(var(--safe-bottom), 10px));
  background: #FFFFFF;
  border-radius: 23px 23px 0 0;
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.nav-item {
  flex: 1;
  height: 50px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
}
.nav-item.active.glass-item {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(60, 70, 110, 0.10);
}
.tab-bar-float.dark .nav-item.active.glass-item {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-pill-line {
  width: 44px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item.active .nav-pill-line {
  background: #FFD0D8;
  border: 1.5px solid #2B2A4C;
}
.nav-pill-calm {
  width: 44px;
  height: 31px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-theme="fuguang"] .nav-item.active .nav-pill-calm {
  background: #F4F2E9;
  box-shadow: 0 3px 15px rgba(255, 255, 255, 0.10);
}
.nav-xg-bar {
  width: 24px;
  height: 2.5px;
  border-radius: 1.25px;
  margin-bottom: 7px;
  background: transparent;
}
.nav-item.active .nav-xg-bar {
  background: #DCAF87;
}
.nav-label {
  font-size: 10.5px;
  color: var(--ink2);
  line-height: 1.1;
}
.nav-item.active .nav-label {
  color: var(--ink);
  font-weight: 500;
}
.tab-bar-float.dark .nav-label { color: rgba(255, 255, 255, 0.72); }
.tab-bar-float.dark .nav-item.active .nav-label { color: #FFFFFF; }
body[data-theme="line"] .nav-label { font-size: 11px; font-weight: 500; }
body[data-theme="line"] .nav-item.active .nav-label { font-weight: 700; }
body[data-theme="fuguang"] .nav-label,
body[data-theme="xingguang"] .nav-label { font-size: 10px; margin-top: 3px; }
body[data-theme="xingguang"] .nav-item { height: 54px; justify-content: flex-start; gap: 0; }
body[data-theme="xingguang"] .nav-label { color: #948B80; }
body[data-theme="xingguang"] .nav-item.active .nav-label { color: #282724; font-weight: 700; }
body[data-theme="fuguang"] .nav-label { color: #D3DFE6; }
body[data-theme="fuguang"] .nav-item.active .nav-label { color: #F9F8F0; }

.nav-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  border: 1.5px solid #FFFFFF;
  top: -2px;
  right: -4px;
}
body[data-theme="line"] .nav-dot { background: #F08AA2; border-color: #2B2A4C; top: 1px; right: 6px; }
body[data-theme="fuguang"] .nav-dot { border-color: #263E53; top: 1px; right: 6px; }
body[data-theme="xingguang"] .nav-dot { top: 1px; right: 6px; }

/* 分段切换 GlassSeg & 胶囊筛选 GlassPills */
.glass-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  width: 100%;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}
body[data-theme="line"] .glass-seg {
  background: #FFFFFF;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1.5px solid #2B2A4C;
  box-shadow: 2px 3px 0 #2B2A4C;
}
body[data-theme="fuguang"] .glass-seg {
  border-radius: 22px;
  background: rgba(221, 238, 246, 0.08);
  border: 1px solid rgba(239, 249, 252, 0.20);
  box-shadow: none;
}
body[data-theme="xingguang"] .glass-seg {
  border-radius: 22px;
  background: #E9E3DB;
  border: none;
  box-shadow: none;
}
.glass-seg.on-dark {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}
body[data-theme="line"] .glass-seg.on-dark {
  background: #FFFFFF;
  border: 1.5px solid #2B2A4C;
  box-shadow: 2px 3px 0 #2B2A4C;
}
body[data-theme="fuguang"] .glass-seg.on-dark {
  background: rgba(221, 238, 246, 0.08);
  border: 1px solid rgba(239, 249, 252, 0.20);
}
body[data-theme="xingguang"] .glass-seg.on-dark {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.glass-seg-btn {
  flex: 1;
  min-width: 0;
  height: 34px;
  border-radius: 17px;
  font-size: 13.5px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glass-seg.on-dark .glass-seg-btn { color: rgba(255, 255, 255, 0.75); }
.glass-seg-btn.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(60, 70, 110, 0.10);
}
.glass-seg.on-dark .glass-seg-btn.active {
  color: var(--ink);
}
body[data-theme="line"] .glass-seg-btn,
body[data-theme="line"] .glass-seg.on-dark .glass-seg-btn { height: 32px; border-radius: 16px; color: #6B6880; }
body[data-theme="line"] .glass-seg-btn.active,
body[data-theme="line"] .glass-seg.on-dark .glass-seg-btn.active {
  background: #FFD0D8;
  color: #2B2A4C;
  font-weight: 700;
  border: 1.4px solid #2B2A4C;
  box-shadow: none;
}
body[data-theme="fuguang"] .glass-seg-btn { height: 35px; border-radius: 18px; font-size: 13px; color: #DCE7EB; }
body[data-theme="fuguang"] .glass-seg-btn.active,
body[data-theme="fuguang"] .glass-seg.on-dark .glass-seg-btn.active {
  background: #F2F1E8;
  color: #263A4B;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}
body[data-theme="xingguang"] .glass-seg-btn { height: 35px; border-radius: 18px; font-size: 13px; color: #8A7C6C; }
body[data-theme="xingguang"] .glass-seg.on-dark .glass-seg-btn { color: rgba(246, 239, 230, 0.72); }
body[data-theme="xingguang"] .glass-seg-btn.active {
  background: #282724;
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: none;
}
body[data-theme="xingguang"] .glass-seg.on-dark .glass-seg-btn.active {
  background: #F4ECE3;
  color: #282724;
}

.glass-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.glass-pill-btn {
  position: relative;
  min-width: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glass-pill-btn.active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(60, 70, 110, 0.10);
}
body[data-theme="line"] .glass-pill-btn.active {
  background: #FFD0D8;
  color: #2B2A4C;
  font-weight: 700;
  border: 1.3px solid #2B2A4C;
  box-shadow: none;
}
body[data-theme="fuguang"] .glass-pill-btn.active {
  background: rgba(216, 188, 146, 0.16);
  color: #E7D2AE;
  box-shadow: none;
}
body[data-theme="xingguang"] .glass-pill-btn.active {
  background: #F1DDCA;
  color: #795A37;
  box-shadow: none;
}
.pill-dot {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  border: 1.2px solid #FFFFFF;
}
body[data-theme="line"] .pill-dot { border-color: #2B2A4C; }
body[data-theme="fuguang"] .pill-dot { border-color: #263E53; }

/* 头像 */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--rose-soft);
  flex-shrink: 0;
  display: block;
}
.avatar.ring { border: 2px solid #FFFFFF; }
body[data-theme="line"] .avatar { border: 1.5px solid #2B2A4C; }
body[data-theme="line"] .avatar.ring { box-shadow: 2px 2px 0 #2B2A4C; }
body[data-theme="fuguang"] .avatar { border: 1px solid rgba(249, 248, 239, 0.7); }
body[data-theme="fuguang"] .avatar.ring { border-width: 1.5px; }

.empty-avatar {
  border-radius: 50%;
  border: 1.5px dashed #E7A3B8;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-deep);
  flex-shrink: 0;
}
body[data-theme="fuguang"] .empty-avatar,
body[data-theme="xingguang"] .empty-avatar {
  border-color: var(--pink);
  background: var(--chip-bg);
}

/* BrandMark */
.brand-mark {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-14deg);
  pointer-events: none;
}
.brand-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 400;
  letter-spacing: 8px;
  padding-left: 8px;
  color: var(--ink);
  line-height: 1.1;
}
body[data-theme="line"] .brand-name { font-weight: 700; }
.brand-slogan {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink2);
}

/* 首页 HomeView */
.home-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.home-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(max(var(--safe-top), 14px) + 8px) 16px 6px;
  scrollbar-width: none;
}
.home-scroll::-webkit-scrollbar { display: none; }
.home-main-stack {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.home-date-main {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
body[data-theme="fuguang"] .home-date-main { font-size: 18px; }
body[data-theme="xingguang"] .home-date-main { font-size: 16px; font-weight: 700; }
.home-date-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink2);
}
.bell-wrap {
  position: relative;
  display: inline-flex;
}
.bell-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink-deep);
  border: 1.5px solid #FFFFFF;
}
body[data-theme="fuguang"] .bell-dot { background: var(--pink); border-color: #263E53; }
body[data-theme="xingguang"] .bell-dot { background: var(--pink); }

/* 首页天数主视觉 */
.days-glow-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
.days-stardust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.days-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.days-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink2);
}
body[data-theme="fuguang"] .days-kicker { font-size: 12px; letter-spacing: 6px; }
.days-num-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 2px;
}
.days-num {
  font-family: var(--font-num);
  font-size: 112px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.7);
}
body[data-theme="fuguang"] .days-num {
  font-size: 126px;
  letter-spacing: -3px;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.08);
}
.days-unit {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 14px;
}
body[data-theme="fuguang"] .days-unit { font-size: 19px; }
.days-hours {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink2);
}
.days-hours .hnum {
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--ink);
}
body[data-theme="fuguang"] .days-hours .hnum { font-size: 17px; }

/* 杏光天数纸感排版 */
.days-paper-wrap {
  position: relative;
  width: 100%;
  min-height: 210px;
  padding: 16px 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
.days-paper-stars {
  position: absolute;
  top: 8px;
  right: 0;
  width: 82px;
  aspect-ratio: 176 / 128;
  pointer-events: none;
}
.days-paper-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.days-paper-num {
  font-family: 'Outfit', sans-serif;
  font-size: 120px;
  line-height: 1.02;
  letter-spacing: -5px;
  color: var(--ink);
}
.days-paper-unit {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.days-paper-hours {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink2);
}
.days-paper-hours .hnum {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #413B32;
}

/* 双人想你胶囊条 */
.duo-shell {
  position: relative;
  margin-top: 6px;
}
.duo-bar {
  height: 80px;
  padding: 0 17px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
body[data-theme="glass"] .duo-bar {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: var(--glass-shadow);
}
body[data-theme="fuguang"] .duo-bar,
body[data-theme="xingguang"] .duo-bar {
  height: 78px;
  padding: 0 14px;
  border-radius: 27px;
}
.duo-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.duo-side.right {
  justify-content: flex-end;
  text-align: right;
}
.duo-av-wrap {
  position: relative;
  flex-shrink: 0;
}
.duo-mood-badge {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--pink);
  bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duo-mood-badge.me { right: -4px; }
.duo-mood-badge.ta { left: -4px; }
body[data-theme="fuguang"] .duo-mood-badge { background: rgba(30, 45, 60, 0.92); }
.duo-mood-badge img { width: 100%; height: 100%; object-fit: contain; }

.duo-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.duo-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duo-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink2);
  max-width: 104px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duo-status.mood { color: var(--pink-deep); }
.duo-status.empty { color: var(--ink3); }

/* HoldHeart 按钮 */
.hold-heart-anchor {
  position: relative;
  flex-shrink: 0;
  margin: 0 6px;
}
.hold-heart {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: linear-gradient(160deg, var(--pink-light) 0%, var(--pink) 55%, #D9567A 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(238, 122, 152, 0.45);
  transition: transform 0.14s ease;
}
.hold-heart.sz72 { width: 72px; height: 72px; }
.hold-heart.pressing { transform: scale(0.94); }
body[data-theme="line"] .hold-heart {
  background: #F08AA2;
  border: 1.5px solid #2B2A4C;
  box-shadow: 2px 3px 0 #2B2A4C;
}
body[data-theme="fuguang"] .hold-heart {
  background: linear-gradient(145deg, #F7F2EA 0%, #DCE3E4 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(4, 16, 28, 0.25);
}
body[data-theme="xingguang"] .hold-heart {
  background: linear-gradient(150deg, #EABD96 0%, #D69C88 55%, #C4857F 100%);
  border: none;
  box-shadow: 0 5px 14px rgba(196, 133, 127, 0.32);
}

.heart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-deep);
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(217, 86, 122, 0.3);
}
body[data-theme="line"] .heart-badge { background: #FFE7A0; color: #2B2A4C; border: 1.3px solid #2B2A4C; box-shadow: none; }
body[data-theme="fuguang"] .heart-badge { background: #D2B5BD; color: #152638; border: 1px solid #E8DADD; box-shadow: none; }
body[data-theme="xingguang"] .heart-badge { background: #E9C5A5; color: #765235; border: 1px solid #F9F1E9; box-shadow: none; }

.duo-pop-word {
  position: absolute;
  left: 50%;
  top: -66px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 16px;
  border-radius: 16px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  white-space: normal;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: var(--surface-border);
  box-shadow: var(--glass-shadow);
  z-index: 12;
  pointer-events: none;
}
body[data-theme="fuguang"] .duo-pop-word { background: #2D465C; }
@media (max-width: 380px) {
  .duo-bar,
  body[data-theme="fuguang"] .duo-bar,
  body[data-theme="xingguang"] .duo-bar { padding: 0 10px; }
  .duo-side { gap: 6px; }
  .hold-heart-anchor { margin: 0 3px; }
}

.duo-sub {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink2);
  min-height: 20px;
}
.duo-sub .num {
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--ink);
}
.duo-sub.pulse { animation: duoPulse 0.42s ease; }
@keyframes duoPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.hug-home-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  background: var(--fill-bg);
  color: var(--fill-ink);
}

/* 首页轮换卡片 */
.carousel-wrap {
  position: relative;
  margin-top: 18px;
}
.xg-paper-stack {
  position: relative;
}
.xg-paper-back-1 {
  position: absolute;
  left: 2%;
  top: 5px;
  width: 96%;
  height: calc(100% - 10px);
  border-radius: 24px;
  background: #F0DCCB;
  border: 1px solid #EDCFB5;
  transform: rotate(-4deg);
}
.xg-paper-back-2 {
  position: absolute;
  left: 1.5%;
  top: 4px;
  width: 97%;
  height: calc(100% - 8px);
  border-radius: 24px;
  background: #F5E6D8;
  border: 1px solid #EFDBCA;
  transform: rotate(3deg);
}
.carousel-card {
  position: relative;
  min-height: 174px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  touch-action: pan-y;
}
body[data-theme="xingguang"] .carousel-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid #EDD2BC;
  box-shadow: 0 8px 17px rgba(147, 116, 85, 0.12);
}
.carousel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink2);
}
.carousel-quote {
  font-family: var(--font-serif);
  font-weight: var(--emo-weight);
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 10px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--dim);
  transition: width 0.2s;
}
.carousel-dot.active {
  width: 16px;
  background: var(--ink);
}

/* 首页底部 4 格快捷 */
.home-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 12px 0 6px;
  margin-top: auto;
  flex-shrink: 0;
}
.home-screen.compact .home-scroll { padding-top: calc(max(var(--safe-top), 10px) + 6px); }
.home-screen.compact .days-glow-wrap { height: 168px; margin-top: 2px; }
.home-screen.compact .days-num { font-size: 96px; }
body[data-theme="fuguang"] .home-screen.compact .days-num { font-size: 106px; }
.home-screen.compact .days-unit { font-size: 18px; margin-bottom: 10px; }
.home-screen.compact .days-paper-wrap { min-height: 164px; padding: 10px 6px 4px; }
.home-screen.compact .days-paper-num { font-size: 100px; }
.home-screen.compact .duo-shell { margin-top: 8px; }
.home-screen.compact .duo-bar { height: 68px; padding: 0 15px; }
.home-screen.compact .carousel-wrap { margin-top: 10px; }
.home-screen.compact .carousel-card { min-height: 146px; padding: 13px 16px 12px; }
.home-screen.compact .carousel-quote { font-size: 17px; margin: 6px 0; }
.home-screen.compact .home-quick { padding: 10px 0 4px; }
.home-screen.compact .quick-item { gap: 5px; }
.home-screen.compact .quick-label { font-size: 12px; }
@media (max-height: 760px) {
  .home-scroll { padding-top: calc(max(var(--safe-top), 10px) + 6px); }
  .days-glow-wrap { height: 168px; margin-top: 2px; }
  .days-num { font-size: 96px; }
  body[data-theme="fuguang"] .days-num { font-size: 106px; }
  .carousel-card { min-height: 146px; padding: 13px 16px 12px; }
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  position: relative;
}
.quick-label {
  font-size: 12.5px;
  color: var(--ink);
}
body[data-theme="fuguang"] .quick-label,
body[data-theme="xingguang"] .quick-label { font-size: 12px; }
.quick-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--on-pink);
  border: 2px solid #FFFFFF;
}
body[data-theme="line"] .quick-badge { border: 1.3px solid #2B2A4C; }
body[data-theme="fuguang"] .quick-badge { background: #D2B5BD; color: #152638; border: 1px solid #E8DADD; }
body[data-theme="xingguang"] .quick-badge { background: #E9C5A5; color: #765235; border: 1px solid #F9F1E9; }

/* 漂浮小心心 */
.float-bit {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  z-index: 15;
  animation: floatBitUp 1.5s ease-out forwards;
}
@keyframes floatBitUp {
  0% { opacity: 0; transform: translate(var(--dx), 0) scale(1); }
  15% { opacity: 1; transform: translate(var(--dx), -24px) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), -160px) scale(0.4); }
}

/* 盲盒馆与 3D 舞台 */
.page-pad { padding: calc(max(var(--safe-top), 16px) + 10px) 16px 24px; }
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.big-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
body[data-theme="fuguang"] .big-title { font-size: 28px; font-weight: 500; }
.sub-title {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink2);
}

.box-stage {
  position: relative;
  width: 100%;
  height: 168px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 44%, #FBEBDB 0%, #F1DFE6 47%, #CFD9E9 100%);
}
.box-stage.tall { height: 254px; }
body[data-theme="line"] .box-stage {
  background: radial-gradient(circle at 50% 44%, #FFF0DC 0%, #FBE8F0 47%, #FFF8EF 100%);
}
body[data-theme="fuguang"] .box-stage {
  background: radial-gradient(circle at 50% 44%, #688394 0%, #334F63 47%, #243D4E 100%);
}
body[data-theme="xingguang"] .box-stage {
  background: radial-gradient(circle at 50% 44%, #FCE7C8 0%, #F1DDC6 47%, #ECE5DD 100%);
}
.box-light-ring1, .box-light-ring2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #FFF3EA;
  opacity: 0.65;
  pointer-events: none;
}
.box-light-ring1 { width: 265px; height: 265px; }
.box-light-ring2 { width: 214px; height: 214px; border-color: #FFF8F4; }
body[data-theme="line"] .box-light-ring1 { border-color: #E8BED0; }
body[data-theme="line"] .box-light-ring2 { border-color: #E6C5D4; }
body[data-theme="fuguang"] .box-light-ring1 { border-color: #9AB0BD; }
body[data-theme="fuguang"] .box-light-ring2 { border-color: #92ABB9; }
body[data-theme="xingguang"] .box-light-ring1 { border-color: #EED0AC; }
body[data-theme="xingguang"] .box-light-ring2 { border-color: #E7D2B6; }

.box-light-shadow {
  position: absolute;
  width: 196px;
  height: 28px;
  border-radius: 50%;
  background: #CBA9B8;
  filter: blur(12px);
  opacity: 0.36;
  transform: translateY(88px);
  pointer-events: none;
}
body[data-theme="line"] .box-light-shadow { background: #DBC0CD; }
body[data-theme="fuguang"] .box-light-shadow { background: #071820; }
body[data-theme="xingguang"] .box-light-shadow { background: #CCA785; }

.box-spark {
  position: absolute;
  pointer-events: none;
  color: #A6717D;
}
body[data-theme="fuguang"] .box-spark { color: #DFD9BC; }
body[data-theme="xingguang"] .box-spark { color: #976647; }

.egg-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.egg-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.egg-top { transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease; }
.egg-q {
  position: relative;
  z-index: 2;
  font-family: var(--font-num);
  font-weight: 500;
  color: #665150;
  opacity: 0.68;
  pointer-events: none;
}
.egg-flash {
  position: absolute;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: #FFF9E1;
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.egg-flash.on { opacity: 0.68; }

.figure-3d {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 226px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.figure-stage {
  position: relative;
  width: 230px;
  height: 192px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.figure-stage:active { cursor: grabbing; }
.figure-shadow {
  position: absolute;
  width: 132px;
  height: 132px;
  bottom: -38px;
  background: radial-gradient(circle, rgba(46, 32, 48, 0.22) 0%, rgba(46, 32, 48, 0.10) 45%, rgba(46, 32, 48, 0) 100%);
  transform: scale(1, 0.20);
  pointer-events: none;
}
.figure-img {
  width: 192px;
  height: 192px;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
}
.poke-tip {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92%;
  font-size: 11px;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 5;
}
body[data-theme="fuguang"] .poke-tip { background: rgba(32, 52, 70, 0.92); color: #F4F2E9; }
.figure-controls {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--ink2);
}
.figure-turn-btn {
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
body[data-theme="fuguang"] .figure-turn-btn { background: rgba(255, 255, 255, 0.16); }

/* 图鉴 3x2 展柜 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.monster-tile {
  position: relative;
  border-radius: 18px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.55);
}
body[data-theme="fuguang"] .monster-tile { background: rgba(255, 255, 255, 0.05); }
body[data-theme="line"] .monster-tile { border-width: 1.4px; border-color: #2B2A4C; }
.monster-tile.active-mood { border: 1.5px solid var(--pink-deep); }
.monster-badge-hidden {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9.5px;
  color: #FFFFFF;
  background: #2E263D;
  padding: 2px 6px;
  border-radius: 8px;
}
.monster-badge-count {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 8px;
}
body[data-theme="fuguang"] .monster-badge-count { background: rgba(30, 48, 66, 0.85); }

/* 心情条 */
.mood-strip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.mood-strip-scroll::-webkit-scrollbar { display: none; }
.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 18px;
  font-size: 12.5px;
  flex-shrink: 0;
  background: var(--chip-bg);
  border: var(--chip-border);
  color: var(--ink);
}
.mood-chip.active {
  background: var(--fill-bg);
  color: var(--fill-ink);
  font-weight: 500;
  border-color: transparent;
}
.mood-chip img { width: 26px; height: 26px; object-fit: contain; }

/* 情侣券真打孔票根卡 */
.coupon-card {
  position: relative;
  display: flex;
  align-items: center;
  height: 100px;
  overflow: hidden;
  border-radius: 22px;
}
.coupon-card.dim { opacity: 0.55; }
.coupon-card.focused { outline: 1.5px solid var(--pink-deep); }
.coupon-stub {
  width: 92px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.coupon-dash {
  width: 0;
  height: 76%;
  border-left: 1.2px dashed;
  flex-shrink: 0;
}
.coupon-body {
  flex: 1;
  min-width: 0;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 回忆时间轴 */
.timeline-wrap {
  position: relative;
}
.timeline-axis {
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
}
body[data-theme="line"] .timeline-axis { background: rgba(43, 42, 76, 0.22); }
body[data-theme="fuguang"] .timeline-axis { width: 1px; background: rgba(200, 217, 226, 0.30); }
body[data-theme="xingguang"] .timeline-axis { width: 1px; background: #D6C4B0; }
.timeline-date-pill {
  width: 44px;
  padding: 6px 0;
  border-radius: 14px;
  text-align: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  border: var(--surface-border);
  position: relative;
  z-index: 1;
}
body[data-theme="fuguang"] .timeline-date-pill { background: rgba(28, 48, 65, 0.85); }
body[data-theme="xingguang"] .timeline-date-pill { background: #F2EFEB; border: none; }

/* 表单与输入框 */
.field-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.input-pill, .input-box, .area-box {
  width: 100%;
  min-width: 0;
  background: var(--paper-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
body[data-theme="glass"] .solid-card .input-pill,
body[data-theme="glass"] .solid-card .input-box,
body[data-theme="glass"] .solid-card .area-box { border-color: rgba(36, 33, 44, 0.14); }
body[data-theme="fuguang"] select option { background: #2D465C; color: #F4F2E9; }
body[data-theme="line"] .input-pill,
body[data-theme="line"] .input-box,
body[data-theme="line"] .area-box { border: 1.3px solid #2B2A4C; }
.input-pill { height: 44px; padding: 0 16px; border-radius: 22px; }
.input-box { height: 46px; padding: 0 16px; border-radius: 16px; }
.area-box { padding: 12px 16px; border-radius: 16px; resize: none; line-height: 1.55; }
.input-pill::placeholder, .input-box::placeholder, .area-box::placeholder { color: var(--ink3); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 13px;
  background: var(--paper-bg);
  border: var(--chip-border);
  color: var(--ink2);
}
body[data-theme="glass"] .chip-btn { border: 1px solid var(--line); }
.chip-btn.active {
  background: var(--fill-bg);
  color: var(--fill-ink);
  border-color: transparent;
  font-weight: 500;
}

/* Switch2 开关 */
.switch2 {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  padding: 4px;
  background: rgba(36, 33, 44, 0.16);
  display: inline-flex;
  align-items: center;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.switch2.on { background: var(--pink); }
.switch2-knob {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}
.switch2.on .switch2-knob { transform: translateX(20px); }
body[data-theme="fuguang"] .switch2,
body[data-theme="xingguang"] .switch2 {
  background: #E9E3DB;
}
body[data-theme="fuguang"] .switch2 {
  padding: 3px;
  background: rgba(226, 240, 250, 0.10);
  border: 1px solid rgba(239, 249, 252, 0.30);
}
body[data-theme="fuguang"] .switch2 .switch2-knob { background: #AFC2CF; }
body[data-theme="fuguang"] .switch2.on,
body[data-theme="xingguang"] .switch2.on { background: var(--fill-bg); }
body[data-theme="fuguang"] .switch2.on .switch2-knob,
body[data-theme="xingguang"] .switch2.on .switch2-knob { background: var(--fill-ink); }
.switch2.on-dark,
body[data-theme="fuguang"] .switch2.on-dark,
body[data-theme="xingguang"] .switch2.on-dark {
  padding: 3px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.switch2.on-dark.on,
body[data-theme="xingguang"] .switch2.on-dark.on {
  padding: 4px;
  background: var(--pink);
  border-color: transparent;
}
body[data-theme="fuguang"] .switch2.on-dark.on {
  padding: 4px;
  background: #E9B95F;
  border-color: transparent;
}
body[data-theme="xingguang"] .switch2.on-dark.on .switch2-knob { background: #FFFFFF; }
body[data-theme="fuguang"] .switch2.on-dark.on .switch2-knob { background: #1B2336; }

/* 列表行 SettingRow */
.setting-row {
  width: 100%;
  min-height: 54px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.row-divider {
  width: 100%;
  height: 0.5px;
  background: var(--hair);
}

/* BottomSheet & 居中弹框 */
.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(30, 24, 50, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}
.sheet-panel {
  width: 100%;
  max-height: 90%;
  background: var(--sheet-bg);
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: max(var(--safe-bottom), 12px);
  animation: slideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--dim);
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
  flex-shrink: 0;
}
.sheet-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dialog-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(30, 24, 50, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog-card {
  width: 100%;
  max-width: 310px;
  padding: 24px 20px 20px;
  border-radius: 26px;
  background: var(--pop-bg);
  box-shadow: 0 20px 50px rgba(30, 24, 50, 0.25);
  text-align: center;
}
body[data-theme="line"] .dialog-card { border: 1.5px solid #2B2A4C; box-shadow: 3px 4px 0 #2B2A4C; }

.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(36, 33, 44, 0.88);
  color: #FFFFFF;
  font-size: 13px;
  max-width: 88%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  animation: fadeIn 0.16s ease;
}

/* 照片网格与上传框 */
.photo-field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.photo-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
}
.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.photo-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: rgba(67, 67, 95, 0.82);
  color: #FFFFFF;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-add-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px dashed #E7B3C3;
  background: var(--paper-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  gap: 2px;
}
body[data-theme="fuguang"] .photo-add-cell,
body[data-theme="xingguang"] .photo-add-cell { border-color: var(--line); }

/* 3D 星星瓶动画与排版 */
@keyframes starTwinkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.star-twinkle { animation: starTwinkle 1.2s ease-in-out infinite; }

@keyframes cardReveal {
  from { opacity: 0; transform: scale(0.25) rotate(-24deg); }
  to { opacity: 1; transform: scale(1) rotate(-1.2deg); }
}
.star-paper-unfold {
  width: 330px;
  max-width: 90%;
  padding: 22px 22px 18px;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(20, 16, 40, 0.35);
  animation: cardReveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 6 格 OTP */
.otp-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.otp-cell {
  flex: 1;
  height: 50px;
  border-radius: 12px;
  background: rgba(36, 33, 44, 0.05);
  border: 1.5px solid rgba(36, 33, 44, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 24px;
  color: var(--ink);
}
body[data-theme="fuguang"] .otp-cell { background: rgba(226, 240, 250, 0.08); border-color: rgba(239, 249, 252, 0.20); }
body[data-theme="xingguang"] .otp-cell { background: #FFFFFF; border-color: #E8DFD4; }
.otp-cell.active { border-color: var(--pink); }
.otp-hidden-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 20px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(36px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
