:root {
  --bg-deep: #071324;
  --bg-mid: #102642;
  --bg-light: #1A4260;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text-primary: #F4F8FC;
  --text-secondary: rgba(226, 238, 250, 0.72);
  --text-muted: rgba(203, 219, 238, 0.52);
  --accent-blue: #60A5FA;
  --accent-cyan: #67E8F9;
  --accent-indigo: #818CF8;
  --accent-warm: #FBBF24;
  --danger-soft: #FB7185;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --nav-height: 70px;
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==================== 动态极光/夜湖背景 ==================== */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, #06101F 0%, #0E233E 45%, #163B57 100%);
  transition: background 1.2s ease;
  overflow: hidden;
}

.ambient-backdrop[data-scene="aurora-pine"] {
  background: linear-gradient(165deg, #05161A 0%, #0D2E35 50%, #15494B 100%);
}

.ambient-backdrop[data-scene="warm-hearth"] {
  background: linear-gradient(165deg, #160F18 0%, #2B1B24 52%, #442828 100%);
}

.ambient-backdrop[data-scene="deep-ocean"] {
  background: linear-gradient(165deg, #040B1A 0%, #0B1F44 55%, #103A6B 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.42;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.aurora-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #38BDF8 0%, transparent 70%);
  top: -120px;
  left: -80px;
}

.aurora-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #818CF8 0%, transparent 70%);
  bottom: 10%;
  right: -100px;
  animation-delay: -6s;
}

.aurora-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #2DD4BF 0%, transparent 70%);
  top: 42%;
  left: 30%;
  opacity: 0.22;
  animation-delay: -11s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, -28px) scale(1.12); }
}

.stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 18% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 74% 16%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 52% 38%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.2px 1.2px at 28% 72%, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}

/* ==================== 主框架 ==================== */
.app-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: rgba(6, 15, 30, 0.25);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  body {
    padding: 16px 0;
  }
  .app-shell {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    backdrop-filter: blur(16px);
  }
}

/* ==================== 顶部栏 ==================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s;
}

.pill-btn:hover {
  background: var(--glass-bg-hover);
}

.sound-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.25s, box-shadow 0.25s;
}

.sound-dot.playing {
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.crisis-trigger {
  color: #FDA4AF;
  border-color: rgba(253, 164, 175, 0.28);
}

/* ==================== 滚动视口 ==================== */
.main-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 6px 18px 110px;
  scrollbar-width: none;
}

.main-viewport::-webkit-scrollbar {
  display: none;
}

.tab-view {
  display: none;
  animation: fadeUp 0.28s ease;
}

.tab-view.active {
  display: block;
}

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

/* ==================== 玻璃卡片基础 ==================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 12px;
}

.section-header h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

/* ==================== 首页 Hero 熔断卡 ==================== */
.hero-card {
  padding: 20px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.16) 0%, rgba(99, 102, 241, 0.14) 100%);
  border-color: rgba(125, 211, 252, 0.24);
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(103, 232, 249, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-glow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.32);
  transition: transform 0.15s, box-shadow 0.2s;
}

.primary-glow-btn:active {
  transform: scale(0.97);
}

.primary-glow-btn.compact {
  padding: 10px 18px;
  font-size: 13px;
}

.secondary-glass-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.secondary-glass-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==================== Daily Calm 卡片 ==================== */
.daily-featured-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.18s, background 0.2s;
}

.daily-featured-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

.daily-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1E3A8A, #0E7490);
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}

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

.daily-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.daily-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.daily-duration {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-top: 6px;
}

/* ==================== 情绪打卡卡片 ==================== */
.checkin-card {
  padding: 16px;
}

.checkin-prompt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mood-pill {
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

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

.mood-pill.selected {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.stressor-row {
  margin-bottom: 12px;
}

.stressor-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
}

.chip.selected {
  background: rgba(129, 140, 248, 0.26);
  border-color: var(--accent-indigo);
  color: #fff;
}

.checkin-note-row {
  display: flex;
  gap: 8px;
}

.glass-input, .glass-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.glass-input:focus, .glass-textarea:focus {
  border-color: var(--accent-blue);
}

.small-accent-btn {
  flex-shrink: 0;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-blue);
  color: #061325;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.checkin-feedback {
  margin-top: 10px;
  font-size: 12px;
  color: #6EE7B7;
  min-height: 16px;
}

/* ==================== 横向卡片 & 媒体网格 ==================== */
.horizontal-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.horizontal-cards::-webkit-scrollbar {
  display: none;
}

.scenario-card {
  min-width: 165px;
  padding: 15px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s;
}

.scenario-card:hover {
  transform: translateY(-2px);
}

.scenario-icon {
  font-size: 24px;
}

.scenario-title {
  font-size: 14px;
  font-weight: 600;
}

.scenario-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.page-intro {
  margin: 6px 2px 16px;
}

.page-intro h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.page-intro p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sleep-timer-bar {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.timer-title {
  font-size: 13px;
  font-weight: 600;
}

.timer-status {
  font-size: 11px;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.timer-pills {
  display: flex;
  gap: 6px;
}

.timer-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.timer-pill.active {
  background: var(--accent-blue);
  color: #061325;
  border-color: var(--accent-blue);
  font-weight: 600;
}

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

.media-card {
  padding: 15px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s;
}

.media-card:hover {
  transform: translateY(-2px);
}

.media-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.media-emoji {
  font-size: 26px;
}

.media-dur {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-secondary);
}

.media-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.35;
}

.media-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==================== 呼吸模块 ==================== */
.breath-module {
  padding: 18px;
  text-align: center;
}

.breath-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.breath-tab {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
}

.breath-tab.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-cyan);
  color: #fff;
}

.breath-stage {
  height: 176px;
  display: grid;
  place-items: center;
}

