/* ==========================================================================
   《一盏小灯》高定视觉系统 v4 —— 茶珀新拟态软浮雕美学 (Tactile Smoked-Amber Neumorphism)
   基准材质：暖玄武岩哑光一体机身 (#1E1B18) · 高立体度硅胶圆枕按键 · 茶珀内透微光 (#F2A442)
   零外部字体与 CDN 依赖，原生适配 390×844 移动端/微信小程序 WebView 及桌面画框
   ========================================================================== */

:root {
  /* 1. 全局暖玄武岩同色基准面（留出充足暗部投影纵深，塑造饱满软浮雕体量） */
  --bg-desktop: #141210;
  --bg-surface: #1e1b18;
  --bg-inset: #151310;
  --bg-slot-deep: #100e0b;

  /* 圆润凸面硅胶按键微穹顶渐变 */
  --surface-dome: linear-gradient(170deg, #28241f 0%, #1b1815 100%);
  --surface-card: linear-gradient(168deg, #231f1b 0%, #1b1815 100%);
  --surface-active-glow: radial-gradient(circle at 82% 26%, rgba(244, 168, 68, 0.19) 0%, rgba(28, 24, 20, 0.96) 64%), #191613;

  /* 高立体度双向软浮雕光影参数（对齐效果图深邃底影 + 柔润顶棱） */
  --neu-extruded:
    9px 11px 22px rgba(6, 5, 4, 0.90),
    -5px -5px 14px rgba(54, 47, 40, 0.44),
    inset 0 1px 1px rgba(255, 240, 216, 0.09),
    inset 0 -1px 2px rgba(0, 0, 0, 0.55);

  --neu-extruded-sm:
    6px 8px 16px rgba(6, 5, 4, 0.86),
    -4px -4px 11px rgba(52, 45, 38, 0.40),
    inset 0 1px 1px rgba(255, 240, 216, 0.08),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.50);

  --neu-extruded-row:
    7px 9px 18px rgba(6, 5, 4, 0.85),
    -4px -4px 12px rgba(50, 44, 37, 0.38),
    inset 0 1px 1px rgba(255, 240, 216, 0.07);

  --neu-inset:
    inset 6px 7px 15px rgba(6, 5, 4, 0.92),
    inset -5px -5px 12px rgba(48, 42, 35, 0.40),
    0 1px 0 rgba(255, 238, 214, 0.04);

  --neu-inset-sm:
    inset 4px 4px 9px rgba(6, 5, 4, 0.90),
    inset -3px -3px 7px rgba(48, 42, 35, 0.38);

  --neu-pressed:
    inset 5px 6px 12px rgba(6, 5, 4, 0.92),
    inset -4px -4px 9px rgba(46, 40, 34, 0.38);

  --rim-micro: 1px solid rgba(255, 238, 214, 0.035);
  --rim-inset: 1px solid rgba(0, 0, 0, 0.22);

  /* 温润护眼文字层级 */
  --text-primary: #f2ebe1;
  --text-secondary: #b7a999;
  --text-muted: #7d7063;

  /* 茶珀烛光琥珀色系 */
  --amber-bright: #ffe09e;
  --amber-main: #f2a644;
  --amber-deep: #cf7a24;
  --amber-border: rgba(242, 166, 68, 0.52);
  --amber-outer-halo: 0 0 22px rgba(235, 148, 52, 0.24);
  --amber-inner-glow: inset 0 0 18px rgba(242, 166, 68, 0.16);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --ease-tactile: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

.hidden {
  display: none !important;
}

/* 桌面端以深暖炭底衬托圆润立体新拟态手机机身（左侧泛一缕极克制暖金环境背光） */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  overflow: hidden;
}

@media (min-width: 500px) {
  html,
  body {
    background: var(--bg-desktop);
  }
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #201d1a 0%, #141210 75%);
  }
  .app-shell {
    height: min(94vh, 880px);
    border-radius: 40px;
    border: 2px solid #2a2520;
    box-shadow:
      22px 28px 60px rgba(4, 3, 2, 0.92),
      -12px -8px 42px rgba(236, 152, 58, 0.06),
      inset 0 1px 1px rgba(255, 240, 218, 0.08);
  }
}

