/* ============================================================
   观心 - APP风格 暖阳色调
   ============================================================ */

:root {
  --bg-deep: #fff7ed;
  --bg-mid: #ffedd5;
  --bg-light: #fed7aa;
  --primary: #fb923c;
  --primary-dark: #ea580c;
  --secondary: #f97316;
  --accent: #fbbf24;
  --accent-soft: #fcd34d;
  --accent-pink: #fda4af;
  --accent-rose: #fb7185;
  --highlight: #fff7ed;
  --text-strong: #2a1810;
  --text: #432516;
  --text-muted: #92400e;
  --text-dim: #d97706;
  --text-light: #fef3c7;
  --glass: rgba(255, 247, 237, 0.7);
  --glass-hover: rgba(255, 247, 237, 0.95);
  --glass-border: rgba(251, 146, 60, 0.22);
  --glass-border-soft: rgba(251, 146, 60, 0.12);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bg-soft: rgba(254, 243, 199, 0.5);
  --gradient-primary: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #fb7185 100%);
  --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #fb923c 50%, #fb7185 100%);
  --gradient-soft: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(251, 113, 133, 0.12));
  --gradient-cream: linear-gradient(180deg, #fffaf2 0%, #ffedd5 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   APP背景层
   ============================================================ */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #fffaf2 0%, #ffedd5 50%, #fed7aa 100%);
  overflow: hidden;
}

.app-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.app-bg-glow-1 {
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 65%);
  animation: bgFloat1 20s ease-in-out infinite alternate;
}

.app-bg-glow-2 {
  bottom: 10%;
  left: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.3), transparent 65%);
  animation: bgFloat2 25s ease-in-out infinite alternate;
}

.app-bg-glow-3 {
  top: 40%;
  right: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.25), transparent 65%);
  animation: bgFloat3 18s ease-in-out infinite alternate;
}

@keyframes bgFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes bgFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes bgFloat3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-20px, -30px); }
}

/* ============================================================
   APP 主壳
   ============================================================ */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: rgba(255, 250, 242, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 60px rgba(251, 146, 60, 0.15);
}

/* 顶部导航 */
.app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  background: rgba(255, 250, 242, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.08);
  position: relative;
  z-index: 5;
}

.app-header-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: background var(--transition);
}
.app-header-back:active { background: rgba(251, 146, 60, 0.1); }

.app-header-title-wrap {
  flex: 1;
  text-align: center;
}

.app-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.5px;
}

.app-header-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 1px;
  opacity: 0.8;
}

.app-header-subtitle.hide {
  display: none;
}

.app-header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.08);
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: all var(--transition);
}
.app-header-action:active { background: rgba(251, 146, 60, 0.18); }

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

.app-main::-webkit-scrollbar { width: 0; }

.app-content {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 底部Tabbar */
.app-tabbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 14px;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(251, 146, 60, 0.1);
  box-shadow: 0 -6px 20px rgba(251, 146, 60, 0.06);
  position: relative;
  z-index: 5;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-item svg { color: var(--text-muted); transition: color 0.2s; }

.tab-item.active {
  color: var(--primary);
  transform: translateY(-2px);
}
.tab-item.active svg { color: var(--primary); }

/* ============================================================
   开屏页
   ============================================================ */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, #fffaf2 0%, #ffedd5 60%, #fed7aa 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto; /* 心情选项扩充后小屏可滚动 */
  -webkit-overflow-scrolling: touch;
}

.splash-overlay.show { display: flex; }

.splash-inner {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: splashIn 0.5s ease;
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
}

.splash-mini-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(251, 113, 133, 0.15);
}

.splash-header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  flex: 1;
  text-align: center;
}

.splash-logo-zone {
  margin: 24px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 200px;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
}

.splash-logo-halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: transparent;
  z-index: 0;
}

.splash-logo {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.splash-app-name {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 4px;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

.splash-app-slogan {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.splash-mood-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 6px;
}

.splash-mood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.mood-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.06);
}

.mood-pill:hover {
  background: rgba(255, 247, 237, 0.95);
  transform: translateY(-2px);
}

.mood-pill.selected {
  background: linear-gradient(135deg, #fb923c, #f97316);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.35);
  transform: translateY(-2px);
}

.mood-pill .mood-emoji {
  font-size: 18px;
}

.splash-start {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
}

.splash-start:disabled {
  background: rgba(251, 146, 60, 0.3);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ============================================================
   幸运签
   ============================================================ */
.lottery-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(42, 24, 16, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lottery-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lottery-card {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #fffaf2 0%, #ffedd5 100%);
  border-radius: 24px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(251, 146, 60, 0.3);
  animation: cardUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes cardUp {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lottery-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.15);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.lottery-icon {
  font-size: 56px;
  margin-bottom: 8px;
  animation: scaleIn 0.6s 0.2s ease backwards;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.lottery-mood {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.lottery-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0 auto 18px;
}

.lottery-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.6;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.lottery-hint {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 14px;
  opacity: 0.7;
  animation: lotteryHintBlink 1.4s ease-in-out infinite;
}

@keyframes lotteryHintBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

.lottery-go {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 247, 237, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--glass-border-soft);
}

.btn:hover { background: rgba(255, 247, 237, 0.95); }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(251, 146, 60, 0.45); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-secondary {
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

/* ============================================================
   首页
   ============================================================ */
.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
}

.home-greeting {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.home-subgreeting {
  font-size: 13px;
  color: var(--text-muted);
}

.home-streak-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 113, 133, 0.18));
  border: 1px solid rgba(251, 146, 60, 0.18);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 500;
}

.home-streak-pill b { font-size: 14px; color: var(--primary-dark); }

.streak-flame { font-size: 14px; }

/* 首页搜索框 */
.home-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 3px 12px rgba(251, 146, 60, 0.06);
  transition: all 0.2s;
  margin-bottom: 10px;
}

.home-search-bar.focused {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 0 3px 16px rgba(251, 146, 60, 0.12);
}

.home-search-wrap { position: relative; margin-bottom: 12px; }

.home-search-dropdown {
  position: absolute;
  top: calc(100% - 12px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(251, 146, 60, 0.15);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px 0;
}

.hsd-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.hsd-item:last-child { border-bottom: none; }
.hsd-item:active { background: rgba(251, 146, 60, 0.06); }

.hsd-scene { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 2px; }
.hsd-title { font-size: 14px; color: var(--text-strong); font-weight: 600; line-height: 1.4; }
.hsd-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

.hsd-more {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.hsd-no-result {
  text-align: center;
  padding: 20px 16px;
}
.hsd-no-icon { font-size: 28px; margin-bottom: 6px; }
.hsd-no-text { font-size: 14px; color: var(--text-strong); font-weight: 600; }
.hsd-no-sub { font-size: 13px; color: var(--text-muted); margin: 4px 0 12px; }
.hsd-no-btns { display: flex; gap: 8px; justify-content: center; }

.hsb-icon { font-size: 16px; opacity: 0.6; flex-shrink: 0; }

.home-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-strong);
  font-family: inherit;
}

.home-search-bar input::placeholder { color: var(--text-muted); }

.hsb-arrow { font-size: 18px; color: var(--primary); opacity: 0.5; flex-shrink: 0; }

/* 今日心情卡片 */
.home-mood-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(254, 215, 170, 0.5));
  border: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(251, 146, 60, 0.12);
  cursor: pointer;
  transition: all 0.3s;
}

/* 今日心情小胶囊（问候区右侧） */
.home-mood-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(254, 215, 170, 0.55));
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
}

.home-mood-chip:active { transform: scale(0.95); }

.home-mood-chip.recorded {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.3), rgba(251, 113, 133, 0.2));
}

.hmc-icon { font-size: 18px; line-height: 1; }

.hmc-text { font-size: 13px; font-weight: 600; color: var(--primary-dark); white-space: nowrap; }

.home-mood-card:active { transform: scale(0.98); }

.home-mood-recorded {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.25), rgba(251, 113, 133, 0.18));
}

.home-mood-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.home-mood-icon-empty {
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary);
}

.home-mood-info { flex: 1; min-width: 0; }
.home-mood-title { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.home-mood-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.home-mood-arrow { font-size: 22px; color: var(--text-muted); font-weight: 300; }

/* 功能入口4宫格 */
.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.home-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid rgba(251, 146, 60, 0.08);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.06);
}

.home-entry-card:active { transform: scale(0.95); }

.home-entry-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-entry-name { font-size: 12px; font-weight: 600; color: var(--text-strong); }
.home-entry-desc { font-size: 10px; color: var(--text-muted); }

/* 修炼场快捷 */
.home-practice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #fb7185 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.35);
  overflow: hidden;
}

