/* ==========================================================================
   显化冥想 网页版 样式表
   配色与视觉语言 1:1 对应安卓端 Color.kt / Theme.kt，
   浅色为温暖米色调、深色为深色暖调，苹果风的柔和通透质感。
   ========================================================================== */

/* ---------- 主题变量 ---------- */
:root {
  /* 浅色模式 */
  --bg: #f5f0eb;
  --surface: #fdfaf6;
  --surface-variant: #f5f0eb;
  --on-bg: #5c5049;
  --on-surface: #5c5049;
  --muted: #8c7a6e;
  --accent: #8e7b6f;
  --accent-pressed: #7b6a5f;
  --rose: #d9bfb8;
  --light-rose: #f3e4df;
  --sage: #dce0d4;
  --warn: #c0826e;
  --gold: #c4a48b;
  --divider: rgba(217, 191, 184, 0.28);
  --glass: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);
  --scrim: rgba(92, 80, 73, 0.45);
  --shadow-sm: 0 2px 10px rgba(142, 123, 111, 0.08);
  --shadow-md: 0 6px 22px rgba(142, 123, 111, 0.12);
  --shadow-lg: 0 14px 40px rgba(142, 123, 111, 0.18);
  --field-placeholder: #c4b6ad;
  --success: #6b9b7e;
}

:root[data-theme='dark'] {
  --bg: #1a1817;
  --surface: #262220;
  --surface-variant: #2e2a26;
  --on-bg: #e8d5c8;
  --on-surface: #e8d5c8;
  --muted: #b8a094;
  --accent: #c4a48b;
  --accent-pressed: #aa8e78;
  --rose: #7a5e55;
  --light-rose: #3a2f2b;
  --sage: #3b4038;
  --warn: #c99e8c;
  --gold: #c4a48b;
  --divider: rgba(196, 164, 139, 0.16);
  --glass: rgba(42, 37, 34, 0.92);
  --glass-border: rgba(255, 255, 255, 0.14);
  --scrim: rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.48);
  --field-placeholder: #8b7a70;
  --success: #8fbf9f;
}

/* ---------- 重置 ---------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--on-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* 桌面端：内容居中为手机宽度，两侧留白 */
#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 520px) {
  body {
    background: linear-gradient(160deg, #efe7e0 0%, #e6dcd4 100%);
  }
  :root[data-theme='dark'] body {
    background: linear-gradient(160deg, #171514 0%, #211d1b 100%);
  }
  #app {
    box-shadow: 0 24px 70px rgba(92, 80, 73, 0.22);
  }
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg {
  flex: none;
}

.hidden {
  display: none !important;
}

/* hidden 属性的 UA 样式优先级低于类选择器，会被 .tabbar{display:flex} 之类覆盖，
   这里显式兜底，保证 hidden 一定生效。 */
[hidden] {
  display: none !important;
}

/* ---------- 页面容器与转场 ---------- */
#view-root {
  position: absolute;
  inset: 0;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  will-change: transform;
}

/* 手机版是右侧滑入 / 左侧滑出的 push-pop 转场，这里用同样的方向感 */
.page-enter {
  transform: translateX(100%);
  opacity: 0.6;
}
.page-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}
.page-leave-active {
  transform: translateX(-24%);
  opacity: 0.4;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}
.page-pop-enter {
  transform: translateX(-24%);
  opacity: 0.5;
}
.page-pop-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}
.page-pop-leave-active {
  transform: translateX(100%);
  opacity: 0.5;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.page-pad {
  padding: 0 20px;
}

/* 底部导航栏存在时，页面底部留出空间（避免内容被悬浮栏挡住） */
.page-with-tabbar .page-body {
  padding-bottom: 88px;
}

/* ---------- 顶部返回栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  min-height: 56px;
  flex: none;
}

.topbar-title {
  flex: 1;
  font-size: 19px;
  font-weight: 600;
  color: var(--on-bg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--accent);
  transition: background 0.2s ease, transform 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(142, 123, 111, 0.1);
}

/* ---------- 底部导航栏（玻璃拟态悬浮） ---------- */
.tabbar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: 60px;
  display: flex;
  align-items: center;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--glass-border) 0%, var(--glass) 45%, var(--glass) 100%);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 30px rgba(142, 123, 111, 0.22);
  z-index: 20;
  padding: 0 8px;
}