/* ==================== 顶部克制状态栏 ==================== */
.top-bar {
  flex-shrink: 0;
  padding: calc(10px + var(--safe-top)) 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-surface);
  z-index: 20;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.brand-title {
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--text-secondary);
  white-space: nowrap;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #463e37;
  box-shadow: inset 1px 1px 2px #0b0908;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.online-dot.is-live {
  background: var(--amber-main);
  box-shadow: 0 0 8px var(--amber-main);
  animation: dotBreath 2.6s ease-in-out infinite;
}

@keyframes dotBreath {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

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

/* 顶部圆枕软浮雕胶囊按钮 */
.tier-pill-btn,
.icon-circle-btn,
.avatar-circle-btn {
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  border-radius: 999px;
  transition:
    box-shadow 0.2s var(--ease-tactile),
    transform 0.16s var(--ease-tactile),
    color 0.2s ease;
}

.tier-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tier-pill-lv {
  font-weight: 700;
  color: var(--amber-main);
}

.tier-pill-name {
  color: var(--text-primary);
}

.tier-pill-arrow {
  font-size: 10px;
  color: var(--text-muted);
}

.icon-circle-btn {
  height: 32px;
  padding: 0 11px;
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.avatar-circle-btn {
  width: 32px;
  height: 32px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tier-pill-btn:active,
.icon-circle-btn:active,
.avatar-circle-btn:active {
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  transform: scale(0.975);
}

/* ==================== 主视图切换容器 ==================== */
.views-container {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}

.view-pane {
  display: none;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.view-pane::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.view-pane.is-active {
  display: flex;
  flex-direction: column;
}

#viewReflect,
#viewBoard,
#viewGrowth {
  padding: 10px 20px 28px;
}

/* ==================== Tab 1: 守灯主舞台（1:1 复刻效果图第1屏极简沉静构图） ==================== */
#viewStage {
  overflow: hidden;
  justify-content: space-between;
  background: var(--bg-surface);
}

.stage-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: var(--bg-surface);
  overflow: hidden;
}

#lampCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

/* 效果图第1屏灵魂留白：主舞台上方居中温润大标题「一盏小灯」 */
.stage-hero-heading {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3.5px;
  color: #efe6da;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.stage-hero-heading.is-dimmed {
  opacity: 0;
}

/* 6秒实景试看顶部软浮雕浮盘 */
.preview-floating-bar {
  position: absolute;
  top: 8px;
  left: 18px;
  right: 18px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded), var(--amber-inner-glow);
  border: 1px solid var(--amber-border);
  border-radius: 24px;
  padding: 11px 14px 10px;
  z-index: 15;
}

.preview-bar-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-sparkle {
  font-size: 16px;
}

.preview-bar-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.preview-bar-texts strong {
  font-size: 12.5px;
  color: var(--amber-bright);
}

.preview-bar-texts span {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.preview-exit-btn {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  font-size: 11px;
  color: var(--text-primary);
  transition: all 0.16s var(--ease-tactile);
}

.preview-exit-btn:active {
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  transform: scale(0.97);
}

.preview-progress-track {
  margin-top: 9px;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-slot-deep);
  box-shadow: inset 2px 2px 4px #070605, inset -2px -2px 4px #26221e;
  overflow: hidden;
}

.preview-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright));
  box-shadow: 0 0 8px rgba(242, 166, 68, 0.55);
  transition: width 0.1s linear;
}

/* 舞台中央上方呼吸状态胶囊 */
.stage-status-overlay {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}

.session-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(22, 19, 16, 0.78);
  box-shadow: var(--neu-inset-sm);
  border: 1px solid rgba(242, 166, 68, 0.24);
  font-size: 11px;
  color: var(--amber-bright);
}

.session-breath-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-main);
  box-shadow: 0 0 8px var(--amber-main);
  animation: dotBreath 2.2s infinite;
}

/* 极克制的居中微交互提示，不遮挡灯具气场 */
.stage-3d-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  text-align: center;
  font-size: 10px;
  color: rgba(183, 169, 153, 0.44);
  pointer-events: none;
  z-index: 5;
}

.stage-quote-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px 6px;
  background: linear-gradient(180deg, rgba(30, 27, 24, 0) 0%, rgba(30, 27, 24, 0.88) 68%, #1e1b18 100%);
  text-align: center;
  pointer-events: none;
  z-index: 5;
}

.stage-quote-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.stage-vessel-tag {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ==================== 舞台底部饱满圆枕胶囊控台（去外框盒，按键直浮机身，对齐效果图第1屏！） ==================== */
.stage-console {
  position: relative;
  flex-shrink: 0;
  padding: 4px 20px 10px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 10;
}

/* 轻音相伴内凹软槽迷你条 */
.mini-audio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  font-size: 11px;
}