.hpc-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 50%);
  pointer-events: none;
}

.hpc-icon {
  font-size: 32px;
  position: relative;
  z-index: 1;
}

.hpc-info { flex: 1; position: relative; z-index: 1; }
.hpc-title { font-size: 15px; font-weight: 700; }
.hpc-sub { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.hpc-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  animation: hpcCtaPulse 2.2s ease-in-out infinite;
}

/* 继续修炼按钮 · 呼吸脉动微动效 */
@keyframes hpcCtaPulse {
  0%, 100% {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.35);
  }
}

/* 修炼场结果页 · 继续修炼按钮暖光脉动 */
.practice-cta-btn {
  animation: practiceCtaGlow 2s ease-in-out infinite;
}

@keyframes practiceCtaGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(251, 146, 60, 0.22);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 5px 22px rgba(251, 146, 60, 0.55);
    transform: translateY(-2px);
  }
}

/* Section标题 */
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin: 14px 0 8px;
}

.home-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.home-section-more {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.home-section-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* 主题场景6宫格 */
.home-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-scene-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.05);
}

.home-scene-card:active { transform: scale(0.95); }

.home-scene-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.home-scene-name {
  font-size: 12px;
  font-weight: 700;
}

.home-scene-count {
  font-size: 10px;
  color: var(--text-muted);
}

.home-scene-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
  text-align: center;
}

/* 最近心情圆点 */
.home-recent-moods {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.06);
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.06);
}

.recent-mood-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.recent-mood-emoji {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.recent-mood-day {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 心声墙轮动 */
.home-wall-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.06);
}

.hwc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  animation: hwcSlideIn 0.5s ease-out backwards;
}
.hwc-item:last-child { border-bottom: none; }
.hwc-item:active { background: rgba(251, 146, 60, 0.04); }

@keyframes hwcSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.hwc-avatar {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}

.hwc-body { flex: 1; min-width: 0; }
.hwc-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hwc-author { font-size: 13px; font-weight: 700; color: var(--text-strong); }
.hwc-time { font-size: 11px; color: var(--text-muted); }
.hwc-text {
  font-size: 13px;
  color: var(--text-strong);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hwc-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.hwc-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.08);
  color: var(--primary-dark);
}
.hwc-likes {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  align-self: center;
}
.hwc-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   记录 Tab
   ============================================================ */
.record-mood-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(254, 215, 170, 0.5));
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.1);
}

.rmc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rmc-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.rmc-date {
  font-size: 12px;
  color: var(--text-muted);
}

.rmc-slider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}

.rmc-slider-current {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(251, 113, 133, 0.18));
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
  transition: all 0.2s;
}

.rmc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, #fb7185 0%, #fb923c 50%, #fbbf24 100%);
  border-radius: 3px;
  outline: none;
}

.rmc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  border: 3px solid #fb923c;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
  cursor: pointer;
}

.rmc-slider-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.rmc-save {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
}

.rmc-mood-active {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.rmc-mood-emoji {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(251, 146, 60, 0.12);
  flex-shrink: 0;
}

.rmc-mood-info { flex: 1; }
.rmc-mood-label { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.rmc-mood-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.rmc-rewrite {
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 写下感受卡片 */
.record-write-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.06);
}

.write-card-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.write-card-input {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(255, 247, 237, 0.6);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.write-card-input:focus {
  border-color: var(--primary);
}

.write-card-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.record-write-card .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
}

.write-card-tip {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* 历史记录列表 */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.05);
}

.record-item-left {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.record-item-body { flex: 1; min-width: 0; }
.record-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.record-item-title span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}
.record-item-date {
  font-size: 11px;
  color: var(--text-muted);
}
.record-item-lucky {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.record-item-content {
  font-size: 12px;
  color: var(--text-strong);
  opacity: 0.85;
  line-height: 1.5;
  margin-top: 4px;
}

.record-item-marker {
  font-size: 11px;
  color: var(--primary-dark);
  margin-top: 4px;
  font-weight: 600;
}

.record-item-arrow {
  font-size: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.record-item {
  cursor: pointer;
  transition: transform 0.2s;
}
.record-item:active { transform: scale(0.98); }

/* 记录板块大改版样式 */
.record-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.record-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.04);
}

.record-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-strong);
}

.record-search input::placeholder { color: var(--text-muted); }

.record-search-icon { font-size: 16px; opacity: 0.7; }

.record-add-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
  transition: transform 0.2s;
}

.record-add-btn:active { transform: scale(0.92); }

.record-streak-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.22), rgba(251, 113, 133, 0.15));
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.06);
  margin-bottom: 10px;
}

.rsc-flame { font-size: 22px; flex-shrink: 0; }

.rsc-info { flex: 1; }

.rsc-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.rsc-num b {
  color: var(--primary-dark);
  font-size: 17px;
  margin: 0 2px;
}

.rsc-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.rsc-icon {
  font-size: 28px;
  opacity: 0.8;
}

/* 记录板块 section */
.record-section {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.05);
}

.record-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.rst-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.rst-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.rst-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 关爱自己列表 */
.selfcare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.selfcare-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.5);
  border: 1px solid rgba(251, 146, 60, 0.08);
  transition: all 0.2s;
}

.selfcare-item.done {
  background: rgba(168, 168, 168, 0.05);
  border-color: rgba(168, 168, 168, 0.15);
}

.sci-left {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

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

.sci-label {
  font-size: 14px;
  font-weight: 600;
}

.selfcare-item.done .sci-left { opacity: 0.5; }

.sci-status {
  flex-shrink: 0;
}

.sci-status-done {
  font-size: 12px;
  color: #a3a3a3;
  font-weight: 600;
}

.sci-complete-btn {
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(251, 146, 60, 0.2);
}

.sci-complete-btn:active { transform: scale(0.95); }

/* === 写入卡片成功提示 === */
.write-card-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(251, 191, 36, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #059669;
  font-size: 13px;
  font-weight: 600;
  animation: slideUpFade 0.4s ease-out;
}

.write-card-success .wcs-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 爱自己方式：5列紧凑图标网格（确认后） === */
.selfcare-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 0 0 4px;
}

.sgc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.sgc-item:active { transform: scale(0.92); }

.sgc-item.done { opacity: 0.75; }

.sgc-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.sgc-icon .sgc-check {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  line-height: 1;
}

.sgc-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === 紧凑版记录板块 === */
.record-section-compact {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
}

.rst-icon-sm {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
}

.selfcare-list-compact {
  gap: 6px;
  margin-bottom: 8px;
}

.selfcare-item-compact {
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
}

.sci-left-sm {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  font-size: 15px !important;
}

.sci-label-sm {
  font-size: 13px !important;
}

.sci-check {
  font-size: 18px;
  color: #34d399;
  font-weight: 700;
}

.sci-circle {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(251, 146, 60, 0.3);
  background: transparent;
}

.selfcare-item-compact.done .sci-circle {
  display: none;
}

.selfcare-select-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 2px dashed rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.04);
  color: #fb7185;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.selfcare-select-prompt:active { transform: scale(0.97); }
.selfcare-select-prompt .ssc-icon { font-size: 18px; }

.selfcare-edit-btn {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.selfcare-edit-btn:active { color: var(--primary); }

.selfcare-all-done {
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(251, 191, 36, 0.12));
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.write-card-input-sm {
  min-height: 70px !important;
  font-size: 13px !important;
  padding: 10px 12px !important;
}

.btn-sm {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

/* === 自爱选择弹窗 === */
.selfcare-select-modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.selfcare-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.selfcare-select-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.selfcare-select-item:active { transform: scale(0.95); }

.selfcare-select-item .ssi-icon {
  font-size: 22px;
}

.selfcare-select-item .ssi-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.selfcare-select-item .ssi-check {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}

.sci-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(168, 168, 168, 0.18);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sci-remove:hover { background: rgba(168, 168, 168, 0.35); }

.selfcare-add {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: transparent;
  border: 1.5px dashed rgba(251, 146, 60, 0.3);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.selfcare-add:hover { background: rgba(251, 146, 60, 0.06); }

/* 关爱自己添加弹窗 */
.selfcare-add-modal h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
  text-align: center;
}

.selfcare-add-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.selfcare-add-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1.5px solid;
  cursor: pointer;
  transition: transform 0.15s;
}

.selfcare-add-item:active { transform: scale(0.94); }

.sai-icon { font-size: 24px; }
.sai-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* 历史记录详情弹窗 */
.record-detail-modal {
  max-width: 460px;
}

.rd-header {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.12);
}

.rd-date {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

.rd-mood {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.5);
  margin-bottom: 14px;
}

