/* 佛乐 · 样式
   设计语言：写经格局 —— 纸、墨、一枚朱印、几道金界栏。
   全站一套配色：宣纸为底，墨字三阶，朱砂是唯一点睛色（只给可点的、
   正在进行的），泥金只做结构细线（标题引线/分隔/页脚），不做按钮。
   页面氛围随播出时段流转：晨曦 / 纸墨（昼）/ 暮色 / 夜烛。 */

:root {
  --serif: "Noto Serif SC", "Songti SC", "STSongti-SC-Regular", "STSong",
           "Source Han Serif SC", "SimSun", serif;
}

/* —— 全站色（昼） —— */
body {
  --c-zhusha: #bd3a26;   /* 朱砂：唯一点睛色 */
  --gold-line: rgba(166, 130, 60, 0.4);   /* 泥金描线 */
  --gold-text: #8f6f2e;
}

/* —— 四时氛围 —— */
body[data-theme="day"] {
  --bg: #f3ecda; --bg-deep: #eae0c5;
  --ink: #33291b; --ink-2: #6f6047; --ink-3: #a08b6b;
  --card: rgba(255, 252, 243, 0.7); --line: rgba(86, 68, 42, 0.16);
  --sky: linear-gradient(180deg, #e9e6d1 0%, #f0e9d5 46%, #f3ecda 100%);
}
body[data-theme="dawn"] {
  --bg: #f5eedd; --bg-deep: #eedcc2;
  --ink: #382c1d; --ink-2: #78684d; --ink-3: #a59072;
  --card: rgba(255, 250, 240, 0.7); --line: rgba(100, 76, 48, 0.17);
  --sky: linear-gradient(180deg, #f1dcc1 0%, #f3e5cb 52%, #f5eedd 100%);
}
body[data-theme="dusk"] {
  --bg: #f1e7d0; --bg-deep: #e6d1b2;
  --ink: #37291b; --ink-2: #786245; --ink-3: #a68d6d;
  --card: rgba(255, 249, 238, 0.66); --line: rgba(98, 72, 44, 0.19);
  --sky: linear-gradient(180deg, #e9c99d 0%, #eed9b6 55%, #f1e7d0 100%);
}
body[data-theme="night"] {
  --bg: #17130e; --bg-deep: #0f0c08;
  --ink: #ead9bd; --ink-2: #ad9b7e; --ink-3: #7b6c55;
  --card: rgba(38, 32, 23, 0.64); --line: rgba(224, 196, 148, 0.13);
  --sky: linear-gradient(180deg, #0d0a07 0%, #131009 55%, #17130e 100%);
  /* 夜间朱砂提亮，保证纸暗字明 */
  --c-zhusha: #e06e56;
  --gold-line: rgba(212, 172, 100, 0.32);
  --gold-text: #d2a75f;
}

/* —— 点睛色：全站统一朱砂 —— */
body {
  --accent: var(--c-zhusha);
  /* 回退色（不支持 color-mix 的旧浏览器） */
  --accent-soft: rgba(189, 58, 38, 0.4);
  --accent-wash: rgba(189, 58, 38, 0.06);
  --accent-soft: color-mix(in srgb, var(--accent) 45%, var(--bg));
  --accent-wash: color-mix(in srgb, var(--accent) 7%, transparent);
}

* { box-sizing: border-box; margin: 0; padding: 0; touch-action: manipulation; }
/* touch-action: manipulation —— 禁双击放大（保留滚动与双指缩放），并消除移动端 300ms 点击延迟 */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }   /* hidden 属性优先于任何 display 声明 */

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  display: flex; flex-direction: column;
  transition: background 1.2s ease, color 1.2s ease;
  letter-spacing: 0.02em;
}

/* 氛围天空层 + 宣纸纤维颗粒 */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background: var(--sky);
  transition: opacity 1.2s ease;
}
.sky::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* —— 顶栏 —— */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  max-width: 720px; width: 100%; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lotus { width: 34px; height: 34px; color: var(--c-zhusha); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.18rem; font-weight: 600; letter-spacing: 0.12em; }
.brand-text small { font-size: 0.7rem; color: var(--ink-2); letter-spacing: 0.06em; white-space: nowrap; }

.tabs { display: flex; gap: 4px; }
.tabs a {
  text-decoration: none; color: var(--ink-2); white-space: nowrap;
  font-size: 0.92rem; padding: 7px 12px; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.tabs a.on { color: var(--accent); background: var(--accent-wash); }

/* 顶栏右上角 · 问道入口 */
.ask-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  text-decoration: none; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.88rem; letter-spacing: 0.06em;
  transition: border-color 0.25s, background 0.25s;
}
.ask-btn svg { width: 17px; height: 17px; }
.ask-btn:hover, .ask-btn.on { border-color: var(--accent-soft); background: var(--accent-wash); }

@media (max-width: 460px) {
  .top { padding-left: 14px; padding-right: 14px; }
  .brand-text small { display: none; }
  .tabs a { padding: 7px 9px; }
  .ask-btn { padding: 7px 12px; }
}

/* —— 布局 —— */
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 20px 40px; }
.view { display: none; animation: fadein 0.45s ease; }
body[data-view="home"] #view-home,
body[data-view="ting"] #view-ting,
body[data-view="series"] #view-series,
body[data-view="live"] #view-live,
body[data-view="schedule"] #view-schedule,
body[data-view="wenku"] #view-wenku,
body[data-view="reader"] #view-reader,
body[data-view="wode"] #view-wode,
body[data-view="count"] #view-count,
body[data-view="wenda"] #view-wenda { display: block; }

/* 听经三子栏：听经台 / 有声书 / 佛号 */
.panel { display: none; animation: fadein 0.35s ease; }
body[data-seg="ting"] #panel-ting,
body[data-seg="shu"] #panel-shu,
body[data-seg="fohao"] #panel-fohao { display: block; }

.seg-row { display: flex; gap: 8px; margin: 12px 0 18px; }
.seg-row a {
  text-decoration: none; font-family: var(--serif); font-size: 0.9rem;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
body[data-seg="ting"] .seg-row a[data-seg="ting"],
body[data-seg="shu"] .seg-row a[data-seg="shu"],
body[data-seg="fohao"] .seg-row a[data-seg="fohao"] {
  color: var(--accent); border-color: var(--accent-soft); background: var(--accent-wash);
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* —— 板块标题：矿彩标布 + 泥金引线（呼应壁画颜料标布图式） —— */
.page-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.28rem; letter-spacing: 0.12em; font-weight: 600;
  margin: 16px 0 6px;
}
.page-title::before {
  content: ''; flex: none; width: 9px; height: 26px;
  background: var(--accent);
  /* 微不对称圆角，仿颜料干刷标布 */
  border-radius: 3px 5px 4px 6px / 6px 3px 5px 4px;
}
.page-title::after {
  content: ''; flex: 1; height: 1px; margin-left: 2px;
  background: linear-gradient(90deg, var(--gold-line), transparent 85%);
}
.page-note { color: var(--ink-3); font-size: 0.78rem; margin: 6px 0 18px; letter-spacing: 0.05em; }

/* 子页标题（系列 / 节目单） */
#seriesName, #wkSeriesName, .sched-head h2 { font-size: 1.22rem; letter-spacing: 0.08em; margin: 2px 0 4px; }

/* 专辑介绍（系列页，泥金界栏引文式） */
.series-intro {
  color: var(--ink-2); font-size: 0.88rem; line-height: 1.85; letter-spacing: 0.04em;
  border-left: 2px solid var(--gold-line); padding-left: 12px;
  margin: 2px 0 16px; max-width: 560px;
}

/* —— 听经台 · 直播栏目条 —— */
.live-strip {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-zhusha);
  border-radius: 6px 16px 16px 6px;
  padding: 16px 16px 16px 14px; margin: 6px 0 24px;
  text-decoration: none; color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s;
}
.live-strip:hover { border-color: var(--accent-soft); border-left-color: var(--c-zhusha); }
.ls-label { color: var(--c-zhusha); font-size: 0.8rem; letter-spacing: 0.14em; flex: none; }
.ls-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; }
.ls-info strong { font-size: 0.97rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.ls-info em { font-style: normal; color: var(--ink-3); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 2 auto; min-width: 0; }
.ls-go {
  color: var(--c-zhusha); font-size: 0.82rem; flex: none; letter-spacing: 0.06em;
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 4px 10px;
}

/* —— 首页 · 四门入口宫格 —— */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 17px 16px; text-decoration: none; color: var(--ink);
  transition: border-color 0.25s, transform 0.18s ease;
}
.grid-card:hover { border-color: var(--accent-soft); }
.grid-card:active { transform: scale(0.98); }
.grid-card svg { width: 26px; height: 26px; color: var(--c-zhusha); margin-bottom: 6px; }
.grid-card strong { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.08em; }
.grid-card span { font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.04em; }
@media (min-width: 560px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }

