:root {
  --pink: #FFB6C1;
  --pink-dark: #FF8DA1;
  --pink-deep: #FF6B8A;
  --bg: #FFF5F7;
  --card: #FFFFFF;
  --text: #4A3A40;
  --text-secondary: #B08A96;
  --shadow: 0 4px 18px rgba(255, 107, 138, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --purple-soft: #FFE8EC;
  --purple-line: #FFD6DD;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 72%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}
.sidebar.open { transform: translateX(0); }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar-header {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  padding: 48px 24px 32px;
  text-align: center;
  color: #fff;
  position: relative;
}
.sidebar-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.sidebar-close:active { background: rgba(255,255,255,0.45); }
.sidebar-header .avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sidebar-header .avatar svg { width: 100%; height: 100%; }
.sidebar-header .nickname { margin: 0; font-size: 22px; }
.sidebar-header .motto { margin: 6px 0 0; opacity: 0.95; font-size: 14px; }

.sidebar-menu {
  flex: 1 0 auto;
  min-height: 0;
  padding: 16px 0;
  overflow-y: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.15s;
}
.menu-item:active { background: #F6F2FF; }
.menu-item .icon { font-size: 22px; width: 28px; text-align: center; }

.sidebar-actions { padding: 16px 20px 24px; border-top: 1px solid #EDE4FF; }
.action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid #EDE4FF;
  background: #fff;
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
}
.action-btn.danger { color: var(--pink-deep); border-color: #D9CCFF; }
.action-btn:active { background: #F6F2FF; }
.sidebar-actions .hint { text-align: center; color: var(--text-secondary); font-size: 12px; margin: 8px 0 0; }

/* 主内容 */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 顶部栏 */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 4px;
}
.brand { flex: 1; }
.brand h1 { margin: 0; font-size: 18px; font-weight: 700; }
.brand p { margin: 2px 0 0; font-size: 13px; opacity: 0.9; }
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.topbar-avatar svg, .topbar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* 页面 */
.pages { padding: 16px; padding-bottom: 90px; }
.page { display: none; animation: fadeIn 0.2s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 问候卡片（头像区） */
.hero-card {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute;
  right: -24px;
  top: -24px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.hero-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.hero-avatar svg { width: 100%; height: 100%; }
.hero-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-text h2 { margin: 0; font-size: 22px; font-weight: 700; }
.hero-text p { margin: 4px 0 0; opacity: 0.95; font-size: 14px; }
.hero-actions { display: flex; gap: 8px; margin-top: 12px; }
.hero-pill {
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}
.hero-pill:active { background: rgba(255,255,255,0.32); }
.hero-pill.active { background: #fff; color: var(--pink-deep); border-color: #fff; }
.sync-pill { background: #fff; color: var(--pink-deep); border-color: #fff; font-weight: 600; }
.sync-pill:active { background: #f0e9ff; }
.sync-pill:disabled { opacity: 0.6; }

/* 口令输入栏 */
.command-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--purple-line);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.cmd-icon { font-size: 16px; opacity: 0.55; }
.cmd-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}
.cmd-input::placeholder { color: var(--text-secondary); }
.cmd-exec {
  border: none;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}
.cmd-exec:active { opacity: 0.85; }

/* 模块卡片列表（垂直全宽） */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card.dragging { opacity: 0.95; box-shadow: 0 12px 30px rgba(124, 92, 224, 0.5); transform: scale(1.02); }
.stat-card-placeholder {
  border: 2px dashed var(--purple-line);
  border-radius: var(--radius);
  background: var(--purple-soft);
}
.drag-handle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--purple-line);
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 3;
}
.home-grid-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  margin: -4px 0 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--purple-soft);
  border-radius: 14px;
  position: relative;
  z-index: 1;
}
.stat-meta { flex: 1; min-width: 0; position: relative; z-index: 1; }
.stat-title { font-size: 16px; font-weight: 700; color: var(--text); }
.stat-sub { margin-top: 3px; font-size: 13px; color: var(--text-secondary); }
.stat-badge {
  flex: 0 0 auto;
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-right: 24px;
}

/* 封存（隐私模糊）模式 */
body.sealed #home-grid .stat-card { filter: blur(7px); }
body.sealed #home-grid { pointer-events: none; }
.progress {
  margin-top: 12px;
  height: 6px;
  background: #EDE4FF;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-dark), var(--pink-deep));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress.large { height: 10px; }

/* 今日计划 */
.today-plan {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 120px;
}
.today-plan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.today-plan-header .plan-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--purple-soft);
}
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F6F2FF;
}
.todo-list li:last-child { border-bottom: none; }
.todo-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pink-deep);
  flex-shrink: 0;
}
.todo-list .todo-text { flex: 1; font-size: 15px; }
.todo-list .todo-text.done { text-decoration: line-through; color: var(--text-secondary); }
.todo-list .delete {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 16px;
}
.mic-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep));
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(255, 133, 162, 0.4);
}
.mic-btn:active { transform: scale(0.96); }

/* 页面卡片 */
.page-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.page-card.center { text-align: center; }
.page-title { margin: 0 0 18px; font-size: 18px; }

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.input-row.vertical { flex-direction: column; }
.input-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #EDE4FF;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
}
.input-row input:focus { border-color: var(--pink-dark); }
.meal-date-row { align-items: center; }
.meal-date-row label { font-size: 15px; color: var(--text-secondary); white-space: nowrap; }
.meal-date-row input[type="date"] { flex: 1; color: var(--text); }