.rd-mood-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.rd-mood-label { font-size: 14px; font-weight: 700; }
.rd-mood-lucky { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.rd-section {
  margin: 14px 0;
}

.rd-section-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rd-care-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rd-care-tag {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rd-care-tag.done {
  opacity: 0.6;
  text-decoration: line-through;
}

.rd-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-strong);
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 10px;
  background: rgba(255, 247, 237, 0.5);
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.rd-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px;
  font-style: italic;
}

.rd-markers {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rd-marker-item {
  padding: 10px 12px;
  background: rgba(168, 139, 250, 0.08);
  border-left: 3px solid #a78bfa;
  border-radius: 10px;
}

.rd-marker-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rd-marker-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-strong);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ============================================================
   成长Tab
   ============================================================ */

/* === 紧凑连续记录小卡 === */
.growth-streak-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.18), rgba(251, 113, 133, 0.12));
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.06);
  margin-bottom: 10px;
}

.gsm-flame { font-size: 22px; }

.gsm-info { flex: 1; }
.gsm-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}
.gsm-num b {
  color: var(--primary-dark);
  font-size: 16px;
  margin: 0 1px;
}
.gsm-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.growth-streak-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.22), rgba(251, 113, 133, 0.18));
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 6px 24px rgba(251, 146, 60, 0.12);
}

.gsc-left { flex: 1; }

.gsc-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.gsc-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
}
.gsc-num span { color: var(--primary-dark); }

.gsc-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.18);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.gsc-emoji {
  font-size: 48px;
  opacity: 0.85;
}

/* 图表卡片 */
.growth-chart-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.06);
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.chart-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-card-avg {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.12);
}

.chart-svg-wrap {
  width: 100%;
  height: 130px;
  position: relative;
}

.emotion-curve-svg {
  width: 100%;
  height: 100%;
}

.chart-x-axis {
  display: flex;
  justify-content: space-between;
  padding: 6px 24px 0;
}

.chart-x-label {
  font-size: 9px;
  color: var(--text-muted);
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
  margin-top: 40px;
}

/* 情绪状态列表 */
.growth-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.growth-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.growth-status-item:active { transform: scale(0.98); }

.gsi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.gsi-info { flex: 1; min-width: 0; }
.gsi-title { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.gsi-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.gsi-arrow { font-size: 20px; color: var(--text-muted); }

/* 成长里程碑 */
.growth-achievement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.growth-ach-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.6);
  border: 1px solid rgba(251, 146, 60, 0.08);
}

.gai-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.gai-info { flex: 1; }
.gai-title { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.gai-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* 快捷入口 */
.growth-quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gqr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 6px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.gqr-card:active { transform: scale(0.95); }

.gqr-icon { font-size: 22px; }
.gqr-label { font-size: 12px; color: var(--text-strong); font-weight: 600; }

/* 我的足迹统计 9 宫格 */
.growth-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.growth-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 16px;
  border: 1px solid rgba(251, 146, 60, 0.08);
  text-align: center;
  transition: transform 0.2s;
}

.growth-stat-item:active { transform: scale(0.96); }

.gsi-stat-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.gsi-stat-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.gsi-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* AI 成长分析报告 */
.report-refresh {
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.1);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.report-refresh:hover { background: rgba(251, 146, 60, 0.2); }

.growth-report-card {
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.65), rgba(254, 215, 170, 0.5));
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 6px 24px rgba(251, 146, 60, 0.08);
  padding: 0;
  overflow: hidden;
}

/* 突出展示版AI报告卡片（首栏，可点击查看详情） */
.growth-report-compact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85), rgba(254, 215, 170, 0.6));
  border: 1.5px solid rgba(251, 146, 60, 0.25);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.12);
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.growth-report-compact::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.35), transparent 70%);
  pointer-events: none;
}

.growth-report-compact:active { transform: scale(0.985); }

.grc-left { flex-shrink: 0; }

.grc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(251, 146, 60, 0.35);
}

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

.grc-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 6px;
}

.grc-title::before {
  content: '✨';
  font-size: 14px;
}

.grc-sub {
  font-size: 13px;
  color: var(--text-strong);
  margin-top: 4px;
  line-height: 1.5;
  font-weight: 500;
}

.grc-arrow {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 14px;
  opacity: 0.4;
  flex-shrink: 0;
}

/* 详情弹窗 */
.growth-report-detail-modal .gr-header {
  border-radius: 0;
}

.gr-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.32), rgba(251, 113, 133, 0.18));
  border-bottom: 1px solid rgba(251, 146, 60, 0.12);
}

.gr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.gr-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.gr-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.gr-body {
  padding: 8px 18px 14px;
}

.gr-paragraph {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(251, 146, 60, 0.12);
}

.gr-paragraph:last-child { border-bottom: none; }

.gr-emoji {
  font-size: 26px;
  flex-shrink: 0;
  width: 38px;
  text-align: center;
}

.gr-text { flex: 1; }

.gr-paragraph-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.gr-text p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-strong);
  margin: 4px 0;
}

.gr-hint {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 6px;
}

.gr-advice {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-strong);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  margin-top: 6px;
  border-left: 3px solid var(--primary);
}

/* ============================================================
   我的 Tab
   ============================================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.35);
}

.profile-info { flex: 1; }
.profile-name { font-size: 19px; font-weight: 700; color: var(--text-strong); }
.profile-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 暖光值卡片 */
.profile-points-card {
  display: flex;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(252, 211, 77, 0.18), rgba(251, 113, 133, 0.18));
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.1);
}

.ppc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.ppc-info { flex: 1; padding: 0 12px; }
.ppc-label { font-size: 11px; color: var(--text-muted); }
.ppc-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.ppc-divider {
  width: 1px;
  height: 32px;
  background: rgba(251, 146, 60, 0.2);
  margin: 0 6px;
}

.ppc-stat { text-align: center; }
.ppc-stat-label { font-size: 10px; color: var(--text-muted); }
.ppc-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
  margin-top: 4px;
}

/* 数据概览 */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.psg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
}

.psg-num { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.psg-label { font-size: 10px; color: var(--text-muted); }

/* 账号管理 */
.profile-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.pal-item:active { transform: scale(0.98); }

.pal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pal-info { flex: 1; }
.pal-title { font-size: 14px; font-weight: 600; color: var(--text-strong); }

.pal-arrow { font-size: 18px; color: var(--text-muted); }

.pal-logout .pal-title { color: #64748b; }

/* 合规文档入口 */
.profile-compliance {
  margin: 16px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg-soft);
  border: 1px solid var(--glass-border-soft);
}

.pc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--glass-border-soft);
}

.pc-item:last-child { border-bottom: none; }

.pc-item:active { background: rgba(251, 146, 60, 0.08); }

.pc-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.pc-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.pc-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

.profile-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 24px 0 8px;
  letter-spacing: 1.5px;
}

/* ============================================================
   空状态 + 通用
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.es-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.es-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 旧section标题（保留兼容） */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 8px 0 12px;
  padding-left: 4px;
}

.glass-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  box-shadow: 0 3px 10px rgba(251, 146, 60, 0.05);
}

/* ============================================================
   心情模块兼容样式
   ============================================================ */
.mood-card-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  cursor: pointer;
  margin-bottom: 8px;
}

.mood-card-compact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.mood-card-compact-info { flex: 1; }
.mood-card-compact-title { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.mood-card-compact-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.mood-card-compact-date { font-size: 11px; color: var(--text-muted); }
.mood-card-compact-arrow { color: var(--text-muted); font-size: 16px; }

/* 心情弹窗 */
.mood-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
  margin-bottom: 8px;
}

.mood-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.mood-modal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.mood-modal-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.mood-modal-option:active { transform: scale(0.96); background: rgba(251, 146, 60, 0.15); }

.mood-modal-option-icon { font-size: 28px; }
.mood-modal-option-label { font-size: 12px; color: var(--text-strong); font-weight: 500; }

/* 幸运签modal */
.fortune-slip {
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fffaf2, #ffedd5);
  border-radius: 20px;
}

.fortune-slip-icon { font-size: 48px; margin-bottom: 10px; }

.fortune-slip-mood {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.15);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.fortune-slip-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.fortune-slip-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.5;
}

.fortune-slip-points {
  font-size: 12px;
  color: var(--primary-dark);
  margin-top: 8px;
  font-weight: 600;
}

/* ============================================================
   主题场景子页面（兼容 + 微调）
   ============================================================ */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.06);
}

.scene-card:active { transform: scale(0.96); }

.scene-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.scene-name { font-size: 15px; font-weight: 700; }
.scene-desc { font-size: 11px; text-align: center; line-height: 1.4; }