/* —— 首页 · 今日案头卡 —— */
.home-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; text-decoration: none; cursor: pointer;
  font-family: var(--serif); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 16px; margin-bottom: 10px;
  transition: border-color 0.25s, transform 0.18s ease;
}
.home-card:hover { border-color: var(--accent-soft); }
.home-card:active { transform: scale(0.985); }
.hc-label {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0.14em;
}
.hc-label::before {
  content: ''; width: 6px; height: 6px; flex: none;
  background: var(--gold-text); opacity: 0.75; transform: rotate(45deg); border-radius: 1.5px;
}
.hc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-main strong { font-size: 0.97rem; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-main em { font-style: normal; color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-go {
  flex: none; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.04em;
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 4px 11px;
}

/* —— 首页 · 莲友共修群入口（重要模块，朱砂点睛） —— */
.home-qun {
  display: flex; align-items: center; gap: 13px; width: 100%;
  text-decoration: none; font-family: var(--serif); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  transition: border-color 0.25s, transform 0.18s ease;
}
.home-qun:hover { border-color: var(--accent-soft); }
.home-qun:active { transform: scale(0.985); }
.hq-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fdf6ea; background: var(--accent);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.hq-ic svg { width: 22px; height: 22px; }
.hq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hq-main strong { font-size: 0.98rem; font-weight: 600; letter-spacing: 0.06em; }
.hq-main em { font-style: normal; color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-main em b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.hq-go { flex: none; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.04em; border: 1px solid var(--accent-soft); border-radius: 999px; padding: 4px 11px; }

/* —— 首页 · 佛号速取（极简两列，随手起一炉佛号循环恭听） —— */
.home-fohao { margin: 6px 0 4px; }
/* 板块标题与全站一致：泥金菱纹 + 疏排小字，右侧「经咒›」入口 */
.fh-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 12px; }
.fh-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0.26em; font-weight: 600;
}
.fh-title::before {
  content: ''; width: 7px; height: 7px; flex: none;
  background: var(--gold-text); opacity: 0.75; transform: rotate(45deg); border-radius: 1.5px;
}
.fh-all { flex: none; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.04em; text-decoration: none; }
.fh-all:hover { text-decoration: underline; }

/* 极简两列：细线卡片，朱砂只作点睛（播放态轻染），标题一行省略、时长小字在下 */
.fh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fh-chip {
  min-width: 0; text-align: left;
  display: flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 12px; cursor: pointer; color: var(--ink);
  font-family: var(--serif);
  transition: border-color 0.25s, transform 0.18s ease, background 0.25s;
}
.fh-chip:hover { border-color: var(--accent-soft); }
.fh-chip:active { transform: scale(0.97); }
.fh-chip.playing { background: var(--accent-wash); border-color: var(--accent-soft); }
.fh-chip.playing .fh-txt strong { color: var(--accent); }
.fh-play {
  flex: none; width: 20px; height: 20px;
  display: grid; place-items: center; color: var(--accent);   /* 朱砂点睛，无实心底 */
}
.fh-ic-play { width: 14px; height: 14px; fill: currentColor; margin-left: 1px; }
.fh-eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.fh-chip.playing .fh-ic-play { display: none; }
.fh-chip.playing .fh-eq { display: flex; }
.fh-eq i {
  width: 2.5px; height: 100%; border-radius: 1px; background: currentColor;
  transform-origin: bottom; transform: scaleY(0.4);
  animation: fhEq 0.95s ease-in-out infinite; animation-play-state: paused;
}
.fh-eq i:nth-child(1) { animation-delay: 0s; }
.fh-eq i:nth-child(2) { animation-delay: 0.28s; }
.fh-eq i:nth-child(3) { animation-delay: 0.52s; }
body[data-od-playing="true"] .fh-chip.playing .fh-eq i { animation-play-state: running; }
@keyframes fhEq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.fh-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.fh-txt strong { max-width: 100%; font-size: 0.88rem; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-txt em { font-style: normal; color: var(--ink-3); font-size: 0.68rem; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

/* —— 直播视图 —— */
.now-date { text-align: center; color: var(--ink-2); font-size: 0.85rem; margin: 10px 0 18px; letter-spacing: 0.08em; }

.live-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 26px 30px;
  text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px -18px rgba(50, 35, 10, 0.25);
}

.block-chip {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 0.88rem; letter-spacing: 0.18em;
  background: var(--accent-wash);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 5px 14px 5px 11px;
  margin-bottom: 20px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-zhusha); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.series-title { font-size: clamp(1.5rem, 5.4vw, 2.1rem); font-weight: 600; letter-spacing: 0.06em; line-height: 1.35; }
.ep-title { color: var(--ink-2); font-size: 1.02rem; margin-top: 8px; letter-spacing: 0.1em; }

.progress-wrap { margin: 26px auto 6px; max-width: 420px; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 2px; background: var(--accent); transition: width 1s linear; }
.progress-times { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.76rem; margin-top: 7px; font-variant-numeric: tabular-nums; }

/* 大播放钮：矿彩填色，纸色莲印 */
.play-big {
  position: relative;
  width: 84px; height: 84px; border-radius: 50%;
  border: 0; background: var(--accent);
  color: #faf6ea; cursor: pointer; margin-top: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -14px rgba(60, 30, 10, 0.55);
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 0.2s ease, background 0.3s;
}
.play-big:active { transform: scale(0.94); }
.play-big svg { width: 36px; height: 36px; fill: currentColor; }
.play-big .ic-pause { display: none; }
body[data-playing="true"] #btnLive .ic-play { display: none; }
body[data-playing="true"] #btnLive .ic-pause { display: block; }
body[data-nf-playing="true"] #btnNf .ic-play { display: none; }
body[data-nf-playing="true"] #btnNf .ic-pause { display: block; }
/* 待播时的呼吸涟漪 */
body[data-playing="false"] #btnLive::after,
body[data-nf-playing="false"] #btnNf::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
  animation: ripple 3.2s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(0.92); opacity: 0.55; } 70%,100% { transform: scale(1.14); opacity: 0; } }

.live-hint { color: var(--ink-3); font-size: 0.82rem; margin-top: 16px; letter-spacing: 0.14em; }
/* 同时在线人数（真实心跳统计，不虚增） */
.live-online {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  color: var(--ink-2); font-size: 0.8rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px;
  background: var(--card); position: relative; z-index: 3;
}
.live-online b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.lo-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #4caf6e; box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.5);
  animation: loPulse 2.2s ease-out infinite;
}
@keyframes loPulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.45); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(76, 175, 110, 0); }
}

.next-up { margin-top: 30px; }
.next-up h3 { font-size: 0.88rem; color: var(--ink-2); letter-spacing: 0.22em; margin-bottom: 12px; font-weight: 600; }
.next-up ol { list-style: none; }
.next-up li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 2px; border-top: 1px solid var(--line);
  font-size: 0.94rem; color: var(--ink-2);
}
.next-up li time { color: var(--ink-3); font-size: 0.82rem; font-variant-numeric: tabular-nums; flex: none; }

/* —— 节目单 —— */
.sched-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; }
.day-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.day-toggle button {
  font-family: var(--serif); font-size: 0.85rem; color: var(--ink-2);
  background: transparent; border: 0; padding: 6px 16px; cursor: pointer; letter-spacing: 0.1em;
}
.day-toggle button.on { background: var(--accent); color: var(--bg); }

.sched-block { margin-bottom: 22px; }
.sched-block-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--gold-line);
}
.sched-block-head h3 { font-size: 1.02rem; letter-spacing: 0.16em; color: var(--ink); }
.sched-block-head time { color: var(--accent); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sched-block-head small { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.06em; }

.sched-item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.sched-item time { color: var(--ink-3); font-size: 0.82rem; font-variant-numeric: tabular-nums; flex: none; width: 44px; }
.sched-item .t { color: var(--ink-2); }
.sched-item.filler .t { color: var(--ink-3); font-size: 0.88rem; }
.tag { font-size: 0.7rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 6px; white-space: nowrap; }
.sched-item.now { background: var(--accent-wash); border-radius: 10px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; }
.sched-item.now .t { color: var(--accent); font-weight: 600; }
.sched-item.now time { color: var(--accent); }
.sched-item .live-dot { align-self: center; margin-left: auto; flex: none; }

/* —— 分类与系列卡 —— */
.lib-cat { margin-bottom: 26px; }
.lib-cat h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0.26em; margin-bottom: 11px; font-weight: 600;
}
.lib-cat h3::before {
  content: ''; width: 7px; height: 7px; flex: none;
  background: var(--gold-text); opacity: 0.75; transform: rotate(45deg);  /* 藻井菱纹（泥金，作结构不作点睛） */
  border-radius: 1.5px;
}
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .lib-grid { grid-template-columns: 1fr 1fr 1fr; } }

