:root {
  --bg: #fbf8f2;
  --card: #ffffff;
  --ink: #2a2522;
  --ink2: #6f655d;
  --ink3: #a2978d;
  --line: #ebe3d6;
  --accent: #587c9b;
  --accent-ink: #ffffff;
  --wm: none; --wm-o: 0;   /* 主题的水印，没有就是 none */
  --gold: #b8873a;
  --chip: #f3ece0;
  --sel: rgba(184, 135, 58, .18);
  --hl-y: rgba(250, 214, 92, .45);
  --hl-g: rgba(126, 200, 140, .40);
  --hl-b: rgba(120, 170, 235, .38);
  --hl-r: rgba(240, 130, 140, .38);
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .06);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --fs: 19px;
  --lh: 1.85;
  --tabh: 58px;
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
/* 浅色用的就是 :root 那一套，这里只把水印清掉，好让小样也干净 */
[data-theme="light"] { --wm: none; --wm-o: 0; }
/* 素白：纯净的白，什么都不加 */
[data-theme="bai"] {
  --bg: #f6f6f8; --card: #ffffff; --ink: #15151a; --ink2: #5a5a62; --ink3: #9a9aa2;
  --line: #e6e6ea; --chip: #eeeef1; --gold: #8a6d33;
  --wm: none; --wm-o: 0;
}
/* 宣纸：米白的纸，久读不晃眼 */
[data-theme="xuan"] {
  --bg: #f6f3ea; --card: #fdfbf4; --ink: #2f2b24; --ink2: #6b6558; --ink3: #9d9686;
  --line: #e7e2d4; --chip: #efebdf; --gold: #8a6d33;
  --wm: none; --wm-o: 0;
}
/* 羊皮卷：旧书页的米黄，衬一个十字 */
[data-theme="juan"] {
  --bg: #f3ebd9; --card: #fbf6ea; --ink: #3a3026; --ink2: #6d604c; --ink3: #9c8e76;
  --line: #e2d6bd; --chip: #ece0c8; --gold: #9a7b3c;
  --wm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M44 8h12v34h30v12H56v78H44V54H14V42h30z' fill='%235a4a33'/%3E%3C/svg%3E"); --wm-size: 62% auto; --wm-o: .16;
}
/* 麦穗：麦子的暖黄 */
[data-theme="mai"] {
  --bg: #f7f0e1; --card: #fdfaf1; --ink: #3b3222; --ink2: #6f6450; --ink3: #a0957e;
  --line: #e9dcc2; --chip: #f0e6d2; --gold: #9a7b3c;
  --wm: none; --wm-o: 0;
}
/* 晨光：清早的冷白 */
[data-theme="chen"] {
  --bg: #eef3f7; --card: #ffffff; --ink: #1f2b33; --ink2: #5d6b75; --ink3: #93a1ab;
  --line: #dde6ed; --chip: #e5edf4; --gold: #9a7b3c;
  --wm: none; --wm-o: 0;
}
/* 圣母：圣母蓝，衬一幅圣母像 */
[data-theme="xing"] {
  --bg: #eaf0f8; --card: #f8fbff; --ink: #1f2a3d; --ink2: #5c6a80; --ink3: #93a0b4;
  --line: #d8e3f2; --chip: #e2ebf7; --accent: #3f5f8f; --gold: #9a7b3c;
  --wm: url("icons/wm/mary.webp"); --wm-size: auto 54%; --wm-o: .22; --wm-sw: .5;
}
/* 圣家：淡青灰，衬一幅圣家像 */
[data-theme="qing"] {
  --bg: #e9f0ec; --card: #f7fbf8; --ink: #22302b; --ink2: #5b6b64; --ink3: #92a19a;
  --line: #d8e4de; --chip: #e1ebe5; --gold: #8a7430;
  --wm: url("icons/wm/family.webp"); --wm-size: auto 52%; --wm-o: .22; --wm-sw: .5;
}
/* 橄榄：橄榄园的淡绿 */
[data-theme="gan"] {
  --bg: #eef1e6; --card: #f9faf4; --ink: #2b3326; --ink2: #5f6b55; --ink3: #93a086;
  --line: #dde2cf; --chip: #e6ebd9; --gold: #8a7430;
  --wm: none; --wm-o: 0;
}
/* 将临紫：将临期和四旬期的紫 */
[data-theme="zi"] {
  --bg: #f3eef7; --card: #fbf8fd; --ink: #2f2636; --ink2: #665c70; --ink3: #9a90a4;
  --line: #e3dbec; --chip: #ebe3f2; --accent: #6b4f8a; --gold: #8c7340;
  --wm: none; --wm-o: 0;
}
/* 石板：带蓝的深灰，比深色冷、比夜祷亮 */
[data-theme="shi"] {
  --bg: #1c2127; --card: #242b33; --ink: #d3d8dd; --ink2: #96a0aa; --ink3: #6b7681;
  --line: #2f3741; --chip: #28303a; --accent: #8fb6d8; --accent-ink: #0f1620; --gold: #c9a95f;
  --wm: none; --wm-o: 0;
  --sel: rgba(216, 168, 90, .22);
  --hl-y: rgba(220, 180, 60, .32); --hl-g: rgba(90, 170, 110, .32);
  --hl-b: rgba(90, 140, 210, .34); --hl-r: rgba(210, 90, 100, .34);
  --shadow: none;
  color-scheme: dark;
}
/* 墨夜：和夜祷同一套黑，只是不放图案 */
[data-theme="mo"] {
  --bg: #0c0d10; --card: #15171a; --ink: #cfcac1; --ink2: #8e8a83; --ink3: #635f59;
  --line: #24262a; --chip: #1b1d21; --accent: #9dbbd6; --accent-ink: #0b1118; --gold: #c99e52;
  --sel: rgba(216, 168, 90, .22);
  --hl-y: rgba(220, 180, 60, .32); --hl-g: rgba(90, 170, 110, .32);
  --hl-b: rgba(90, 140, 210, .34); --hl-r: rgba(210, 90, 100, .34);
  --shadow: none;
  color-scheme: dark;
  --wm: none; --wm-o: 0;
}
/* 夜祷：关灯也不刺眼的黑，衬一个发光的十字 */
[data-theme="ye"] {
  --bg: #0c0d10; --card: #15171a; --ink: #cfcac1; --ink2: #8e8a83; --ink3: #635f59;
  --line: #24262a; --chip: #1b1d21; --accent: #9dbbd6; --accent-ink: #0b1118; --gold: #c99e52;
  --sel: rgba(216, 168, 90, .22);
  --hl-y: rgba(220, 180, 60, .32); --hl-g: rgba(90, 170, 110, .32);
  --hl-b: rgba(90, 140, 210, .34); --hl-r: rgba(210, 90, 100, .34);
  --shadow: none;
  color-scheme: dark;
  --wm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 160'%3E%3Cg stroke='%239dbbd6' stroke-width='3' stroke-linecap='round' opacity='.7'%3E%3Cpath d='M70 50L70 6M70 50L40 14M70 50L100 14M70 50L24 36M70 50L116 36'/%3E%3C/g%3E%3Cpath d='M63 30h14v30h30v14H77v74H63V74H33V60h30z' fill='%239dbbd6'/%3E%3C/svg%3E"); --wm-size: 64% auto; --wm-o: .20;
}

/* 深色下节号按 .5 透明度会糊成一片，提亮一点 */
[data-theme="shi"] .v .nt, [data-theme="ye"] .v .nt, [data-theme="mo"] .v .nt { opacity: .78; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .v .nt { opacity: .78; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1b1916; --card: #262320; --ink: #ddd4c6; --ink2: #a99e8f; --ink3: #7d7365;
    --line: #353029; --accent: #9dbbd6; --accent-ink: #111b24; --gold: #d8a85a; --chip: #2e2a24;
  --wm: none; --wm-o: 0;
    --sel: rgba(216, 168, 90, .22);
    --hl-y: rgba(220, 180, 60, .32); --hl-g: rgba(90, 170, 110, .32);
    --hl-b: rgba(90, 140, 210, .34); --hl-r: rgba(210, 90, 100, .34);
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* 不许两指捏合缩放、双击放大（用户 2026-11-29 要求）：只留上下左右滑动。子元素的 touch-action 和这里取交集，读经页的 manipulation 也一样不能缩放 */
html { touch-action: pan-x pan-y; }
/* 主题的水印：钉在屏幕上的一张淡图，内容压在它上面 */
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--wm, none); background-repeat: no-repeat;
  background-position: center 54%; background-size: var(--wm-size, 62% auto);
  opacity: var(--wm-o, 0); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

#view { position: relative; z-index: 1; min-height: 100vh; padding-bottom: calc(var(--tabh) + var(--bot) + 16px); }
body.reading #view { padding-bottom: calc(90px + var(--bot)); }

/* ---------- 底部标签栏 ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; height: calc(var(--tabh) + var(--bot)); padding-bottom: var(--bot);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
#tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ink3); font-size: 11px; }
#tabbar a span { white-space: nowrap; }
#tabbar a svg { width: 21px; height: 21px; }
/* 中间那格是一本插画圣经，和别的格一样待在栏里，不凸出去 */
#tabbar a.big img { width: 64px; height: auto; margin: 0; transition: transform .18s; }
/* 2026-11-29 起图标去掉了周围的云，只剩天使、鸽子和书：加一点很淡的投影，白鸽子在浅色底栏上才不发虚 */
#tabbar a.big img { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .22)); }
#tabbar a.big.on img { transform: scale(1.08); }
#tabbar a.on { color: var(--accent); }
#tabbar a.on svg { stroke-width: 2.2; }
body.reading #tabbar { display: none; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  padding: calc(var(--top) + 6px) 8px 6px;
  min-height: calc(var(--top) + 52px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, transform .25s;
}
.top.lined { border-bottom-color: var(--line); }
.top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 .h1-d { font-size: 13px; font-weight: 500; color: var(--ink2); }      /* 日课标题前的「11月27日 星期四」 */
/* 窄屏（≤360）一行放不下「11月29日 星期日 弥撒读经」：日期缩成一小行放在上面 */
@media (max-width: 360px) { .top h1 { line-height: 1.2; } .top h1 .h1-d { display: block; font-size: 11px; } }
.top .ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); flex: none; }
.top .ib:active { background: var(--chip); }
.top .ib.on { color: var(--accent); }
/* 带书名的返回键：‹ 创世纪 */
.top .ib.wide { width: auto; max-width: 42vw; gap: 1px; padding-right: 6px; justify-content: start;
  grid-auto-flow: column; font-size: 17px; font-weight: 600; }
.top .ib.wide span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .spacer { width: 40px; flex: none; }
html:not(.site) body.reading.immersive:not(.hud) .top { transform: translateY(-100%); }
/* 收起来之后顶上只剩这一条：左边「创 1/50」，右边译本。双击正文或者点它就展开 */
.top .mini { display: none; }
html:not(.site) body.reading.hud .top { min-height: calc(var(--top) + 24px); padding: calc(var(--top) + 4px) 14px 4px; }
html:not(.site) body.reading.hud .top > :not(.mini) { display: none; }
html:not(.site) body.reading.hud .top .mini { display: flex; flex: 1; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; font-family: var(--sans); font-size: 12px; font-weight: 500;
  color: var(--ink3); letter-spacing: .06em; }

.wrap { padding: 0 16px; max-width: 720px; margin: 0 auto; }
.h-big { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 6px 0 2px; letter-spacing: .02em; }
.sub { color: var(--ink2); font-size: 13px; }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; font-size: 13px; color: var(--ink2); font-weight: 600; letter-spacing: .06em; }
.sec-t a, .sec-t button { color: var(--accent); font-weight: 500; letter-spacing: 0; }