.scene-detail-header {
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.scene-stat-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.scene-detail-desc {
  font-size: 13px;
  line-height: 1.6;
}

.scene-layout {
  display: flex;
  gap: 12px;
  min-height: 50vh;
}

.scene-cat-menu {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(251, 146, 60, 0.06);
  transition: all 0.2s;
}

.cat-menu-item.active {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(252, 211, 77, 0.12));
  color: var(--primary-dark);
  border-color: rgba(251, 146, 60, 0.35);
  font-weight: 600;
}

.cat-count {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary-dark);
}

.scene-problem-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problem-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.problem-item:active { transform: scale(0.98); }

.pi-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 6px;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary-dark);
  font-size: 11px;
}

/* ============================================================
   问题详情子页面
   ============================================================ */
.problem-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-header {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(252, 211, 77, 0.1));
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.pd-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pd-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

.tab-bar {
  display: flex;
  background: var(--card-bg);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 3px 12px rgba(251, 146, 60, 0.35);
}

/* 解决方案卡片 */
.solution-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.solution-card:active { transform: scale(0.98); }

.sc-type {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sc-type.generous { color: #fb923c; }
.sc-type.neutral { color: #f59e0b; }
.sc-type.counter { color: #fb7185; }

.sc-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.sc-steps {
  list-style: none;
  padding-left: 0;
}

.sc-steps li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-strong);
  margin-bottom: 6px;
  line-height: 1.5;
}

.sc-steps li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  top: 2px;
}

/* 回击方案安全提示 */
.sc-safety-tip {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.15);
  font-size: 12px;
  color: #9f1239;
  line-height: 1.5;
}

/* 方案区域安全提醒横幅 */
.solutions-safety-banner {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 146, 60, 0.06));
  border: 1px solid rgba(251, 191, 36, 0.15);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* 情绪观察 */
.emotion-step {
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
}

.es-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 2px 0;
}

.es-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(251, 146, 60, 0.12);
  transition: background 0.3s ease;
}

.es-dot.done { background: rgba(251, 146, 60, 0.45); }
.es-dot.active { background: rgba(251, 146, 60, 0.25); }

.es-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 14px;
  line-height: 1.6;
}

.emotion-option {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.6);
  border: 2px solid rgba(251, 146, 60, 0.12);
  color: var(--text-strong);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emotion-option:hover {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
}

.emotion-option:active {
  background: rgba(251, 146, 60, 0.18);
  border-color: var(--primary);
  transform: scale(0.98);
}

.emotion-option.selected {
  background: rgba(251, 146, 60, 0.2);
  border-color: var(--primary);
  font-weight: 600;
  color: var(--primary-dark);
}

.emotion-option .eo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(251, 146, 60, 0.2);
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s;
  color: transparent;
}

.emotion-option.selected .eo-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.emotion-option .eo-text {
  flex: 1;
}

.emotion-result {
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
}

.er-icon { font-size: 36px; text-align: center; margin-bottom: 12px; }
.er-suggest {
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.7;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.08);
}
.er-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* 鼓励弹窗 */
.encouragement-box {
  padding: 28px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fffaf2, #ffedd5);
}
.eb-icon { font-size: 48px; margin-bottom: 16px; }
.eb-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.6;
  margin-bottom: 14px;
}
.eb-record {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.08);
}

/* ============================================================
   搜索
   ============================================================ */
.search-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  background: var(--card-bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  outline: none;
}
.search-input-wrap input:focus { border-color: var(--primary); }

.search-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-tag {
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-result-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  margin-bottom: 8px;
  cursor: pointer;
}

.result-scene {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.result-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* AI搜索样式 */
.ai-search-btn {
  margin-top: 12px;
  display: inline-flex;
}

.ai-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-top: 12px;
}

.ai-search-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(251, 146, 60, 0.18);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ai-search-loading-text {
  font-size: 13px;
  color: var(--text-muted);
}

.ai-search-answer {
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.12);
  margin-top: 12px;
}

.ai-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-answer-body {
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.7;
  margin-bottom: 14px;
}

.ai-answer-actions {
  display: flex;
  gap: 8px;
}

.ai-search-engine-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.1);
  color: var(--primary-dark);
  text-decoration: none;
}

.ai-sources-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.ai-source-info {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.6);
  margin-bottom: 6px;
}

.ai-source-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ai-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  flex: 1;
}

.ai-source-link {
  font-size: 11px;
  color: var(--primary-dark);
  text-decoration: none;
}

.ai-source-extract {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================================
   修炼场（重设计 - 保留旧类名）
   ============================================================ */
.practice-welcome {
  text-align: center;
  padding: 24px 16px;
}

.practice-welcome-icon { font-size: 64px; margin-bottom: 14px; }
.practice-welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.practice-welcome-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.practice-welcome-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.6);
}

.stat-card { text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* 修炼场选择场景 */
.practice-select-page { padding: 4px; }

.practice-select-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 14px;
  padding: 6px 0;
}

.practice-select-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.practice-select-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.practice-select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.practice-select-card:active { transform: scale(0.98); }

.practice-select-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.practice-select-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.practice-select-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.practice-select-arrow { color: var(--text-muted); font-size: 18px; }

/* 技能选择 */
.practice-skill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.practice-skill-card:active { transform: scale(0.98); }

.practice-skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.practice-skill-info { flex: 1; }
.practice-skill-name { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.practice-skill-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.practice-types-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
  margin-top: 8px;
}

/* 修炼挑战信息 */
.practice-challenge-info {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(252, 211, 77, 0.08));
  border: 1px solid rgba(251, 146, 60, 0.18);
  margin-bottom: 12px;
}

.practice-challenge-scene {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.practice-challenge-skill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.18);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}

.practice-challenge-round {
  font-size: 12px;
  color: var(--text-muted);
}

/* 对话闯关 */
.practice-chat-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}

.practice-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(252, 211, 77, 0.08));
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.15);
}

.practice-chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.practice-chat-lv-icon { font-size: 20px; }
.practice-chat-lv-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}
.practice-chat-lv-xp {
  font-size: 11px;
  color: var(--text-muted);
}

.practice-chat-levelbar {
  flex: 1;
  margin: 0 12px;
  max-width: 80px;
}

.practice-chat-levelbar-fill {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fb923c, #fb7185);
}

.practice-chat-reset {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.practice-chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 角色背景介绍 */
.dialogue-bg-card {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.18), rgba(251, 113, 133, 0.12));
  border-left: 3px solid var(--accent);
  margin-bottom: 6px;
}

.dialogue-bg-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.dialogue-bg-text {
  font-size: 13px;
  color: var(--text-strong);
  line-height: 1.6;
}

/* 对话气泡 */
.chat-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-guide {
  flex-direction: row;
}

.chat-msg-user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #fb7185);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.chat-avatar-user {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble-guide {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(251, 146, 60, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: var(--text-strong);
  border-top-left-radius: 4px;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
  border-top-right-radius: 4px;
}

.chat-npc-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.chat-text { word-break: break-word; }

.chat-user-match {
  margin-top: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
}

/* 升级提示 */
.chat-msg-levelup {
  justify-content: center;
}

.chat-levelup-card {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #f97316, #fb7185);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chat-levelup-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.3), transparent 60%);
  pointer-events: none;
}

.chat-levelup-icon {
  font-size: 36px;
  position: relative;
  z-index: 1;
}

.chat-levelup-title {
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-top: 6px;
}