.series-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; cursor: pointer; text-align: left;
  font-family: var(--serif); color: var(--ink);
  transition: transform 0.18s ease, border-color 0.25s;
}
.series-card:hover { border-color: var(--accent-soft); }
.series-card:active { transform: scale(0.97); }
.series-card strong { display: block; font-size: 0.98rem; font-weight: 600; line-height: 1.45; letter-spacing: 0.02em; }
.series-card span { display: block; color: var(--ink-3); font-size: 0.76rem; margin-top: 7px; letter-spacing: 0.04em; }
.series-card .sc-resume { color: var(--accent); margin-top: 5px; font-variant-numeric: tabular-nums; }

.back-btn {
  font-family: var(--serif); background: transparent; border: 0; color: var(--accent);
  font-size: 0.92rem; padding: 12px 0; cursor: pointer; letter-spacing: 0.08em;
}

.ep-list { list-style: none; margin-top: 12px; }
.ep-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  cursor: pointer; font-size: 0.96rem; color: var(--ink-2);
}
.ep-list li:hover { color: var(--ink); }
.ep-list li .n { color: var(--ink-3); font-size: 0.78rem; width: 30px; flex: none; font-variant-numeric: tabular-nums; }
.ep-list li .t { flex: 1; line-height: 1.5; }
.ep-list li .d { color: var(--ink-3); font-size: 0.78rem; flex: none; font-variant-numeric: tabular-nums; }
.ep-list li .resume { font-size: 0.68rem; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-wash); border-radius: 4px; padding: 1px 5px; flex: none; }
.ep-list li.playing .t { color: var(--accent); font-weight: 600; }

/* —— 点播迷你播放条（收起/展开两态） —— */
/* ===== 统一听经播放器：收起=停靠条 / 展开=全屏莲台 ===== */
#mini { position: fixed; z-index: 30; font-family: var(--serif); }

/* —— 收起态 · 底部停靠条 —— */
#mini.collapsed {
  left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 696px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 44px -14px rgba(30, 20, 5, 0.4);
  overflow: hidden;
}
#mini.collapsed .player { display: none; }
#mini:not(.collapsed) .dock { display: none; }