.mini-audio-toggle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--amber-bright);
  font-size: 11px;
  flex-shrink: 0;
}

.mini-audio-name {
  flex: 1;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-audio-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* 首行双主圆枕胶囊 + 次行 2×2 饱满模式圆枕胶囊（1:1 复刻效果图第1屏 2列厚实圆枕布局！） */
.console-primary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.console-modes-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 14px;
}

.btn-main-lamp,
.btn-timer-entry,
.mode-pill {
  position: relative;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded);
  border: var(--rim-micro);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    box-shadow 0.22s var(--ease-tactile),
    transform 0.16s var(--ease-tactile),
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.btn-main-lamp,
.btn-timer-entry {
  height: 46px;
}

.mode-pill {
  height: 41px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--neu-extruded-sm);
}

.btn-main-lamp {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-timer-entry {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 效果图第1屏「Candle」按键标志性右上角琥珀微光圆点！ */
.btn-main-lamp::after,
.mode-pill::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transition: all 0.28s ease;
}

.mode-pill::after {
  top: 9px;
  right: 15px;
  width: 5.5px;
  height: 5.5px;
}

/* 激活态（1:1 复刻效果图 Candle 按钮：金珀细发光环 + 右上角亮琥珀星点 + 内透柔金晕） */
.btn-main-lamp.is-lit,
.btn-timer-entry.is-counting,
.mode-pill.is-active {
  background: var(--surface-active-glow);
  border: 1px solid var(--amber-border);
  box-shadow:
    var(--amber-outer-halo),
    6px 8px 16px rgba(6, 5, 4, 0.85),
    inset 0 0 16px rgba(242, 166, 68, 0.15);
  color: var(--amber-bright);
}

.btn-main-lamp.is-lit::after,
.mode-pill.is-active::after {
  opacity: 1;
  background: #ffd788;
  box-shadow: 0 0 8px #f5a638, 0 0 14px rgba(245, 166, 56, 0.8);
  animation: dotBreath 2.4s ease-in-out infinite;
}

.btn-main-lamp:active,
.btn-timer-entry:active,
.mode-pill:active {
  background: var(--bg-inset);
  box-shadow: var(--neu-pressed);
  transform: scale(0.98);
}

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

/* ==================== 底部一体软浮雕导航栏 ==================== */
.bottom-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 6px 16px 4px;
  background: var(--bg-surface);
  z-index: 20;
}

body.is-wxmp .bottom-nav {
  padding-bottom: calc(8px + var(--safe-bottom));
}

.icp-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 2px 12px calc(6px + var(--safe-bottom));
  background: var(--bg-surface);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  z-index: 20;
}

.icp-footer a {
  color: rgba(183, 169, 153, 0.52);
  text-decoration: none;
  transition: color 0.2s ease;
}

.icp-footer a:hover {
  color: var(--amber-bright);
  text-decoration: underline;
}

body.is-wxmp .icp-footer {
  display: none;
}

.nav-item {
  position: relative;
  height: 44px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s var(--ease-tactile);
}

.nav-item .nav-icon {
  font-size: 15px;
  filter: grayscale(0.8);
  opacity: 0.62;
  transition: all 0.22s ease;
}

.nav-item .nav-label {
  font-size: 10px;
}

.nav-item:active {
  transform: scale(0.97);
}

.nav-item.is-active {
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm), inset 0 0 14px rgba(242, 166, 68, 0.10);
  border: 1px solid rgba(242, 166, 68, 0.24);
  color: var(--amber-bright);
}

.nav-item.is-active .nav-icon {
  filter: grayscale(0);
  opacity: 1;
}