.chat-levelup-subtitle {
  font-size: 12px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.chat-levelup-msg {
  font-size: 13px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.chat-levelup-reward {
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

/* 选项区 */
.practice-options-area { padding: 14px 0 4px; }

.practice-options-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.practice-dialogue-option {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.15);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
  line-height: 1.5;
}

.practice-dialogue-option:active {
  transform: scale(0.98);
  background: rgba(251, 146, 60, 0.18);
  border-color: var(--primary);
}

.ptype-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.ptype-generous { background: rgba(251, 191, 36, 0.18); color: #f59e0b; }
.ptype-neutral { background: rgba(251, 146, 60, 0.18); color: #fb923c; }
.ptype-counter { background: rgba(251, 113, 133, 0.18); color: #fb7185; }

/* 反馈弹窗 */
.dialogue-feedback-box {
  padding: 22px 18px;
  background: linear-gradient(180deg, #fffaf2, #ffedd5);
  border-radius: 20px;
  text-align: center;
}

.dfb-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(251, 146, 60, 0.18);
  border: 2px solid rgba(251, 146, 60, 0.3);
  color: var(--primary-dark);
}

.dfb-icon.pass {
  background: rgba(251, 191, 36, 0.2);
  color: #f59e0b;
  border-color: rgba(251, 191, 36, 0.4);
}

.dfb-icon.fail {
  background: rgba(251, 113, 133, 0.2);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.4);
}

.dfb-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.dfb-score {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.dfb-score.pass { color: #f59e0b; }
.dfb-score.fail { color: #fb7185; }

.dfb-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.dfb-rules {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 14px;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.06);
  line-height: 1.6;
}

.dfb-actions {
  display: flex;
  gap: 8px;
}

.dfb-actions .btn { flex: 1; }

/* 练习结果 */
.practice-result-page { padding: 6px 0; }

.practice-result-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 14px;
}

.practice-result-title {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.practice-result-msg {
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.practice-result-scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.practice-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.6);
}

.practice-result-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.practice-result-score.pass { color: #f59e0b; }
.practice-result-score.fail { color: #fb7185; }

.practice-result-score-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.12);
  color: var(--primary-dark);
}

.practice-result-detail {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.5);
  line-height: 1.6;
}

.practice-result-actions {
  display: flex;
  gap: 8px;
}

.practice-result-actions .btn { flex: 1; }

/* 等级条 */
.practice-level-bar { padding: 6px 0; }
.practice-level-bar-info { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.practice-level-bar-track { height: 8px; border-radius: 4px; background: rgba(251, 146, 60, 0.12); overflow: hidden; }
.practice-level-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.practice-level-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.15);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.level-bar-wrap { margin: 8px 0; }
.level-info { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.level-bar { height: 6px; border-radius: 3px; background: rgba(251, 146, 60, 0.12); overflow: hidden; }
.level-fill {
  height: 100%;
  background: linear-gradient(90deg, #fb923c, #fb7185);
  border-radius: 3px;
}

.plv-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.plv-num {
  font-size: 11px;
  color: var(--text-muted);
}

.plv-num b { color: var(--primary-dark); }

/* ============================================================
   心声墙
   ============================================================ */
.community-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  margin-bottom: 12px;
}

.community-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.community-tab.active {
  background: var(--gradient-primary);
  color: white;
}

.post-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.08);
  margin-bottom: 10px;
}

.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.post-author { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.post-time { font-size: 11px; color: var(--text-muted); }

.post-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.post-tag { font-size: 10px; padding: 2px 8px; border-radius: 8px; background: rgba(251, 146, 60, 0.1); color: var(--primary-dark); }

.post-content {
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.6;
  margin-bottom: 10px;
}

.post-actions { display: flex; gap: 12px; }
.post-action {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-action.liked { color: var(--primary-dark); font-weight: 600; }

.reply-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(251, 146, 60, 0.12);
}

.reply-item {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(251, 146, 60, 0.08);
  font-size: 12px;
}

.reply-item:last-child { border-bottom: none; }

.reply-author { font-weight: 600; color: var(--primary-dark); margin-right: 6px; }

.reply-input {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.reply-input input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.15);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  background: rgba(255, 247, 237, 0.5);
}

.compose-modal {
  padding: 18px;
}

.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-select-item {
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.6);
  border: 1px solid rgba(251, 146, 60, 0.12);
  color: var(--text-strong);
  font-size: 12px;
  cursor: pointer;
}

.tag-select-item.selected {
  background: rgba(251, 146, 60, 0.18);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ============================================================
   测评
   ============================================================ */
.test-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.test-card:active { transform: scale(0.98); }

.test-list-intro {
  text-align: center;
  padding: 18px 16px 14px;
}
.tli-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-strong);
}
.tli-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.tc-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-warm);
  background: rgba(251, 191, 36, 0.14);
  padding: 2px 7px;
  border-radius: 8px;
}
.tc-name { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.tc-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tc-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.tc-last {
  margin-top: 6px;
  font-size: 11px;
  color: var(--accent-teal);
}
.tc-cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.test-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(251, 146, 60, 0.12);
  overflow: hidden;
  margin-bottom: 18px;
}
.test-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.test-question {
  padding: 16px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  margin-bottom: 12px;
}

.tq-text { font-size: 15px; line-height: 1.6; color: var(--text-strong); }

.test-option {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.6);
  border: 1px solid rgba(251, 146, 60, 0.12);
  color: var(--text-strong);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.test-option:active { background: rgba(251, 146, 60, 0.18); }

.report-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(251, 146, 60, 0.1);
  margin-bottom: 10px;
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.report-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.15);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ============================================================
   登录认证
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #fffaf2, #ffedd5, #fed7aa);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-overlay.show { display: flex; }

.auth-box {
  width: 100%;
  max-width: 360px;
  padding: 32px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.12);
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: rgba(255, 247, 237, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
  overflow: hidden;
  padding: 6px;
  box-sizing: border-box;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex;
  background: rgba(251, 146, 60, 0.08);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--gradient-primary);
  color: white;
}

.auth-form { display: flex; flex-direction: column; gap: 10px; }

.auth-input-wrap { width: 100%; }

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-strong);
  outline: none;
}

.auth-input:focus { border-color: var(--primary); }

.auth-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  transition: opacity 0.2s;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-hint {
  font-size: 12px;
  color: var(--danger);
  margin-top: 10px;
  min-height: 16px;
}

.auth-footer-tip {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 146, 60, 0.12);
  letter-spacing: 0.5px;
}

/* ============================================================
   通用：弹窗 + Toast
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 16, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: linear-gradient(180deg, #fffaf2, #ffedd5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 10px 20px;
  background: rgba(42, 24, 16, 0.92);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 14px;
  font-size: 13px;
  backdrop-filter: blur(10px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

/* ============================================================
   音乐面板（保留）
   ============================================================ */
.music-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.music-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--primary-dark);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.18);
}

.music-btn:hover { background: rgba(255, 255, 255, 0.95); transform: scale(1.05); }

.music-wave {
  position: absolute;
  bottom: 6px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.music-wave span {
  display: block;
  width: 2px;
  background: var(--primary);
  border-radius: 1px;
  animation: wave 1s ease-in-out infinite;
}

.music-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-wave span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.music-wave span:nth-child(3) { height: 6px; animation-delay: 0.4s; }
.music-wave span:nth-child(4) { height: 10px; animation-delay: 0.1s; }

.music-btn:not(.playing) .music-wave { display: none; }

/* 主题搜索/场景/记录/反馈模态中按钮常用样式 */
.done {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}

/* ============================================================
   模块A：每日成长仪式（首页卡片 / 仪式页 / 勋章墙 / 庆祝弹窗）
   模块B：情绪热力图
   ============================================================ */

/* ---- 首页「今日仪式」卡片 ---- */
.home-ritual-card {
  position: relative;
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  animation: slideUpFade 0.4s ease-out;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.home-ritual-card:active { transform: scale(0.98); }

/* 顶部行：火焰 + 标题 + 箭头（按 flex 横排） */
.hrc-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hrc-flame {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  filter: grayscale(0.9);
  opacity: 0.55;
  flex-shrink: 0;
  transition: var(--transition);
}

.hrc-flame-on {
  filter: none;
  opacity: 1;
  background: rgba(251, 146, 60, 0.18);
  animation: flamePulse 2s ease-in-out infinite;
}

@keyframes flamePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

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

.hrc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.4;
}

.hrc-title b { color: var(--primary-dark); font-size: 16px; margin: 0 2px; }

.hrc-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.hrc-evening {
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(255, 255, 255, 0.85));
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.15);
}

.hrc-evening .hrc-sub { color: var(--primary-dark); font-weight: 600; }

.hrc-arrow {
  color: var(--text-dim);
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

/* 4 列图标网格（意图/爱己/感恩日记/修炼） */
.hrc-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(251, 146, 60, 0.18);
}

.hrc-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(180, 130, 80, 0.18);
  transition: all 0.25s;
  text-align: center;
}

/* 统一 40×40 圆形彩色块 —— 所有状态都着彩色透明底，4 个图标大小完全一致 */
.hrc-dot-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #b8ad95;
  filter: grayscale(0.5);
  transition: all 0.25s;
  flex-shrink: 0;
}

/* 彩色透明背景（未完成态，所有 4 色统一着色） */
.hrc-dot-amber .hrc-dot-icon   { background: rgba(251, 191, 36, 0.28); }
.hrc-dot-pink .hrc-dot-icon    { background: rgba(244, 114, 182, 0.28); }
.hrc-dot-violet .hrc-dot-icon  { background: rgba(167, 139, 250, 0.28); }
.hrc-dot-orange .hrc-dot-icon  { background: rgba(251, 146, 60, 0.28); }

/* 完成态：彩色加深 + 图标恢复彩色 */
.hrc-dot.done .hrc-dot-icon {
  filter: none;
  color: #2a1810;
}
.hrc-dot-amber.done .hrc-dot-icon   { background: rgba(251, 191, 36, 0.45); }
.hrc-dot-pink.done .hrc-dot-icon    { background: rgba(244, 114, 182, 0.45); }
.hrc-dot-violet.done .hrc-dot-icon  { background: rgba(167, 139, 250, 0.45); }
.hrc-dot-orange.done .hrc-dot-icon  { background: rgba(251, 146, 60, 0.45); }