.dock { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.mini-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.mini-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.dock-art {
  flex: none; width: 40px; height: 40px; padding: 6px; border-radius: 11px;
  background: var(--accent-wash); border: 1px solid var(--line);
  color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.dock-art svg { width: 100%; height: 100%; }
.dock-info { flex: 1; min-width: 0; background: transparent; border: 0; text-align: left; cursor: pointer; padding: 0; font-family: var(--serif); }
.mini-series { display: block; color: var(--ink-3); font-size: 0.7rem; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ep { display: block; color: var(--ink); font-size: 0.92rem; font-weight: 600; margin-top: 2px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pp {
  flex: none; width: 40px; height: 40px; border: 1.5px solid var(--accent-soft); border-radius: 50%;
  background: transparent; color: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mini-pp svg { width: 20px; height: 20px; fill: currentColor; }
.dock-up { flex: none; width: 34px; height: 40px; background: transparent; border: 0; color: var(--ink-3); cursor: pointer; }
.dock-up svg { width: 20px; height: 20px; }

/* —— 展开态 · 全屏莲台播放器 —— */
#mini:not(.collapsed) {
  inset: 0; max-width: none; margin: 0; border: 0; border-radius: 0;
  background: var(--bg); background-image: var(--sky);
  z-index: 60; overflow: hidden;
}
.player {
  height: 100%; display: flex; flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
}
.pl-top { display: flex; align-items: center; justify-content: space-between; }
.pl-icon { width: 42px; height: 42px; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pl-icon svg { width: 24px; height: 24px; }
.pl-tag { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.26em; text-indent: 0.26em; }

.pl-hero { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.pl-art { position: relative; width: min(56vw, 230px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pl-art::before { content: ''; position: absolute; inset: -6%; border-radius: 50%; border: 1px solid var(--gold-line); }
.pl-art::after { content: ''; position: absolute; inset: 15%; border-radius: 50%; border: 1px solid var(--gold-line); opacity: 0.5; }
.pl-lotus {
  width: 56%; height: 56%; color: var(--accent);
  animation: plBreathe 7s ease-in-out infinite; animation-play-state: paused;
}
body[data-od-playing="true"] .pl-lotus { animation-play-state: running; }
@keyframes plBreathe { 0%, 100% { transform: scale(0.96); opacity: 0.82; } 50% { transform: scale(1.05); opacity: 1; } }

.pl-meta { text-align: center; margin: 10px 0 2px; }
.pl-meta h3 { font-size: 1.24rem; font-weight: 600; color: var(--ink); letter-spacing: 0.03em; line-height: 1.5; }
.pl-meta p { font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.12em; margin-top: 8px; }

.pl-seek { margin: 16px 0 2px; }
.mini-seekrow { display: flex; align-items: center; gap: 10px; }
.mini-seekrow span { flex: none; min-width: 42px; color: var(--ink-3); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
#miniCur { text-align: right; }
#miniDur { text-align: left; }
#miniSeek { flex: 1; width: auto; appearance: none; -webkit-appearance: none; height: 26px; background: transparent; outline: none; margin: 0; cursor: pointer; }
#miniSeek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
#miniSeek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); margin-top: -6px; cursor: pointer; }
#miniSeek::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
#miniSeek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 0; cursor: pointer; }
.mini-status { text-align: center; color: var(--ink-3); font-size: 0.72rem; margin-top: 6px; letter-spacing: 0.06em; }
.mini-status:empty { display: none; }

.pl-main { display: flex; align-items: center; justify-content: space-between; margin: 20px 4px 4px; }
.pl-step, .pl-jump { position: relative; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pl-step svg { width: 26px; height: 26px; fill: currentColor; }
.pl-step:disabled { opacity: 0.28; cursor: default; }
.pl-jump svg { width: 33px; height: 33px; }
.pl-jump-n { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.6rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pl-play { width: 74px; height: 74px; border: 0; border-radius: 50%; background: var(--accent); color: #faf6ea; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px var(--accent-wash); }
.pl-play svg { width: 32px; height: 32px; fill: currentColor; }
.pl-play:active { transform: scale(0.96); }
.pl-play .ic-pause, .mini-pp .ic-pause { display: none; }
body[data-od-playing="true"] :is(.pl-play, .mini-pp) .ic-play { display: none; }
body[data-od-playing="true"] :is(.pl-play, .mini-pp) .ic-pause { display: block; }

.pl-sec { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.pl-secbtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--ink-2); font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.06em; cursor: pointer; font-variant-numeric: tabular-nums; }
.pl-secbtn .pl-ic { width: 22px; height: 22px; }
.pl-secbtn.on { color: var(--accent); }

/* 顶栏右侧：分享 + 停止 */
.pl-top-right { display: flex; align-items: center; gap: 2px; }

/* 第一栏：后退/前进 15 秒图标嵌入进度条两旁（描边更轻，退到辅助层） */
.pl-seek .pl-jump { width: 34px; height: 34px; flex: none; color: var(--ink-3); opacity: 0.55; }
.pl-seek .pl-jump:active { opacity: 0.9; }
.pl-seek .pl-jump svg { width: 22px; height: 22px; }
.pl-seek .pl-jump .pl-jump-n { font-size: 0.5rem; }
.pl-seek .mini-seekrow span { min-width: 38px; }

/* 第二栏：播放模式单键（列表循环 → 单曲循环 → 随机 轮换） */
.pl-mode { position: relative; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pl-mode .ic-mode { width: 24px; height: 24px; display: none; }
.pl-mode.m-list .ic-mode-loop, .pl-mode.m-one .ic-mode-loop { display: block; }
.pl-mode.m-shuffle .ic-mode-shuffle { display: block; }
.pl-mode.m-one, .pl-mode.m-shuffle { color: var(--accent); }
.pl-mode-1 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.5rem; font-weight: 700; font-variant-numeric: tabular-nums; display: none; }
.pl-mode.m-one .pl-mode-1 { display: block; }

/* 第二栏：定时（闹钟）—— 图标为主，计时中显示朱砂余量 */
.pl-mainbtn { position: relative; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--serif); }
.pl-mainbtn .pl-ic { width: 23px; height: 23px; }
.pl-mainbtn.on { color: var(--accent); }
.pl-mainbtn #sleepVal { font-size: 0.5rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; display: none; }
.pl-mainbtn.on #sleepVal { display: block; }

/* 保留但隐藏：倍速 / 字幕 */
.pl-legacy { display: none !important; }

/* 下载键：下载中显朱砂进度，已下载态由 .on 上色 */
.pl-secbtn.loading { color: var(--accent); }
.pl-secbtn.loading .pl-ic { animation: dlPulse 1.1s ease-in-out infinite; }
@keyframes dlPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* 离线下载清单（弹层内） */
.dl-total { color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.03em; margin: 8px 2px 0; line-height: 1.7; }
.dl-ios { color: var(--gold-text); }
.dl-ing .t { color: var(--ink-3); }
.dl-ing .t small { color: var(--accent); margin-left: 8px; }
/* 收藏弹层内的分类小标（听经 / 阅读） */
.sheet-cat { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.16em; margin: 14px 2px 8px; }
.sheet-cat:first-child { margin-top: 2px; }

/* 随喜计数徽章（第三栏「随喜」键右上角） */
.pl-secbtn { position: relative; }
.pl-count { position: absolute; top: -2px; left: calc(50% + 5px); min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--accent); color: #fbf7ec; font-family: var(--serif);
  font-size: 0.56rem; font-weight: 600; line-height: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.pl-count[hidden] { display: none; }

/* 闻法留言抽屉（播放器之上，分享抽屉之下） */
#cmtSheet { position: fixed; inset: 0; z-index: 64; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30, 22, 10, 0.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadein 0.25s ease; }
#cmtSheet[hidden] { display: none; }
.cmt-ep { color: var(--accent); font-size: 0.82rem; letter-spacing: 0.04em; margin: 2px 0 12px; }
#cmtSheetList { max-height: 42vh; margin-bottom: 10px; }
.cmt-name-row { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.04em; margin-bottom: 10px; }
.cmt-name { font-family: var(--serif); color: var(--accent); background: var(--accent-wash);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 2px 12px; font-size: 0.78rem; cursor: pointer; }

body[data-mode="od"] main { padding-bottom: 96px; }

/* —— 念佛堂 —— */
.nf-hall { text-align: center; padding-top: 10px; }
.nf-name { font-size: clamp(1.5rem, 5.6vw, 2rem); letter-spacing: 0.32em; text-indent: 0.32em; margin: 14px 0 6px; font-weight: 600; }
.nf-track { color: var(--ink-2); font-size: 0.9rem; letter-spacing: 0.08em; min-height: 1.4em; }
.nf-hall .play-big { margin-top: 22px; }
.nf-timer-label { color: var(--ink-3); font-size: 0.82rem; margin-top: 14px; min-height: 1.3em; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.nf-group { margin-top: 26px; text-align: center; }
.nf-group h3 { font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.28em; font-weight: 600; margin-bottom: 12px; }
.nf-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; margin: 0 auto; }
.nf-chips button {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.84rem; padding: 7px 14px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nf-chips button.on { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-wash); }

/* —— 数珠计数 —— */
.nj-wrap { margin: 20px auto 6px; }
.nj-bead {
  position: relative; width: 168px; height: 168px; border: 0; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nj-bead:active { transform: scale(0.965); }
.nj-bead svg { width: 100%; height: 100%; display: block; }
.nj-ring-bg { stroke: var(--line); }
.nj-ring { stroke: var(--accent); transition: stroke-dashoffset 0.35s ease; }
.nj-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; pointer-events: none;
}
.nj-center strong { font-size: 2.2rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.nj-center small { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.18em; }
.nj-stats { color: var(--ink-3); font-size: 0.8rem; margin-top: 10px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.nj-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.nj-actions button {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.82rem; padding: 6px 16px; cursor: pointer;
}

/* —— 念佛计数器 · 概览三格 —— */
.wode-stats {
  display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 4px; margin: 10px 0 4px;
}
.wode-stats > div { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.wode-stats > div + div { border-left: 1px solid var(--line); }
.wode-stats strong { font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.wode-stats span { color: var(--ink-3); font-size: 0.7rem; letter-spacing: 0.16em; }

/* —— 我的 · 功能入口列表（宽度与整站一致，风格同首页卡片） —— */
#view-wode .home-card { margin-bottom: 12px; }
#view-wode #wodeTrail { margin-bottom: 12px; }
#view-wode .ai-note { margin-top: 18px; }

/* 我的 · 外观设置 */
.wode-set {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; margin-bottom: 12px;
}
.wode-set-label { color: var(--ink); font-size: 0.94rem; letter-spacing: 0.06em; flex: none; }
.theme-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.theme-chips button {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.8rem; padding: 5px 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.theme-chips button.on { color: var(--c-zhusha); border-color: var(--accent-soft); }

/* —— 念佛计数器页 —— */
.count-label { text-align: center; color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.3em; text-indent: 0.3em; margin-top: 4px; }
.count-name {
  text-align: center; color: var(--accent); font-weight: 600;
  font-size: clamp(1.4rem, 5.2vw, 1.8rem); letter-spacing: 0.18em; text-indent: 0.18em;
  margin: 8px 0 2px;
}
.nj-bead-big { width: 230px; height: 230px; }
.nj-bead-big .nj-center strong { font-size: 3rem; }
.chip-del {
  display: block; margin: 12px auto 0; background: transparent; border: 0;
  color: var(--ink-3); font-family: var(--serif); font-size: 0.76rem; cursor: pointer;
  letter-spacing: 0.08em; text-decoration: underline; text-underline-offset: 3px;
}
.hx-btn {
  display: block; margin: 30px auto 8px; font-family: var(--serif);
  background: var(--accent); color: #faf6ea; border: 0; border-radius: 999px;
  font-size: 1rem; letter-spacing: 0.4em; text-indent: 0.4em; padding: 13px 52px; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(60, 30, 10, 0.5);
  transition: transform 0.2s ease;
}
.hx-btn:active { transform: scale(0.96); }

/* —— 念佛计数器 · 极简布局 —— */
.cnt-top { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; }
.cnt-back { font-size: 1.5rem; line-height: 1; padding: 2px 8px; }
.cnt-tools { display: flex; gap: 8px; }
.cnt-tool {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.cnt-tool svg { width: 20px; height: 20px; }
.cnt-tool.on { color: var(--c-zhusha); border-color: var(--accent-soft); }

.cnt-hall { text-align: center; padding-top: 4px; max-width: 420px; margin: 0 auto; }
.cnt-practice {
  display: inline-flex; align-items: center; gap: 3px; margin: 12px auto 0;
  background: transparent; border: 0; cursor: pointer; font-family: var(--serif);
  color: var(--c-zhusha); font-weight: 600; font-size: clamp(1.4rem, 5.2vw, 1.7rem);
  letter-spacing: 0.16em; text-indent: 0.16em;
}
.cnt-practice .caret { width: 20px; height: 20px; opacity: 0.65; }
.cnt-hall .nj-bead-big { margin: 16px auto 0; overflow: hidden; border-radius: 50%; }
.bead-ripple {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-zhusha); opacity: 0.26;
  transform: translate(-50%, -50%) scale(1); pointer-events: none;
  animation: bead-rip 0.6s ease-out forwards;
}
@keyframes bead-rip { to { transform: translate(-50%, -50%) scale(26); opacity: 0; } }
.cnt-goal {
  display: inline-block; margin: 16px auto 0; background: transparent; border: 0; cursor: pointer;
  font-family: var(--serif); color: var(--ink-2); font-size: 0.86rem; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; padding: 5px 10px; border-radius: 8px;
}
.cnt-goal:active { background: var(--card); }
.cnt-summary {
  display: block; margin: 24px auto 0; background: transparent; border: 0; cursor: pointer;
  font-family: var(--serif); color: var(--ink-3); font-size: 0.8rem; letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.cnt-summary .cnt-more { color: var(--c-zhusha); margin-left: 8px; }

/* 计数器弹层（底部 sheet） */
#cntSheet {
  position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30, 22, 10, 0.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadein 0.25s ease;
}
#cntSheet[hidden] { display: none; }
.cnt-sheet {
  width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 20px 20px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px -16px rgba(20, 12, 4, 0.4);
  animation: sheet-up 0.3s cubic-bezier(0.22, 1, 0.36, 1); max-height: 82vh; overflow-y: auto;
}
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.cnt-sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
.cnt-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cnt-sheet-head h3 { font-size: 1.05rem; letter-spacing: 0.08em; }

.sheet-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--serif); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 0.98rem; padding: 14px 4px; cursor: pointer;
}
.sheet-row.on { color: var(--c-zhusha); }
.sheet-tick { color: var(--c-zhusha); }

/* 功课中心：行主体（名称+统计小字）与右侧箭头、器物开关 */
.pr-main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.pr-stat { color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sheet-row.on .pr-stat { color: var(--accent-soft); }
.hub-go { color: var(--ink-3); font-size: 1.05rem; }
.hub-toggles { display: flex; gap: 8px; padding: 16px 0 6px; }
.hub-toggles button {
  flex: 1; font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.84rem; padding: 8px 0; cursor: pointer;
}
.hub-toggles button.on { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-wash); }

/* 计数页顶栏「功课」入口 */
.cnt-hub {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.84rem; padding: 6px 16px; cursor: pointer;
}
.sheet-del { color: var(--ink-3); font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.sheet-add {
  display: block; width: 100%; margin-top: 14px; font-family: var(--serif); cursor: pointer;
  background: transparent; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--ink-2); font-size: 0.9rem; padding: 12px;
}
.goal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.goal-cell {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-2); font-size: 0.95rem; padding: 16px 4px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.goal-cell.on { color: var(--c-zhusha); border-color: var(--accent-soft); }

/* 念佛历史 · 日历 */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav strong { font-size: 0.98rem; letter-spacing: 0.08em; }
.cal-nav button { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); font-size: 1rem; width: 34px; height: 30px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; color: var(--ink-3); font-size: 0.7rem; padding-bottom: 2px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.cal-cell.empty { background: transparent; }
.cal-cell i { font-style: normal; font-size: 0.72rem; color: var(--ink-3); }
.cal-cell b { font-weight: 600; font-size: 0.62rem; color: var(--c-zhusha); font-variant-numeric: tabular-nums; }
.cal-cell.lvl1 { background: color-mix(in srgb, var(--c-zhusha) 8%, transparent); }
.cal-cell.lvl2 { background: color-mix(in srgb, var(--c-zhusha) 16%, transparent); }
.cal-cell.lvl3 { background: color-mix(in srgb, var(--c-zhusha) 26%, transparent); }
.cal-cell.today { outline: 1.5px solid var(--c-zhusha); outline-offset: -1.5px; }
.cal-cell.today i { color: var(--c-zhusha); }
.cal-total { text-align: center; color: var(--ink-2); font-size: 0.84rem; margin-top: 14px; letter-spacing: 0.06em; }

/* 回向偈 / 定课圆满 全屏静念层 */
#hxOverlay, #gdOverlay {
  position: fixed; inset: 0; z-index: 40; cursor: pointer;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  animation: fadein 0.4s ease;
}
#hxOverlay[hidden], #gdOverlay[hidden] { display: none; }
.gd-title { color: var(--accent) !important; font-weight: 600; }
#gdOverlay .hx-btn { margin-top: 20px; }
.hx-verse { text-align: center; padding: 20px; }
.hx-verse p { font-size: clamp(1.05rem, 4.2vw, 1.3rem); letter-spacing: 0.24em; line-height: 2.4; color: var(--ink); }
.hx-verse small { display: block; margin-top: 26px; color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.2em; }


/* 我的 · 足迹卡 */
#wodeCards { margin: 0 auto; }

/* 我的 · 关于本站入口行 */
.wode-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 22px 0 0; font-family: var(--serif); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 18px; color: var(--ink); font-size: 0.94rem; letter-spacing: 0.06em;
  transition: border-color 0.25s;
}
.wode-row:hover { border-color: var(--accent-soft); }
.wr-ic { flex: none; width: 19px; height: 19px; color: var(--ink-3); display: flex; }
.wr-ic svg { width: 100%; height: 100%; }
.wr-t { flex: 1; text-align: left; }
.wr-n { flex: none; color: var(--accent); font-size: 0.8rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.wr-n:empty { display: none; }
.wr-go { color: var(--ink-3); font-size: 1.1rem; }

/* 关于本站 · 弹窗 */
#aboutOverlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 22, 10, 0.34);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  animation: fadein 0.3s ease;
}
#aboutOverlay[hidden] { display: none; }
.about-sheet {
  position: relative; width: 100%; max-width: 440px; max-height: 84vh; overflow-y: auto;
  text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 22px 22px; box-shadow: 0 24px 60px -20px rgba(20, 12, 4, 0.5);
  animation: sheet-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  background: transparent; border: 0; color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sheet-x svg { width: 18px; height: 18px; }
.sheet-title {
  font-size: 1.12rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--gold-line);
}
.about-sheet h4 {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; margin: 16px 0 8px;
}
.about-sheet h4::before {
  content: ''; width: 6px; height: 6px; flex: none;
  background: var(--gold-text); opacity: 0.75; transform: rotate(45deg); border-radius: 1.5px;
}
.about-sheet p { color: var(--ink-2); font-size: 0.86rem; line-height: 1.95; letter-spacing: 0.03em; }
.about-sheet .about-mail { margin-top: 2px; }
.about-sheet a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: 1px; }

/* —— 问道对话 —— */
.chat { margin-top: 4px; }
.msg { margin-bottom: 16px; }
.msg.user p {
  background: var(--accent); color: #fbf7ec;
  display: inline-block; padding: 10px 16px; border-radius: 16px 16px 4px 16px;
  max-width: 86%; margin-left: auto; line-height: 1.7; font-size: 0.95rem;
}
.msg.user { text-align: right; }
.msg.bot {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px;
  padding: 14px 18px; max-width: 94%;
}
.msg.bot p { line-height: 1.95; font-size: 0.96rem; color: var(--ink); margin-bottom: 0.8em; }
.msg.bot p:last-of-type { margin-bottom: 0; }
.msg.bot .thinking { color: var(--ink-3); animation: pulse 1.6s ease-in-out infinite; }
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 3px; margin: 0 2px;
  border-radius: 5px; border: 1px solid var(--accent-soft);
  background: var(--accent-wash); color: var(--accent);
  font-size: 0.68rem; font-family: var(--serif); cursor: pointer;
  vertical-align: 0.15em;
}
.src-list { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--gold-line); display: flex; flex-direction: column; gap: 6px; }
.src {
  font-family: var(--serif); text-align: left; background: transparent; border: 0;
  color: var(--ink-2); font-size: 0.8rem; cursor: pointer; padding: 3px 0;
  display: flex; gap: 8px; align-items: baseline; line-height: 1.5;
}
.src:hover { color: var(--accent); }
.src-n {
  flex: none; min-width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 5px;
  font-size: 0.66rem; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3);
}
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chat-starters button {
  font-family: var(--serif); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.84rem; padding: 8px 14px; cursor: pointer;
}
.chat-starters button:hover { color: var(--accent); border-color: var(--accent-soft); }
.chat-input {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 8px 8px 16px; margin-top: 12px;
  transition: border-color 0.25s;
}
.chat-input:focus-within { border-color: var(--accent-soft); }
.chat-input textarea {
  flex: 1; font-family: var(--serif); font-size: 0.96rem; line-height: 1.6;
  background: transparent; border: 0; outline: none; color: var(--ink);
  resize: none; max-height: 120px;
}
.chat-input textarea::placeholder { color: var(--ink-3); }
.chat-input button {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--accent); color: #fbf7ec; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-input button:disabled { opacity: 0.4; cursor: default; }
.chat-input button svg { width: 20px; height: 20px; }
.ai-note { color: var(--ink-3); font-size: 0.72rem; margin-top: 10px; letter-spacing: 0.04em; text-align: center; }

/* —— 通用链接/按钮 —— */
.more-link {
  display: block; text-align: center; margin-top: 14px;
  color: var(--accent); font-size: 0.86rem; text-decoration: none; letter-spacing: 0.1em; padding: 8px;
}
.more-btn {
  display: block; margin: 16px auto; font-family: var(--serif);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: 0.86rem; padding: 8px 26px; cursor: pointer; letter-spacing: 0.1em;
}

/* —— 阅读器 —— */
.reader-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -20px; padding: 4px 20px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
/* 沉浸阅读：轻触正文收起顶栏与底部导航，只留纸墨 */
body.rd-zen[data-view="reader"] .reader-bar { transform: translateY(-110%); opacity: 0; pointer-events: none; }
body.rd-zen[data-view="reader"] .bottom-nav { transform: translateY(120%); }
body[data-view="reader"] .bottom-nav { transition: transform 0.35s ease; }
.reader-pos { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
/* 阅读进度线：泥金，随滚动前进 */
.read-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.read-line i { display: block; height: 100%; width: 0; background: var(--gold-text); opacity: 0.55; }
.reader-tools { display: flex; gap: 8px; }
.reader-tools button {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink-2); font-size: 0.82rem; padding: 5px 10px; cursor: pointer;
}
.reader {
  max-width: 640px; margin: 6px auto 0;
  line-height: 2.05; letter-spacing: 0.03em; color: var(--ink);
}
.reader .reader-sub { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.2em; margin-bottom: 6px; }
.reader h2 { font-size: 1.35em; letter-spacing: 0.05em; margin-bottom: 0.6em; line-height: 1.5; }
.reader h2::after {
  content: ''; display: block; width: 56px; height: 1px; margin-top: 0.55em;
  background: linear-gradient(90deg, var(--gold-line), transparent);
}
/* 书卷排版：首行缩进两字、两端对齐（篇眉出处不缩进） */
.reader p { margin-bottom: 1.15em; text-indent: 2em; text-align: justify; }
.reader .reader-sub { text-indent: 0; }
.reader-loading { color: var(--ink-3); text-align: center; padding: 40px 0; text-indent: 0; }
.reader-nav { max-width: 640px; margin: 30px auto 0; }
.reader-nav-row { display: flex; justify-content: space-between; margin-top: 12px; }
.reader-nav-row button {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--accent); font-size: 0.88rem; padding: 8px 20px; cursor: pointer;
}
.reader-nav-row button:disabled { color: var(--ink-3); border-color: var(--line); opacity: 0.5; cursor: default; }

/* 篇目列表：已读 / 读至进度 */
.ep-list li .d.rd-done { color: var(--gold-text); }
.ep-list li .d.rd-part { color: var(--accent); opacity: 0.8; }

/* 阅读设置弹层（字号 / 行距 / 字体） */
.rd-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.rd-lbl { flex: none; width: 3em; color: var(--ink-3); font-size: 0.82rem; letter-spacing: 0.12em; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chips button {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.85rem; padding: 6px 16px; cursor: pointer;
}
.rd-chips button.on { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-wash); }

/* 选中文字浮标：划线 + 分享法布施 */
#quoteChip {
  position: fixed; z-index: 60; display: flex;
  background: var(--card); border: 1px solid var(--accent-soft); border-radius: 999px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(40, 30, 14, 0.18); overflow: hidden;
}
#quoteChip[hidden] { display: none; }
#quoteChip button {
  font-family: var(--serif); font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--accent); background: transparent; border: 0;
  padding: 8px 15px; cursor: pointer; white-space: nowrap;
}
#quoteChip button + button { border-left: 1px solid var(--line); }

/* 划线记号与回看定位 */
mark.hl {
  background: color-mix(in srgb, var(--gold-text) 22%, transparent);
  color: inherit; border-radius: 2px; padding: 1px 0; cursor: pointer;
  box-shadow: 0 1px 0 var(--gold-line);
}
.hl-flash { animation: hl-flash 2.2s ease; }
@keyframes hl-flash {
  0%, 55% { background: var(--accent-wash); }
  100% { background: transparent; }
}
.hl-group { color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.08em; margin: 14px 0 2px; }
.hl-row .hl-quote {
  display: block; text-align: left; font-size: 0.9rem; line-height: 1.8; color: var(--ink);
}

/* 阅读器顶栏：书签/朗读激活态 */
.reader-tools button.on { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-wash); }

/* 朗读控制条 */
#ttsBar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 5px 8px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -14px rgba(40, 28, 8, 0.5);
}
#ttsBar[hidden] { display: none; }
#ttsBar button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent;
  color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
#ttsBar button svg { width: 19px; height: 19px; }
#ttsBar #ttsStopBtn { color: var(--ink-3); }
#ttsBar .ic-play { display: none; }
#ttsBar.paused .ic-play { display: block; }
#ttsBar.paused .ic-pause { display: none; }
#ttsInfo { color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0.05em; padding: 0 6px; font-variant-numeric: tabular-nums; }
.tts-cur { background: var(--accent-wash); border-radius: 4px; }
body.rd-zen[data-view="reader"] #ttsBar { bottom: calc(18px + env(safe-area-inset-bottom)); }

/* 文库标题搜索 */
.wk-search { margin: 2px 0 14px; }
.wk-search input {
  width: 100%; font-family: var(--serif); font-size: 0.94rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px;
}
.wk-search input:focus { outline: none; border-color: var(--accent-soft); }
.wk-none { color: var(--ink-3); font-size: 0.86rem; padding: 16px 4px; }

/* 问法：页头新问键 / 停止态 / 回答操作行 / 重试 / 出处预览 */
.wd-head { display: flex; align-items: center; justify-content: space-between; }
.chat-new {
  font-family: var(--serif); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); font-size: 0.84rem; padding: 6px 16px; cursor: pointer;
}
#btnAsk .ic-stop { display: none; }
.chat-input.asking #btnAsk .ic-send { display: none; }
.chat-input.asking #btnAsk .ic-stop { display: block; }
/* 回答操作行：纯图标按钮（复制 / 分享） */
.ans-acts { display: flex; gap: 6px; margin-top: 10px; }
.ans-acts button {
  background: transparent; border: 0; padding: 6px; cursor: pointer;
  color: var(--ink-3); display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.ans-acts button svg { width: 17px; height: 17px; }
.ans-acts button:hover, .ans-acts button:active { color: var(--accent); background: var(--accent-wash); }
.chat-retry {
  font-family: var(--serif); background: transparent; border: 0; padding: 2px 0;
  color: var(--accent); font-size: 0.78rem; letter-spacing: 0.1em; cursor: pointer; margin-top: 6px;
}
.cite-src { color: var(--accent); font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.cite-x {
  color: var(--ink); font-size: 0.92rem; line-height: 2; text-align: justify;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}

/* —— 莲友共修群（全屏聊天室，独立模块，微信群式布局） —— */
#chatRoom {
  position: fixed; inset: 0; z-index: 66;
  background: var(--bg); background-image: var(--sky);
  animation: crUp 0.28s ease;
}
#chatRoom[hidden] { display: none; }
@keyframes crUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cr-box {
  position: relative;
  height: 100%; display: flex; flex-direction: column;
  width: 100%; max-width: 640px; margin: 0 auto;
  padding: max(6px, env(safe-area-inset-top)) 14px 0;
}
/* 头部：返回 · 居中群名+在线 · 占位（三栏对称，微信式） */
.cr-head {
  flex: none; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  padding: 6px 0 10px; border-bottom: 1px solid var(--gold-line);
}
.cr-back {
  width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
}
.cr-back svg { width: 24px; height: 24px; }
.cr-back:active { transform: scale(0.9); }
/* 右上角「…」：点击分享共修群 */
.cr-more {
  justify-self: end; width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
}
.cr-more svg { width: 22px; height: 22px; }
.cr-more:active { transform: scale(0.9); }
.cr-title { text-align: center; min-width: 0; }
.cr-title h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ink); }
.cr-sub { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.04em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-sub b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
/* 群公告（后台可维护，泥金条，置顶） */
.cr-notice {
  flex: none; margin: 10px 0 0;
  color: var(--gold-text); font-size: 0.8rem; line-height: 1.6; letter-spacing: 0.03em;
  border: 1px solid var(--gold-line); border-radius: 10px; padding: 8px 12px 8px 34px;
  background: var(--card); position: relative;
}
.cr-notice::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px;
  background: var(--gold-text); opacity: 0.6;
  -webkit-mask: no-repeat center/contain; mask: no-repeat center/contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-6v14l-18-6z'/%3E%3Cpath d='M8 12v5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-6v14l-18-6z'/%3E%3Cpath d='M8 12v5'/%3E%3C/svg%3E");
}
.cr-notice[hidden] { display: none; }
/* 消息区：全高滚动，无边框，气泡呼吸 */
#chatRoom .cmt-list {
  flex: 1; min-height: 0; max-height: none;
  border: 0; background: transparent; padding: 14px 2px 8px; margin-bottom: 0;
  gap: 14px; scroll-behavior: smooth;
}
/* 系统提示行（进群语） */
.lc-sys {
  align-self: center; text-align: center; max-width: 88%;
  color: var(--ink-3); font-size: 0.72rem; line-height: 1.6; letter-spacing: 0.04em;
}
/* 时间戳分隔（跨 10 分钟一枚，微信式） */
.lc-time {
  align-self: center; color: var(--ink-3); font-size: 0.68rem; letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
/* 自己的发言：靠右朱砂气泡，不重复署名 */
.lc-row.mine { flex-direction: row-reverse; }
.lc-row.mine .lc-msg { align-items: flex-end; }
.lc-row.mine .lc-msg b { display: none; }
.lc-row.mine .lc-msg span {
  align-self: flex-end; color: #fdf6ea;
  background: var(--accent); border-color: var(--accent);
  border-radius: 14px 5px 14px 14px;
}
/* 新消息浮标（翻看历史时新消息到达） */
.cr-jump {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(118px + env(safe-area-inset-bottom)); z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--accent); background: var(--card);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 6px 8px 6px 14px;
  cursor: pointer; box-shadow: 0 8px 22px -10px rgba(60, 30, 10, 0.4);
  animation: crUp 0.25s ease;
}
.cr-jump[hidden] { display: none; }
.cr-jump svg { width: 15px; height: 15px; }
/* 底部输入区 */
.cr-foot {
  flex: none; padding: 10px 2px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.cr-who { color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.03em; margin-bottom: 9px; }
.cmt-count { float: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cmt-count.warn { color: var(--accent); }
.live-notice {
  color: var(--gold-text); font-size: 0.84rem; line-height: 1.7; letter-spacing: 0.04em;
  border: 1px solid var(--gold-line); border-radius: 10px; padding: 9px 14px; margin-bottom: 12px;
  background: var(--card);
}
/* 公告在直播页单独成行（莲台卡之下） */
#view-live .live-notice { max-width: 640px; margin: 14px auto 0; }
.cmt-list {
  max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 13px 14px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 12px;
}
/* 一行留言：法名莲印（按名哈希取色，同一人恒定色）+ 气泡 */
.lc-row { display: flex; align-items: flex-start; gap: 10px; }
.lc-av {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 0.96rem; color: #fdf6ea; line-height: 1;
  background: var(--accent);   /* 兜底；实际由内联 style 按名取色 */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.lc-msg { min-width: 0; max-width: 78%; display: flex; flex-direction: column; gap: 4px; }
.lc-msg b { color: var(--ink-3); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.03em; }
.lc-msg span {
  align-self: flex-start; color: var(--ink); font-size: 0.94rem; line-height: 1.62; overflow-wrap: anywhere;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 5px 14px 14px 14px; padding: 8px 13px;
}
/* 按集「闻法留言」抽屉的气泡坐落在 card 面上，改回微染避免与底同色 */
#cmtSheetList .lc-msg span { background: var(--accent-wash); }
.cmt-empty { color: var(--ink-3); font-size: 0.82rem; text-align: center; padding: 22px 0; }
.lc-who { color: var(--ink-3); font-size: 0.76rem; letter-spacing: 0.04em; margin-bottom: 9px; }
.cmt-input { display: flex; gap: 8px; align-items: center; }
.cmt-input input {
  flex: 1; min-width: 0; font-family: var(--serif); font-size: 0.92rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px;
  transition: border-color 0.2s;
}
.cmt-input input:focus { outline: none; border-color: var(--accent-soft); }
.cmt-input button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--serif); font-size: 0.88rem; letter-spacing: 0.08em;
  color: #fdf6ea; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 11px 20px; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s ease;
}
.cmt-input button svg { width: 16px; height: 16px; }
.cmt-input button:active { transform: scale(0.96); }
.cmt-input button:disabled { opacity: 0.5; cursor: default; }
/* 聊天室发送键：圆形图标钮（纸飞机） */
.cr-foot .cmt-input button { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }
.cr-foot .cmt-input button svg { width: 18px; height: 18px; }
.cmt-note { color: var(--accent); font-size: 0.78rem; margin-top: 8px; min-height: 1.2em; letter-spacing: 0.04em; }

/* —— 改法名（极简弹层） —— */
#nameOverlay {
  position: fixed; inset: 0; z-index: 72;
  background: rgba(30, 22, 10, 0.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadein 0.25s ease;
}
#nameOverlay[hidden] { display: none; }
.name-box {
  width: 100%; max-width: 340px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 20px 18px; text-align: center;
  box-shadow: 0 24px 60px -20px rgba(20, 12, 4, 0.5);
  animation: sheet-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.name-box h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.16em; color: var(--ink); margin-bottom: 16px; }
.name-box input {
  width: 100%; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  transition: border-color 0.2s;
}
.name-box input:focus { outline: none; border-color: var(--accent-soft); }
.name-hint { color: var(--ink-3); font-size: 0.74rem; letter-spacing: 0.06em; margin: 9px 0 18px; }
.name-acts { display: flex; gap: 10px; }
.name-acts button {
  flex: 1; font-family: var(--serif); font-size: 0.94rem; letter-spacing: 0.1em; cursor: pointer;
  border-radius: 999px; padding: 11px 0; transition: transform 0.15s ease, opacity 0.2s;
  color: var(--ink-2); background: transparent; border: 1px solid var(--line);
}
.name-acts button.primary { color: #fdf6ea; background: var(--accent); border-color: var(--accent); }
.name-acts button:active { transform: scale(0.97); }

/* 存储与缓存弹层 */
.st-rows { margin-bottom: 16px; }
.st-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.9rem;
}
.st-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.st-clear {
  display: block; width: 100%; font-family: var(--serif); font-size: 0.92rem; letter-spacing: 0.2em; text-indent: 0.2em;
  color: var(--accent); background: var(--accent-wash);
  border: 1px solid var(--accent-soft); border-radius: 12px;
  padding: 12px 0; cursor: pointer; margin-bottom: 12px;
}

/* 轻提示（沉浸模式引导等） */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translateX(-50%) translateY(8px);
  font-family: var(--serif); font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 8px 18px; pointer-events: none; opacity: 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* —— 底部导航（移动端） —— */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gold-line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--ink-3); font-size: 0.68rem; letter-spacing: 0.06em;
  min-width: 52px; padding: 2px 6px;
}
.bottom-nav a svg { width: 23px; height: 23px; }
.bottom-nav a.on { color: var(--accent); }