/* ==================== 效果图第2屏标志性「深内凹胶囊长槽 + 厚实凸起滑块」分段切换器 ==================== */
.sub-tabs-bar,
.board-switch-row {
  display: grid;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #14120f;
  box-shadow: var(--neu-inset);
  border: 1px solid rgba(255, 238, 214, 0.025);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.sub-tabs-bar {
  grid-template-columns: repeat(3, 1fr);
}

.board-switch-row {
  grid-template-columns: repeat(2, 1fr);
}

.sub-tab-btn,
.board-tab-btn {
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  transition:
    box-shadow 0.22s var(--ease-tactile),
    transform 0.16s var(--ease-tactile),
    background 0.2s ease,
    color 0.2s ease;
}

.sub-tab-btn:active,
.board-tab-btn:active {
  transform: scale(0.98);
}

/* 选中的子栏作为一枚饱满凸起圆枕滑块嵌在深槽内（1:1 复刻效果图 Write 滑块！） */
.sub-tab-btn.is-active,
.board-tab-btn.is-active {
  background: linear-gradient(170deg, #2b2621 0%, #1d1a16 100%);
  box-shadow:
    5px 6px 14px rgba(4, 3, 2, 0.90),
    -2px -2px 8px rgba(58, 50, 42, 0.35),
    inset 0 1px 1px rgba(255, 240, 218, 0.11);
  border: 1px solid rgba(255, 238, 214, 0.06);
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== Tab 2: 今日自省 & 灯下广场（1:1 复刻效果图第2屏） ==================== */
.reflect-subpane,
.growth-subpane {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.reflect-subpane.is-active,
.growth-subpane.is-active {
  display: flex;
}

.daily-prompt-card {
  padding: 15px 18px;
  border-radius: 26px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded);
  border: var(--rim-micro);
}

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

.prompt-badge {
  font-size: 11px;
  color: var(--amber-main);
  font-weight: 500;
}

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

.text-link-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  font-size: 11px;
  color: var(--text-secondary);
}

.text-link-btn:active {
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  transform: scale(0.97);
}

.prompt-question-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 500;
}

.section-mini-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.scene-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 心情胶囊：1:1 复刻效果图第2屏 Calm / Quiet / Sleep 饱满立体圆枕胶囊！ */
.scene-tag-chip {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-primary);
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  transition: all 0.2s var(--ease-tactile);
}

.scene-tag-chip:active {
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  transform: scale(0.98);
}

.scene-tag-chip.is-selected {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
  font-weight: 600;
}

/* 自省书写池：1:1 复刻效果图第2屏「深雕刻内凹圆角池 + 暖茶横格信纸细线」！ */
.editor-box {
  border-radius: 26px;
  background: #161411;
  box-shadow:
    inset 8px 9px 20px rgba(5, 4, 3, 0.94),
    inset -6px -6px 15px rgba(48, 42, 35, 0.42),
    0 1px 0 rgba(255, 238, 214, 0.04);
  padding: 16px 18px 12px;
}

.editor-box textarea {
  width: 100%;
  min-height: 160px;
  resize: none;
  font-size: 14px;
  line-height: 32px;
  color: var(--text-primary);
  background-image: linear-gradient(transparent 31px, rgba(212, 166, 106, 0.095) 32px);
  background-size: 100% 32px;
  background-attachment: local;
}

.editor-box textarea::placeholder {
  color: var(--text-muted);
}

.editor-footer {
  margin-top: 8px;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.publish-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 拟态软浮雕拨动开关组件 */
.visibility-toggle,
.sleep-auto-off-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

.visibility-toggle input[type="checkbox"],
.sleep-auto-off-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-slot-deep);
  box-shadow: var(--neu-inset-sm);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease-tactile);
}

.visibility-toggle input[type="checkbox"]::after,
.sleep-auto-off-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow: 2px 3px 6px #070605;
  transition: transform 0.25s var(--ease-tactile), background 0.25s ease, box-shadow 0.25s ease;
}

.visibility-toggle input[type="checkbox"]:checked,
.sleep-auto-off-row input[type="checkbox"]:checked {
  border: 1px solid rgba(242, 166, 68, 0.36);
  box-shadow: var(--neu-inset-sm), inset 0 0 10px rgba(242, 166, 68, 0.22);
}

.visibility-toggle input[type="checkbox"]:checked::after,
.sleep-auto-off-row input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: var(--amber-main);
  box-shadow: 0 0 10px rgba(242, 166, 68, 0.75);
}

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

/* 效果图第2屏标志性「Submit 茶珀暖光半透发光主胶囊按钮」！ */
.btn-submit-reflect,
.btn-confirm-sheet {
  margin-top: 6px;
  height: 50px;
  width: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(144, 92, 42, 0.72) 0%, rgba(92, 56, 24, 0.84) 100%);
  border: 1.5px solid rgba(244, 172, 78, 0.68);
  box-shadow:
    0 0 26px rgba(232, 144, 48, 0.30),
    0 9px 20px rgba(6, 5, 4, 0.85),
    inset 0 1px 12px rgba(255, 208, 132, 0.26);
  color: #fff5e6;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: all 0.2s var(--ease-tactile);
}