/* 心情 + 照片 */
.meal-extra { margin-bottom: 14px; }
.mood-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mood-label { font-size: 14px; color: var(--text-secondary); margin-right: 2px; }
.mood-btn {
  border: 1px solid #EDE4FF;
  background: #fff;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
}
.mood-btn:active { transform: scale(0.92); }
.mood-btn.selected {
  background: linear-gradient(135deg, #FFE3EC, #FFC2D4);
  border-color: var(--pink-deep);
  box-shadow: 0 2px 8px rgba(255, 133, 162, 0.25);
}
.photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#meal-photo-btn, #meal-album-btn, #em-photo-btn, #em-album-btn {
  border: 1px dashed var(--pink-deep);
  background: #FFF6F9;
  color: var(--pink-deep);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
#meal-photo-btn:active, #meal-album-btn:active,
#em-photo-btn:active, #em-album-btn:active { background: #FFE9F1; }
#em-photo-btn, #em-album-btn { margin-right: 8px; margin-bottom: 8px; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.5); color: #fff;
  font-size: 12px; line-height: 20px; padding: 0; cursor: pointer;
}

/* 列表中的缩略图与心情 */
.list.compact li { align-items: flex-start; }
.meal-thumb {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  flex-shrink: 0; margin-right: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.meal-mood { margin-right: 4px; }

/* 囤物清单 */
.page-sub { font-size: 13px; color: var(--text-secondary); margin: -6px 0 14px; }
.stock-form { margin-bottom: 16px; }
.stock-qty-input { max-width: 120px; }
.stock-items .stock-item { align-items: center; }
.stock-main { flex: 1; text-align: left; min-width: 0; }
.stock-title { font-size: 15px; font-weight: 600; color: var(--text); }
.stock-qty { font-size: 13px; color: var(--pink-deep); font-weight: 400; margin-left: 4px; }
.stock-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 12px; color: var(--text-secondary); }
.stock-exp { font-weight: 600; }
.stock-exp.soon { color: #E8833A; }
.stock-exp.expired { color: #E5484D; }
.stock-item.expired { background: #FFF5F5; border-radius: 12px; }
.stock-item.soon { background: #FFF9F0; border-radius: 12px; }
.stock-note { color: var(--text-secondary); }
/* 首页囤物摘要 */
.stock-list { list-style: none; margin: 0; padding: 0; }
.stock-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F6F2FF; font-size: 14px; }
.stock-list li:last-child { border-bottom: none; }
.stock-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-exp.soon, .stock-list .stock-exp.soon { color: #E8833A; }
.stock-list .stock-exp.expired { color: #E5484D; }
.meal-select {
  padding: 12px 14px;
  border: 1px solid #EDE4FF;
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  color: var(--text);
  max-width: 96px;
}
.meal-select:focus { border-color: var(--pink-dark); }
.input-row button, .btn-group button, #schedule-add, #habit-add, #hair-add, #book-add {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep));
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}
.input-row button:active, .btn-group button:active { opacity: 0.9; }
.time-row { display: flex; align-items: center; gap: 8px; }
.time-row input { flex: 1; text-align: center; }

.big-stat { font-size: 48px; font-weight: 700; color: var(--pink-deep); margin: 12px 0; }
.big-stat small { font-size: 18px; color: var(--text-secondary); font-weight: 400; }

.btn-group { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.btn-group button.primary { flex: 1; }
.btn-group button { background: #fff; color: var(--pink-deep); border: 1px solid var(--pink-dark); }

.water-cups {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.water-cup {
  font-size: 28px;
  opacity: 0.25;
  transition: opacity 0.2s;
}
.water-cup.filled { opacity: 1; }

.meal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}
.meal-tag {
  padding: 10px 16px;
  border: 1px solid #EDE4FF;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}
.meal-tag.selected {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep));
  color: #fff;
  border-color: transparent;
}

.list.compact { list-style: none; margin: 0; padding: 0; }
.list.compact li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F6F2FF;
}
.list.compact li:last-child { border-bottom: none; }
.list.compact .info { flex: 1; text-align: left; }
.list.compact .title { font-size: 15px; }
.list.compact .meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.list.compact .actions { display: flex; gap: 8px; align-items: center; }
.list.compact button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
}
.list.compact .edit-btn {
  color: var(--pink-deep);
  border: 1px solid #FFD3E0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}
.list.compact .edit-btn:active { background: #FFF0F5; }
.list.compact .del-btn {
  color: #E57373;
  border: 1px solid #FFD9D9;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}
.list.compact .del-btn:active { background: #FFF0F0; }

/* 灵感模块：标签页 + 带图列表 */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs .tab {
  flex: 1;
  border: 1px solid var(--purple-line);
  background: #fff;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
}
.tabs .tab.active {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}
.idea-list .idea-item { flex-wrap: wrap; }
.idea-list .idea-img { width: 100%; margin-bottom: 8px; }
.idea-list .idea-img img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* 音乐播放按钮 */
.idea-actions-row { display: flex; gap: 8px; align-items: center; }
.music-play-btn {
  background: var(--pink-deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.music-play-btn:active { background: #e05570; }

/* 本页迷你播放器 + 歌词（吸顶） */
.music-nowplaying {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  padding-top: 2px;
}
.music-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #FFD3E0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(255,105,150,0.14);
}
.music-mini.hidden { display: none; }
/* 黑胶唱片封面：圆形 + 沟纹 + 中心标 */
.music-mini-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #0d0d0d;
  background:
    radial-gradient(circle at center, #fff 0 15%, rgba(255,255,255,0) 15%),
    repeating-radial-gradient(circle at center, #161616 0 1.5px, #2c2c2c 1.5px 3.5px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  /* 默认静止；播放时由 .playing 触发旋转，暂停时冻结在当前角度 */
  animation: vinylSpin 4s linear infinite;
  animation-play-state: paused;
}
.music-mini.playing .music-mini-disc {
  animation-play-state: running;
}
.music-mini-cover {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f4f4;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.music-mini-info { flex: 1; min-width: 0; }
.music-mini-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.music-mini-track {
  height: 4px;
  border-radius: 4px;
  background: #FFE3EC;
  overflow: hidden;
}
.music-mini-bar {
  height: 100%;
  width: 0%;
  background: var(--pink-deep);
  border-radius: 4px;
  transition: width 0.2s linear;
}
.music-mini-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-mini-btn:active { background: var(--pink-dark); }
.music-mini-btn[title="在网易云打开"] { font-size: 17px; }
.music-mini-btn[title="关闭"] { background: #eee; color: #888; }

/* 滚动歌词面板 */
.music-lyric {
  position: relative;
  height: 140px;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7fa 0%, #fff 50%, #fff7fa 100%);
  border: 1px solid #FFE3EC;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.music-lyric.hidden { display: none; }
/* 网易云会员整曲（登录态）卡片 */
.music-vip-card {
  background: linear-gradient(135deg, #fff6f9 0%, #fff 100%);
  border: 1px solid #FFD6E2;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.music-vip-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 10px;
}
.music-vip-status {
  font-size: 12px; font-weight: 500; color: #b0a8ad;
  background: #f3eef0; padding: 2px 8px; border-radius: 999px;
}
.music-vip-status.on { color: #fff; background: var(--pink-deep); }
.music-vip-body { display: flex; gap: 8px; align-items: center; }
.music-vip-input {
  flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #f0d8e0;
  border-radius: 10px; font-size: 13px; background: #fff; color: var(--text-primary);
}
.music-vip-input:focus { outline: none; border-color: var(--pink-deep); }
.music-vip-btn {
  flex-shrink: 0; padding: 8px 14px; border: none; border-radius: 10px;
  background: var(--pink-deep); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.music-vip-btn:active { opacity: 0.85; }
.music-vip-btn.ghost { background: #fff; color: #b0a8ad; border: 1px solid #f0d8e0; }
.music-vip-tip { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: #9a9298; }
.music-vip-tip b { color: var(--pink-deep); }
.music-lyric-inner {
  position: relative;
  padding: 58px 14px;            /* 上下留白 = 半高，使当前行居中 */
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.music-lyric-line {
  text-align: center;
  font-size: 13px;
  line-height: 2.1;
  color: #b0a8ad;
  transition: color 0.3s, font-size 0.3s, font-weight 0.3s;
  cursor: pointer;
  padding: 1px 0;
}
.music-lyric-line .sub {
  display: block;
  font-size: 11px;
  color: #c8c0c5;
  line-height: 1.6;
}
.music-lyric-line.active {
  color: var(--pink-deep);
  font-size: 15px;
  font-weight: 700;
}
.music-lyric-line.active .sub { color: var(--pink); }
.music-lyric-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #bbb;
}
.music-lyric-empty.hidden { display: none; }

/* 播放中动画：跳动均衡器 + 封面脉冲光圈 */
.music-mini-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; min-width: 0; }
.music-mini-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; width: 18px; flex-shrink: 0; }
.music-mini-eq span {
  width: 3px;
  height: 100%;
  background: var(--pink-deep);
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.3);
}
.music-mini.playing .music-mini-eq span { animation: eqJump 0.9s ease-in-out infinite; }
.music-mini.playing .music-mini-eq span:nth-child(2) { animation-delay: 0.15s; }
.music-mini.playing .music-mini-eq span:nth-child(3) { animation-delay: 0.3s; }
.music-mini.playing .music-mini-eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eqJump {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* 口才训练（言语修炼场） */
.speech-card {
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
}
.speech-mode {
  display: inline-block;
  font-size: 12px;
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid #FFD3E0;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.speech-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  min-height: 56px;
}
.speech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.speech-actions .water-main-btn { flex: 1; min-width: 96px; }
.water-main-btn.ghost {
  background: #fff;
  color: var(--pink-deep);
  border: 1px solid #FFD3E0;
}
.water-main-btn.ghost:active { background: #FFF0F5; }
.speech-score {
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--purple-line);
}
.score-big { font-size: 40px; font-weight: 800; line-height: 1; }
.score-big span { font-size: 16px; font-weight: 600; margin-left: 2px; }
.score-big.good { color: #3FB984; }
.score-big.mid { color: #FFB020; }
.score-big.low { color: #E57373; }
.score-verdict { font-size: 14px; color: var(--text); margin: 8px 0 4px; }
.score-detail { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.score.good { color: #3FB984; }
.score.mid { color: #FFB020; }
.score.low { color: #E57373; }

/* 学习：粤语 / 英语 卡片 */
.lang-card {
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
}
.lang-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--pink-deep);
  background: #fff;
  border: 1px solid #FFD3E0;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.lang-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  min-height: 30px;
}
.lang-jp {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-style: italic;
}
.lang-cn {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
  min-height: 24px;
}

.empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 24px 0;
  display: none;
}
.empty.show { display: block; }

/* 办公室报销 */
.reimburse-form .reimburse-line { display: flex; gap: 8px; }
.reimburse-form .reimburse-line input { flex: 1; min-width: 0; }
.reimburse-form .reimburse-line #reimburse-item { flex: 2; }
.reimburse-form .reimburse-line #reimburse-amount { flex: 1; }
.reimburse-form .reimburse-line #reimburse-date { flex: 2; }
.reimburse-item.done .title { text-decoration: line-through; color: var(--text-secondary); }
.reimburse-item.done .rb-amount { color: var(--text-secondary); }
.rb-badge {
  display: inline-block; font-size: 11px; color: #fff;
  background: #C9B8D8; border-radius: 6px; padding: 1px 6px; margin-left: 4px;
  vertical-align: middle;
}
.rb-amount { font-size: 15px; font-weight: 600; color: var(--pink-deep); white-space: nowrap; margin: 0 8px; }
.reimburse-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #EDE4FF, #F6F2FF);
  position: sticky; bottom: 0;
}
.reimburse-total { font-size: 15px; color: var(--text); }
.reimburse-total strong { font-size: 19px; color: var(--pink-deep); }
.reimburse-pending { font-size: 12px; color: var(--text-secondary); margin-left: 6px; }
.reimburse-summary #reimburse-copy {
  border: none; border-radius: 999px; padding: 8px 16px;
  background: #fff; color: var(--pink-deep); border: 1px solid var(--pink-dark);
  font-size: 13px; white-space: nowrap;
}
.reimburse-summary #reimburse-copy:active { opacity: 0.9; }

/* 报销内联编辑 */
.reimburse-item.editing { align-items: stretch; }
.rb-edit { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rb-edit-row { display: flex; gap: 8px; }
.rb-edit-row input { flex: 1; min-width: 0; }
.rb-edit .actions { justify-content: flex-end; gap: 8px; }
.rb-edit .actions button {
  padding: 6px 14px; border-radius: 999px; border: none; font-size: 13px; white-space: nowrap;
}
.rb-edit .actions [data-action="save"] { background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep)); color: #fff; }
.rb-edit .actions [data-action="cancel"] { background: #fff; color: var(--pink-deep); border: 1px solid var(--pink-dark); }

/* 习惯打卡 */
.habit-add-row { display: flex; gap: 8px; }
.habit-add-row input { flex: 1; }
.habit-add-row button { white-space: nowrap; }
.list.compact li.habit-item {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px;
  margin: 0 2px 8px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 1px 5px rgba(255,179,198,0.18);
  backdrop-filter: blur(2px);
}
.habit-main { display: flex; align-items: center; gap: 10px; }
.habit-icon {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.habit-info { flex: 1; text-align: left; min-width: 0; }
.habit-name { font-size: 14px; font-weight: 600; color: var(--text); }
.habit-streak { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.habit-toggle {
  border: none; border-radius: 999px; padding: 6px 14px;
  background: rgba(255,255,255,0.85); color: var(--pink-deep);
  border: 1px solid var(--pink-dark);
  font-size: 13px; white-space: nowrap;
}
.habit-toggle.done { color: #fff; border-color: transparent; }
.habit-toggle:active { opacity: 0.9; }
.habit-week { display: flex; flex-direction: column; gap: 3px; padding-left: 44px; }
.habit-week-labels, .habit-wk-label { font-size: 10px; color: var(--text-secondary); }
.habit-wk-label.today { color: var(--pink-deep); font-weight: 700; }
.habit-dots { display: flex; gap: 5px; }
.habit-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(240,226,232,0.75); flex: 1; max-width: 26px;
  border: 1px solid rgba(234,211,217,0.85);
}
.habit-dot.on { border-color: transparent; }
.habit-dot.today { box-shadow: 0 0 0 2px rgba(255,179,198,0.5); }
.habit-del { text-align: right; }
.habit-del button {
  border: none; background: transparent; color: #cc8a99;
  font-size: 12px; padding: 2px 4px;
}
.habit-del button:active { color: #d9534f; }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid #EDE4FF;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 10px;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  transition: color 0.15s;
}
.nav-item.active { color: var(--pink-deep); }
.nav-icon { font-size: 22px; }

/* 同步提示 */
.sync-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(51,51,51,0.9);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 300;
}
.sync-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 读书详情输入 */
.read-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.read-input input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #EDE4FF;
  border-radius: 8px;
  font-size: 13px;
}
.read-input button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: var(--pink-dark);
  color: #fff;
  font-size: 13px;
}

.center { text-align: center; }
.section-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 18px 0 8px;
}
.water-main-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(255, 133, 162, 0.35);
}
.water-main-btn:active { opacity: 0.9; }

/* 喝水弹窗 */
.water-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.water-modal.open { display: flex; }
.water-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.water-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 78vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px 24px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.water-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.water-modal-header h3 { margin: 0; font-size: 17px; }
.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F6F2FF;
  color: var(--pink-deep);
  font-size: 20px;
  line-height: 1;
}
.drink-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.drink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 86px;
  padding: 14px 6px;
  background: #FBF8FF;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.drink-card:active { transform: scale(0.95); background: #EDE4FF; }
.drink-card.selected {
  background: #EDE4FF;
  border-color: var(--pink-dark);
}
.drink-card.flash { animation: drinkFlash 0.45s ease; }
@keyframes drinkFlash {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); background: #D9CCFF; border-color: var(--pink-dark); }
  100% { transform: scale(1); }
}
.drink-icon { font-size: 30px; line-height: 1; }
.drink-name { font-size: 14px; color: var(--text); }
.drink-ml { font-size: 12px; color: var(--text-secondary); }
.water-modal-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  margin: 4px 0 2px;
}

/* ========== 喝水模块重设计（参考图风格）========== */
.water-target-badge {
  font-size: 13px;
  color: #5a9a6e;
  background: #eaf6ee;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: auto;
  font-weight: 500;
  white-space: nowrap;
}

/* 圆环进度 */
.water-ring-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0 16px;
}
.water-ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.water-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.water-ring-bg {
  fill: none;
  stroke: #e8f2ea;
  stroke-width: 10;
}
.water-ring-fill {
  fill: none;
  stroke: #6ab881;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.water-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.water-pct {
  font-size: 28px;
  font-weight: 700;
  color: #4a9a5e;
  line-height: 1.1;
}
.water-ml-total {
  font-size: 12px;
  color: #8ab89a;
}

/* 右侧统计文字 */
.water-stats {
  flex: 1;
  min-width: 0;
}
.water-stats p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.water-stats b {
  color: #4a9a5e;
  font-weight: 600;
}
.water-hint {
  font-size: 12px !important;
  color: #bbb !important;
}

/* 快捷按钮行 */
.water-quick-btns {
  display: flex;
  gap: 10px;
  padding: 4px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.water-qbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 10px 14px;
  background: #f7faf8;
  border: 1.5px solid #dce8dc;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.water-qbtn:active { transform: scale(0.94); background: #e2efe4; border-color: #6ab881; }
.wqb-icon { font-size: 22px; line-height: 1; }
.wqb-label { font-size: 13px; color: #4a9a5e; font-weight: 600; }
.water-qbtn-custom .wqb-label { color: #c08030; }
.water-qbtn-more .wqb-label { color: #888; }

/* 自定义输入行 */
.water-custom-row {
  display: flex;
  gap: 8px;
  padding: 8px 0 4px;
  align-items: center;
}
.water-custom-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #dce8dc;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.water-custom-row input:focus { border-color: #6ab881; }
.water-custom-ok {
  padding: 10px 18px;
  background: linear-gradient(135deg, #6ab881, #4a9a5e);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.water-custom-ok:active { opacity: 0.85; }

/* 7天趋势柱状图 */
.water-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 110px;
  padding: 8px 4px 0;
  position: relative;
}
.water-chart::after {
  /* 底部基线 */
  content: '';
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
}
.wc-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}
.wc-bar {
  width: 70%;
  max-width: 32px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, #8ecfa3, #6ab881);
  transition: height 0.4s ease;
  min-height: 3px;
  position: absolute;
  bottom: 28px;
}
.wc-bar.today {
  background: linear-gradient(to top, #6ab881, #4a9a5e);
  box-shadow: 0 0 8px rgba(106,184,129,.25);
}
.wc-bar-val {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #6ab881;
  font-weight: 600;
  white-space: nowrap;
}
.wc-date {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
}
.wc-date.is-today { color: #4a9a5e; font-weight: 600; }

/* 喝水列表项优化 */
#water-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}
#water-list li .info { flex: 1; min-width: 0; }
#water-list li .info .title { font-size: 14px; }
#water-list li .info .title small { color: #999; font-weight: 400; }
#water-list li .info .meta { font-size: 12px; color: #bbb; margin-top: 2px; }
#water-list li .actions button {
  padding: 4px 12px;
  font-size: 12px;
  color: #e07080;
  background: #fef0f3;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#water-list li .actions button:active { background: #fddce2; }

/* Ulike 计划 */
.hair-overview {
  background: linear-gradient(135deg, #F6F2FF, #EDE4FF);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 4px;
}
.hair-phase {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hair-phase > span {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink-deep);
}
.hair-phase > small {
  font-size: 14px;
  color: var(--text-secondary);
}
.hair-start {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hair-start span { color: var(--text); font-weight: 600; }
.hair-parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hair-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  background: #FBF8FF;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.hair-part.done {
  background: #EDE4FF;
  border-color: var(--pink-dark);
}
.hair-part-icon { font-size: 22px; line-height: 1; }

/* 近期排期：显示已打卡部位标签 */
.hair-upcoming-item { align-items: flex-start; }
.hair-upcoming-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 54%;
  padding-top: 2px;
}
.hair-upcoming-tag {
  padding: 4px 10px;
  background: #EDE4FF;
  border: 1px solid var(--pink-dark);
  border-radius: 12px;
  font-size: 12px;
  color: var(--pink-deep);
  white-space: nowrap;
}
.hair-upcoming-tag.pending {
  background: #F5F5F5;
  border-color: #E0E0E0;
  color: var(--text-secondary);
}

/* 全部完成的那一行：淡淡高亮，一眼看出完成效果 */
.hair-upcoming-item.all-done {
  background: linear-gradient(135deg, #FBF7FF, #FFF5F8);
  border-radius: 12px;
}
.hair-today-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--pink-deep);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.hair-history-del {
  border: none;
  background: #F5F5F5;
  color: var(--text-secondary);
  font-size: 11px;
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.hair-history-del:active { background: #ECECEC; }

.hair-history-edit {
  border: none;
  background: #EDE4FF;
  color: var(--pink-deep);
  font-size: 11px;
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  margin-right: 4px;
}
.hair-history-edit:active { background: #E0D4FA; }

/* Ulike 编辑弹窗里的部位选择 */
.hair-edit-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 6px 0 10px;
}
.hair-edit-part {
  padding: 8px 16px;
  border: 1.5px solid #EDE4FF;
  background: #fff;
  color: var(--pink-deep);
  border-radius: 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.hair-edit-part.active {
  background: linear-gradient(135deg, #FFB3C6, #D9A7E8);
  border-color: transparent;
  color: #fff;
}

/* 响应式 */
@media (min-width: 481px) {
  #app { border-left: 1px solid #EDE4FF; border-right: 1px solid #EDE4FF; }
}

/* 平板 / 电脑：左侧常驻导航 + 多列卡片 */
@media (min-width: 768px) {
  #app {
    flex-direction: row;
    max-width: 1180px;
    height: 100vh;
    border-radius: 0;
    box-shadow: 0 0 48px rgba(255, 133, 162, 0.14);
  }
  .sidebar {
    position: relative;
    transform: none;
    width: 248px;
    height: 100vh;
    flex-shrink: 0;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.04);
    z-index: 1;
  }
  .sidebar.open { transform: none; }
  .sidebar-overlay { display: none !important; }
  .menu-toggle { display: none; }
  .main {
    flex: 1;
    height: 100vh;
  }
  .bottom-nav { display: none; }
  .pages { padding: 24px 30px 40px; }

  /* 首页：上方英雄卡 + 今日计划 并排，下方卡片铺满 */
  #page-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  #page-home .hero-card { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  #page-home .today-plan { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  #page-home .card-grid { grid-column: 1 / -1; grid-row: 2; }
  #page-home .home-grid-hint { grid-column: 1 / -1; grid-row: 3; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .page-card { max-width: 880px; }

  /* 弹窗在宽屏居中为对话框 */
  .modal, .water-modal {
    align-items: center;
    justify-content: center;
  }
  .modal-content, .water-modal-content {
    max-width: 520px;
    border-radius: 20px;
  }
  .water-modal-content { border-radius: 24px; }
}

/* 大屏：卡片再铺宽 */
@media (min-width: 1180px) {
  #app { max-width: 1280px; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .book-grid { grid-template-columns: repeat(4, 1fr); }
  .page-card { max-width: 960px; }
}

/* 通用弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp 0.25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-header h3 { margin: 0; font-size: 17px; }
.modal-body { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
}
.modal-actions .secondary { background: #F5F5F5; color: var(--text); }
.modal-actions .primary { background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep)); color: #fff; }
.modal-actions .danger { background: #fff; color: var(--pink-deep); border: 1px solid #D9CCFF; }
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #EDE4FF;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--pink-dark); }
.fg textarea { min-height: 80px; resize: vertical; }
.fg-row { display: flex; gap: 10px; }
.fg-row .fg { flex: 1; }

/* 读书笔记 */
.book-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.book-header .page-title { margin: 0; }
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep));
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(255,133,162,0.4);
}
.book-filter {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
  overflow-x: auto;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #EDE4FF;
  background: #fff;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.chip.active {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-deep));
  color: #fff;
  border-color: transparent;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.book-card {
  background: #FBF8FF;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.12s;
}
.book-card:active { transform: scale(0.97); }
.book-cover {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background: #EDE4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder { font-size: 36px; }
.book-status {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
}
.book-status.reading { background: #9D7BF5; }
.book-status.done { background: #8ED1A8; }
.book-status.wish { background: #9ED0FF; }
.book-rating {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.45);
  color: #FFD700;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
}
.book-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author { font-size: 12px; color: var(--text-secondary); }
.book-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.book-tag {
  background: #EDE4FF;
  color: var(--pink-deep);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.book-stats { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.book-progress {
  height: 4px;
  background: #EDE4FF;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.book-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink-dark), var(--pink-deep));
}
.book-progress-text { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* 书详情 */
.book-detail-cover {
  aspect-ratio: 3/4;
  max-width: 160px;
  margin: 0 auto 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #EDE4FF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-cover-placeholder { font-size: 48px; }
.book-detail-title { text-align: center; font-size: 18px; font-weight: 700; }
.book-detail-author { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.book-detail-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.book-detail-section { margin-top: 16px; text-align: left; }
.book-detail-section h4 { margin: 0 0 8px; font-size: 14px; }
.book-detail-note {
  background: #FBF8FF;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.book-quote {
  position: relative;
  background: #FBF8FF;
  padding: 10px 30px 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.bq-text { font-size: 14px; line-height: 1.6; }
.bq-page { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.bq-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #D9CCFF;
  color: var(--pink-deep);
  font-size: 12px;
}
.book-stars { display: flex; gap: 4px; font-size: 22px; color: #DDD; }
.book-stars .on { color: #FFB400; }
.book-stars span { cursor: pointer; }
.book-upload-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: #F6F2FF;
  border-radius: 10px;
  color: var(--pink-deep);
  font-size: 14px;
  margin-bottom: 14px;
  cursor: pointer;
}

/* 读书内页 Tab */
.book-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: #F6F2FF;
  padding: 4px;
  border-radius: 999px;
}
.book-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.book-tab.active {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 2px 6px rgba(255, 133, 162, 0.2);
}
.study-form { margin-bottom: 8px; }

/* 文案收藏 */
.copy-item .copy-text {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============ 影音书档案室 ============ */
.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.archive-header .page-title { margin: 0; }

/* 统计三宫格 */
.archive-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.archive-summary .stat-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  cursor: pointer;
  transition: transform .1s, background .15s;
}
.archive-summary .stat-card:active {
  transform: scale(0.96);
  background: #F5F0FF;
}
.archive-summary .stat-icon { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
.archive-summary .stat-meta { flex: none; }
.archive-summary .stat-title { font-size: 14px; }
.archive-summary .stat-sub { font-size: 11px; }
.archive-summary .stat-badge { margin-right: 0; min-width: 26px; height: 26px; font-size: 12px; padding: 0 8px; }

/* 收录按钮 + 筛选条（通用 .archive-card 磁贴） */
.archive-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.archive-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.archive-card {
  appearance: none;
  border: 1px solid #E4D6FF;
  background: #fff;
  color: var(--pink-deep);
  border-radius: 14px;
  padding: 11px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.archive-actions .archive-card { box-shadow: var(--shadow); }
.archive-filter .archive-card { padding: 8px 14px; border-radius: 999px; flex: 1; }
.archive-card:active { transform: scale(0.97); }
.archive-filter .archive-card.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 92, 224, 0.3);
}

/* 作品列表 */
.media-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.media-item {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s;
}
.media-item:active { transform: scale(0.99); }
.media-cover {
  width: 64px;
  height: 90px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-cover img { width: 100%; height: 100%; object-fit: cover; }
.media-cover-ph { font-size: 30px; }
.media-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.media-top { display: flex; align-items: center; justify-content: space-between; }
.media-type {
  font-size: 11px;
  color: var(--pink-deep);
  background: var(--purple-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.favorite-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}
.media-title { font-size: 16px; font-weight: 700; color: var(--text); word-break: break-word; }
.media-rating { font-size: 13px; color: #FFB400; letter-spacing: 1px; }
.media-feeling {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-date { font-size: 11px; color: var(--text-secondary); }
.media-ops { display: flex; gap: 8px; margin-top: 2px; }
.media-ops button {
  border: 1px solid #E4D6FF;
  background: #fff;
  color: var(--pink-deep);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.media-ops .media-del { color: #E57373; border-color: #F3C9C9; }

/* 表单里的收藏开关 */
.fav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--pink-deep);
  font-weight: 600;
  cursor: pointer;
}
.fav-toggle input { width: 18px; height: 18px; accent-color: var(--pink-deep); }

/* ---------- 可爱粉主题：问候洁面 + 模块图标 ---------- */

/* 问候洁面 */
.cute-hero {
  background: linear-gradient(180deg, #FFEFF2 0%, #FFF8F9 100%);
  border-radius: 28px;
  padding: 32px 22px 28px;
  margin: 12px 0 18px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(255, 107, 138, 0.12);
}
.cute-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 18px;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(255, 107, 138, 0.2);
}
.cute-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.cute-date {
  font-size: 15px;
  color: var(--pink-dark);
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 500;
}
.cute-greeting {
  font-size: 32px;
  font-weight: 800;
  color: var(--pink-deep);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.cute-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.cute-enter {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF9AAE, #FF7A93);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 107, 138, 0.35);
}
.cute-enter:active { transform: scale(0.98); }
.cute-hero .hero-actions {
  justify-content: center;
  margin-top: 16px;
  gap: 10px;
}
.cute-hero .hero-pill {
  border-color: rgba(255, 107, 138, 0.35);
  background: rgba(255, 255, 255, 0.6);
  color: var(--pink-deep);
}
.cute-hero .sync-pill { background: #fff; }

/* 模块图标统一 */
.mod-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #fff;
}

/* 侧边栏头像 */
.sidebar-header .avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 138, 0.18);
}

/* 侧边栏菜单图标 */
.menu-item { display: flex; align-items: center; gap: 12px; }
.menu-item .menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}
.menu-item.active .menu-icon {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* 底部导航图标 */
.nav-item { display: flex; flex-direction: column; align-items: center; }
.nav-item .nav-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  margin-bottom: 3px;
}
.nav-item.active .nav-icon-img {
  box-shadow: 0 0 0 2px #fff;
}

/* 首页卡片图标 */
.stat-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(255, 107, 138, 0.08);
  border: 1px solid rgba(255, 107, 138, 0.08);
}
.stat-card .stat-icon-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: 0 0 auto;
}
.stat-card .stat-meta { flex: 1; min-width: 0; }

/* 页面标题图标 */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title .title-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* 问候洁面旧的 hero-card 隐藏（保留兼容） */
.hero-card { display: none; }

/* 调整首页卡片颜色 */
.card-grid .stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
}
.card-grid .stat-card:active { transform: scale(0.98); }

/* command bar 粉色 */
.command-bar {
  background: #fff;
  border: 1px solid rgba(255, 107, 138, 0.12);
  box-shadow: 0 4px 14px rgba(255, 107, 138, 0.06);
}

/* ---------- 每日签到 / 主题装扮 ---------- */
.checkin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #FFF5F8, #F6F2FF);
  border: 1px solid #EDE4FF;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(180,150,200,.10);
}
.checkin-info { display: flex; flex-direction: column; gap: 4px; }
.checkin-points { font-size: 18px; font-weight: 700; color: var(--pink-deep); }
.checkin-streak { font-size: 13px; color: var(--text-secondary); }
.checkin-btn {
  border: none;
  background: linear-gradient(135deg, #FFB3C6, #D9A7E8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.checkin-btn:active { transform: scale(0.97); }
.checkin-btn.done { background: #E6E0EC; color: var(--text-secondary); cursor: default; }

/* ---------- 主题装扮弹窗 ---------- */
.theme-list { display: flex; flex-direction: column; gap: 10px; }
.theme-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid #EDE4FF;
  border-radius: 14px;
  background: #fff;
}
.theme-item.active { border-color: var(--pink-deep); background: #FFF5F8; }
.theme-swatch { width: 32px; height: 32px; border-radius: 9px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.theme-name { flex: 1; font-size: 15px; color: var(--text); font-weight: 600; }
.theme-action { flex: none; }
.theme-status { font-size: 13px; color: var(--pink-deep); font-weight: 600; }
.theme-use, .theme-buy {
  border: none;
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.theme-use { background: #EDE4FF; color: var(--pink-deep); }
.theme-buy { background: linear-gradient(135deg, #FFB3C6, #D9A7E8); color: #fff; }


/* ---------- 奖励中心新样式 ---------- */
.reward-shop { display: flex; flex-direction: column; gap: 12px; }
.reward-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.reward-cat { white-space: nowrap; border: 1px solid #E8E0F0; background: #fff; color: #6B5B7A; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.reward-cat.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.reward-list { display: flex; flex-direction: column; gap: 10px; }
.reward-item { border: 1.5px solid #EDE7F6; border-radius: 14px; padding: 12px; background: #fff; }
.reward-item.active { border-color: var(--pink); background: #FFF7FA; }
.reward-top { display: flex; align-items: center; gap: 10px; }
.reward-swatch { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.reward-preview { width: 48px; height: 32px; border-radius: 6px; background: #F8F5FC; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--pink-deep); flex-shrink: 0; }
.reward-icon { width: 32px; height: 32px; border-radius: 8px; background: #F8F5FC; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.reward-name { flex: 1; font-weight: 600; color: #4A3F5C; font-size: 15px; }
.reward-desc { margin-top: 6px; font-size: 12px; color: #9A8FA8; padding-left: 42px; }
.reward-action { flex-shrink: 0; }
.reward-status { font-size: 12px; color: var(--pink-deep); background: #FFE4EC; padding: 5px 10px; border-radius: 999px; }
.reward-use { border: 1px solid var(--pink); background: #FFF0F5; color: var(--pink-deep); border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.reward-buy { border: none; background: linear-gradient(135deg, #FFB3C6, #D9A7E8); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; }

/* 称号徽章 */
.title-badge { display: inline-block; margin-left: 6px; font-size: 11px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* 米菲角标 */
#reward-corner-miffy { position: fixed; top: 12px; right: 12px; font-size: 28px; z-index: 80; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); pointer-events: none; }

/* 积分光环 */
body[data-glow="1"] #checkin-card { animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { box-shadow: 0 4px 12px rgba(255,141,161,0.15); } 50% { box-shadow: 0 4px 22px rgba(255,141,161,0.45); } }

/* 数据备份卡片 */
.backup-card {
  background: linear-gradient(135deg, #FFF0F4 0%, #FFE3EC 100%);
  border: 1px solid #FFD0DD;
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 14px;
}
.backup-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: #E86A8C; font-size: 16px;
}
.backup-icon { width: 26px; height: 26px; }
.backup-hint { font-size: 12.5px; color: #A9808C; margin: 8px 0 12px; line-height: 1.55; }
.backup-actions { display: flex; gap: 10px; }
.backup-btn {
  flex: 1; border: none; border-radius: 12px; padding: 11px 0;
  font-size: 14px; font-weight: 700; cursor: pointer;
  background: #FF8DA1; color: #fff; box-shadow: 0 4px 12px rgba(255,141,161,.35);
  transition: transform .12s ease;
}
.backup-btn:active { transform: scale(.96); }
.backup-btn-alt { background: #fff; color: #E86A8C; border: 1px solid #FFC2D2; box-shadow: none; }