@media (min-width: 720px) {
  .bottom-nav { display: none; }
}
@media (max-width: 719px) {
  .tabs { display: none; }
  main { padding-bottom: 90px; }
  footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  #mini.collapsed { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-mode="od"] main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* —— 页脚：泥金佛号 —— */
footer { text-align: center; padding: 26px 20px calc(30px + env(safe-area-inset-bottom)); color: var(--ink-3); }
footer p:first-child {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  letter-spacing: 0.5em; text-indent: 0.5em; font-size: 0.95rem; color: var(--gold-text);
}
footer p:first-child::before { content: ''; width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line)); }
footer p:first-child::after { content: ''; width: 38px; height: 1px; background: linear-gradient(270deg, transparent, var(--gold-line)); }
.foot-small { font-size: 0.72rem; margin-top: 10px; letter-spacing: 0.08em; }

/* 无障碍与动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* —— 听经搜索 —— */
.search-wrap { position: relative; margin: 0 0 16px; }
.search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-3); pointer-events: none;
}
#tingSearch {
  width: 100%; font-family: var(--serif); font-size: 0.94rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px 10px 38px; letter-spacing: 0.04em; outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
#tingSearch:focus { border-color: var(--accent-soft); }
#tingSearch::placeholder { color: var(--ink-3); }
/* 搜索进行时隐藏三个栏目面板，只展示结果 */
body[data-searching] .panel { display: none !important; }
#searchResults { animation: fadein 0.25s ease; }
#searchResults .lib-grid { margin-bottom: 14px; }
.search-eps li .t small, .fav-list li .t small {
  display: block; color: var(--ink-3); font-size: 0.72rem; margin-top: 2px; letter-spacing: 0.04em;
}