.btn-submit-reflect:active,
.btn-confirm-sheet:active {
  transform: scale(0.982);
  box-shadow:
    0 0 18px rgba(232, 144, 48, 0.24),
    inset 4px 4px 12px rgba(20, 12, 5, 0.75);
}

/* 灯下广场与自省卡片 */
.plaza-banner-tip {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.plaza-filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  margin: -6px -4px -4px;
}

.plaza-filter-scroll::-webkit-scrollbar {
  display: none;
}

.cards-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reflect-card {
  padding: 16px 18px;
  border-radius: 26px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded);
  border: var(--rim-micro);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rcard-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rcard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-inset) !important;
  box-shadow: var(--neu-inset-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rcard-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.rcard-nick {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.rcard-lamp-badge {
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  color: var(--amber-main);
}

.rcard-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.rcard-prompt-quote {
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
}

.rcard-content {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.rcard-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.rcard-tag {
  font-size: 11.5px;
  color: var(--amber-main);
}

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

.btn-warm-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  transition: all 0.2s var(--ease-tactile);
}

.btn-warm-like.is-warmed {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
}

.btn-card-mini {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
}

.mine-summary-card {
  padding: 13px 16px;
  border-radius: 20px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== Tab 3: 好友亮灯榜 ==================== */
.board-cover-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  background: var(--surface-card);
  box-shadow:
    var(--neu-extruded),
    inset 0 1px 0 rgba(255, 224, 158, 0.22),
    inset 0 14px 28px -12px rgba(242, 166, 68, 0.16);
  border: 1px solid rgba(242, 166, 68, 0.22);
  margin-bottom: 16px;
}

.board-cover-visual {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
  padding: 3px;
  flex-shrink: 0;
}

.board-cover-visual canvas {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  display: block;
}

.board-cover-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cover-crown-tag {
  font-size: 11px;
  color: var(--amber-main);
  font-weight: 600;
}

.cover-champ-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cover-nickname {
  font-size: 15px;
  color: var(--text-primary);
}

.cover-tier-tag {
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  color: var(--amber-bright);
}

.cover-stat-line {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.cover-quote {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-rank-bar {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface-active-glow);
  box-shadow: var(--neu-extruded-row), var(--amber-outer-halo);
  border: 1px solid rgba(242, 166, 68, 0.36);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.my-rank-bar > div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded-row);
  border: var(--rim-micro);
}

.board-rank-num {
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.board-rank-num.top-1 {
  color: var(--amber-bright);
  text-shadow: 0 0 8px rgba(242, 166, 68, 0.45);
}
.board-rank-num.top-2 {
  color: #dfd6cb;
}
.board-rank-num.top-3 {
  color: #d89b66;
}

.board-user-main {
  flex: 1;
  min-width: 0;
}

.board-user-line1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.board-user-line2 {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-metric-val {
  text-align: right;
  margin-right: 4px;
}

.board-metric-val strong {
  display: block;
  font-size: 15px;
  color: var(--amber-bright);
}

.board-metric-val span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.board-fire-btn {
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  font-size: 11px;
  color: var(--text-secondary);
}

.board-fire-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.board-fire-btn.is-warmed {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
}

/* ==================== Tab 4: 器物图鉴与守灯徽章 ==================== */
.growth-hero-card {
  padding: 18px;
  border-radius: 28px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded);
  border: var(--rim-micro);
  margin-bottom: 16px;
}

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

.growth-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  border: 1px solid rgba(242, 166, 68, 0.28);
  color: var(--amber-bright);
  font-size: 11.5px;
  font-weight: 600;
}

.growth-points-num {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.growth-points-num small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.btn-outline-warm {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: 1px solid rgba(242, 166, 68, 0.30);
  color: var(--amber-bright);
  font-size: 11.5px;
}

.growth-progress-wrap {
  margin-top: 14px;
}

.growth-progress-bar,
.badge-prog-bar {
  height: 9px;
  border-radius: 999px;
  background: var(--bg-slot-deep);
  box-shadow: inset 3px 3px 7px #070605, inset -2px -2px 5px #26221e;
  padding: 1.5px;
  overflow: hidden;
}

.badge-prog-bar {
  height: 6px;
  padding: 1px;
}

.growth-progress-fill,
.badge-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright));
  box-shadow: 0 0 10px rgba(242, 166, 68, 0.55);
  transition: width 0.35s ease;
}