:root[data-theme='dark'] .tabbar {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.tab-item svg {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

:root[data-theme='dark'] .tab-item.active {
  color: var(--on-bg);
}

.tab-item.active svg {
  transform: scale(1.1);
}

.tab-label {
  font-size: 10px;
  line-height: 1.2;
}

.tab-item.active .tab-label {
  font-weight: 600;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.card-tight {
  padding: 0;
}

.card-flat {
  border-radius: 20px;
  padding: 20px;
}

.card + .card {
  margin-top: 12px;
}

/* 可点击卡片的按压反馈（对应安卓端 pressScale） */
.pressable {
  transition: transform 0.14s ease, box-shadow 0.2s ease;
}

.pressable:active {
  transform: scale(0.975);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.14s ease, background 0.2s ease, opacity 0.2s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

:root[data-theme='dark'] .btn-primary {
  color: #1a1817;
}

.btn-primary:disabled {
  background: var(--accent);
  opacity: 0.42;
}

.btn-outline {
  border: 1.5px solid var(--divider);
  color: var(--muted);
  background: transparent;
}

:root[data-theme='dark'] .btn-outline {
  border-color: rgba(196, 164, 139, 0.34);
  color: var(--on-bg);
}

.btn-danger {
  background: var(--warn);
  color: #fff;
}

:root[data-theme='dark'] .btn-danger {
  color: #1a1817;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

/* 加载中的小圈 */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  opacity: 0.9;
}

.spinner-lg {
  width: 34px;
  height: 34px;
  border-width: 3px;
  color: var(--accent);
}

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

.center-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 240px;
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0 14px;
  min-height: 56px;
  transition: border-color 0.2s ease;
}

.field:focus-within {
  border-color: var(--accent);
}

.field-icon {
  color: var(--muted);
  display: flex;
}

.field input,
.field textarea {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--on-surface);
  padding: 16px 0;
}

.field textarea {
  resize: none;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--field-placeholder);
}

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

.field-group + .field-group {
  margin-top: 12px;
}

/* 带浮动标签的输入框（对应 OutlinedTextField 的 label） */
.field-float {
  position: relative;
  padding-top: 22px;
  padding-bottom: 6px;
  align-items: flex-end;
}

/* 标签落在输入框左上角（图标右侧），类似 Material 的浮动标签 */
.field-float .field-label-float {
  position: absolute;
  top: 9px;
  left: 44px;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

.field-float input {
  padding: 0 0 6px;
}

.counter {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 8px 0;
}

.counter.warn {
  color: var(--warn);
}

/* ---------- 滑块 ---------- */
input[type='range'].slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
}

input[type='range'].slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(142, 123, 111, 0.18);
}

input[type='range'].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(92, 80, 73, 0.28);
  transition: transform 0.15s ease;
}

input[type='range'].slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

input[type='range'].slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(142, 123, 111, 0.18);
}

input[type='range'].slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
}

/* 进度条（冥想播放页） */
.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.progress-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.progress-time.right {
  text-align: right;
}

/* ---------- 开关 ---------- */
.switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(142, 123, 111, 0.28);
  transition: background 0.24s ease;
  flex: none;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  transform: translateX(20px);
}

/* ---------- 列表行（我的页菜单） ---------- */
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  min-height: 58px;
  transition: background 0.18s ease;
}

.list-row:active {
  background: rgba(217, 191, 184, 0.12);
}

.list-row-icon {
  color: var(--accent);
  opacity: 0.85;
  display: flex;
}