/* —— 直播 · 底部五键（弹幕 · 留言 · 随喜 · 定时 · 分享，图标 + 文字） —— */
.live-tools { display: flex; justify-content: space-between; gap: 6px; margin-top: 20px; position: relative; z-index: 3; }
.live-tool {
  flex: 1; min-width: 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2); font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.06em;
  transition: color 0.2s, transform 0.15s ease;
}
.live-tool:active { transform: scale(0.94); }
.lt-ic {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lt-ic svg { width: 21px; height: 21px; }
.live-tool.on { color: var(--accent); }
.live-tool.on .lt-ic { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-wash); }
/* 随喜按下即朱砂实心莲叶 */
#btnLiveLike.on svg path:first-child { fill: var(--accent); }
#btnLiveLike.on svg path:last-child { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
/* 角标：随喜计数 / 定时剩余分钟（叠在图标圆钮右上角） */
.lt-badge {
  position: absolute; top: -5px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: #fbf7ec;
  font-family: var(--serif); font-size: 0.58rem; font-weight: 600; line-height: 16px;
  text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1.5px var(--card);
}
.lt-badge[hidden] { display: none; }

/* —— 直播 · 弹幕层（覆盖莲台卡上部，不挡按钮） —— */
.live-card { position: relative; overflow: hidden; }
.dm-layer { position: absolute; inset: 0 0 42% 0; pointer-events: none; z-index: 2; }
.dm-item {
  position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform;
  max-width: none; font-size: 0.88rem; color: var(--ink-2); letter-spacing: 0.04em;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 13px;
}