.growth-progress-hint {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.growth-stats-grid {
  margin-top: 14px;
  padding: 12px 6px;
  border-radius: 20px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.g-stat-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
}

.g-stat-item span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.compendium-intro {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 12px 15px;
  border-radius: 20px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
}

.compendium-intro strong {
  color: var(--amber-bright);
}

.tier-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-item-card {
  display: flex;
  gap: 13px;
  padding: 14px;
  border-radius: 26px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded);
  border: var(--rim-micro);
}

.tier-item-card.is-current {
  border: 1px solid var(--amber-border);
  box-shadow: var(--neu-extruded), var(--amber-outer-halo);
}

.tier-thumb-box {
  width: 86px;
  height: 98px;
  border-radius: 20px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
  padding: 3px;
  flex-shrink: 0;
  overflow: hidden;
}

.tier-thumb-box canvas {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  display: block;
}

.tier-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tier-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tier-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-bright);
}

.tier-status-tag {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.tier-status-tag.unlocked {
  color: var(--amber-bright);
  border: 1px solid rgba(242, 166, 68, 0.28);
}

.tier-meta-line {
  font-size: 11px;
  color: var(--text-muted);
}

.tier-desc-text {
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.tier-quote-line {
  font-size: 11.5px;
  color: var(--text-primary);
  opacity: 0.88;
}

.tier-actions-row {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-preview-6s,
.btn-use-tier {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
}

.btn-preview-6s {
  color: var(--amber-bright);
  border-color: rgba(242, 166, 68, 0.32);
}

.btn-use-tier {
  color: var(--text-secondary);
}

/* ==================== 10 枚守灯徽章（凸起暖金章 vs 内凹石刻拓印） ==================== */
.badge-group-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 2px;
}

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

.badge-card {
  padding: 14px;
  border-radius: 24px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
  border: var(--rim-inset);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.badge-medal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  filter: grayscale(0.9) opacity(0.55);
}

.badge-reward-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-muted);
}

.badge-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.badge-desc {
  font-size: 11px;
  line-height: 1.42;
  color: var(--text-muted);
  min-height: 31px;
}

.badge-prog-text {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.badge-card.is-unlocked {
  background: var(--surface-card);
  box-shadow: var(--neu-extruded), var(--amber-inner-glow);
  border: 1px solid var(--amber-border);
}

.badge-card.is-unlocked .badge-medal {
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm), 0 0 14px rgba(242, 166, 68, 0.28);
  border: 1px solid rgba(242, 166, 68, 0.36);
  filter: none;
}

.badge-card.is-unlocked .badge-title {
  color: var(--amber-bright);
}

.badge-card.is-unlocked .badge-milestone,
.badge-card.is-unlocked .badge-reward-tag {
  color: var(--amber-main);
}

.badge-card.is-unlocked .badge-reward-tag {
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
}

.rules-card {
  padding: 16px;
  border-radius: 26px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded);
  border: var(--rim-micro);
}

.rules-card h3 {
  font-size: 13.5px;
  color: var(--amber-bright);
  margin-bottom: 12px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
}

.rules-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.rules-list li strong {
  color: var(--amber-bright);
  font-weight: 500;
}

.rules-list li small {
  color: var(--text-muted);
  font-size: 10.5px;
}

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

.plog-row {
  padding: 12px 15px;
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded-row);
  border: var(--rim-micro);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.plog-delta {
  color: var(--amber-bright);
  font-weight: 600;
}

/* ==================== 底部抽屉与居中弹窗（第3屏：环形琥珀光弧计时表盘 + 纵向发光推子！） ==================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.76);
  backdrop-filter: blur(5px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet {
  width: 100%;
  max-height: 95%;
  background: var(--bg-surface);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  border-top: 1px solid rgba(255, 238, 214, 0.06);
  box-shadow: 0 -16px 42px #070605;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.center-dialog {
  align-self: center;
  width: calc(100% - 36px);
  max-width: 372px;
  background: var(--bg-surface);
  border-radius: 28px;
  border: var(--rim-micro);
  box-shadow: 14px 18px 42px #070605, -6px -6px 18px rgba(48, 42, 35, 0.42);
  overflow: hidden;
}

.sheet-header {
  padding: 12px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-header h3 {
  font-size: 15px;
  color: var(--text-primary);
}

.sheet-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sheet-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--text-secondary);
  font-size: 12px;
}

.sheet-body {
  padding: 4px 20px 10px;
  overflow-y: auto;
}

.sheet-body::-webkit-scrollbar {
  width: 0;
}

.dialog-body {
  padding: 12px 20px 16px;
}

.sheet-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

/* --- 效果图第3屏核心组件 1：环形琥珀光弧软浮雕计时表盘 (Circular Amber-Arc Dial) --- */
.neu-timer-dial-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 12px;
}