.card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- 首页 ---------- */
.lit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.lit i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.daily { padding: 18px 18px 16px; margin-top: 14px; position: relative; overflow: hidden; }
.daily::before { content: "“"; position: absolute; right: 10px; top: -18px; font: 700 96px/1 var(--serif); color: var(--gold); opacity: .18; }
.daily .t { font-family: var(--serif); font-size: 18px; line-height: 1.75; }
.daily .r { margin-top: 10px; font-size: 13px; color: var(--accent); }
.cont { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px; }
.cont .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 17px; flex: none; }
.cont .x { flex: 1; min-width: 0; }
.cont .x b { display: block; font-size: 15px; }
.cont .x span { font-size: 12px; color: var(--ink2); }

.seg { display: flex; background: var(--chip); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 7px 0; border-radius: 9px; font-size: 14px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.grp-t { margin: 18px 2px 8px; font-size: 12px; color: var(--ink3); letter-spacing: .1em; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.book { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px 8px; text-align: center; }
.book:active { background: var(--chip); }
.book b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.book span { display: block; font-size: 11px; color: var(--ink2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }

/* ---------- 章节格 ---------- */
.chaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.chap { aspect-ratio: 1; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-variant-numeric: tabular-nums; }
.chap.wide { aspect-ratio: auto; padding: 12px 4px; font-size: 13px; grid-column: span 2; }
.chap.last { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chap:active { background: var(--chip); }
.intro-btn { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 4px 0 16px; }

/* ---------- 阅读 ---------- */
/* manipulation：双击交给我们自己处理，不让浏览器拿去放大页面（捏合缩放照旧） */
.reader { touch-action: manipulation; max-width: 720px; margin: 0 auto; padding: 8px 12px 24px 22px; font-family: var(--serif);
  font-size: var(--fs); line-height: var(--lh); letter-spacing: .03em; }
/* 圣咏的篇名（「善恶二路」这类）：章名里才有，正文里没有，所以单独留一行 */
.reader .ch-sub { text-align: center; margin: 14px 0 2px; font-size: 1.12em; letter-spacing: .06em; }
.reader h3 { font-size: 1.05em; text-align: center; color: var(--accent); margin: 1.6em 0 .6em; font-weight: 700; }
.reader h4 { font-family: var(--sans); font-size: .82em; color: var(--gold); margin: 1.4em 0 .3em; font-weight: 600; letter-spacing: .04em; }
.reader p.para { text-indent: 2em; margin: .5em 0; }
/* 一节一块：节号挂在左边的留白里，正文左缘上下对齐，整页不会显得密密麻麻。
   留白宽度用 rem 不用 em——节号字号比正文小，同样写 2.5em 两边算出来不一样宽，换行就对不齐。 */
/* 节号和小标题左边对齐，正文缩在节号右边；整块不再甩到屏幕边上 */
/* --vn 是节号那一栏的宽度，按这一章最大的节号算（见 app.js 的 fitVerseNums），
   单位是正文的 em：章里只有一两位数时，正文就往左靠一点 */
.v { display: block; margin: 0 -6px; padding: 0 6px 0 calc(var(--vn, 1.5) * 1em + 6px);
  text-indent: calc(var(--vn, 1.5) * -1em); border-radius: 6px; transition: background .2s; }
.v + .v { margin-top: .55em; }
/* 左对齐：节号的头和小标题的头在同一条竖线上。
   节号这一栏的宽度要和 .v 的缩进一样宽，可它自己的字号是 .68em，所以乘 1/.68 换算回来 */
.v .n { display: inline-block; box-sizing: border-box; width: calc(var(--vn, 1.5) * 1.4706em); text-align: left;
  text-indent: 0; font-family: var(--sans); font-size: .68em; color: var(--ink); font-weight: 600;
  vertical-align: .22em; opacity: 1; letter-spacing: 0; }
/* 手机上关掉系统的长按选字，不然长按选经文时会蹦出放大镜和拖拽手柄 */
@media (pointer: coarse) {
  #reader .v { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
.v.sel { background: var(--sel); }
.v.speak { background: var(--sel); box-shadow: inset 3px 0 0 var(--gold); }
.v.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--sel); } 100% { background: transparent; } }
.v[data-hl="y"] .tx { background: var(--hl-y); }
.v[data-hl="g"] .tx { background: var(--hl-g); }
.v[data-hl="b"] .tx { background: var(--hl-b); }
.v[data-hl="r"] .tx { background: var(--hl-r); }
.v .tx { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.v .bm { display: inline-block; width: .6em; height: .8em; margin-left: .25em; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); vertical-align: -.05em; }
.v .nt { font-family: var(--sans); font-size: .62em; color: var(--gold); margin-left: .2em; }
.v .alt { display: block; text-indent: 0; font-size: .88em; color: var(--ink2); margin: .2em 0 .5em; padding-left: .7em; border-left: 2px solid var(--line); }
.v .alt em { font-style: normal; font-family: var(--sans); font-size: .7em; color: var(--ink3); margin-right: .4em; }
sup.an { font-family: var(--sans); font-size: .62em; color: var(--gold); padding: 0 .25em; cursor: pointer; }
.notes { margin-top: 2em; border-top: 1px solid var(--line); padding-top: 1em; font-family: var(--sans); font-size: 14px; line-height: 1.75; color: var(--ink2); }
.notes summary { color: var(--ink); font-weight: 600; cursor: pointer; padding: 6px 0; }
.notes ol { padding-left: 1.6em; margin: .5em 0; }
.notes li { margin: .6em 0; }
.notes li.flash { animation: flash 1.6s ease-out; border-radius: 6px; }
.pager { display: flex; gap: 10px; margin: 2.2em 0 0; font-family: var(--sans); }
.pager a { flex: 1; text-align: center; padding: 13px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.pager a.dis { visibility: hidden; }
.source { text-align: center; font-family: var(--sans); font-size: 11px; color: var(--ink3); margin-top: 18px; }

/* 朗读条 */
.player {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--bot)); z-index: 15;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.15);
  font-size: 13px; max-width: 560px; margin: 0 auto;
}
.player .lab { flex: 1; min-width: 0; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.player button.main { background: var(--accent); color: var(--accent-ink); }
.player button.main svg { fill: currentColor; stroke: none; }

.selbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--bot)); z-index: 16;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.15);
  max-width: 560px; margin: 0 auto; animation: up .2s ease-out;
}
.selbar .hls button { width: 32px; height: 32px; }
.selbar .acts { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.selbar .acts button { font-size: 11px; }
body.selecting #view { padding-bottom: calc(200px + var(--bot)); }
/* 从日课「读原文」进来时，底下两个翻页钮中间那颗「返回日课」 */
.ref-back { position: fixed; left: 50%; bottom: calc(66px + var(--bot)); z-index: 14; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 16px 0 10px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.ref-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ref-back[hidden], body.selecting .ref-back { display: none; }
/* 播放条停在下面（默认位置）会盖住这两个：往上挪到播放条上面 */
body.nb-low .ref-back, body.nb-low .pick-tip { bottom: calc(142px + var(--bot)); }
/* 挑经文的时候「听」也先让开（提示条较宽，右边会挨着它） */
body.picking #listen-fab { opacity: 0; pointer-events: none; }

/* 阅读页底部浮动翻页（无朗读时） */
.fab-nav { position: fixed; bottom: calc(62px + var(--bot)); left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; z-index: 12; transition: opacity .25s; }
.fab-nav a { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink2); }
.fab-nav a.dis { visibility: hidden; }
body.immersive .fab-nav { opacity: 0; pointer-events: none; }
body.immersive .fab-nav a { pointer-events: none; }

/* 阅读页底部工具栏：目录、朗读、设置（从顶栏挪下来）。听／翻页钮浮在它上面 */
.rdtools { position: fixed; left: 0; right: 0; bottom: 0; z-index: 13; display: flex;
  padding: 6px 4px calc(6px + var(--bot));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); transition: opacity .25s, transform .25s; }
.rdtools button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0; font-size: 11px; color: var(--ink2); background: none; }
.rdtools button svg { width: 22px; height: 22px; }
.rdtools button.on { color: var(--accent); }
.rdtools button.on svg { color: var(--accent); }
.rdtools button[hidden] { display: none; }
/* 底栏现在最多 8 个键（目录 朗读 复制 书签 笔记 分享 图片 设置）：窄屏收一点 */
.rdtools button { min-width: 0; }
@media (max-width: 360px) { .rdtools button { font-size: 10px; } .rdtools button svg { width: 20px; height: 20px; } }
/* 挑选模式的提示条：浮在底栏上面、两个翻页钮中间 */
.pick-tip { position: fixed; left: 50%; bottom: calc(66px + var(--bot)); z-index: 15; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 120px); padding: 7px 8px 7px 14px; border-radius: 99px;
  background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); white-space: nowrap; }
.pick-tip span { overflow: hidden; text-overflow: ellipsis; }
.pick-tip button { flex: none; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); font-size: 12px; }
.pick-tip[hidden] { display: none; }
body.picking .ref-back { display: none; }
/* 挑选模式下经文可以点：给个淡淡的手型和按下反馈 */
body.picking #reader .v { cursor: pointer; }
/* 面板里刚才从底栏点的那个键标亮 */
.selbar .acts button.pick { background: var(--accent); color: var(--accent-ink); }
.selbar .acts button.pick svg { color: var(--accent-ink); }
body.immersive .rdtools, body.selecting .rdtools { transform: translateY(100%); opacity: 0; pointer-events: none; }
/* 底栏只在单击调出顶栏时（body.tools-on）出来，其他时候都收着（用户 2026-11-29 要求） */
body:not(.tools-on) .rdtools { transform: translateY(100%); opacity: 0; pointer-events: none; }

/* ---------- 列表 ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--chip); }
.row .x { flex: 1; min-width: 0; }
.row .x b { display: block; font-weight: 500; font-size: 15px; }
.row .x span { display: block; font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .chev { color: var(--ink3); width: 18px; height: 18px; flex: none; }
.row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.row .val { color: var(--ink2); font-size: 14px; }
.empty { text-align: center; color: var(--ink3); padding: 40px 16px; font-size: 14px; }

/* ---------- 搜索 ---------- */
.sbox { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 44px; }
.sbox svg { color: var(--ink3); width: 18px; height: 18px; flex: none; }
.sbox input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; height: 100%; }
.sbox button { color: var(--ink3); font-size: 18px; width: 28px; }
/* 语音输入：听的时候麦克风变红并轻轻跳 */
#smic { display: grid; place-items: center; }
#smic svg { width: 19px; height: 19px; }
#smic.on { color: #c0392b; animation: micpulse 1.1s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .6; } }
.sbox input::-webkit-search-cancel-button, .sbox input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips button { padding: 5px 12px; border-radius: 99px; background: var(--chip); font-size: 13px; color: var(--ink2); }
.chips button.on { background: var(--accent); color: var(--accent-ink); }
.hit { padding: 12px 16px; border-bottom: 1px solid var(--line); display: block; }
.hit:last-child { border-bottom: 0; }
.hit:active { background: var(--chip); }
.hit .r { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.hit .t { font-family: var(--serif); font-size: 16px; line-height: 1.65; }
mark { background: var(--hl-y); color: inherit; border-radius: 3px; padding: 0 1px; }
.hint { font-size: 13px; color: var(--ink2); margin: 12px 2px; line-height: 1.7; }
.more { display: block; width: 100%; padding: 14px; color: var(--accent); font-size: 14px; }

/* ---------- 经文 ---------- */
.prayer { max-width: 720px; margin: 0 auto; padding: 8px 22px 30px; font-family: var(--serif); font-size: var(--fs); line-height: var(--lh); }
.prayer .pt { text-align: center; font-size: 1.4em; font-weight: 700; margin: 18px 0 18px; letter-spacing: .08em; }
/* 开软件弹一下「今日圣言」：一天一次，按「阿们」才关（2026-11-29 起不再 3 秒自动关） */
.tw-mask { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 26px;
  background: rgba(32, 24, 16, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .28s ease; }
.tw-mask.on { opacity: 1; }
.tw-card { width: 100%; max-width: 330px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 24px 20px; text-align: center; box-shadow: 0 20px 54px rgba(50, 34, 16, .3);
  transform: translateY(12px) scale(.96); transition: transform .28s cubic-bezier(.2, .9, .3, 1); }
.tw-mask.on .tw-card { transform: none; }
.tw-h { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .16em; margin-bottom: 15px; }
.tw-t { font-family: var(--serif); font-size: 17px; line-height: 1.9; color: var(--ink); }
.tw-r { display: inline-block; font-family: var(--sans); font-size: 12.5px; color: var(--gold); margin-top: 14px; }
.tw-b { display: flex; gap: 10px; margin-top: 18px; }
.tw-b .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 11px 0; }
.tw-b .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prayplay { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px auto 18px; padding: 9px 26px; border: none; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.prayplay svg { width: 16px; height: 16px; fill: #fff; }
.prayer p { margin: .55em 0; }
.prayer p.hd { font-family: var(--sans); font-size: .8em; font-weight: 600; color: var(--gold); margin-top: 1.5em; letter-spacing: .05em; }
.prayer p.rb { font-family: var(--sans); font-size: .76em; color: var(--ink3); }

.prayer p.speak-l, .prayer .speak-l { background: var(--sel); border-radius: 6px; }

/* ---------- 圣人传记 ---------- */
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll button { flex: none; }
.srow { gap: 12px; }
.sthumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--chip); }
.sthumb.ph { display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 18px; }
.cont .ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.prayer .smeta { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink3); margin: -10px 0 16px; }
.cat .smeta { margin: 14px 0 -8px; }
.simg { margin: 0 0 16px; text-align: center; }
.simg img { max-width: 100%; max-height: 60vh; border-radius: 12px; box-shadow: var(--shadow); }
.sfields { margin: 0 0 18px; padding: 10px 14px; background: var(--chip); border-radius: 12px; font-size: .82em; line-height: 1.6; }
.sfields div { display: flex; gap: 10px; padding: 4px 0; }
.sfields dt { flex: none; color: var(--gold); font-family: var(--sans); font-weight: 600; font-size: .9em; padding-top: .1em; }
.sfields dd { margin: 0; }
.pnav { display: flex; justify-content: space-between; gap: 10px; margin: 28px 0 0; font-family: var(--sans); font-size: 14px; }
.pnav a { flex: 1; max-width: 48%; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--accent); }
.pnav a.r { text-align: right; }
.pnav small { display: block; font-size: 11px; color: var(--ink3); }