/* —— 我的 · 收藏清单 —— */
.wode-sub {
  display: flex; align-items: center; gap: 9px; margin: 22px 0 2px;
  font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0.26em; font-weight: 600;
}
.wode-sub::before {
  content: ''; width: 7px; height: 7px; flex: none;
  background: var(--gold-text); opacity: 0.75; transform: rotate(45deg); border-radius: 1.5px;
}
.fav-del {
  flex: none; border: 0; background: transparent; color: var(--ink-3);
  font-size: 0.82rem; padding: 6px 8px; cursor: pointer; font-family: var(--serif);
}
.fav-del:hover { color: var(--accent); }

/* —— 加载容错 —— */
#loadErr {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); font-family: var(--serif);
}
.load-err-card { text-align: center; padding: 30px; }
.load-err-card p { color: var(--ink-2); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 20px; }
.load-err-card button, #libErr button {
  font-family: var(--serif); font-size: 0.9rem; letter-spacing: 0.2em; text-indent: 0.2em;
  color: var(--accent); background: var(--accent-wash);
  border: 1px solid var(--accent-soft); border-radius: 999px;
  padding: 9px 26px; cursor: pointer;
}
#libErr {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 12px 10px 20px; font-family: var(--serif);
  color: var(--ink-2); font-size: 0.86rem; letter-spacing: 0.04em; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -14px rgba(50, 35, 10, 0.4);
}
#libErr button { padding: 6px 16px; }