.list-row-label {
  flex: 1;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row-trailing {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.divider {
  height: 1px;
  background: var(--divider);
  margin: 0 24px;
}

/* ---------- 标签 / 徽章 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(217, 191, 184, 0.45);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--surface-variant);
  color: var(--muted);
}

.badge-vip {
  background: rgba(217, 191, 184, 0.45);
  color: var(--accent);
}

:root[data-theme='dark'] .badge-vip {
  background: rgba(122, 94, 85, 0.5);
  color: var(--gold);
}

/* ---------- 空态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 弹窗 / 底部面板 / Toast ---------- */
#layer-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

#layer-root > * {
  pointer-events: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  transition: background 0.2s ease;
  display: flex;
  z-index: 100;
}

.overlay-in {
  background: var(--scrim);
}

.overlay-center {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay-bottom {
  align-items: flex-end;
  justify-content: center;
}

.dialog {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.2s ease;
}

.overlay-in .dialog {
  transform: scale(1);
  opacity: 1;
}

.dialog-wide {
  max-width: 380px;
  text-align: left;
}

.dialog-icon {
  display: flex;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}

.dialog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
}

.dialog-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  /* 描述里的 \n 换行需要保留（如"删除后不可恢复"这类两段式提示） */
  white-space: pre-line;
  word-break: break-word;
}

.dialog-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.dialog-actions .btn {
  flex: 1;
  min-height: 46px;
}

.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.overlay-in .sheet {
  transform: translateY(0);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-title {
  font-size: 18px;
  font-weight: 600;
}

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 底部面板中的选项行 */
.sheet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.sheet-option:active {
  background: rgba(142, 123, 111, 0.08);
}

.sheet-option.selected {
  background: rgba(142, 123, 111, 0.1);
}

.sheet-option-main {
  flex: 1;
  min-width: 0;
}

.sheet-option-title {
  font-size: 16px;
}

.sheet-option.selected .sheet-option-title {
  font-weight: 600;
}

.sheet-option-desc {
  font-size: 12px;
  color: var(--muted);
}

.sheet-option-check {
  color: var(--accent);
  display: flex;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  max-width: 82vw;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(92, 80, 73, 0.94);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 200;
}

:root[data-theme='dark'] .toast {
  background: rgba(232, 213, 200, 0.95);
  color: #1a1817;
}

.toast-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 生成中 / 下载中的全屏遮罩 */
.blocking {
  position: absolute;
  inset: 0;
  background: rgba(92, 80, 73, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: fadeIn 0.2s ease;
}

:root[data-theme='dark'] .blocking {
  background: rgba(0, 0, 0, 0.55);
}

.blocking-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 34px 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 78vw;
}

.blocking-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.blocking-sub {
  font-size: 13px;
  color: var(--muted);
}

.breathing-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

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

/* ---------- 下拉刷新 ---------- */
.ptr {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  transition: height 0.24s ease;
}

.ptr-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0.5;
}

.ptr-ready .ptr-spinner {
  border-top-color: var(--muted);
  opacity: 1;
}

.ptr-loading .ptr-spinner {
  animation: spin 0.7s linear infinite;
  opacity: 1;
}

/* ==========================================================================
   登录 / 注册 / 重置密码
   ========================================================================== */
.auth-page {
  align-items: center;
}

.auth-inner {
  width: 100%;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(217, 191, 184, 0.7), rgba(217, 191, 184, 0.1) 70%);
  color: var(--accent);
}

.auth-logo.small {
  width: 72px;
  height: 72px;
}

.auth-title {
  margin-top: 16px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--accent);
  text-indent: 6px;
}

.auth-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.auth-card {
  width: 100%;
  margin-top: 32px;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: authIn 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

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

.auth-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--warn);
}