/* ---------- 首页常用入口、分类 ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--ink2); }
.quick b { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--chip); color: var(--accent); font-family: var(--serif); font-size: 18px; }
.seg.big button { padding: 9px 0; font-size: 15px; }

/* ---------- AI 助手 ---------- */
.ai { padding-bottom: 80px; }
.ai-intro { padding: 12px 14px; font-size: 13px; color: var(--ink2); line-height: 1.7; margin-top: 4px; }
.ai-intro b { color: var(--accent); margin-right: 6px; }
.ai-u { margin: 16px 0 6px auto; max-width: 82%; width: fit-content; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--accent-ink); font-size: 15px; line-height: 1.6; }
.ai-b { margin: 6px 0; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.75; }
.ai-b p { margin: .35em 0; }
.ai-b a { color: var(--accent); }
.ai-b .list { margin: 6px 0; }
.ai-b blockquote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--chip); border-radius: 0 8px 8px 0; font-family: var(--serif); }
.ai-b sup { color: var(--gold); font-size: .7em; margin: 0 2px; }
.ai-h { font-size: 12px; font-weight: 600; color: var(--ink2); margin: 12px 0 4px; letter-spacing: .05em; }
.ai-src { font-size: 12px; color: var(--ink3); }
.ai-qa { font-family: var(--serif); }
.ai-qa + .ai-qa { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.ai-qa.main p:last-child { font-weight: 600; }
.ai-note { font-size: 12px; color: var(--ink3); }
.ai-b.pending .dots { display: inline-flex; gap: 4px; }
.ai-b.pending .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: aidot 1s infinite; }
.ai-b.pending .dots i:nth-child(2) { animation-delay: .15s; }
.ai-b.pending .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aidot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ai-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + var(--bot)); z-index: 15; display: flex; gap: 8px; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.ai-bar input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--card); padding: 0 16px; font-size: 16px; color: var(--ink); }
.ai-bar button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.ai-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- 要理问答 ---------- */
.catno { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--ink2); display: grid; place-items: center; font-size: 12px; flex: none; font-family: var(--sans); }
.catno.ok { background: var(--accent); color: var(--accent-ink); }
.cat p.q, .cat p.a { display: flex; gap: 10px; align-items: flex-start; }
.cat p.q { margin-top: 1.1em; font-weight: 600; }
.cat p i { flex: none; font-style: normal; font-family: var(--sans); font-size: .62em; font-weight: 700; width: 1.9em; height: 1.9em; margin-top: .3em; border-radius: 50%; display: grid; place-items: center; }
.cat p.q i { background: var(--accent); color: var(--accent-ink); }
.cat p.a i { background: var(--chip); color: var(--gold); }
.cat.hide p.a .t { color: transparent; background: var(--chip); border-radius: 6px; cursor: pointer; user-select: none; }
.cat.hide p.a.show .t { color: inherit; background: none; }
.qa-l { font-family: var(--sans); font-size: 11px; color: var(--gold); margin-right: 6px; }

/* ---------- 经文页入口卡片 ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 14px; min-height: 104px; }
.tile small { font-size: 11px; color: var(--ink3); letter-spacing: .04em; }
.tile b { font-family: var(--serif); font-size: 18px; color: var(--accent); line-height: 1.35; }
.tile > span { font-size: 12px; color: var(--ink2); margin-top: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .lnk { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 每日礼赞 ---------- */
.datebar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.datebar > a { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink2); }
.datebar > a.dis { visibility: hidden; }
.datebar label { flex: 1; min-width: 0; text-align: center; position: relative; cursor: pointer; }
.datebar label b { display: block; font-size: 15px; }
.datebar label span { display: block; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datebar label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; border: 1px solid rgba(0,0,0,.15); vertical-align: 1px; }
.datebar input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.hours { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.hours::-webkit-scrollbar { display: none; }
.hours a { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--chip); font-size: 14px; color: var(--ink2); }
.hours a.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.office { padding-top: 4px; }
/* 每日礼赞：正文离左右边缘近一点、行距收紧一些（只动日课，不碰圣经／每日福音——圣经的行距仍跟 --lh 走） */
.prayer.office { padding-left: 12px; padding-right: 12px; }
.office:not(.gospel) { --olh: 1.5; line-height: var(--olh); }
.office p.sub-t { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink2); margin: 10px 0 6px; }
/* 小标题（赞美诗、对经…）与下面第一行之间，收到跟正文一样的行距；标题前的段距照旧留 */
.office:not(.gospel) p.hd { margin-bottom: 0; }
/* 「圣咏」「对经一：」这类小标题并到同一行：金色行内小标，后接出处／对经词 */
.office:not(.gospel) b.hd-l { font-family: var(--sans); font-size: .8em; font-weight: 600; color: var(--gold); letter-spacing: .05em; margin-right: .5em; }
/* 日课是一行一句排的（对答、诗节、圣咏），连着的几行本来就是一段，
   所以行与行之间不再另加段距，读下来就是一整段 —— 和日课本一个样。
   小标题（赞美诗、对经…）前后的空当照旧留着。每日福音是散文，不在此列 */
/* 两端对齐：换行的句子右边铺满到边距，不再留一截参差的空白（单行的领／答是末行，不会被拉伸） */
.office:not(.gospel) p[data-say] { margin-top: 0; margin-bottom: 0; text-align: justify; text-justify: inter-ideograph; }
/* 段与段之间那一口气（诗节之间、对经／圣咏前后）：空出大半行（行高的 0.8），
   原先空整整一行，用户嫌太开（2026-11-28） */
.office:not(.gospel) p.gap { height: calc(var(--olh, 1.5) * .8em); margin: 0; }
.office p.ref { margin: .2em 0 .5em; }
/* 出处行和下面的经文是同一段（用户 2026-11-29：「福音与下面的那时候是同一段落」），不再空半行 */
.office:not(.gospel) p.ref { margin-bottom: 0; }
/* 标题右边的小字说明：「福音（你们要醒着……）」 */
.prayer p.hd .hd-rb { margin-left: .5em; font-weight: 400; letter-spacing: 0; color: var(--ink3); }
/* 小标题和出处并成的一行：标题用金色小标，段前留小标题原有的空当 */
.office p.ref.with-hd { margin-top: 1.2em; }
.office.gospel p.ref b.hd-l { font-family: var(--sans); font-size: .8em; font-weight: 600; color: var(--gold); letter-spacing: .05em; margin-right: .5em; }
.office p.ref a { font-family: var(--sans); font-size: .78em; color: var(--accent); font-weight: 600; }
.office p.ref a span { font-weight: 400; color: var(--ink3); margin-left: .3em; }
/* 领、答、启、应这类提示词：跟正文同字号、同字体，加粗就够了（照日课本的排法）。
   原先缩成 .7em 的蓝色小标，和正文差了一截，读起来像两种字 */
.office.gospel b.lb { font-family: var(--sans); font-size: .7em; color: var(--accent); margin-right: .4em; font-weight: 600; }
/* 领／答 等标签后面那个全角冒号自带一截空白，往左收一点，让后文贴近（和参考排版一致） */
.office:not(.gospel) b.lb { font-weight: 700; color: var(--ink); margin-right: -.33em; }
/* 领／答 两种颜色（2026-11-29 用户：「答：与领：用不同颜色区分开」）：领用灰玫瑰，答用主题蓝。
   起先用朱红 #c4473a，用户嫌「和整体色调不协调」——改成和主题蓝同样柔和（饱和度、明度相当）的玫瑰色 */
.office:not(.gospel) b.lb-v { color: #a55b50; }
.office:not(.gospel) b.lb-r { color: var(--accent); }
/* 深色主题（石板/墨/夜，以及跟随系统的深色）：跟浅蓝 #9dbbd6 同一档的浅玫瑰 */
[data-theme="shi"] .office:not(.gospel) b.lb-v, [data-theme="mo"] .office:not(.gospel) b.lb-v,
[data-theme="ye"] .office:not(.gospel) b.lb-v { color: #d5a49a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .office:not(.gospel) b.lb-v { color: #d5a49a; } }
.office .mk { color: var(--ink3); font-size: .8em; margin: 0 .15em; }

/* ---------- 读经计划 ---------- */
.ck { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.ck svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ck.on { background: #3f8a4f; border-color: #3f8a4f; color: #fff; }
.ck.half { border-color: #3f8a4f; background: linear-gradient(90deg, rgba(63,138,79,.35) 50%, transparent 50%); }

/* ---------- 同步码 / 统计 ---------- */
.code { font: 600 28px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--accent); margin: 6px 0 4px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 12px; }
.bars div { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; }
.bars div:last-child i { background: var(--gold); opacity: 1; }

/* ---------- 微信提示 ---------- */
#wxtip { position: fixed; top: calc(8px + var(--top)); left: 10px; right: 10px; z-index: 70; display: flex; gap: 10px; align-items: flex-start;
  background: #1f1b17; color: #fff; border-radius: 14px; padding: 12px 12px 12px 16px; font-size: 14px; line-height: 1.6; box-shadow: 0 8px 28px rgba(0,0,0,.3); }
#wxtip div { flex: 1; }
#wxtip b { color: #f3c77a; }
#wxtip button { color: #fff; font-size: 22px; width: 30px; height: 30px; flex: none; }
#wxtip .arrow { position: absolute; top: -8px; right: 22px; border: 8px solid transparent; border-top: 0; border-bottom-color: #1f1b17; }

/* ---------- 底部弹层 ---------- */
#sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 40; animation: fade .2s; }
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 82vh; overflow: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + var(--bot)); animation: up .24s cubic-bezier(.2,.8,.2,1);
  max-width: 720px; margin: 0 auto;
}
#sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
/* 确认框（如日课「读原文」跳转前的两步确认） */
.cfm { padding: 8px 6px 4px; }
.cfm p { font-size: 15.5px; line-height: 1.7; color: var(--ink); margin: 2px 2px 18px; }
.cfm-b { display: flex; gap: 10px; }
.cfm-b .btn { flex: 1; }
.sh-t { font-weight: 600; font-size: 16px; margin: 4px 2px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.sh-t small { font-weight: 400; color: var(--ink3); font-size: 12px; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acts button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 10px; border-radius: 12px; background: var(--chip); font-size: 12px; color: var(--ink2); }
.acts button svg { color: var(--ink); }
.acts button.on svg { color: var(--accent); fill: var(--accent); }
.hls { display: flex; gap: 14px; justify-content: center; margin: 16px 0 6px; }
.hls button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; }
.hls button.on { border-color: var(--ink); }
.hls .x { background: var(--chip); display: grid; place-items: center; color: var(--ink2); font-size: 16px; }
.preview { font-family: var(--serif); font-size: 15px; color: var(--ink2); line-height: 1.65; margin: 0 2px 14px; max-height: 6.6em; overflow: hidden; }
.note-box { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); resize: vertical; outline: 0; font-size: 15px; line-height: 1.6; }
.btn { display: block; width: 100%; padding: 13px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; text-align: center; }
.btn.ghost { background: var(--chip); color: var(--ink); font-weight: 500; }
.btns { display: flex; gap: 10px; margin-top: 12px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); gap: 12px; }
.set-row:last-child { border-bottom: 0; }
.set-row > span { font-size: 15px; flex: none; }
.set-row .seg { flex: 1; max-width: 240px; }
.set-row.col { display: block; }
.set-row.col > span { display: block; margin-bottom: 9px; }
.set-row.reset button { width: 100%; padding: 11px; border-radius: 12px; background: var(--chip);
  color: var(--accent); font-size: 14.5px; font-weight: 600; }