.hrc-dot-label {
  font-size: 11px;
  color: #5a4530;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.hrc-dot.done .hrc-dot-label {
  color: var(--text-strong);
  font-weight: 700;
}

/* ⚔️ emoji 在字体里渲染偏小，单独放大以与 🌅🌷🌙 视觉重量一致 */
.hrc-dot-orange .hrc-dot-icon {
  font-size: 28px;
  font-weight: bold;
}

/* ===== 右下角状态徽标：完成 ✓ / 未完成 → ===== */
.hrc-dot-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
  border: 1.5px solid #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 完成：绿色 ✓ */
.hrc-dot.done .hrc-dot-badge {
  background: #16a34a;
  color: #fff;
}

/* 未完成：暖灰 → */
.hrc-dot:not(.done) .hrc-dot-badge {
  background: rgba(120, 100, 80, 0.75);
  color: #fff;
}

.hrc-dot.done .hrc-dot-icon {
  filter: none;
  background: rgba(255, 255, 255, 0.85);
}

/* 心情 - 玫红 */
.hrc-dot-rose.done {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(254, 205, 211, 0.4));
  border-color: rgba(251, 113, 133, 0.32);
}
.hrc-dot-rose.done .hrc-dot-icon {
  color: #fb7185;
  box-shadow: inset 0 0 0 2px rgba(251, 113, 133, 0.25);
}

/* 意图 - 琥珀 */
.hrc-dot-amber.done {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(254, 240, 138, 0.5));
  border-color: rgba(245, 158, 11, 0.32);
}
.hrc-dot-amber.done .hrc-dot-icon {
  color: #f59e0b;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.25);
}

/* 爱己 - 粉 */
.hrc-dot-pink.done {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(252, 231, 243, 0.5));
  border-color: rgba(236, 72, 153, 0.3);
}
.hrc-dot-pink.done .hrc-dot-icon {
  color: #ec4899;
  box-shadow: inset 0 0 0 2px rgba(236, 72, 153, 0.22);
}

/* 感恩日记 - 紫罗兰 */
.hrc-dot-violet.done {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(237, 233, 254, 0.5));
  border-color: rgba(139, 92, 246, 0.3);
}
.hrc-dot-violet.done .hrc-dot-icon {
  color: #8b5cf6;
  box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.22);
}

/* 修炼 - 橙 */
.hrc-dot-orange.done {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(254, 215, 170, 0.5));
  border-color: rgba(251, 146, 60, 0.32);
}
.hrc-dot-orange.done .hrc-dot-icon {
  color: #fb923c;
  box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.25);
}

/* ---- 仪式页 ---- */
.ritual-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.rh-flame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

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

.rh-title { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.rh-title b { color: var(--primary-dark); font-size: 18px; }
.rh-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.rh-badges {
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 晨间意图 */
.ritual-intention-form,
.ritual-intention-saved {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
}

.rif-label, .ris-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.rif-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid rgba(251, 146, 60, 0.35);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.ritual-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-strong);
  font-weight: 600;
}

.ritual-input::placeholder { color: var(--text-dim); font-weight: 400; }

.rif-suffix {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
}

.ritual-btn {
  width: 100%;
  margin-top: 4px;
}

.ris-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(251, 146, 60, 0.08);
  border-radius: var(--radius-sm);
}

.ris-ok { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

/* 幸运签入口 */
.ritual-lucky {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.ritual-lucky:active { transform: scale(0.98); }

.rl-icon { font-size: 18px; }
.rl-text { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.rl-arrow { color: var(--text-dim); font-size: 18px; }

/* 感恩日记 - 已保存 */
.gratitude-diary {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.gd-entry {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--glass-border-soft);
}

.gd-entry:last-of-type { border-bottom: none; }

.gd-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.12);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gd-content { font-size: 14px; font-weight: 600; color: var(--text-strong); line-height: 1.6; }

.gd-why {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

.gd-why-tag {
  display: inline-block;
  background: rgba(251, 146, 60, 0.1);
  color: var(--primary-dark);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.gd-ok { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 10px; }

/* 感恩日记 - 表单 */
.gratitude-form {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.gf-item { margin-bottom: 14px; }

.gf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(251, 146, 60, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.gf-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.18);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gf-input { font-size: 14px; font-weight: 500; }

.gf-why-toggle {
  font-size: 11px;
  color: var(--text-dim);
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
}

.gf-why-wrap { padding: 0 12px 6px; }

.gf-why-input {
  font-size: 12px;
  font-weight: 400;
  border-bottom: 1px dashed rgba(251, 146, 60, 0.3);
  padding-bottom: 4px;
}

/* 幸运签小胶囊（今日意图标题右侧） */
.ritual-lucky-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.22), rgba(251, 146, 60, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.3);
  cursor: pointer;
  max-width: 62%;
  flex-shrink: 0;
  transition: all 0.25s;
}

.ritual-lucky-mini:active { transform: scale(0.95); }

.rlm-icon { font-size: 13px; line-height: 1; }

.rlm-text {
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 今日仪式 · 爱自己的方式容器 */
.ritual-selfcare {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 12px 12px 8px;
}

/* 感恩日记「晚点补充」按钮 */
.gf-later-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.gf-later-btn:active { background: rgba(251, 146, 60, 0.06); }

.gf-later-note {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
}

/* 20:30 后的补充提醒横幅 */
.gf-reminder-banner {
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(252, 211, 77, 0.18));
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  animation: gfBannerPulse 2.4s ease-in-out infinite;
}

@keyframes gfBannerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
  50% { box-shadow: 0 4px 14px rgba(251, 146, 60, 0.18); }
}

.ritual-tip {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(251, 191, 36, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 16px 0 8px;
  line-height: 1.7;
}

/* ---- 勋章墙 ---- */
.bw-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.bw-flame {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.bw-title { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.bw-title b { color: var(--primary-dark); font-size: 18px; }
.bw-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.bw-next {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.bwn-icon { font-size: 26px; }
.bwn-title { font-size: 13px; font-weight: 700; color: var(--text-strong); }

.bwn-bar {
  height: 6px;
  background: rgba(251, 146, 60, 0.12);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.bwn-bar i {
  display: block;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.bwn-sub { font-size: 11px; color: var(--text-muted); }

.bw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bw-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}

.bw-card.earned {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), rgba(255, 255, 255, 0.85));
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.12);
}

.bw-card.locked .bwc-icon { filter: grayscale(1); opacity: 0.35; }
.bw-card.locked .bwc-name { color: var(--text-dim); }

.bwc-icon { font-size: 34px; line-height: 1.2; }
.bwc-name { font-size: 14px; font-weight: 700; color: var(--text-strong); margin-top: 6px; }
.bwc-days { font-size: 11px; color: var(--primary-dark); font-weight: 600; margin-top: 2px; }
.bwc-desc { font-size: 10px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ---- 勋章庆祝弹窗（独立 overlay，不占用共享 modal） ---- */
.badge-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 16, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.badge-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.badge-celebrate-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--highlight);
  border-radius: var(--radius-lg);
  padding: 34px 24px 24px;
  text-align: center;
  animation: badgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes badgePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.badge-celebrate-shine {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(251, 191, 36, 0.18) 60deg, transparent 120deg);
  animation: badgeShine 3s linear infinite;
  pointer-events: none;
}

@keyframes badgeShine {
  to { transform: rotate(360deg); }
}

.badge-celebrate-icon {
  font-size: 56px;
  line-height: 1.2;
  position: relative;
  animation: flamePulse 2s ease-in-out infinite;
}

.badge-celebrate-tag {
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 10px;
}

.badge-celebrate-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-strong);
  margin-top: 6px;
}

.badge-celebrate-days {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 4px;
}

.badge-celebrate-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 12px 0 18px;
}

/* ---- 情绪热力图（模块B） ---- */
.hm-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.hm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 1px;
}

.hm-nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--glass-border-soft);
  background: rgba(251, 146, 60, 0.06);
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hm-nav:active { transform: scale(0.92); }

.hm-nav:disabled { opacity: 0.3; cursor: default; }

.hm-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }

.hm-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.hm-week-row span {
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
}

.hm-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hm-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hm-cell.has:hover,
.hm-cell.has:active { transform: scale(1.15); }

.hm-cell.today {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.hm-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 12px;
}

.hm-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.hm-legend-label { font-size: 10px; color: var(--text-dim); margin: 0 2px; }