.auth-ok {
  margin-top: 8px;
  font-size: 13px;
  color: var(--success);
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(140, 122, 110, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 1px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.link {
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

.auth-switch {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 2px;
}

.auth-switch .link {
  padding: 8px 10px;
}

.third-party {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.divider-text {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(217, 191, 184, 0.4);
}

.third-party-row {
  display: flex;
  gap: 32px;
}

.third-party-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.9;
}

.third-party-item:active {
  opacity: 0.6;
}

.gender-row {
  display: flex;
  gap: 10px;
}

.gender-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  border-radius: 12px;
  border: 1px solid rgba(217, 191, 184, 0.5);
  font-size: 14px;
  color: var(--on-surface);
  transition: all 0.2s ease;
}

.gender-item.selected {
  border-color: var(--accent);
  border-width: 1.5px;
  background: rgba(142, 123, 111, 0.1);
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   主界面（三 Tab 滑动容器）
   ========================================================================== */
.pager {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  touch-action: pan-y;
}

.pager-track {
  display: flex;
  width: 300%;
  height: 100%;
  /* 关键：track 是 .pager 的 flex item，不写 flex:none 会被压缩成容器宽度，
     导致三个面板挤在一屏里（translateX 的百分比也随之失准）。 */
  flex: none;
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.pager-track.dragging {
  transition: none;
}

.pager-pane {
  flex: none;
  width: calc(100% / 3);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 96px;
}

/* ---------- 首页 ---------- */
.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
}

.home-greet {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.home-date {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.streak-badge {
  flex: none;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.streak-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.streak-label {
  font-size: 10px;
  color: var(--muted);
}

.today-card {
  margin-top: 20px;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

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

.today-title {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-excerpt {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.today-play {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

:root[data-theme='dark'] .today-play {
  color: #1a1817;
}

.today-play:active {
  transform: scale(0.98);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 4px 16px;
}

.section-title {
  font-size: 17px;
  font-weight: 500;
}

.add-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.add-link:active {
  background: rgba(142, 123, 111, 0.1);
}

.wish-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease;
}

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

.wish-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
}

.wish-content {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.wish-actions {
  margin-top: 16px;
}

.wish-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  background: transparent;
}

.wish-btn:active {
  background: rgba(142, 123, 111, 0.08);
}

.footer-note {
  padding: 26px 20px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 肯定语 ---------- */
.aff-head {
  padding: 20px 0 0;
}

.aff-title {
  font-size: 22px;
  font-weight: 600;
}

.aff-date {
  margin-top: 4px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
}

.aff-card {
  border-radius: 28px;
  min-height: 360px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e4df 0%, #e8d8d2 50%, #dce0d4 100%);
  box-shadow: var(--shadow-md);
}

:root[data-theme='dark'] .aff-card {
  background: linear-gradient(135deg, #3a2f2b 0%, #33302a 50%, #2e3530 100%);
}

.aff-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.aff-text {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: 1px;
  text-align: center;
  color: var(--accent);
  animation: affIn 0.7s cubic-bezier(0.32, 0.72, 0, 1) both;
}

:root[data-theme='dark'] .aff-text {
  color: var(--gold);
}

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

.aff-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  color: var(--accent);
  opacity: 0.75;
}

.tips-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.tips-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 我的 ---------- */
.profile-card {
  margin: 12px 0 8px;
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), rgba(217, 191, 184, 0.4));
}

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

.profile-name {
  font-size: 20px;
  font-weight: 600;
}

.profile-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}

.quota-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.expire-banner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(192, 130, 110, 0.12);
}

:root[data-theme='dark'] .expire-banner {
  background: rgba(201, 158, 140, 0.18);
}

.expire-banner-main {
  flex: 1;
  min-width: 0;
}

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

.expire-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.expire-action {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.mood-pill {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 191, 184, 0.5);
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s ease;
}

:root[data-theme='dark'] .mood-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 164, 139, 0.3);
}

.mood-pill.has-mood {
  background: rgba(217, 191, 184, 0.22);
  border-color: rgba(217, 191, 184, 0.6);
  color: var(--accent);
  font-weight: 500;
}

.mood-pill:active {
  transform: scale(0.99);
}

.menu-card {
  margin-top: 12px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.history-title {
  padding: 24px 24px 8px;
  font-size: 21px;
  font-weight: 400;
}

.version-block {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.version-block a {
  color: var(--muted);
}

/* ==========================================================================
   写愿望
   ========================================================================== */
.cat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.cat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-radius: 18px;
  border: 2px solid transparent;
  background: var(--surface);
  font-size: 13px;
  color: var(--on-surface);
  transition: all 0.24s ease;
}

.cat-item.selected {
  background: rgba(142, 123, 111, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.wish-textarea {
  width: 100%;
  min-height: 160px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.65;
  outline: none;
  resize: none;
  color: var(--on-surface);
}

.wish-textarea:focus {
  border-color: var(--accent);
}

.wish-textarea::placeholder {
  color: var(--field-placeholder);
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(192, 130, 110, 0.12);
  color: var(--warn);
  font-size: 13px;
  margin-top: 12px;
}

/* ==========================================================================
   冥想播放页
   ========================================================================== */
.breath-wrap {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(
    circle at center,
    rgba(217, 191, 184, 0.8) 0%,
    rgba(217, 191, 184, 0.2) 55%,
    rgba(217, 191, 184, 0.05) 100%
  );
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  transform: scale(0.92);
  transition: transform 0.6s ease;
}

.breath-circle.playing {
  animation: breathPulse 6s ease-in-out infinite;
}

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

.play-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.controls-row {
  display: flex;
  align-items: center;
  padding: 0 28px;
  margin-top: 24px;
}

.controls-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.controls-side.left {
  justify-content: flex-end;
}

.ctrl-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, background 0.2s ease, color 0.2s ease;
}

.ctrl-btn:active {
  transform: scale(0.94);
}

.ctrl-btn.active {
  background: var(--accent);
  color: #fff;
}

:root[data-theme='dark'] .ctrl-btn.active {
  color: #1a1817;
}

.ctrl-btn.speed {
  color: var(--accent);
  font-size: 11px;
}

.play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(142, 123, 111, 0.35);
  transition: transform 0.16s ease;
}

:root[data-theme='dark'] .play-btn {
  color: #1a1817;
}

.play-btn:active {
  transform: scale(0.94);
}

.play-card {
  margin-top: 20px;
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.play-card + .play-card {
  margin-top: 20px;
}

.play-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.play-card-head .spacer {
  flex: 1;
}

.play-card-value {
  font-size: 12px;
  color: var(--muted);
}

.play-card-value.on {
  color: var(--accent);
}

.ambient-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 12px;
  scrollbar-width: none;
}

.ambient-scroll::-webkit-scrollbar {
  display: none;
}

.ambient-chip {
  flex: none;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface-variant);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ambient-chip.selected {
  background: rgba(142, 123, 111, 0.15);
  color: var(--accent);
  font-weight: 500;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
}

.script-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.script-body {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.script-body.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   心情状态页
   ========================================================================== */
.mood-page {
  position: relative;
  background: linear-gradient(180deg, var(--mood-bg-top) 0%, var(--mood-bg-mid) 55%, var(--mood-bg-bottom) 100%);
}

:root {
  --mood-bg-top: #f6f1ec;
  --mood-bg-mid: #efe8e2;
  --mood-bg-bottom: #e6ddd5;
  --mood-text-sub: #8c7a6e;
  --mood-glass: rgba(255, 255, 255, 0.32);
  --mood-glass-border: rgba(255, 255, 255, 0.6);
  --mood-accent: #8e7b6f;
  --mood-error: #b0506a;
}

:root[data-theme='dark'] {
  --mood-bg-top: #2b2623;
  --mood-bg-mid: #282320;
  --mood-bg-bottom: #221f1d;
  --mood-text-sub: #b8a094;
  --mood-glass: rgba(255, 255, 255, 0.08);
  --mood-glass-border: rgba(255, 255, 255, 0.14);
  --mood-accent: #c4a48b;
  --mood-error: #e08a72;
}

.mood-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
}

.mood-scroll {
  position: relative;
  z-index: 1;
}

.mood-h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--on-bg);
}

.mood-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mood-text-sub);
}