.breath-halo {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.32), rgba(99, 102, 241, 0.14));
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  display: grid;
  place-items: center;
  transition: transform 3.8s ease-in-out, box-shadow 3.8s ease-in-out;
}

.breath-halo.inhale {
  transform: scale(1.36);
  box-shadow: 0 0 42px rgba(56, 189, 248, 0.45);
}

.breath-halo.hold {
  transform: scale(1.36);
  box-shadow: 0 0 50px rgba(129, 140, 248, 0.5);
}

.breath-halo.exhale {
  transform: scale(0.92);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.breath-phase-text {
  font-size: 16px;
  font-weight: 600;
}

.breath-count-text {
  font-size: 12px;
  color: var(--accent-cyan);
  margin-top: 3px;
}

.breath-tip {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 14px;
}

.breath-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ==================== CBT 认知卸载卡 ==================== */
.cbt-card {
  padding: 16px;
}

.cbt-step {
  margin-bottom: 12px;
}

.cbt-step label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cbt-actions {
  display: flex;
  justify-content: flex-end;
}

.cbt-history {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbt-record {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--accent-cyan);
  font-size: 12px;
  line-height: 1.5;
}

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

.filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--text-primary);
  color: var(--bg-deep);
  font-weight: 600;
}

/* ==================== 声景混音台 ==================== */
.preset-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.preset-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}

.preset-chip.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-cyan);
}

.mixer-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.mixer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mixer-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.mixer-meta {
  width: 90px;
  flex-shrink: 0;
}

.mixer-name {
  font-size: 13px;
  font-weight: 500;
}

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

.mixer-slider {
  flex: 1;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.mixer-pct {
  width: 34px;
  text-align: right;
  font-size: 11px;
  color: var(--text-secondary);
}

.scene-visual-picker {
  padding: 16px;
}

.picker-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.swatch {
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}

.swatch.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.2);
}

/* ==================== 我的 / 负荷仪表盘 ==================== */
.profile-hero {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8, #6366F1);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-title {
  font-size: 17px;
  font-weight: 600;
}

.profile-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-box {
  padding: 14px 10px;
  text-align: center;
}

.stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.chart-card, .history-card {
  padding: 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}

.bar-label {
  width: 78px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  border-radius: 999px;
}

.bar-count {
  width: 28px;
  text-align: right;
  color: var(--text-muted);
}

.log-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

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

.log-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.log-mood {
  font-weight: 600;
  color: var(--accent-cyan);
}

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

.safety-card {
  margin-top: 18px;
  padding: 16px;
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.08);
}

.safety-title {
  font-size: 14px;
  font-weight: 600;
  color: #FECDD3;
  margin-bottom: 6px;
}

.safety-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.safety-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.safety-btn {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.2);
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: #FFF1F2;
  font-size: 12px;
  font-weight: 500;
}

.text-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 12px;
  cursor: pointer;
}

.text-btn.muted {
  color: var(--text-muted);
}

.danger-zone {
  text-align: center;
  margin: 18px 0 10px;
}

/* ==================== 迷你播放条 & 底部导航 ==================== */
.mini-player {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--nav-height) + 10px);
  background: rgba(15, 34, 62, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.mini-info {
  cursor: pointer;
  flex: 1;
}

.mini-title {
  font-size: 13px;
  font-weight: 600;
}

.mini-sub {
  font-size: 11px;
  color: var(--accent-cyan);
}

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

.mini-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(7, 18, 34, 0.88);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 30;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.active {
  color: var(--accent-cyan);
}

/* ==================== 全屏模态框（播放器 / 熔断 / 热线） ==================== */
.hidden {
  display: none !important;
}

.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 10, 22, 0.86);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.player-sheet, .panic-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(170deg, rgba(16, 40, 74, 0.94), rgba(8, 20, 38, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

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

.player-cat-tag, .panic-tag {
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.player-artwork {
  width: 150px;
  height: 150px;
  margin: 10px auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(103, 232, 249, 0.35), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(125, 211, 252, 0.35);
  display: grid;
  place-items: center;
  font-size: 54px;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.25);
}

.player-meta {
  text-align: center;
  margin-bottom: 14px;
}

.player-meta h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.player-meta p {
  font-size: 13px;
  color: var(--text-secondary);
}

.voice-picker-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.voice-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-chip.active {
  background: rgba(103, 232, 249, 0.22);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
  font-weight: 600;
}

.voice-source-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 15px;
}

.player-script-box {
  background: rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  padding: 14px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(235, 244, 255, 0.88);
  margin-bottom: 16px;
}

.player-progress-wrap {
  margin-bottom: 16px;
}

.progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #67E8F9, #818CF8);
  transition: width 0.3s linear;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.ctrl-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: #071324;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
}

/* 紧急熔断 */
.panic-body {
  text-align: center;
}

.panic-step-indicator {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.panic-title {
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.panic-circle-wrap {
  height: 180px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.panic-circle {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), rgba(99, 102, 241, 0.2));
  border: 2px solid rgba(103, 232, 249, 0.6);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  transition: transform 3.8s ease-in-out;
}

.panic-circle.expand {
  transform: scale(1.38);
}

.panic-guidance {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.panic-grounding {
  text-align: left;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.grounding-item strong {
  color: var(--accent-cyan);
  margin-right: 6px;
}

.panic-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* 危机热线弹窗 */
.crisis-sheet {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  background: rgba(18, 22, 36, 0.96);
}

.crisis-sheet h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.crisis-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.crisis-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crisis-row {
  text-decoration: none;
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crisis-row strong {
  display: block;
  font-size: 13px;
}

.crisis-row span {
  font-size: 11px;
  color: var(--text-muted);
}

.call-pill {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.24);
  color: #FFE4E6 !important;
  font-weight: 600;
}