.hm-legend-empty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 8px;
}

/* 热力图某日详情弹窗 */
.heat-day-detail { padding: 20px; }

.hdd-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.hdd-mood {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(251, 146, 60, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.hdd-mood-icon { font-size: 20px; }

.hdd-mood-score {
  margin-left: auto;
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 700;
}

.hdd-none { color: var(--text-dim); font-weight: 400; }

.hdd-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.hdd-good {
  background: rgba(251, 191, 36, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.hdd-good-content { font-size: 13px; font-weight: 600; color: var(--text-strong); line-height: 1.6; }

.hdd-good-why { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }

.hdd-empty { font-size: 12px; color: var(--text-dim); }


/* ============================================================
 * 模块C：修炼场日常化（今日一练 / 技能升级横幅 / 修炼点）
 * 模块D：每周成长简报
 * ============================================================ */

/* ---- 今日一练卡片（修炼场首页顶部） ---- */
.daily-task-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
  overflow: hidden;
}
.daily-task-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(15deg);
  animation: dtcShine 3.2s ease infinite;
}
@keyframes dtcShine {
  0%, 60% { transform: translateX(-60px) rotate(15deg); }
  100% { transform: translateX(160px) rotate(15deg); }
}
.daily-task-card:active { transform: scale(0.98); }
.daily-task-card .dtc-badge {
  flex-shrink: 0;
  background: var(--gradient-primary, linear-gradient(135deg, #fb923c, #fbbf24));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 10px;
  z-index: 1;
}
.daily-task-card .dtc-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(52, 199, 122, 0.15);
  color: #34c77a;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.daily-task-card .dtc-info { flex: 1; z-index: 1; }
.daily-task-card .dtc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #3d2c1e);
}
.daily-task-card .dtc-sub {
  font-size: 12px;
  color: var(--text-muted, #9a8b7a);
  margin-top: 3px;
}
.daily-task-card .dtc-arrow {
  font-size: 12px;
  color: var(--primary, #fb923c);
  font-weight: 600;
  z-index: 1;
}
.daily-task-card.done {
  border-color: rgba(52, 199, 122, 0.4);
  background: linear-gradient(135deg, rgba(52, 199, 122, 0.08), rgba(52, 199, 122, 0.04));
}
.daily-task-card.done::before { display: none; }

/* ---- 结果页技能升级横幅 ---- */
.practice-skillup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(251, 191, 36, 0.06));
  border: 1px solid var(--skc, rgba(251, 146, 60, 0.4));
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  animation: fadeUp 0.4s ease;
}
.practice-skillup-banner .psb-icon {
  font-size: 26px;
}
.practice-skillup-banner .psb-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--skc, #fb923c);
}
.practice-skillup-banner .psb-sub {
  font-size: 12px;
  color: var(--text-muted, #9a8b7a);
  margin-top: 2px;
}

/* ---- 每周简报入口卡（成长页） ---- */
.weekly-report-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg, #fffaf4);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(251, 146, 60, 0.06);
}
.weekly-report-card:active { transform: scale(0.98); }
.weekly-report-card .wrc-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.weekly-report-card .wrc-info { flex: 1; }
.weekly-report-card .wrc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #3d2c1e);
}
.weekly-report-card .wrc-sub {
  font-size: 12px;
  color: var(--text-muted, #9a8b7a);
  margin-top: 3px;
}
.weekly-report-card .wrc-arrow {
  font-size: 18px;
  color: var(--text-muted, #9a8b7a);
}

/* ---- 每周简报页 ---- */
.wr-hero {
  text-align: center;
  padding: 26px 16px 18px;
}
.wr-hero-icon { font-size: 40px; }
.wr-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text, #3d2c1e);
  margin-top: 8px;
}
.wr-hero-sub {
  font-size: 12px;
  color: var(--text-muted, #9a8b7a);
  margin-top: 4px;
}
.wr-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.wr-stat {
  background: var(--card-bg, #fffaf4);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.wr-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary, #fb923c);
  line-height: 1.1;
}
.wr-stat-num small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #9a8b7a);
  margin-left: 2px;
}
.wr-stat-label {
  font-size: 12px;
  color: var(--text-muted, #9a8b7a);
  margin-top: 5px;
}
.wr-trend { font-size: 11px; font-weight: 700; margin-left: 3px; }
.wr-trend.up { color: #34c77a; }
.wr-trend.down { color: #fb7185; }
.wr-trend.flat { color: var(--text-muted, #9a8b7a); font-weight: 500; }
.wr-mood-card {
  background: var(--card-bg, #fffaf4);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.wr-mood-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.wr-mood-label {
  width: 86px;
  font-size: 12px;
  color: var(--text, #3d2c1e);
  flex-shrink: 0;
}
.wr-mood-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(251, 146, 60, 0.08);
  overflow: hidden;
}
.wr-mood-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #fb923c, #fbbf24);
}
.wr-mood-num {
  width: 64px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted, #9a8b7a);
  flex-shrink: 0;
}
.wr-mood-cmp { font-size: 10px; font-weight: 700; margin-left: 2px; }
.wr-mood-cmp.up { color: #34c77a; }
.wr-mood-cmp.down { color: #fb7185; }
.wr-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #9a8b7a);
  padding: 12px 0;
}
.wr-insight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.10), rgba(251, 146, 60, 0.06));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.wr-insight-quote {
  position: absolute;
  top: 2px;
  left: 12px;
  font-size: 34px;
  font-weight: 800;
  color: rgba(251, 146, 60, 0.3);
  font-family: Georgia, serif;
  line-height: 1;
}
.wr-insight-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text, #3d2c1e);
  text-indent: 2em;
}

/* ============================================================
   随心日记本 · 照片
   ============================================================ */
.diary-photo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.diary-photo-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px dashed rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.05);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.diary-photo-add:active { transform: scale(0.95); background: rgba(251, 146, 60, 0.12); }
.diary-photo-add span { font-size: 14px; font-weight: 700; line-height: 1; }

.diary-photo-count {
  font-size: 11px;
  color: var(--text-muted);
}

.diary-photo-preview {
  display: none;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.diary-photo-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: visible;
  flex-shrink: 0;
}

.diary-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  display: block;
}

.dp-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f87171;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid #fff;
  font-weight: 700;
}

/* 详情弹窗 · 日记照片 */
.rd-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rd-photos img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.rd-photos img:active { transform: scale(0.95); }

/* 详情弹窗 · 当日感恩 */
.rd-gratitude-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(251, 146, 60, 0.15);
}

.rd-gratitude-item:last-child { border-bottom: none; }

.rdg-icon { font-size: 16px; line-height: 1.5; flex-shrink: 0; }
.rdg-content { font-size: 13px; font-weight: 600; color: var(--text-strong); line-height: 1.6; }
.rdg-why { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.6; }

/* 照片全屏预览 */
.diary-photo-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.diary-photo-viewer img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 14px;
  object-fit: contain;
}

.dpv-hint { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   历史记录 · 日历视图
   ============================================================ */
.rc-calendar {
  background: rgba(255, 250, 242, 0.55);
  border: 1px solid rgba(251, 146, 60, 0.1);
  border-radius: 14px;
  padding: 10px;
}

.rc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
}

.rc-cal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

.rc-cal-nav {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-dark);
  background: rgba(251, 146, 60, 0.1);
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.rc-cal-nav:active { transform: scale(0.9); }

.rc-cal-nav.disabled {
  opacity: 0.25;
  cursor: default;
}

.rc-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.rc-week-row span {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 3px 0;
}

.rc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.rc-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1 / 1.08;
  border-radius: 10px;
  min-height: 42px;
  padding: 2px 0;
}

.rc-cell-empty { background: transparent; }

.rc-num {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
}

.rc-cell.today .rc-num {
  color: var(--primary-dark);
  font-weight: 800;
}

.rc-cell.today::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1.5px solid rgba(251, 146, 60, 0.55);
  pointer-events: none;
}

.rc-cell.has {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(251, 146, 60, 0.12);
  cursor: pointer;
  transition: all 0.15s;
}

.rc-cell.has:active { transform: scale(0.92); background: rgba(251, 146, 60, 0.1); }

.rc-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.rc-marker-plain { background: rgba(251, 146, 60, 0.12); }

.rc-dots {
  position: absolute;
  bottom: 3px;
  display: flex;
  gap: 3px;
}