.neu-timer-dial {
  position: relative;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow:
    10px 12px 24px rgba(5, 4, 3, 0.90),
    -6px -6px 16px rgba(56, 48, 40, 0.45),
    inset 0 1px 1px rgba(255, 240, 218, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.neu-dial-svg {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  transform: rotate(-90deg);
}

.neu-dial-track {
  fill: none;
  stroke: #110f0c;
  stroke-width: 9;
}

.neu-dial-arc {
  fill: none;
  stroke: url(#amberDialGrad);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-dasharray: 439.82;
  stroke-dashoffset: 180;
  filter: drop-shadow(0 0 6px rgba(245, 166, 58, 0.85));
  transition: stroke-dashoffset 0.35s var(--ease-tactile);
}

/* 表盘中央凸起哑光圆饼数码窗 */
.neu-dial-puck {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(165deg, #27231e 0%, #191613 100%);
  box-shadow:
    5px 6px 14px rgba(5, 4, 3, 0.88),
    -3px -3px 8px rgba(54, 46, 38, 0.36),
    inset 0 1px 1px rgba(255, 240, 218, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.neu-dial-time {
  font-size: 23px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.8px;
  color: #f6efe4;
}

.neu-dial-sub {
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-muted);
}

/* 快捷时长胶囊网格 */
.duration-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.dur-chip {
  height: 31px;
  border-radius: 999px;
  font-size: 11.5px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--text-secondary);
}

.dur-chip.is-selected {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
  font-weight: 600;
}

.custom-min-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.custom-min-row input {
  width: 68px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-slot-deep);
  box-shadow: var(--neu-inset-sm);
  text-align: center;
  font-size: 12.5px;
  color: var(--amber-bright);
}

.btn-apply-custom {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--amber-bright);
  font-size: 11.5px;
}

/* 伴随模式切换 */
.accompany-switch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.acc-card {
  padding: 8px 12px;
  border-radius: 18px;
  text-align: left;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-card strong {
  font-size: 12px;
  color: var(--text-primary);
}

.acc-card span {
  font-size: 10px;
  color: var(--text-muted);
}

.acc-card.is-selected {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
}

.acc-card.is-selected strong {
  color: var(--amber-bright);
}

/* --- 效果图第3屏核心组件 2：4 路纵向深内凹琥珀流光推子台 (Vertical Glowing Faders) --- */
.sound-mixer-box {
  margin-top: 10px;
  padding: 12px 14px 10px;
  border-radius: 24px;
  background: var(--surface-card);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
}

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

.track-pill {
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-pill.is-active {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
  font-weight: 600;
}

.vertical-faders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 260px;
  margin: 0 auto;
  gap: 14px;
  justify-items: center;
  padding: 2px 4px;
}

.v-fader-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 纵向深雕刻圆枕滑槽 */
.v-fader-slot {
  position: relative;
  width: 26px;
  height: 112px;
  border-radius: 999px;
  background: #0f0d0a;
  box-shadow:
    inset 4px 5px 10px rgba(3, 2, 2, 0.96),
    inset -3px -3px 8px rgba(48, 42, 35, 0.42),
    0 1px 0 rgba(255, 238, 214, 0.05);
  display: flex;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
}

/* 槽底向上生长的熔金琥珀发光灯柱（1:1 还原效果图 Rain / Fire / Wind 光柱！） */
.v-fader-glow {
  position: absolute;
  bottom: 7px;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe29a 0%, #f2a23c 65%, #d97e22 100%);
  box-shadow:
    0 0 10px rgba(245, 166, 58, 0.88),
    0 0 20px rgba(235, 142, 42, 0.45);
  pointer-events: none;
}

/* 悬浮在滑槽上的 3D 凸面哑光玄武岩圆形推子帽 */
.v-fader-knob {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2d2822 0%, #181512 100%);
  border: 1px solid rgba(255, 238, 216, 0.10);
  box-shadow:
    4px 6px 12px rgba(4, 3, 2, 0.92),
    -2px -2px 6px rgba(60, 52, 44, 0.40),
    inset 0 1px 1px rgba(255, 240, 218, 0.12);
  pointer-events: none;
}

.v-fader-slot input[type="range"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.v-fader-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* 2×3 提醒声音网格 */
.chime-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.chime-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 11px;
  border-radius: 16px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  cursor: pointer;
}

.chime-cell.is-selected {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
}

.chime-cell-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chime-cell-info strong {
  font-size: 12px;
  color: var(--text-primary);
}

.chime-cell.is-selected .chime-cell-info strong {
  color: var(--amber-bright);
}

.chime-cell-info small {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-chime-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--amber-bright);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sleep-auto-off-row {
  margin-top: 12px;
}

.sheet-footer {
  padding: 8px 20px calc(12px + var(--safe-bottom));
}

/* 个人名片与海报弹窗 */
.emoji-picker-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.emoji-opt {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  font-size: 18px;
}

.emoji-opt.is-selected {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), var(--neu-inset-sm);
  border: 1px solid var(--amber-border);
}

.dialog-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg-slot-deep);
  box-shadow: var(--neu-inset);
  font-size: 13.5px;
  color: var(--text-primary);
}