.glass-card {
  margin-top: 20px;
  background: var(--mood-glass);
  border: 1px solid var(--mood-glass-border);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(142, 123, 111, 0.14);
}

.glass-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--on-bg);
}

.keyword-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--mood-glass-border);
  border-radius: 16px;
  padding: 0 14px;
  min-height: 48px;
}

:root[data-theme='dark'] .glass-field {
  background: rgba(255, 255, 255, 0.06);
}

.glass-field:focus-within {
  border-color: var(--mood-accent);
}

.glass-field input,
.glass-field textarea {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--on-bg);
  font-size: 15px;
  padding: 12px 0;
  resize: none;
}

.glass-field input::placeholder,
.glass-field textarea::placeholder {
  color: var(--mood-text-sub);
  opacity: 0.85;
}

.keyword-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(142, 123, 111, 0.18);
  color: var(--on-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.keyword-add:disabled {
  opacity: 0.45;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: rgba(142, 123, 111, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 14px;
  color: var(--on-bg);
}

:root[data-theme='dark'] .keyword-chip {
  border-color: rgba(255, 255, 255, 0.14);
}

.keyword-chip button {
  display: flex;
  color: var(--mood-text-sub);
  padding: 2px;
}

.mood-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-bg);
}

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

.mood-current-keywords {
  font-size: 20px;
  font-weight: 600;
}