.rc-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.rc-dot-g { background: #fb923c; }
.rc-dot-d { background: #a78bfa; }

.rc-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(251, 146, 60, 0.15);
}

.rc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

/* 观心记录 · 心情热力图例（低→高 5 档） */
.rc-legend-heat { margin-top: 4px; padding-top: 6px; gap: 6px; }

.rc-heat-label { font-weight: 600; }

.rc-heat-chip {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
}

/* 随心日记本 · 保存按钮 */
#saveNoteBtn { margin-top: 8px; width: 100%; }

/* ---- 仪式全部完成奖励弹窗 ---- */
.ritual-celebrate { text-align:center; padding: 18px 4px 4px; }
.ritual-celebrate-icon { font-size: 56px; margin-bottom: 8px; animation: rcSparkle 1.6s ease-in-out infinite; display:inline-block; }
.ritual-celebrate-title { font-size: 19px; font-weight: 700; color: var(--text-strong); margin-bottom: 8px; }
.ritual-celebrate-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.ritual-celebrate-reward { display:inline-block; padding: 6px 14px; background: linear-gradient(135deg,#fb923c,#f97316); color:#fff; border-radius: 999px; font-size: 13px; font-weight: 600; }
@keyframes rcSparkle {
  0%,100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(251,146,60,0)); }
  50%     { transform: scale(1.1) rotate(8deg); filter: drop-shadow(0 0 12px rgba(251,146,60,0.55)); }
}

/* ---- 首页修炼场微动效（吸引点击） ---- */
.hpc-icon { transform-origin: center; animation: hpcBreath 2.8s ease-in-out infinite; }
@keyframes hpcBreath {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(251,146,60,0)); }
  50%     { transform: scale(1.06); filter: drop-shadow(0 0 10px rgba(251,146,60,0.4)); }
}
.home-entry-card[onclick*="'practice'"] .home-entry-icon { animation: mfeGlow 2.4s ease-in-out infinite; }
@keyframes mfeGlow {
  0%,100% { box-shadow: 0 4px 10px rgba(251,146,60,0.20); }
  50%     { box-shadow: 0 4px 18px rgba(251,146,60,0.55); }
}

/* ============================================================
   会员订阅 · 资料下载 · 数据迁移（2026-08-29）
   ============================================================ */

/* 个人中心 · 会员卡 */
.scp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251,146,60,0.16) 0%, rgba(251,191,36,0.12) 100%);
  border: 1px solid rgba(251,146,60,0.25);
  cursor: pointer;
}
.scp-icon { font-size: 26px; }
.scp-info { flex: 1; min-width: 0; }
.scp-title { font-size: 14px; font-weight: 700; color: var(--text); }
.scp-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.scp-tag {
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(251,146,60,0.9); color: #fff;
}
.scp-tag.on { background: linear-gradient(135deg, #fb923c, #fbbf24); }

/* 个人中心 · 条目副描述 */
.pal-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }

/* ---- 会员订阅页 ---- */
.subp-hero {
  text-align: center;
  padding: 28px 16px 20px;
  background: linear-gradient(180deg, rgba(251,191,36,0.14) 0%, rgba(255,250,242,0) 100%);
  border-radius: 0 0 24px 24px;
}
.subp-hero-icon { font-size: 40px; }
.subp-hero-title { font-size: 20px; font-weight: 800; color: var(--text); margin-top: 6px; }
.subp-hero-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.subp-status {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 16px; padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(251,146,60,0.18);
}
.subp-status.member { background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(251,146,60,0.10)); border-color: rgba(251,191,36,0.4); }
.subp-status.trial { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.25); }
.subp-status-icon { font-size: 24px; }
.subp-status-title { font-size: 14px; font-weight: 700; color: var(--text); }
.subp-status-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.subp-trial-btn {
  display: block; width: calc(100% - 32px); margin: 16px 16px 6px;
  padding: 13px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #fbbf24);
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(251,146,60,0.35);
  animation: subpPulse 2.4s ease-in-out infinite;
}
@keyframes subpPulse {
  0%,100% { box-shadow: 0 6px 16px rgba(251,146,60,0.30); transform: translateY(0); }
  50%     { box-shadow: 0 8px 22px rgba(251,146,60,0.50); transform: translateY(-1px); }
}
.subp-trial-note { text-align: center; font-size: 11px; color: var(--text-muted); padding: 0 16px; }

.subp-benefits { margin: 14px 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.7); border: 1px solid rgba(251,146,60,0.12); }
.subp-benefit-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; color: var(--text-light); }
.sb-icon { font-size: 15px; }

.subp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 16px 14px; }
.subp-plan {
  position: relative;
  text-align: center;
  padding: 18px 8px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(251,146,60,0.16);
  cursor: pointer;
}
.subp-plan.best { border-color: #fb923c; background: linear-gradient(180deg, rgba(251,146,60,0.10), rgba(255,255,255,0.8)); }
.subp-plan-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #fb923c, #fbbf24);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.subp-plan-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.subp-plan-price { margin: 8px 0 2px; }
.subp-plan-price .num { font-size: 24px; font-weight: 800; color: #c2410c; }
.subp-plan-price .unit { font-size: 10px; color: var(--text-muted); margin-left: 3px; }
.subp-plan-note { font-size: 10px; color: var(--text-muted); min-height: 14px; }
.subp-plan-btn {
  margin-top: 10px; padding: 6px 0; width: 100%;
  border: none; border-radius: 10px;
  background: rgba(251,146,60,0.12); color: #c2410c;
  font-size: 12px; font-weight: 700;
}
.subp-plan.best .subp-plan-btn { background: linear-gradient(135deg, #fb923c, #fbbf24); color: #fff; }
.subp-fineprint { padding: 0 20px 30px; font-size: 10.5px; line-height: 1.9; color: var(--text-muted); }

/* ---- 资料下载页 ---- */
.exp-panel { padding: 16px 16px 96px; }
.exp-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text);
  margin: 18px 0 10px;
}
.exp-selall {
  margin-left: auto; margin-right: 0;
  font-size: 11px; color: #c2410c; background: rgba(251,146,60,0.10);
  border: none; border-radius: 8px; padding: 4px 10px;
}
.exp-selall + .exp-selall { margin-left: 6px; }

.exp-type-pills { display: flex; gap: 10px; }
.exp-pill {
  flex: 1; padding: 10px 0;
  border-radius: 12px; border: 1.5px solid rgba(251,146,60,0.18);
  background: rgba(255,255,255,0.6);
  font-size: 13px; color: var(--text-muted);
}
.exp-pill.on {
  border-color: #fb923c; color: #c2410c; font-weight: 700;
  background: rgba(251,146,60,0.10);
}

.exp-range { display: flex; align-items: center; gap: 10px; }
.exp-date-input {
  flex: 1; padding: 9px 10px;
  border-radius: 10px; border: 1px solid rgba(251,146,60,0.2);
  background: rgba(255,255,255,0.8);
  font-size: 13px; color: var(--text);
}
.exp-range-sep { font-size: 12px; color: var(--text-muted); }

.exp-day-list { border-radius: 14px; overflow: hidden; border: 1px solid rgba(251,146,60,0.14); background: rgba(255,255,255,0.6); }
.exp-day { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(251,146,60,0.08); cursor: pointer; }
.exp-day:last-child { border-bottom: none; }
.exp-day.on { background: rgba(251,146,60,0.07); }
.exp-day input[type="checkbox"] { width: 17px; height: 17px; accent-color: #fb923c; flex-shrink: 0; }
.exp-day-date { font-size: 13px; font-weight: 600; color: var(--text); }
.exp-day-badges { display: flex; gap: 6px; margin-top: 4px; }
.exp-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.exp-badge.g { background: rgba(167,139,250,0.12); color: #8b5cf6; }
.exp-badge.n { background: rgba(56,189,248,0.12); color: #0284c7; }
.exp-empty { text-align: center; padding: 40px 20px; font-size: 13px; color: var(--text-muted); line-height: 2; background: rgba(255,255,255,0.5); border-radius: 14px; }

.exp-footer {
  position: fixed; left: 0; right: 0; bottom: 60px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255,250,242,0.96);
  border-top: 1px solid rgba(251,146,60,0.15);
  z-index: 10;
}
.exp-footer-info { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.exp-export-btn { flex: 1; margin: 0; }
.exp-note { text-align: center; font-size: 10.5px; color: var(--text-muted); margin-top: 10px; }

/* ===== 全站页脚（备案 + 链接） ===== */
.site-footer {
  text-align: center;
  padding: 20px 16px 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.9;
  background: transparent;
  flex-shrink: 0;
}
.site-footer-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-footer-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.site-footer-links a:hover { color: var(--primary); }
.site-footer-links .dot { color: rgba(0,0,0,0.18); }
.site-footer-copyright { margin-top: 4px; letter-spacing: 0.3px; }
.site-footer-beian { margin-top: 6px; }
.site-footer-beian a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.site-footer-beian a:hover { color: var(--primary); }
.site-footer-beian img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