/* 每一款主题一个小样：底色、两行字、一个主色点，带水印的也照着铺一层 */
/* 可以收起来的小节（主题色卡、我的标记、阅读设置）：点标题收/展，选择记在本机。
   选择器要够具体，才压得过上面的 .set-row.col > span { display:block } */
.sec-t .fold-t, .set-row.col > .fold-t { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.fold-t svg { width: 15px; height: 15px; color: var(--ink3); transition: transform .2s; }
.foldbox.folded .fold-t svg { transform: rotate(-90deg); }
.foldbox.folded > .list, .foldbox.folded > .themes, .foldbox.folded > .card { display: none; }
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.themes button { display: block; color: var(--ink2); font-size: 12.5px; text-align: center; }
.themes button.on { color: var(--accent); font-weight: 600; }
.th-pv { display: block; position: relative; overflow: hidden; height: 44px; margin-bottom: 5px;
  padding: 9px 7px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.th-pv::after { content: ''; position: absolute; inset: 0; background-image: var(--wm, none);
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: var(--wm-sw, calc(var(--wm-o, 0) * 2.8)); }
.th-pv i { position: absolute; right: 6px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.th-pv.auto { --wm: none; --wm-o: 0; background: linear-gradient(118deg, #fbf8f2 0 50%, #1b1916 50% 100%); }
.th-pv.auto i { background: #587c9b; }
.themes button.on .th-pv { outline: 2px solid currentColor; outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 36px; border-radius: 10px; background: var(--chip); font-size: 16px; }
.stepper output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 14px; }
.picker-books { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.picker-books button { padding: 8px 0; border-radius: 9px; background: var(--chip); font-family: var(--serif); font-size: 15px; }
.picker-books button.on { background: var(--accent); color: var(--accent-ink); }
.note-pop { font-size: 15px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--bot)); transform: translateX(-50%); z-index: 60; background: rgba(30,26,22,.92); color: #fff; padding: 9px 16px; border-radius: 99px; font-size: 14px; max-width: 86vw; text-align: center; animation: fade .2s; }

.progress { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

.spin { width: 28px; height: 28px; margin: 60px auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .reader, .prayer { padding-left: 32px; padding-right: 32px; }
}

/* 日课页：当天纪念的圣人 */
.osaint { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.osaint img, .osaint > span { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; background: var(--chip); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-weight: 700; }
.osaint b { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osaint small { font-size: 12px; color: var(--accent); }
.osaint .chev { width: 16px; height: 16px; color: var(--ink3); flex: none; }

/* ---------- 十四苦路 ---------- */
.st-top { padding-bottom: 0; }
.st-grid { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 2px 16px 4px; }
.st-grid::-webkit-scrollbar { display: none; }
.st-grid a { flex: none; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--ink2); font-size: 14px; font-family: var(--sans); }
.st-grid a.w { padding: 0 12px; font-size: 13px; }
.st-grid a.on { background: #5b2a6e; color: #fff; font-weight: 600; }
.stations .st-no { text-align: center; font-family: var(--sans); font-size: 13px; letter-spacing: .2em; color: var(--gold); margin-top: 14px; }
.stations .st-t { margin-top: 4px; }
.st-whole { text-align: center; margin-top: 14px; font-family: var(--sans); font-size: 13px; }
.st-whole a { color: var(--ink3); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 每月敬礼 ---------- */
.mo-cur { display: flex; flex-direction: column; gap: 4px; padding: 16px; margin-top: 6px; }
.mo-cur small { font-size: 12px; color: var(--ink3); }
.mo-cur b { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.mo-cur span { font-size: 13px; color: var(--ink2); line-height: 1.6; }
.mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mo-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.mo-grid a.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mo-grid i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 15px; }
.mo-grid b { font-size: 13px; font-weight: 500; line-height: 1.35; }
.mo-head { border-radius: 16px; padding: 18px; color: #fff; margin-top: 6px; }
.mo-head small { display: block; font-size: 12px; opacity: .85; }
.mo-head b { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; }
.mo-intro { padding: 14px 16px; margin-top: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.8; }
.cont .ico.mo-ico, .cont .ico { line-height: 1; }
.cont .ico.mo-ico { font-size: 13px; }

/* ---------- 分类 → 经文：宫格 ---------- */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feat a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-align: center; min-width: 0; }
.feat i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.feat b { font-size: 13px; font-weight: 600; }
.feat span { font-size: 11px; color: var(--ink3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcats a { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.pcats i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.pcats div { min-width: 0; }
.pcats b { display: block; font-size: 14px; font-weight: 600; }
.pcats span { display: block; font-size: 11px; color: var(--ink3); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.duo > .tile { min-width: 0; }
.feat i { font-size: 15px; }

.st-grid a.rd { box-shadow: inset 0 -3px 0 var(--gold); }

/* ---------- 首页 ---------- */
/* 去掉问候语后，日期和礼仪色两行靠太近，补一点间距 */

/* 首页的每日一句占地小一点：字号、行高、留白都收一点，卡片矮将近三分之一 */
.home .daily { margin-top: 12px; padding: 12px 14px 11px; }
.home .daily::before { font-size: 64px; right: 8px; top: -12px; }
.home .daily .dv-h { margin-bottom: 3px; }
.home .daily .r { margin-top: 6px; font-size: 12px; }
.dv-h { font-size: 12px; font-weight: 600; color: var(--ink3); letter-spacing: .08em; margin-bottom: 6px; }
.home .daily .t { font-size: 16px; line-height: 1.6; }
.mo-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-top: 10px; border-left: 4px solid var(--mc); }
.mo-strip i { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--mc); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.mo-strip div { flex: 1; min-width: 0; }
.mo-strip b { display: block; font-size: 14px; }
.mo-strip span { display: block; font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-strip .chev { width: 18px; height: 18px; color: var(--ink3); flex: none; }
.r-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 14px; }
.quick.q4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick.q4 a { padding: 12px 2px; font-size: 12px; }
.quick.q4 b { width: 36px; height: 36px; font-size: 16px; }

/* 首页横幅：宽 3:1，手机上贴边、圆角；横幅下面的日期标题不再留出状态栏的空白 */
.home-banner { max-width: 720px; margin: 0 auto; padding: calc(var(--top) + 10px) 12px 0; }
.home-banner img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); background: var(--chip); }
.home-banner + .wrap { padding-top: 0; }

.home-banner .hb { position: relative; }

/* 分享 */
.sharelink { font-family: ui-monospace, monospace; font-size: 13px; background: var(--chip); border-radius: 10px; padding: 10px 12px; word-break: break-all; margin: 8px 0 12px; }
.sharecard { display: flex; gap: 14px; align-items: center; padding: 14px; margin-top: 8px; }
.sharecard img { width: 104px; height: 104px; flex: none; border-radius: 10px; background: #fff; padding: 4px; }
.sharecard b { display: block; font-size: 16px; }
.sharecard span { display: block; font-size: 12px; color: var(--ink2); line-height: 1.6; margin: 4px 0 8px; }
.sharecard .btns { margin: 0; gap: 8px; }
.sharecard .btn { padding: 8px 0; font-size: 14px; }

/* 分享面板、分享图片 */
.share-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.share-opts button { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 14px; background: var(--chip); }
.share-opts i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-style: normal; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 18px; }
.share-opts b { font-size: 16px; }
.share-opts span { font-size: 12px; color: var(--ink2); }
.poster { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); max-height: 62vh; object-fit: contain; background: #e3f0fb; }

/* ---------- 灵修书籍 ---------- */
.bookrow { display: flex; gap: 14px; padding: 12px; margin-top: 10px; align-items: center; }
/* 书籍、书架：一行三格 */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin-top: 4px; }
.bkc, .shc { display: block; min-width: 0; color: inherit; }
.bkc-c, .shc-c { position: relative; display: block; }
.bkc-c img, .bkc-c .bk-ph { width: 100%; height: auto; aspect-ratio: 3 / 4.2; border-radius: 7px;
  object-fit: cover; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); background: var(--chip);
  display: grid; place-items: center; font-family: var(--serif); color: var(--gold); font-size: 22px; }
.shc-c { aspect-ratio: 3 / 4.2; border-radius: 7px; background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow); }
.shc-c .r-ico { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
.shc-c.cov { border: 0; background: none; box-shadow: none; }
.shc-c.cov img { width: 100%; height: 100%; border-radius: 7px; object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
.bkc .bk-add, .shc .bk-add { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px;
  font-size: 13px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.bkc b, .shc b { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bkc span:not(.bk-add):not(.bkc-c):not(.bk-ph), .shc span:not(.bk-add):not(.shc-c):not(.r-ico) {
  display: block; margin-top: 2px; font-size: 12px; color: var(--ink2);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.bkc em { display: block; margin-top: 2px; font-size: 11.5px; font-style: normal; color: var(--ink3); }

.bookrow img, .bk-ph { width: 74px; height: 104px; flex: none; border-radius: 6px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.15); background: var(--chip); display: grid; place-items: center; font-family: var(--serif); color: var(--gold); font-size: 22px; }
.bookrow div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bookrow b { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.bookrow small { font-size: 12px; color: var(--ink2); }
.bookrow span { font-size: 13px; color: var(--ink2); }
.bookrow em { font-style: normal; font-size: 12px; color: var(--gold); margin-top: 4px; }
/* 我的书架：每行右边一个 ＋／✓，点一下放进来或拿出去 */
.bookrow > div { flex: 1; }
.bk-add { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); color: var(--ink2);
  font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; user-select: none; }
.bk-add.on { background: var(--accent); color: var(--accent-ink); }
.shelf-ib.on { color: var(--accent); }
.shelf-ib.on svg { fill: currentColor; }
/* 分类有五格，字小半号才不挤 */
/* 分类顶上的五个入口：九宫格，一行三个 */
/* 分类八格：4 列 × 2 行（6 格时是 3×2；加了教宗讲道、新闻后 3 列会剩一行只有两格） */
.bgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bgrid button { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 2px 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; color: var(--ink2); font-size: 13px; white-space: nowrap; box-shadow: var(--shadow); }
.bgrid button i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chip); color: var(--ink2); font-family: var(--serif); font-style: normal;
  font-size: 17px; font-weight: 700; transition: background .18s, color .18s; }
.bgrid button.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.bgrid button.on i { background: var(--accent); color: var(--accent-ink); }

/* 首页三小块：图标＋标题＋副＋播放钮，3 列同屏（仿「今日敬礼」那排） */
.hrow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.hrow3 > div { display: flex; }
.hrow3 > div > .card { flex: 1; margin: 0; }
.hmini { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 11px 5px 11px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.hmini > a { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; color: var(--ink); }
.hmini-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.hmini-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hmini b { margin-top: 6px; font-family: var(--serif); font-size: 14px; line-height: 1.2; }
.hmini > a > span { margin-top: 2px; font-size: 11px; color: var(--ink3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 340px) { .hmini-ico { width: 40px; height: 40px; } .hmini b { font-size: 13px; } }
.hcard-h { display: flex; align-items: center; justify-content: space-between; }
.hcard-ico { flex: none; width: 42px; height: 42px; }
.hcard-ico svg { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hcard-tag { flex: none; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent); padding: 4px 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; }
.hcard-tag.live em { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hcard-t { display: block; font-family: var(--sans); font-size: 19px; font-weight: 700; margin: 8px 0 2px; }
.hcard-sub { font-size: 13px; color: var(--ink2); }
.hcard-now { font-size: 14.5px; color: var(--ink); margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.5; }
.hcard-now small { flex-basis: 100%; font-size: 12px; color: var(--ink3); margin-top: 1px; }
.rd-badge { flex: none; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--chip); padding: 2px 9px; border-radius: 99px; }
.hcard .ap { margin-top: 12px; }
.hcard-more { display: block; width: 100%; text-align: center; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 500; background: none; }
.hcard-more svg { width: 13px; height: 13px; vertical-align: -2px; }
.ap-time { flex: none; font-family: var(--sans); font-size: 12px; color: var(--ink3); }
.ap-live { flex: 1; font-size: 14px; color: var(--accent); font-weight: 600; }

/* 问问神父：分类卡 + 节目列表 + 单集页 */
.apcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.apcat { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 11px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; color: var(--ink); text-align: center; min-width: 0; }
/* 播放模式切换 + 「播放本类」 */
.apmode { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 500; color: var(--accent); background: none; }
.apmode svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ap-ctl { display: inline-flex; align-items: center; gap: 12px; }
/* 用 .ap-ctl .apcplay 提高优先级：.sec-t button{color:accent} 会把文字也染成蓝的（和蓝底一个色＝看不见） */
.ap-ctl .apcplay { display: inline-flex; align-items: center; gap: 5px; padding: 6px 15px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.ap-ctl .apcplay svg { width: 13px; height: 13px; fill: #fff; stroke: none; }
.apcat:active { background: var(--chip); }
.apcat i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--sans); font-size: 17px; font-weight: 700; color: #fff; }
.apcat i svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apcat b { font-size: 13.5px; }
.apcat span { font-size: 11px; color: var(--ink3); }
.aplist { display: flex; flex-direction: column; gap: 8px; }
.ap-item { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
/* 左边「期号 + 标题」是一整块链接，点它进这一集；右边三个键各管各的，不会跳页 */
.ap-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; }
.ap-main:active { opacity: .55; }
.ap-item b { flex: none; min-width: 2.4em; text-align: center; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); }
.ap-main span { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; }
.ap-acts { flex: none; display: flex; align-items: center; gap: 1px; }
.ap-acts button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: none; background: none; border-radius: 50%; color: var(--ink3); cursor: pointer; }
.ap-acts button:active { background: var(--chip); }
.ap-acts svg { width: 17px; height: 17px; }
.ap-item .ap-play { width: 34px; height: 34px; background: none; color: var(--accent); }
.ap-item .ap-play svg { fill: currentColor; stroke: none; }
.ap-fav.on { color: #c0392b; }                 /* 收藏（爱心）点亮：填成红色 */
.ap-fav.on svg { fill: currentColor; }
.ap-item .chev { flex: none; color: var(--ink3); }
.ap-player { margin: 4px 0 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.ap-credit { font-size: 12px; color: var(--ink3); margin: 0 0 16px; }

/* 新闻 / 听教宗讲道（真理文化）：一行＝两行标题＋小类·日期，右边播放、分享（列表不放题图，省流量） */
.yzlist { display: flex; flex-direction: column; gap: 8px; }
.yz-item { display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.yz-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; }
.yz-main:active { opacity: .55; }
.yz-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.yz-x b { font-weight: 500; font-size: 15px; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yz-x small { font-size: 12px; color: var(--ink3); }
.yz-x small em { font-style: normal; color: var(--accent); }
.yz-item .ap-play { width: 34px; height: 34px; background: none; color: var(--accent); }
.yz-item .ap-play svg { fill: currentColor; stroke: none; }
.yz-hero { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin: 0 0 14px; background: var(--chip); }
.shelf-empty { padding: 14px; margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--ink2); }
.shelf-empty b { color: var(--accent); }
.bookact { display: flex; gap: 10px; margin-top: 12px; }
.bookact .btn { flex: 1; }
.bookact #bkshelf { flex: none; width: auto; padding: 13px 16px; }
.bookact #bkshelf.on { color: var(--accent); }

.bookhead { display: flex; gap: 16px; margin-top: 8px; }
.bookhead img { width: 120px; height: 170px; flex: none; border-radius: 8px; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.bookhead div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bookhead b { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.bookhead small { font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.bookhead span { font-size: 13px; color: var(--ink2); }
.bookcredit { margin-top: 12px; font-size: 13px; color: var(--gold); text-align: center; font-family: var(--sans); }
.bookcopy { margin: 20px 0 6px; font-size: 11px; color: var(--ink3); text-align: center; line-height: 1.6; }
.book p { text-indent: 2em; }
.book p.hd, .book p.bq { text-indent: 0; }
.book p.bq { margin: .8em 0 .8em 1.2em; padding-left: .8em; border-left: 3px solid var(--line); color: var(--ink2); font-size: .95em; }
.book sup.fn { color: var(--gold); font-size: .62em; font-family: var(--sans); padding: 0 2px; cursor: pointer; }
.booknotes { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--ink2); }
.booknotes .hd { font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.booknotes b { color: var(--ink3); margin-right: 4px; }

.bookimg { margin: 1em 0; text-align: center; }
.bookimg img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.bookimg figcaption { font-family: var(--sans); font-size: 12px; color: var(--ink3); margin-top: 4px; }
.book p.gap { height: .4em; margin: 0; }

.book { text-align: left; }
.book p { text-align: justify; }
.book .st-no, .book .pt { text-align: center; }

.bookdl { margin-top: 10px; text-align: center; }
.bookdl .btn { width: 100%; }
#bkdlmsg { font-size: 12px; color: var(--ink3); margin-top: 6px; }

.office.gospel { padding-top: 4px; }
.gos-act { display: flex; gap: 10px; margin: 6px 0 16px; }
.gos-act .btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.gos-act .btn svg { width: 18px; height: 18px; }

.gaud { margin: 0 0 12px; padding: 12px 14px; }
.gaud b { display: block; font-size: 15px; margin-bottom: 8px; }
.gaud audio { width: 100%; }


/* 搜索页上方的助手回答 */
.aians { margin: 14px 0 4px; padding: 14px; }
.aians .dv-h { margin-bottom: 8px; }
.aians .ai-b { font-size: 15px; line-height: 1.8; }
.aians .ai-b > :first-child { margin-top: 0; }
.aians .ai-b > :last-child { margin-bottom: 0; }

.pvline { display: block; text-align: center; font-size: 12px; color: var(--ink3); margin: 18px 0 6px; }
.pvline b { color: var(--ink2); font-weight: 600; }
.pvline[hidden] { display: none; }

/* 首页的今日福音：一张录音卡，福音全文收在卡头那三个点里（弹窗） */
.home #hgos .card { margin-bottom: 0; }
.gaud-h { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 2px 0 8px; }
.gaud-h b { flex: 1; min-width: 0; margin: 0; font-size: 15px; }
.gaud-go { flex: none; display: inline-flex; align-items: center; gap: 1px; padding: 4px 11px;
  border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 12.5px; font-weight: 600; }
.gaud-go svg { width: 15px; height: 15px; }
.gaud-more { display: block; text-align: right; font-size: 13px; color: var(--accent); margin-top: 10px; }
.hg-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 13px 14px; }
.hg-row .x { flex: 1; min-width: 0; }
.hg-row .x b { display: block; font-size: 15px; }
.hg-row .x span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink3); }
.gos-pop { max-width: none; padding: 2px 2px 14px; }

/* 教宗祈祷意向 */
.pope-now { margin-top: 14px; padding: 16px 18px 18px; }
.pope-now b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.pope-now p { font-size: 15px; line-height: 1.8; color: var(--ink2); }
.pope-row { width: 100%; text-align: left; }
.pope-row .r-ico { font-size: 12px; font-weight: 600; }
.pope-row .x span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pope-row.open .x span { -webkit-line-clamp: unset; overflow: visible; }
.pope-row.on .x b { color: var(--accent); }
.src-note { margin: 16px 2px 8px; font-size: 12.5px; line-height: 1.8; color: var(--ink3); }
.src-note a { color: var(--accent); }

/* 瞻礼单 */
.monseg { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 12px; padding: 0 16px 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.monseg::-webkit-scrollbar { display: none; }
.monseg button { flex: 0 0 auto; padding: 7px 13px; border-radius: 99px; background: var(--chip); font-size: 13px; color: var(--ink2); }
.monseg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.cal-row { display: flex; align-items: center; gap: 10px; }
.cal-row .lit-d { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); }
.cal-row .cd { flex: 0 0 34px; font-family: var(--serif); font-size: 17px; line-height: 1.1; text-align: center; color: var(--ink2); }
.cal-row .cd small { display: block; font-family: var(--sans); font-size: 10px; color: var(--ink3); }
.cal-row .x { flex: 1; min-width: 0; }
.cal-row .x b { display: block; font-size: 15px; }
.cal-row .x span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink3); }
.cal-row.sun .cd, .cal-row.sun .x b { color: var(--accent); }
.cal-row.on { background: var(--sel); }

/* 电台直播 */
.radio-c .rd-line { display: flex; align-items: center; gap: 12px; }
.radio-c .rd-line .ap { flex: none; }
.radio-c .rd-now { flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.radio-c .rd-now small { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }
.radio-c .live { display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.sch { max-height: 54vh; overflow: auto; overscroll-behavior: contain; margin: 0 -4px; }
.sch-row { display: flex; gap: 12px; padding: 9px 8px; border-radius: 10px; font-size: 14px; }
.sch-row .t { flex: 0 0 48px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.sch-row .n { flex: 1; min-width: 0; }
.sch-row.on { background: var(--sel); font-weight: 600; }
.sch-row.on .t { color: var(--accent); }

/* 首页：每日礼赞六格（普世同祷）。每格右边一幅画，左边用图上量来的颜色接住，中间淡出，接缝看不见 */
.hc { margin-top: 8px; padding: 14px 14px 12px; }
.hc-l { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.hc-when { min-width: 0; text-align: center; }
.hc-when b { display: block; font-size: 14.5px; color: var(--ink); }
.hc-when .lit { display: flex; justify-content: center; margin-top: 1px; font-size: 12.5px; color: var(--ink3); line-height: 1.5; }
.hc-when .lit i { width: 8px; height: 8px; }
.hc-l .chev { display: none; }
.hc-g { display: flex; gap: 3px; }
.hq { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0 4px; }
/* 圆图标跟着格子宽窄缩：屏幕再窄也不会挤在一起 */
.hq img { width: min(44px, 72%); height: auto; aspect-ratio: 1; border-radius: 50%; }
.hq span { font-size: clamp(9.5px, 2.9vw, 11px); line-height: 1.25; color: var(--ink2); text-align: center;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hq.on img { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--accent); }
.hq.on span { color: var(--accent); font-weight: 600; }

/* 搜索框下面那个「问 AI」 */
.ai-ask { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  margin-top: 12px; padding: 13px 14px; font-size: 15px; color: var(--ink); }
.ai-ask svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.ai-ask span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.ai-ask b { color: var(--ink); }
#airow .ai-intro, #airow .ai-u, #airow .ai-b { margin-top: 12px; }


/* 自己做的小播放器（不用浏览器自带那条，它右边有个三点菜单） */
.ap { display: flex; align-items: center; gap: 11px; }
.ap-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); }
.ap-play svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.ap-bar { flex: 1; min-width: 0; height: 5px; border-radius: 99px; background: var(--chip); cursor: pointer; }
.ap-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .2s linear; }
.ap-rate { flex: none; min-width: 38px; padding: 4px 8px; border-radius: 99px; background: var(--chip);
  color: var(--ink2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 整章录音：右下角「听」钮 ＋ 播放页顶上的播放条（思高本 · 天主教在线） */
#listen-fab { position: fixed; right: 16px; bottom: calc(118px + var(--bot)); z-index: 14;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #cda163, #a9772e); color: #fff;
  box-shadow: 0 5px 18px rgba(165,119,46,.42), inset 0 1px 0 rgba(255,255,255,.25);
  font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .05em;
  transition: opacity .25s, transform .12s; }
#listen-fab:active { transform: scale(.94); }
#listen-fab svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
/* 正在放：转成米白底、金字金边的样子，像一枚点亮的印记 */
#listen-fab.playing { background: var(--card); color: #a9772e; border: 1.5px solid #c99d5a;
  box-shadow: 0 4px 14px rgba(165,119,46,.3); }
body.immersive #listen-fab { opacity: 0; pointer-events: none; }
/* 选经文时底下是功能面板：「听」会压住面板右上角的取消键，先让开 */
body.selecting #listen-fab { opacity: 0; pointer-events: none; }

#audiobar { position: fixed; left: 0; right: 0; top: calc(var(--top) + 52px); z-index: 9;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); animation: fade .2s; }
#audiobar .ab-play { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #cda163, #a9772e); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
#audiobar .ab-play svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
#audiobar .ab-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#audiobar .ab-list, #audiobar .ab-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink2); }
#audiobar .ab-list svg { width: 21px; height: 21px; }
#audiobar .ab-x { font-size: 23px; color: var(--ink3); }
/* 顶条出现时：顶栏不收（上面已禁了沉浸／窄条），正文往下让出顶条的高度 */
body.reading.audio .top { transform: none !important; }
body.reading.audio .reader { margin-top: 52px; }

/* 播放列表（本卷有录音的章） */
.bl-h { padding: 16px 18px 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bl-list { max-height: 60vh; overflow: auto; padding: 0 10px 8px; -webkit-overflow-scrolling: touch; }
.bl-row { display: block; width: 100%; text-align: left; padding: 12px 12px; border-radius: 10px;
  font-size: 15px; color: var(--ink); }
.bl-row:active { background: var(--chip); }
.bl-row small { color: var(--ink3); font-size: 13px; font-weight: 400; margin-left: 6px; }
.bl-row.cur { color: var(--gold); font-weight: 600; }
.bl-row.cur small { color: var(--gold); }

/* 首页热心敬礼的三张卡 */
.dv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.dv-c { display: flex; flex-direction: column; align-items: center; padding: 11px 5px 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dv-c > a { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.dv-c img { width: 44px; height: 44px; border-radius: 50%; }
.dv-c b { margin-top: 6px; font-family: var(--serif); font-size: 14px; line-height: 1.2; text-align: center; }
.dv-c > a > span { margin-top: 2px; font-size: 11px; color: var(--ink3); text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 「播放」键：首页那 6 张卡共用——只留一个蓝色三角，不要胶囊底色和「播放」二字；
   全站同一个尺寸，不随字数或卡片变大小。外面留 padding 把点击区撑到 30px 左右。 */
.dv-play { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px; border: none; border-radius: 99px; background: none; color: var(--accent); cursor: pointer; }
.dv-play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; display: block; }
.dv-play:active { opacity: .55; }
@media (max-width: 340px) { .dv-c img { width: 40px; height: 40px; } .dv-c b { font-size: 13px; } .dv-play svg { width: 16px; height: 16px; } }
/* 首页那几张小卡压扁（2026-11-28，用户：「压扁一点，不然下面的看不到内容」）：
   播放三角挪到卡片右上角，不再单独占一行；图标和上下留白也收一点。每张卡约 143 → 92px。 */
.hmini, .dv-c { position: relative; padding: 9px 5px 9px; }
.hmini-ico, .dv-c img { width: 38px; height: 38px; }
.hmini-ico svg { width: 21px; height: 21px; }
.hmini b, .dv-c b { margin-top: 5px; }
/* 右上角的播放键做成实心圆底 + 白三角（用户：光一个小三角「太小不明显」） */
/* 卡宽只有 110 上下、图标居中 38px：按钮 26px 贴角放，和图标之间还留约 5px，不压图标；
   看得见的圆小一点，点击区用 ::after 往外扩到 38px，手指照样好点 */
.hmini .dv-play, .dv-c .dv-play, .h2c .dv-play { position: absolute; top: 5px; right: 5px; margin: 0; padding: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.hmini .dv-play::after, .dv-c .dv-play::after, .h2c .dv-play::after { content: ''; position: absolute; inset: -6px; }
.hmini .dv-play svg, .dv-c .dv-play svg, .h2c .dv-play svg { width: 12px; height: 12px; margin-left: 2px; }   /* 三角视觉居中要往右挪一点 */
.hmini .dv-play[aria-label="暂停"] svg, .dv-c .dv-play[aria-label="暂停"] svg, .h2c .dv-play[aria-label="暂停"] svg { margin-left: 0; }
@media (max-width: 340px) {
  .hmini-ico, .dv-c img { width: 32px; height: 32px; }
  .hmini-ico svg { width: 18px; height: 18px; }
  .hmini .dv-play, .dv-c .dv-play { top: 3px; right: 3px; width: 22px; height: 22px; }
  .hmini .dv-play svg, .dv-c .dv-play svg { width: 10px; height: 10px; }
}
/* 2026-11-29 用户：小卡的播放键「背景透明，移到图标的字的下面」——不再贴右上角、不要圆底，
   只留蓝色三角，排在名字和小字下面（名字、小字还是原来两行）。题图卡「听教宗讲道」上那颗照旧在右上角 */
.hmini .dv-play, .dv-c .dv-play { position: relative; top: auto; right: auto; width: auto; height: auto;
  margin: 3px 0 0; padding: 2px 10px; border-radius: 99px; background: none; color: var(--accent); box-shadow: none; }
.hmini .dv-play svg, .dv-c .dv-play svg { width: 16px; height: 16px; margin-left: 0; }
.hmini .dv-play::after, .dv-c .dv-play::after { inset: -6px -8px; }
.hmini, .dv-c { padding-bottom: 6px; }

/* 段标题居中（热心敬礼） */
.sec-t.mid { justify-content: center; color: var(--accent); font-size: 15px; }
/* 离线下载完的那句话 */
.offdone { margin-top: 10px; padding: 10px 12px; border-radius: 10px; text-align: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  font-size: 14px; font-weight: 600; line-height: 1.6; }

/* 底下「正在播放」：小胶囊，可拖动、可收起到屏幕边（仿爱的圣乐的 mini）。位置/收起状态记本机。
   #nowbar 只负责定位（left/top 由 JS 设），样子在 .nb-card 上 */
#nowbar { position: fixed; z-index: 18; top: 0; left: 0; width: auto; max-width: min(238px, calc(100% - 20px));
  transition: left .24s cubic-bezier(.22, .8, .3, 1), top .24s cubic-bezier(.22, .8, .3, 1);
  touch-action: none; -webkit-user-select: none; user-select: none; }
#nowbar.nb-drag { transition: none; }
#nowbar .nb-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 3px 0 2px; height: 56px; overflow: hidden;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 28px rgba(45, 74, 119, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#nowbar.nb-drag .nb-card { box-shadow: 0 16px 34px rgba(45, 74, 119, .32); }
#nowbar.fold .nb-card { display: none; }
#nowbar .nb-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); }
#nowbar .nb-cov { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, #cda163, #a9772e); color: #fff; overflow: hidden; }
#nowbar .nb-cov svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
#nowbar .nb-cov img { width: 100%; height: 100%; object-fit: cover; }
#nowbar .nb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
#nowbar .nb-t { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nowbar .nb-sub { font-size: 11px; color: var(--ink3); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nowbar .nb-sub:empty { display: none; }
#nowbar .nb-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #cda163, #a9772e); color: #fff;
  box-shadow: 0 4px 12px rgba(165, 119, 46, .38), inset 0 1px 0 rgba(255, 255, 255, .25); }
#nowbar .nb-play svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
#nowbar .nb-play:active, #nowbar .nb-tab:active { transform: scale(.94); }
#nowbar .nb-fold { flex: none; width: 22px; height: 36px; display: grid; place-items: center; color: var(--ink3); }
/* 播放条里的下载键：只在放本站自己的录音（每日福音三分钟、三钟经）时露出来 */
#nowbar .nb-dl { flex: none; width: 26px; height: 36px; margin-right: -4px; display: grid; place-items: center; color: var(--ink2); }
#nowbar .nb-dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#nowbar .nb-dl:active { opacity: .55; }
#nowbar .nb-fold svg { width: 15px; height: 15px; }
#nowbar[data-side="l"] .nb-fold { transform: scaleX(-1); }   /* 靠左边时箭头朝左 */
/* 关闭键在最左边（2026-11-29 用户要求）；order 兜住旧 index.html 还在缓存里的那一下 */
#nowbar .nb-x { flex: none; order: -1; width: 24px; height: 36px; margin-right: -4px; font-size: 18px; color: var(--ink3); }
#nowbar .nb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; cursor: pointer; }
#nowbar .nb-bar i { display: block; height: 100%; width: 0; background: var(--gold);
  border-radius: 0 0 15px 15px; transition: width .25s linear; }
/* 收起后贴在屏幕边上的小条：三根竖条，放的时候会跳动 */
#nowbar .nb-tab { display: none; align-items: center; justify-content: center; gap: 2px; width: 22px; height: 46px;
  background: color-mix(in srgb, var(--card) 96%, transparent); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(45, 74, 119, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#nowbar.fold .nb-tab { display: flex; }
#nowbar[data-side="l"] .nb-tab { border-radius: 0 22px 22px 0; border-left: 0; }
#nowbar[data-side="r"] .nb-tab { border-radius: 22px 0 0 22px; border-right: 0; }
#nowbar .nb-tab i { display: block; width: 3px; height: 9px; border-radius: 2px; background: var(--gold); transform-origin: center bottom; }
#nowbar .nb-tab i:nth-child(2) { height: 15px; }
#nowbar.playing .nb-tab i { animation: nbeq .9s ease-in-out infinite; }
#nowbar.playing .nb-tab i:nth-child(2) { animation-delay: .15s; }
#nowbar.playing .nb-tab i:nth-child(3) { animation-delay: .3s; }
@keyframes nbeq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* 教宗祈祷意向：一条横幅——头像、徽记、标题和本月意向 */
.pope-c { display: block; padding: 10px; margin-top: -2px; }
.pope-ban { position: relative; display: flex; align-items: center; gap: 8px; height: 104px;
  padding: 0 12px 0 0; border-radius: 13px; overflow: hidden;
  background: linear-gradient(100deg, #ece4cd 0%, #f6eedc 46%, #efe2c3 100%); }
.pope-ban .pope-face { flex: none; height: 104px; width: auto; }
.pope-ban i.pope-face { width: 84px; height: 84px; margin-left: 10px; border-radius: 50%; }
.pope-mark { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 64%; width: auto; opacity: .34; pointer-events: none; }
.pope-t { position: relative; flex: 1; min-width: 0; padding: 0 46px 0 2px; text-align: center; }
.pope-t b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700;
  color: #8a5e15; letter-spacing: .04em; }
.pope-t span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: #6f5a33; }
/* 热心敬礼页的电台卡：正在播、接下来三档、今天全部节目 */
.radio-f { padding: 12px 14px 4px; }
.rf-h { display: flex; align-items: center; gap: 10px; }
.rf-h .hmini-ico { flex: none; }
.rf-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-x b { font-family: var(--serif); font-size: 16px; }
.rf-x span { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-f .rf-play { flex: none; margin: 0; padding: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.radio-f .rf-play svg { width: 15px; height: 15px; margin-left: 2px; }
.radio-f .rf-play[aria-label="暂停"] svg { margin-left: 0; }
.rf-now { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--sel); }
.rf-now b { flex: 1; min-width: 0; font-size: 15px; }
.rf-now small { flex: none; font-size: 12px; color: var(--ink3); }
.radio-f .live { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; }
.rf-next { margin-top: 8px; }
.rf-next > small { display: block; padding: 0 0 2px 2px; font-size: 12px; color: var(--ink3); }
.rf-next .sch-row { padding: 6px 2px; color: var(--ink2); }
.rf-all { display: block; width: 100%; margin-top: 4px; padding: 11px 0 9px; border-top: 1px solid var(--line); font-size: 14px; color: var(--accent); text-align: center; }
.rf-none { padding: 10px 0 12px; font-size: 14px; color: var(--ink3); text-align: center; }
/* 电台详情页：星期几一排、整张节目表 */
.rd-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.rd-days button { padding: 7px 0; border-radius: 10px; background: var(--chip); color: var(--ink2); font-size: 12.5px; white-space: nowrap; }
.rd-days button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.rd-sch { padding: 6px 8px; }
.rd-sch .sch { max-height: none; overflow: visible; margin: 0; }

/* 首页：新闻 | 听教宗讲道，左右两张一样大的卡 */
.hrow2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hrow2 > div { display: flex; min-width: 0; }
.h2c { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; }
/* 卡头题图：上面压一层由深到透明的渐变，白字才看得清 */
.h2-h { display: flex; align-items: flex-start; gap: 6px; aspect-ratio: 368 / 194; min-height: 84px; padding: 10px 38px 0 11px; color: #fff;
  background-color: #8a7a64; background-position: center; background-size: cover; }
.hn-ico { flex: none; width: 24px; height: 24px; display: grid; place-items: center; }
.hn-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.h2-h b { font-family: var(--serif); font-size: 16px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.h2-t { flex: 1; display: flex; flex-direction: column; padding: 9px 12px 10px; color: var(--ink); }
.h2-t span { flex: 1; min-height: 2.9em; font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-t small { margin-top: 4px; font-size: 12px; color: var(--ink3); min-height: 1.4em; }
.h2-t small em { font-style: normal; font-weight: 600; color: var(--gold); margin-right: 6px; }
.h2-more { position: absolute; top: 13px; right: 9px; color: #fff; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.h2-more svg { width: 18px; height: 18px; }
/* 题图上的播放键：白三角，垫一层半透明深色圆底，压在浅色墙面上也看得清 */
.h2c .dv-play { top: 8px; right: 8px; background: rgba(0, 0, 0, .32); color: #fff; box-shadow: none; }
@media (max-width: 340px) {
  .h2-h { gap: 4px; padding: 8px 30px 0 8px; } .h2c .hn-ico { width: 20px; height: 20px; } .h2c .hn-ico svg { width: 17px; height: 17px; }
  .h2-h b { font-size: 14px; line-height: 20px; } .h2-t { padding: 8px 9px 9px; } .h2-t span { font-size: 13px; }
  .h2-more { top: 9px; right: 6px; }
  .h2c .dv-play { top: 6px; right: 6px; width: 22px; height: 22px; } .h2c .dv-play svg { width: 10px; height: 10px; } }
/* 问问神父：卡通神父头像（照设计稿） */
.hmini-av { object-fit: cover; background: #d6e6d6; }
@media (max-width: 380px) {
  .pope-ban { height: 92px; }
  .pope-ban .pope-face { height: 92px; }
  .pope-t b { font-size: 15.5px; }
  .pope-t span { font-size: 12px; }
}

/* 各模块翻页数：名字下面压一条细横条，一眼看出谁多谁少 */
.modrow { align-items: center; }
.modrow .x { position: relative; padding-bottom: 7px; }
.modrow .x i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: var(--accent); opacity: .45; }


/* 首页各块的上下间隔统一成 8px（和横幅底下那道一样） */
.wrap.home > #hgos, .wrap.home > #rdbox, .wrap.home > .dv3, .wrap.home > .pope-c { margin-top: 8px; }
.wrap.home .card.gaud { margin-bottom: 0; }
.wrap.home > .pvline { margin-top: 8px; }

/* ---------------- 有声书（分类 → 书籍 → 有声书） ----------------
   2026-11-21 从「爱的圣乐」搬过来的四本。封面格子跟灵修书籍共用 .bkc，
   这里只补：封面左上角那个「听」角标、书页顶上的横卡、目录里的播放行。 */
.bkc-c .ab-tag { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: rgba(0, 0, 0, .55); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.abhead { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.abhead img, .abhead .bk-ph { width: 92px; height: 124px; flex: none; border-radius: 8px; object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18); background: var(--chip);
  display: grid; place-items: center; font-family: var(--serif); color: var(--gold); font-size: 24px; font-style: normal; }
.abhead .x { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.abhead b { font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--accent); }
.abhead span { font-size: 13px; color: var(--ink2); }
.abhead em { font-style: normal; font-size: 12.5px; color: var(--gold); }
.abbtns { display: flex; gap: 10px; margin-top: 12px; }
.abbtns .btn { margin: 0; }
.abbtns #abrate { flex: none; width: 72px; }
.abintro { margin-top: 12px; font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; }
/* 目录：左边一个圆播放键，右边「听到这里」 */
.abrow { width: 100%; text-align: left; }
.abrow .ap-play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--chip);
  color: var(--accent); display: grid; place-items: center; }
.abrow .ap-play svg { width: 17px; height: 17px; }
.abrow.at { background: var(--chip); }
.abrow.at .ap-play { background: var(--accent); color: var(--accent-ink); }
.abrow .ab-at { flex: none; font-size: 12px; color: var(--gold); }
/* 首页去掉卡片的框（用户 2026-11-29「首页去除框」「框内的颜色」）：边框线、阴影、卡底颜色都去掉，
   内容直接放在页面底色上。边线只改成透明、不删，卡片大小一点不变 */
.home .card, .home .hmini, .home .dv-c { background: transparent; border-color: transparent; box-shadow: none; }
.home-banner img { box-shadow: none; }
/* 新闻、听教宗讲道：卡底去掉后，题图四个角都圆（和横幅一样），标题文字和题图左边对齐 */
.home .h2-h { border-radius: 16px; }
.home .h2-t { padding: 8px 2px 2px; }
/* 教宗祈祷意向：卡底去掉后，横幅撑满一整行，和上面左右对齐（原来四周留着白卡的 10 像素边） */
.home .pope-c { padding: 0; }
.wrap.home > .pope-c { margin-top: 14px; }

/* ================= 电脑端网站（<html class="site">，用户 2026-11-29：电脑端的网站和手机端的网页 App 分开） =================
   页头（日期条 + logo + 手机 App 下载 + 通栏导航）、门户首页、页脚只在电脑上出现；手机版一点不动。 */
#site-hd, #site-ft { display: none; }
html.site { --tabh: 0px; --sw: 1180px; }
/* 网站的主色用天蓝色（用户 2026-11-29「使用天蓝色的」）：导航条、小标题前的竖条、播放键、按钮。
   --sky 是底色（上面写白字），--sky-t 是文字、链接用的蓝；深色主题换深一点的天蓝，免得刺眼 */
html.site { --sky: #1e8ad6; --sky-t: #1677bf; }
html.site[data-theme="shi"], html.site[data-theme="mo"], html.site[data-theme="ye"] { --sky: #1d5e8f; --sky-t: #6cb4e8; }
@media (prefers-color-scheme: dark) { html.site:not([data-theme]) { --sky: #1d5e8f; --sky-t: #6cb4e8; } }
/* 网站背景用白色（用户 2026-11-29「背景使用白色的」）：浅色主题都换成白底；
   深色主题（石、墨、夜，以及跟随系统时的深色）照旧是深底，不然白底配浅色字就看不见了 */
html.site[data-theme]:not([data-theme="shi"]):not([data-theme="mo"]):not([data-theme="ye"]) { --bg: #ffffff; }
@media not all and (prefers-color-scheme: dark) { html.site:not([data-theme]) { --bg: #ffffff; } }
html.site #tabbar { display: none; }
html.site #view { min-height: 62vh; padding-bottom: 28px; }
.sh-in { max-width: var(--sw); margin: 0 auto; padding: 0 24px; }

/* 页头：往下滚时日期条和 logo 那一截滚走，只留导航条贴在顶上 */
html.site #site-hd { display: block; position: sticky; top: -160px; z-index: 25; }
.sh-bar { background: color-mix(in srgb, var(--sky) 7%, var(--card)); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); }
.sh-bar .sh-in { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.sh-links a { margin-left: 20px; color: var(--ink2); }
.sh-links a:hover { color: var(--sky-t); }
.sh-top { background: var(--card); }
.sh-top .sh-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 128px; }
.sh-logo { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.sh-logo img { width: 72px; height: 72px; border-radius: 16px; }
.sh-logo b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.15; letter-spacing: 4px; color: var(--ink); }
.sh-logo small { display: block; margin-top: 5px; font-size: 14px; letter-spacing: 2px; color: var(--ink3); }
.sh-promo { align-self: stretch; display: flex; align-items: center; gap: 18px; color: var(--ink); }
.sp-t b { display: block; font-size: 21px; font-weight: 700; letter-spacing: 1px; }
.sp-t small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink2); }
.sp-t em { display: inline-block; margin-top: 10px; padding: 4px 20px; border-radius: 99px; background: var(--gold); color: #fff;
  font-style: normal; font-size: 14px; font-weight: 600; }
.sh-promo:hover em { filter: brightness(1.08); }
.sp-phone { align-self: flex-end; height: 118px; width: auto; }
.sh-nav { background: var(--sky); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.sh-nav .sh-in { display: flex; justify-content: center; height: 50px; }
.sh-nav a { display: flex; align-items: center; padding: 0 15px; font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; }
.sh-nav a:hover { background: rgba(255, 255, 255, .12); }
.sh-nav a.on { background: rgba(0, 0, 0, .14); box-shadow: inset 0 -3px 0 #fff; }
@media (max-width: 1279px) { .sh-nav a { padding: 0 10px; font-size: 15px; } }
@media (max-width: 1119px) {
  .sh-nav a { padding: 0 7px; font-size: 14.5px; }
  .sh-logo b { font-size: 28px; } .sh-logo img { width: 60px; height: 60px; } .sp-t b { font-size: 18px; } }

/* 内容页：同一份内容，排在网站的框里——标题行固定在页里（不贴顶、不收起），版心放宽 */
html.site .wrap { max-width: 1000px; }
html.site body.reading .wrap { max-width: 860px; }
html.site .top { position: relative; top: auto; z-index: 2; max-width: 1000px; margin: 0 auto; min-height: 0; padding: 18px 16px 6px;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
html.site body.reading .top { max-width: 860px; }
html.site .top h1 { text-align: left; padding-left: 4px; font-family: var(--serif); font-size: 22px; }
html.site .top .mini { display: none; }
html.site .reader, html.site .prayer { max-width: 860px; }
/* 贴在屏幕边上的几样：电脑上收窄到版心，别横贯整块宽屏 */
html.site #audiobar { top: auto; bottom: 18px; left: max(16px, calc(50% - 300px)); right: max(16px, calc(50% - 300px));
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
html.site .rdtools { left: max(0px, calc(50% - 430px)); right: max(0px, calc(50% - 430px)); border-radius: 14px 14px 0 0; }
html.site #sheet { left: max(0px, calc(50% - 320px)); right: max(0px, calc(50% - 320px)); }
html.site .ai-bar { left: max(0px, calc(50% - 500px)); right: max(0px, calc(50% - 500px)); }

/* 页脚 */
html.site #site-ft { display: block; position: relative; z-index: 1; margin-top: 24px; background: var(--card); border-top: 1px solid var(--line); }
.sf-in { max-width: var(--sw); margin: 0 auto; padding: 36px 24px 26px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.5fr; gap: 36px; }
.sf-about .sh-logo img { width: 48px; height: 48px; border-radius: 12px; }
.sf-about .sh-logo b { font-size: 22px; letter-spacing: 2px; }
.sf-about .sh-logo small { font-size: 12px; letter-spacing: 1px; margin-top: 2px; }
.sf-about p { margin: 14px 0 0; font-size: 13.5px; line-height: 1.8; color: var(--ink2); }
.sf-col, .sf-app { display: flex; flex-direction: column; gap: 9px; }
.sf-col b, .sf-app b { margin-bottom: 4px; font-size: 15px; color: var(--ink); }
.sf-col a { font-size: 14px; color: var(--ink2); }
.sf-col a:hover { color: var(--sky-t); }
.sf-qr { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.sf-qr img { width: 112px; height: 112px; padding: 4px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.sf-qr small { display: block; font-size: 12px; color: var(--ink3); }
.sf-copy { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); }
.sf-copy .sh-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 18px; }

/* ---------- 网站首页 ---------- */
.sw { max-width: var(--sw); margin: 0 auto; padding: 22px 24px 8px; }
.s-box { min-width: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 10px rgba(60, 40, 20, .05); }
.sb-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sb-h b, .ss-h b { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.sb-h b::before, .ss-h b::before { content: ''; display: inline-block; width: 4px; height: 15px; margin-right: 8px; border-radius: 2px;
  background: var(--sky); vertical-align: -1px; }
.sb-h a, .ss-h a { font-size: 13px; color: var(--ink3); }
.sb-h a:hover, .ss-h a:hover { color: var(--sky-t); }
.s-home .muted { font-size: 14px; color: var(--ink3); }

/* 第一屏：左轮播、中两张图块、右侧栏 */
.s-hero { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; height: 430px; }
.s-car { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #5aaee8, #1e6fae); }
.sc-s { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s; color: #fff; }
.sc-s.on { opacity: 1; pointer-events: auto; }
.sc-s img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 120px 22px 22px; font-size: 22px; font-weight: 700; line-height: 1.45;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .72)); text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-t em { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: var(--gold); font-size: 13px;
  font-style: normal; font-weight: 600; vertical-align: 3px; text-shadow: none; }
.sc-a { position: absolute; top: 50%; z-index: 2; width: 40px; height: 60px; display: grid; place-items: center; color: #fff;
  background: rgba(0, 0, 0, .28); opacity: 0; transform: translateY(-50%); transition: opacity .2s; }
.s-car:hover .sc-a { opacity: 1; }
.sc-a.l { left: 0; border-radius: 0 8px 8px 0; }
.sc-a.r { right: 0; border-radius: 8px 0 0 8px; }
.sc-a svg { width: 26px; height: 26px; stroke-width: 2.4; }
.sc-dots { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 7px; }
.sc-dots button { width: 9px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .5); transition: width .25s; }
.sc-dots button.on { width: 22px; background: #fff; }
.sc-empty { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .85); font-size: 15px; }
.s-tiles { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-height: 0; }
.s-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px; border-radius: 12px;
  background-color: #8a7a64; background-position: center; background-size: cover; color: #fff; }
.s-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .62)); }
.s-tile b, .s-tile span { position: relative; }
.s-tile b { font-family: var(--serif); font-size: 24px; letter-spacing: 2px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.s-tile span { margin-top: 2px; font-size: 13.5px; opacity: .92; }
.s-tile:hover { filter: brightness(1.06); }
.s-side { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.s-today { padding: 14px 14px 10px; }
.st-d { display: block; padding-bottom: 10px; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink); }
.st-d b { display: block; font-size: 17px; }
.st-d span { display: block; margin-top: 2px; font-size: 13px; color: var(--gold); }
.st-d small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 4px; margin-top: 10px; }
.st-hours a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border-radius: 8px; font-size: 12.5px; color: var(--ink2); }
.st-hours a:hover { background: var(--chip); }
.st-hours img { width: 34px; height: 34px; border-radius: 50%; }
.st-hours a.on { color: var(--sky-t); font-weight: 600; }
.st-hours a.on img { box-shadow: 0 0 0 2px var(--sky); }
.s-latest { flex: 1; min-height: 0; overflow: hidden; }
.s-latest ul { margin: 0; padding: 0 0 0 16px; }
.s-latest li { padding: 3px 0; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.s-latest li a { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-latest li a:hover { color: var(--sky-t); }

/* 第二排：每日福音、问问神父、中文电台 */
.s-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.sg-body { display: block; color: var(--ink); }
.sg-ref { display: block; font-size: 15px; font-weight: 600; color: var(--gold); }
.sg-x { margin: 8px 0 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sg-acts { margin-top: 12px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 20px; border-radius: 99px;
  background: var(--sky); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
.sbtn svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.sbtn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.sbtn.ghost { background: none; color: var(--sky-t); box-shadow: inset 0 0 0 1.5px var(--sky-t); }
.sbtn:hover { filter: brightness(1.06); }
.s-tr { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.s-tr:last-child { border-bottom: 0; }
.s-tr a { flex: 1; min-width: 0; color: var(--ink); }
.s-tr b { display: block; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tr small { display: block; font-size: 12px; color: var(--ink3); }
.s-tr a:hover b { color: var(--sky-t); }
.s-pl { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: #fff; }
.s-pl svg { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; stroke: none; }
.s-pl[aria-label="暂停"] svg { margin-left: 0; }
.s-pl.sm { width: 28px; height: 28px; }
.s-pl.sm svg { width: 11px; height: 11px; }
.s-pl.off { background: var(--chip); }
.s-pl:hover { filter: brightness(1.08); }
.s-rd .radio-f { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.s-rd .radio-f .rf-play, .s-rd .radio-f .live { background: var(--sky); color: #fff; box-shadow: none; }
.s-rd .rf-now { background: color-mix(in srgb, var(--sky) 10%, var(--card)); }
.s-rd .rf-all { color: var(--sky-t); }

/* 祈祷与敬礼：一排八张 */
.s-sec { margin-top: 22px; }
.ss-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.ss-h b { font-size: 19px; }
.s-dv { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.s-dvc { position: relative; padding: 16px 6px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-align: center;
  transition: border-color .15s, transform .15s; }
.s-dvc:hover { border-color: var(--sky-t); transform: translateY(-2px); }
.s-dvc > a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.s-dvc img, .s-dvc i { width: 56px; height: 56px; border-radius: 50%; }
.s-dvc i { display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 24px; font-style: normal; font-weight: 700; }
.s-dvc b { margin-top: 4px; font-size: 15px; white-space: nowrap; }
.s-dvc span { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.s-dvc .s-pl { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; }
.s-dvc .s-pl svg { width: 10px; height: 10px; }

/* 第三排：新闻（带图）、听教宗讲道 */
.s-row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.s-ni { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.s-ni:last-child { border-bottom: 0; }
.s-ni img, .s-noimg { flex: none; display: block; width: 150px; height: 96px; border-radius: 8px; object-fit: cover; background: var(--chip); }
.s-ni div { min-width: 0; }
.s-ni b { display: block; font-size: 16px; line-height: 1.45; }
.s-ni:hover b { color: var(--sky-t); }
.s-ni p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-ni small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); }

/* 手机 App 下载横幅 */
.s-dl { display: flex; align-items: center; gap: 36px; min-height: 200px; margin-top: 22px; padding: 0 40px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 14%, var(--card)), color-mix(in srgb, var(--sky) 14%, var(--card))); }
.sd-phone { align-self: flex-end; height: 190px; width: auto; }
.sd-t { flex: 1; min-width: 0; }
.sd-t b { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.sd-t p { margin: 8px 0 14px; font-size: 14.5px; line-height: 1.8; color: var(--ink2); }
.sd-btns { display: flex; gap: 12px; }
.sd-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0; font-size: 13px; color: var(--ink2); }
.sd-qr img { width: 148px; height: 148px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.s-credit { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--ink3); }

/* ---------- 「下载 App」页（手机、电脑都用） ---------- */
.app-pg { padding-bottom: 20px; }
.app-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.app-hero img { width: 60px; height: 60px; border-radius: 14px; }
.app-hero b { display: block; font-family: var(--serif); font-size: 20px; }
.app-hero span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink2); }
.app-tip { margin-bottom: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.app-grid { display: grid; gap: 12px; }
.app-c { margin: 0; padding: 16px; }
.app-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; }
.app-ico svg { width: 26px; height: 26px; stroke: #fff; }
.app-h b { display: block; font-size: 17px; }
.app-h span { display: block; margin-top: 1px; font-size: 13px; color: var(--ink3); }
.app-c .btn small { margin-left: 4px; font-weight: 400; opacity: .85; }
.app-steps { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--ink2); }
.app-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink3); }
.app-qr { display: none; }
html.site .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); align-items: start; }
html.site .app-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.app-qr img { width: 168px; height: 168px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.app-qr span { font-size: 13px; line-height: 1.6; color: var(--ink2); }

/* ---------- 音乐（爱的圣乐、爱的家园；网站、手机都能打开） ---------- */
:root { --sky: var(--accent); --sky-t: var(--accent); }   /* 手机版没有网站的天蓝主色：沿用主题色 */
.mu-pg { padding-bottom: 24px; }
.mu-sec { margin-top: 10px; }
.mu-sec + .mu-sec { margin-top: 28px; }
.mu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mu-chips button { padding: 6px 13px; border-radius: 99px; background: var(--chip); color: var(--ink2); font-size: 13.5px; }
.mu-chips button.on { background: var(--sky); color: #fff; font-weight: 600; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 14px; }
.mu-al { position: relative; min-width: 0; }
.mu-al > a { display: block; color: var(--ink); }
.mu-cv { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #b69bd0, #7a5a9a); }
.mu-cv img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.mu-cv i { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.mu-cv i svg { width: 40%; height: 40%; }
.mu-al:hover .mu-cv img { transform: scale(1.04); }
.mu-al b { margin-top: 7px; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mu-al small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-al .mu-alp { position: absolute; z-index: 2; top: 8px; right: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.mu-books, .s-mub { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mu-books a, .s-mub a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); }
.mu-books i, .s-mub i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #7a5a9a; color: #fff;
  font-family: var(--serif); font-size: 16px; font-style: normal; font-weight: 700; }
.mu-books b, .s-mub b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-books small, .s-mub small { flex: none; font-size: 12px; color: var(--ink3); }
.mu-books a:hover, .s-mub a:hover { border-color: var(--sky); }
.mu-q { margin: 0 0 10px; }
.mu-tl { display: flex; flex-direction: column; }
.mu-tr { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.mu-tr:last-child { border-bottom: 0; }
.mu-no { flex: none; min-width: 34px; text-align: right; font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.mu-t { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.mu-tr a { flex: 1; min-width: 0; color: var(--ink); }
.mu-tr a b { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-tr a small { display: block; font-size: 12px; color: var(--ink3); }
.mu-tr a:hover b { color: var(--sky-t); }
.mu-ah { display: flex; align-items: center; gap: 20px; margin: 6px 0 16px; }
.mu-ah .mu-cv { flex: none; width: 160px; }
.mu-ah b, .mu-bh b { display: block; font-family: var(--serif); font-size: 22px; }
.mu-ah small, .mu-bh small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink3); }
.mu-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mu-bh { margin: 6px 0 14px; }
.mu-score { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mu-score img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 520px) {
  .mu-ah .mu-cv { width: 110px; }
  .mu-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px 10px; } }
/* 网站首页的「圣乐」一排：左边 6 张专辑，右边爱的家园的歌本 */
.s-mu { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.s-mug { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.s-mub { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.s-mub a { padding: 8px 10px; }
.s-mub i { width: 30px; height: 30px; font-size: 14px; }
.s-mub small { display: none; }       /* 首页这一格窄：只写歌本名，几首在音乐页里看 */