.mood-reason {
  margin-top: 6px;
  font-size: 13px;
  color: var(--mood-text-sub);
}

.mood-script {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.92;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-size: 15px;
}

.entry-row .label {
  flex: 1;
}

.entry-row .value {
  color: var(--mood-accent);
  font-size: 14px;
}

.mood-history-item {
  padding: 8px 0;
}

.mood-history-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mood-history-main {
  flex: 1;
  min-width: 0;
}

.mood-history-title {
  font-size: 15px;
  font-weight: 600;
}

.mood-history-time {
  font-size: 12px;
  color: var(--mood-text-sub);
  flex: none;
}

.mood-history-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
  white-space: pre-wrap;
}

/* ==========================================================================
   会员中心
   ========================================================================== */
.vip-hero {
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold);
}

.vip-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.vip-sub {
  font-size: 14px;
  color: var(--muted);
}

.benefit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
}

.benefit-row .bicon {
  color: var(--accent);
  display: flex;
}

.plan-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.plan-name {
  font-size: 18px;
  font-weight: 600;
}

.plan-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--accent);
}

.plan-price .cny {
  font-size: 14px;
}

.plan-price .num {
  font-size: 28px;
  font-weight: 700;
}

.plan-hot {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
}

:root[data-theme='dark'] .plan-hot {
  color: #1a1817;
}

.vip-pay-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 12px 0 8px;
}

/* ==========================================================================
   协议
   ========================================================================== */
.legal-body {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.legal-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.contact-label {
  font-size: 12px;
  color: var(--muted);
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- 无障碍：尊重系统的减弱动效设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   补充：页面淡入、Tab 面板激活态等
   ========================================================================== */

/* 首屏 / replace 进入时的淡入（无方向感，避免"从右边滑入"的误导） */
.page-fade-in {
  animation: pageFadeIn 0.28s ease both;
}

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

/* 当前激活的 Tab 面板可以整体接收指针事件 */
.pager-pane.pane-active {
  position: relative;
  z-index: 1;
}

/* 心情页：整页渐变背景（覆盖 .page 的默认底色） */
.mood-page {
  background: linear-gradient(
    180deg,
    var(--mood-bg-top) 0%,
    var(--mood-bg-mid) 55%,
    var(--mood-bg-bottom) 100%
  );
}

/* 心情页里的滑块沿用玻璃色调 */
.mood-page input[type='range'].slider::-webkit-slider-thumb {
  background: var(--mood-accent);
}

.mood-page input[type='range'].slider::-moz-range-thumb {
  background: var(--mood-accent);
}

.mood-page .btn-outline {
  border-color: rgba(142, 123, 111, 0.5);
  color: var(--on-bg);
}

/* 播放页的速度按钮里图标与文字竖排更紧凑 */
.ctrl-btn.speed span {
  line-height: 1;
}

/* 生成遮罩在 pane 内时覆盖整个主界面 */
.pager-pane .blocking {
  position: fixed;
  inset: 0;
  z-index: 40;
}

/* 历史冥想行的删除按钮不要撑高行高 */
.list-row-trailing .icon-btn {
  padding: 0;
}

/* 协议正文中的空行保留 */
.legal-body,
.script-body,
.mood-script,
.mood-history-body {
  white-space: pre-wrap;
}