/* —— 计数器 · 满串脉冲与定课圆满 —— */
@keyframes bead-pulse {
  0% { transform: scale(1); }
  38% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.nj-bead.full { animation: bead-pulse 0.7s ease; }
.nj-bead.full .nj-ring { filter: drop-shadow(0 0 7px var(--accent-soft)); }

/* —— 日历 · 90 天外无明细 —— */
.cal-cell.gone i { opacity: 0.35; }
.cal-note { text-align: center; color: var(--ink-3); font-size: 0.72rem; margin-top: 8px; letter-spacing: 0.04em; }

/* —— 备份与迁移 —— */
.bk-note { color: var(--ink-2); font-size: 0.82rem; line-height: 1.8; letter-spacing: 0.03em; margin-bottom: 8px; }
.bk-msg { color: var(--accent); min-height: 1.6em; margin-top: 10px; text-align: center; }

/* —— 阅读器 · 回顶按钮 / 分享图标 —— */
.top-fab {
  position: fixed; right: 18px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 18;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(50, 35, 10, 0.4);
  animation: fadein 0.25s ease;
}
.top-fab svg { width: 20px; height: 20px; }
body:not([data-view="reader"]) .top-fab { display: none !important; }
.reader-pos { cursor: pointer; }
.reader-tools button svg { width: 16px; height: 16px; display: block; }

/* —— 分享抽屉与海报 —— */
#shareSheet {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30, 22, 10, 0.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadein 0.25s ease;
}
#shareSheet[hidden] { display: none; }

/* 播放器「目录」抽屉：在全屏播放器（z60）之上、分享抽屉（z70）之下 */
#plListSheet {
  position: fixed; inset: 0; z-index: 62; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30, 22, 10, 0.34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadein 0.25s ease;
}
#plListSheet[hidden] { display: none; }
.pls-eps { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; margin-top: 4px; }
.pls-go {
  display: block; width: 100%; margin-top: 10px; padding: 12px 4px;
  background: transparent; border: 0; border-top: 1px solid var(--line);
  color: var(--ink-3); font-family: var(--serif); font-size: 0.82rem; letter-spacing: 0.08em; cursor: pointer;
}
.pls-go:hover { color: var(--accent); }
/* 收藏态：书签实心 */
#btnFav.on svg { fill: currentColor; }
.share-prev {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.share-prev strong { font-size: 0.98rem; font-weight: 600; line-height: 1.5; }
.share-prev em { font-style: normal; color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.04em; }
/* 分享操作：圆形描边图标 + 小字标签（iOS 分享面板式） */
.share-acts { display: flex; justify-content: space-evenly; padding: 4px 0 2px; }
.share-act {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-2); font-family: var(--serif); font-size: 0.7rem; letter-spacing: 0.08em;
}
.share-act .sa-ic {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.share-act .sa-ic svg { width: 22px; height: 22px; }
.share-act:hover .sa-ic, .share-act:active .sa-ic {
  border-color: var(--accent-soft); background: var(--accent-wash); color: var(--accent);
}
.share-act[hidden] { display: none; }

#posterOverlay {
  position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 14, 6, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadein 0.25s ease;
}
#posterOverlay[hidden] { display: none; }
.poster-box { position: relative; text-align: center; padding: 48px 20px 20px; max-width: 420px; width: 100%; }
.poster-box img {
  width: 100%; max-height: 62vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
}
.poster-x {
  position: absolute; top: 6px; right: 14px; width: 40px; height: 40px;
  background: transparent; border: 0; color: rgba(232, 220, 194, 0.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.poster-x svg { width: 22px; height: 22px; }
.poster-acts { display: flex; gap: 34px; justify-content: center; margin-top: 18px; }
/* 深色底上的圆形图标按钮 */
.poster-act { color: #e8dcc2; }
.poster-act .sa-ic { border-color: rgba(232, 220, 194, 0.4); }
.poster-act:hover .sa-ic, .poster-act:active .sa-ic {
  border-color: #e8dcc2; background: rgba(232, 220, 194, 0.12); color: #f3ecda;
}
.poster-box small { display: block; margin-top: 12px; color: rgba(232, 220, 194, 0.75); font-size: 0.72rem; letter-spacing: 0.08em; }

/* 分享深链定位：目标集闪烁提示 */
@keyframes ep-flash {
  0%, 100% { background: transparent; }
  35% { background: var(--accent-wash); }
}
.ep-list li.flash { animation: ep-flash 1.6s ease 2; border-radius: 8px; }

/* —— 我的 · 修行概览 hero —— */
.wode-hero {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; margin-bottom: 20px;
  text-decoration: none; color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.18s ease;
}
.wode-hero:hover { border-color: var(--accent-soft); }
.wode-hero:active { transform: scale(0.985); }
.wh-ring { position: relative; width: 76px; height: 76px; flex: none; }
.wh-ring svg { width: 100%; height: 100%; display: block; }
.whr-bg { stroke: var(--line); }
.whr-fg { stroke: var(--accent); transition: stroke-dashoffset 0.5s ease; }
.wh-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.2;
}
.wh-num strong { font-size: 1.02rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wh-num small { font-size: 0.56rem; color: var(--ink-3); letter-spacing: 0.16em; text-indent: 0.16em; }
.wh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wh-main strong { font-size: 1.04rem; font-weight: 600; letter-spacing: 0.05em; }
.wh-main em { font-style: normal; color: var(--ink-2); font-size: 0.82rem; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
/* text-wrap: balance —— 窄屏折行时两行均匀，不留「日」字孤行 */
.wh-main small { color: var(--ink-3); font-size: 0.74rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; text-wrap: balance; }

/* —— 我的 · 通用设置组（卡内行列表） —— */
.wode-group {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin: 14px 0 4px;
}
.wode-group .wode-set, .wode-group .wode-row {
  background: transparent; border: 0; border-radius: 0; margin: 0;
}
.wode-group .wode-set + .wode-set,
.wode-group .wode-set + .wode-row,
.wode-group .wode-row + .wode-row { border-top: 1px solid var(--line); }
#view-wode .wode-sub { margin-bottom: 10px; }