.poster-dialog {
  max-width: 360px;
}

.poster-preview-wrap {
  margin: 4px 16px 6px;
  padding: 8px;
  border-radius: 22px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset);
  display: flex;
  justify-content: center;
}

.poster-preview-wrap img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 16px;
}

.poster-actions-row {
  padding: 10px 18px 16px;
}

.celebrate-dialog {
  text-align: center;
  padding-bottom: 6px;
}

.celebrate-badge-icon {
  margin: 22px auto 12px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded), var(--amber-outer-halo);
  border: 1px solid var(--amber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.celebrate-dialog h3 {
  font-size: 17px;
  color: var(--amber-bright);
  padding: 0 18px;
}

.celebrate-dialog p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 8px 20px 18px;
  line-height: 1.55;
  white-space: pre-line;
}

/* Toast 暖玄武岩圆枕轻提示 */
.toast-container {
  position: absolute;
  bottom: 72px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 90;
}

.toast-item {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm), var(--amber-outer-halo);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
  font-size: 12px;
  animation: toastFadeIn 0.24s var(--ease-tactile);
}

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

/* ==================== 真实微信头像 & 好友榜/全部榜双层切换 ==================== */
.avatar-circle-btn {
  padding: 0;
  overflow: hidden;
}

.avatar-slot-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-bright);
}

.real-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.rcard-avatar {
  overflow: hidden;
  padding: 0;
}

.avatar-initial-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-bright);
  letter-spacing: 0;
}

.cover-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  border: 1px solid rgba(242, 166, 68, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cover-avatar .avatar-initial-fallback {
  font-size: 11.5px;
}

.my-rank-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.my-rank-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-inset);
  border: 1px solid rgba(242, 166, 68, 0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-rank-avatar .avatar-initial-fallback {
  font-size: 11.5px;
}

/* 外层好友榜 / 全部榜切换槽 */
.board-scope-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #14120f;
  box-shadow: var(--neu-inset);
  border: 1px solid rgba(255, 238, 214, 0.03);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.board-scope-btn {
  height: 38px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s var(--ease-tactile);
}

.board-scope-btn.is-active {
  background: var(--surface-active-glow);
  box-shadow: var(--amber-outer-halo), 4px 5px 12px rgba(4, 3, 2, 0.88);
  border: 1px solid var(--amber-border);
  color: var(--amber-bright);
  font-weight: 600;
}

.friends-invite-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg-inset);
  box-shadow: var(--neu-inset-sm);
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.friends-invite-bar.hidden {
  display: none;
}

/* 个人名片真实头像编辑区 */
.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0 2px;
}

.profile-avatar-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-slot-deep);
  box-shadow: var(--neu-inset-sm), 0 0 18px rgba(242, 166, 68, 0.14);
  border: 1.5px solid rgba(242, 166, 68, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar-preview .avatar-initial-fallback {
  font-size: 22px;
}

.profile-avatar-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.btn-wx-resync,
.btn-upload-avatar {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-dome);
  box-shadow: var(--neu-extruded-sm);
  border: var(--rim-micro);
  color: var(--text-primary);
}

.btn-wx-resync {
  border-color: rgba(242, 166, 68, 0.38);
  color: var(--amber-bright);
}

.btn-wx-resync.hidden {
  display: none;
}
