/* WordLens · editorial design system. Layout only; article content and progress stay intact. */
:root {
  --brand: #285448;
  --brand-2: #3e7060;
  --brand-soft: #e8eee6;
  --brand-deep: #eff2e9;
  --bg: #f8f7f3;
  --card: #fffefa;
  --card-2: #f0efe9;
  --text: #283831;
  --text-1: #1c2c25;
  --text-2: #657067;
  --text-3: #727970;
  --line: #e7e7df;
  --border: #dedfd5;
  --green: #326a50;
  --green-bg: #e8f0e5;
  --shadow-1: 0 2px 8px rgba(34, 49, 39, .025);
  --shadow-2: 0 10px 30px rgba(34, 49, 39, .075);
  --shadow-3: 0 8px 24px rgba(34, 49, 39, .12);
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --font-editorial: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
}
[data-theme="dark"] {
  --brand: #b4cfb6;
  --brand-2: #a4c4ad;
  --brand-soft: #293c32;
  --brand-deep: #24352c;
  --bg: #19231e;
  --card: #202d25;
  --card-2: #2a372e;
  --text: #e0e6db;
  --text-1: #f2f2e7;
  --text-2: #b1baad;
  --text-3: #a0ad9c;
  --line: #344035;
  --border: #3e4b3e;
  --green: #b4cfb6;
  --green-bg: #2e4132;
  --shadow-1: none;
  --shadow-2: 0 12px 30px rgba(0, 0, 0, .16);
}
html, body, [data-theme="dark"] body { background: var(--bg); background-image: none; }
body { display: block; padding: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button, [role="button"], a { touch-action: manipulation; }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 4px;
}
::selection { background: var(--brand-soft); color: var(--text-1); }
.phone {
  width: 100%; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
.screen { height: 100%; }
.statusbar { height: var(--safe-t); padding: 0; }
.tip { display: none; }
.screen > .view {
  width: 100%; max-width: none; padding: 40px max(28px, calc((100% - 1160px) / 2)) 24px;
  gap: 28px; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.view > * { flex-shrink: 0; min-width: 0; }
.view::-webkit-scrollbar { display: block; width: 5px; }
.view::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.card { box-shadow: none; border-color: var(--line); }
.h1, .h2, .h3 { color: var(--text-1); }
.h1 { font-size: 26px; }
.icon-btn { width: 40px; height: 40px; background: var(--card); border: 1px solid var(--border); border-radius: 50%; }
.link, .text-action { color: var(--brand); }
.text-action {
  display: inline-flex; align-items: center; gap: 7px; flex: none; border: 0; background: none;
  min-height: 40px; padding: 8px 0 8px 12px; font-size: 12px; cursor: pointer;
}
.text-action:hover { text-decoration: underline; text-underline-offset: 5px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 1.8px; line-height: 1.6; color: var(--brand); }
.eyebrow-divider { opacity: .5; margin: 0 4px; }
.edition-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-intro h1 { margin: 10px 0 12px; font: 500 clamp(28px, 3vw, 38px)/1.4 var(--font-editorial); letter-spacing: .7px; color: var(--text-1); }
.page-intro p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.8; }
.title-period { color: var(--brand); }
.reading-date { padding-left: 24px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 5px; flex: none; }
.reading-date > span { color: var(--text-3); font: 9px var(--font-en); letter-spacing: 1.8px; }
.reading-date b { font: 400 24px/1.5 var(--font-editorial); }
.reading-date small { color: var(--text-2); font-size: 11px; }

/* One masthead on desktop; the same actions become a bottom navigation on mobile. */
.tabbar { order: -1; padding: 0 max(28px, calc((100% - 1160px) / 2)); background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tabbar .nav-brand { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 21px; letter-spacing: .5px; color: var(--text-1); border-radius: 0; }
.nav-brand b { margin-left: 8px; font: 500 22px var(--font-editorial); letter-spacing: -.7px; }
.brand-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 39px; border-radius: 7px 7px 14px 7px; background: #285448; color: #fffefa; }
.tabbar .pill { flex: none; gap: 8px; height: 80px; border: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.tabbar .pill button { position: relative; flex-direction: row; gap: 7px; min-width: 85px; padding: 0 15px; border-radius: 0; font-size: 13px; letter-spacing: 0; color: var(--text-2); }
.tabbar .pill button.on { background: transparent; color: var(--brand); box-shadow: none; font-weight: 600; }
.tabbar .pill button.on::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 20px; right: 20px; background: var(--brand); }
.tabbar .pill button svg { width: 17px; height: 17px; }
.nav-end { display: flex; align-items: center; gap: 16px; }
.nav-end > span { font: 9px var(--font-en); letter-spacing: 1.6px; color: var(--text-3); }
.tabbar .nav-end button { flex: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; color: var(--text-2); }

/* Feature spread: portrait and title each have their own room. */
/* min-height 390→350（v75 留白压缩：让今日推荐在首屏露一条，模块间留白交给 .view gap） */
.editorial-feature { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 350px; border-radius: 16px; overflow: hidden; background: var(--brand-deep); border: 1px solid var(--line); }
.editorial-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px 36px; min-width: 0; }
.editorial-copy h2 { margin: 18px 0 12px; font: 500 clamp(24px, 2.45vw, 34px)/1.55 var(--font-editorial); color: var(--text-1); text-wrap: pretty; }
.editorial-en { margin: 0; font: 400 15px/1.65 var(--font-editorial); color: var(--text-2); }
.editorial-credit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font: 12px/1.6 var(--font-en), var(--font-cn); color: var(--text-2); }
.editorial-cta { display: inline-flex; align-items: center; gap: 24px; border: 0; border-radius: 6px; margin-top: 16px; padding: 12px 20px; min-height: 43px; background: #285448; color: #fffefa; font-size: 12px; cursor: pointer; transition: background .18s, transform .18s; }
.editorial-cta:hover { background: #1d4237; transform: translateY(-2px); }

.editorial-photo { position: relative; display: block; border: 0; padding: 0; overflow: hidden; min-width: 0; min-height: 300px; background: var(--card-2); cursor: pointer; }
.editorial-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; transition: transform .5s ease; }
.editorial-photo:hover img { transform: scale(1.025); }
.photo-label { position: absolute; left: 24px; bottom: 24px; padding: 7px 10px; background: rgba(248,247,243,.93); color: #283831; font: 9px var(--font-en); letter-spacing: 1.7px; }
.photo-arrow { position: absolute; right: 22px; bottom: 22px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(20,35,27,.4); font-size: 20px; }
.cover-monogram { font: italic 120px var(--font-editorial); color: var(--brand); }
.home-reading-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(250px, 1fr); gap: 36px; margin-top: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-bottom: 20px; }
.section-heading h2 { font-size: 20px; font-weight: 600; margin: 8px 0 0; color: var(--text-1); }
.section-heading .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.article, .article.people-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: none; min-width: 0; height: 100%; }
.article:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--border); }
.article .thumb, .article.people-card .thumb { width: 100%; height: auto; aspect-ratio: 1.65; border-radius: 0; flex: none; background-color: var(--card-2); }
.article .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article.people-card .thumb img { object-position: center 25%; }
.article .thumb.has-img::after { box-shadow: none; background: none; }
.article > .article-copy, .article.people-card > .article-copy { padding: 20px; gap: 10px !important; }
.article .tag { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 10px/1.5 var(--font-en), var(--font-cn); color: var(--brand); }
.tag-separator { opacity: .4; margin: 0 2px; }
.article .people-name { display: none; }
.article .t { font: 500 19px/1.45 var(--font-editorial); color: var(--text-1); -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.article .t-zh { font-size: 12px; line-height: 1.85; color: var(--text-2); -webkit-line-clamp: 2; margin-top: 0; }
.article .article-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.6; }
.reading-sidebar { padding-left: 28px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 20px; }
.reading-sidebar .section-heading { padding-bottom: 0; }
.reading-sidebar .section-heading h2 { font-size: 18px; }
/* 统计缩成轻量一行（v75）：完整统计归「我的」，首页只留一眼可扫的数字 */
.reading-stats-lite { font-size: 12px; color: var(--text-3); padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.reading-stats-lite b { font: 400 17px var(--font-editorial); color: var(--brand); font-weight: 400; }
.resume-card { border: 1px solid var(--border); background: var(--card); padding: 18px; border-radius: 10px; box-shadow: none; gap: 10px; }
.resume-card .rc-title { font: 500 16px/1.6 var(--font-editorial); }
.resume-card .rc-zh { line-height: 1.8; }
.resume-card .rc-meta { flex-wrap: wrap; row-gap: 10px; }
.resume-card .rc-bar { min-width: 40px; }
.resume-card .rc-go { margin-left: auto; min-height: 28px; }
.reading-note { padding-top: 2px; }
.note-icon { color: var(--brand); }
.reading-note p { font: 400 17px/1.9 var(--font-editorial); color: var(--text-2); margin: 10px 0 14px; }
.reading-note > span:last-child { font-size: 10px; color: var(--text-3); }
.home-topics { margin-top: 6px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.topic-link { display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; text-align: left; }
.topic-link:hover { background: var(--brand-deep); }
.topic-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); flex: none; }
.topic-link b { display: block; font: 500 20px var(--font-editorial); }
.topic-link small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.5; color: var(--text-2); }
.topic-count { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.editorial-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 4px; margin-top: 12px; border-top: 1px solid var(--border); font: 11px var(--font-en); color: var(--text-3); }
.editorial-footer span:last-child { font: italic 14px var(--font-editorial); }

/* Discovery, history and personal journal share the same rhythm. */
.discover-view .search { max-width: 650px; width: 100%; margin: 0; min-height: 48px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: none; }
.search input { font-size: 14px; min-width: 0; }
.cats-wrap { position: sticky; top: -1px; background: var(--bg); padding: 10px 0; margin: -12px 0 -6px; border-bottom: 1px solid var(--border); z-index: 5; display: flex; align-items: center; gap: 10px; }
.cats { flex: 1; min-width: 0; gap: 8px; }
.cat { min-height: 38px; padding: 8px 20px; font-size: 12px; border-radius: 6px; background: transparent; border-color: transparent; color: var(--text-2); }
.cat.on { background: var(--brand-soft); border-color: transparent; color: var(--brand); box-shadow: none; }
/* 排序改成文字入口（v75）：图标按钮要靠猜，「最新发布」这种词一眼懂。
 * 仍走 data-act="filter" 的浮层，行为没变。 */
.sort-text { display: inline-flex; align-items: center; gap: 5px; flex: none; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-size: 12px; font-family: var(--font-cn); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.sort-text:hover { color: var(--brand); border-color: var(--brand); }
.cat-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cat-section > :not(.article):not(.article-shell) { grid-column: 1 / -1; }
.cat-section .cat-head { margin-bottom: 2px; }
.cat-section .cat-head .left { font-size: 19px; }
.me-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; column-gap: 24px !important; }
.me-view > * { grid-column: 1 / -1; }
.me-view .overview-card { padding: 26px; }
.me-view .history-entry { padding: 24px; color: var(--text); }
.me-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.journal-settings { padding: 24px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; display: flex; flex-direction: column; gap: 18px; }
.journal-settings > .row:last-child { border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- 关于词阅：三层（简介默认展开 / 功能四条 / 数据说明可折叠） ----------
 * 2026-09-22 v75 重写。旧版是一堵 .muted-2 11.5px 小字墙 —— 词库规则、来源、许可
 * 混在一起，普通用户找不到「这个项目是干什么的」。现在先讲用途再讲来源。 */
.journal-about { padding: 8px 0 0; display: flex; flex-direction: column; gap: 16px; }
.about-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.about-body p:last-child { margin-bottom: 0; }
.about-slogan { font-size: 15px; font-weight: 600; color: var(--text-1) !important; }
.about-feats { display: flex; flex-direction: column; gap: 12px; }
.about-feats .row { gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.about-feats .ic { flex: none; width: 32px; height: 32px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.about-feats b { color: var(--text-1); font-weight: 600; }
.about-details { border-top: 1px solid var(--line); padding-top: 14px; }
.about-details summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--brand); list-style: none; }
.about-details summary::-webkit-details-marker { display: none; }
.about-details summary::before { content: "▸"; font-size: 11px; margin-right: 6px; }
.about-details[open] summary::before { content: "▾"; }
.about-src { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.about-src p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--text-3); }
.about-src a { color: var(--brand); text-decoration: none; }
.about-src a:hover { text-decoration: underline; }

.stat-grid { gap: 12px; }
.stat .n { color: var(--brand); font: 400 30px var(--font-editorial); }
.stat .l { font-size: 12px; }
.notebook-row { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; background: var(--card); }
.history-view .history-row { padding: 16px; border: 1px solid var(--line); box-shadow: none; }
.history-title { font: 500 17px/1.5 var(--font-editorial); }
.history-zh { font-size: 12px; line-height: 1.7; }
.history-filter { min-height: 38px; padding: 8px 16px; }
.history-filter.on { border-color: var(--brand-soft); }

/* Reader: a quiet, bounded measure, with full photographs and floating tools. */
.read-top { width: 100%; padding: 12px max(22px, calc((100% - 820px) / 2)); min-height: 76px; background: var(--bg); }
.read-top .center { gap: 3px; }
.read-top .center > span:first-child { font-size: 13px; color: var(--text-1); }
.read-top .center .src { font-size: 10px; }
.read-progress, .read-progress::before { background: var(--line); }
.read-progress .bar { background: var(--brand); box-shadow: none; }
.screen > .view.read-scroll { max-width: none; padding: 32px 0 120px; gap: 28px; }
/* ⚠️ 这里原本是 `.read-scroll { --rd-pad: 30px; }`，2026-09-20 删除。
 * styles.css 的注释白纸黑字写着「左右留白只在这里定义一次（--rd-pad）」，而本文件
 * 不但又声明了一遍，还在后半段 ≤759px 的媒体查询里写回 22px —— 三处来源、两个档位。
 * 生效结果是 ≤759px 22px、≥760px 30px（本文件加载在后，同特异性即赢）。
 * 现在两个档位都收回 styles.css 的 .read-scroll（30px 那档用 min-width:760px 媒体查询），
 * 本文件不再碰 --rd-pad。跟段距那次是同一个病：**同一属性两个来源，守卫只读一份 = 假绿。**
 * 保留这行注释是因为删掉之后，下一个人只看到 styles.css 里的数字，
 * 不会知道这里曾经有过第二个来源（也不该有人再加回来）。 */
.read-hero, .read-body, .read-finish { width: 100%; max-width: 800px; align-self: center; }
.read-hero { padding: 8px var(--rd-pad) 16px; gap: 20px; }
.read-hero h1.title { margin: 0; font: 500 clamp(29px, 3.3vw, 44px)/1.22 var(--font-editorial); letter-spacing: -.5px; text-wrap: pretty; }
.read-hero .title-zh { font-size: 16px; line-height: 1.9; margin: 0; color: var(--text-2); }
.read-hero .byline { font-size: 11px; line-height: 1.7; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.read-cover, .read-cover.has-img { height: 300px; border-radius: 10px; box-shadow: none; }
.read-cover.has-img.people-cover { height: auto; }
.read-cover.has-img.people-cover img { width: 100%; height: auto; display: block; }
.read-cover .play { color: #285448; }
.people-reading-note { border: 1px solid var(--border); background: var(--card); padding: 16px 18px; border-radius: 8px; color: var(--text-2); }
.people-reading-note b { color: var(--brand); }
.people-reading-note a { color: var(--card); background: var(--brand); }
/* ⚠️ 这里原本有两行，2026-09-20 一并删除：
 *   ① `.read-body { padding: 0 var(--rd-pad); }` —— 正文内边距。
 *      它让 styles.css 的 `padding: 16px var(--rd-pad) 8px` **从未生效**（生效值一直是 0）。
 *      现在把生效值（0）写回 styles.css 并注明原因；本文件不再碰 .read-body 的盒模型。
 *   ② `.read-body .para { margin-bottom: 30px; }` —— 段落间距。
 *      它和 styles.css 的 `.read-body .para` 打的是同一个属性，本文件加载在后所以它赢，
 *      结果：styles.css 的注释写着「段距 18px 不动」，浏览器实际算出 30px，持续了不知多久。
 * 两条都是同一个病：**关于正文排版的属性，本文件（editorial 层）不该有第二个来源。**
 * 本层的职责只有卡片、封面、页眉页脚这类编辑风格；正文的间距 / 内边距 / 字距一律归
 * styles.css 的 .read-body 那一段。
 * 保留这段注释是因为：删掉覆盖之后，下一个人只看到 styles.css 里的数字，
 * 不会知道这里曾经有过第二个来源（也不该有人再往这里加回来）。 */
.read-body .para .cn { border-color: var(--border); color: var(--text-2); padding: 8px 12px; margin-top: 9px; background: var(--card-2); border-radius: 0 4px 4px 0; }
.read-body .para .sentence.sel { background: var(--brand-soft); }
.kw { color: var(--brand); background: transparent; text-decoration-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.read-body .para-img { margin: 32px 0; }
.read-body .para-img img { border-radius: 6px; box-shadow: none; }
.read-body .para-img figcaption { font-size: 11px; line-height: 1.8; }
.read-finish { width: calc(100% - 44px); max-width: 740px; background: var(--brand-deep); border: 1px solid var(--border); border-radius: 16px; box-shadow: none; }
.read-finish .ico { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.read-finish .btn, .btn-primary { background: var(--brand); color: var(--card); box-shadow: none; border-radius: 8px; }
.fab-bar { bottom: calc(22px + var(--safe-b)); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-2); gap: 8px; padding: 6px 10px; }
.fab-bar button { background: var(--card); }
.fab-bar button.active { color: var(--card); }
.fab-bar.hide { transform: translate(-50%, 18px); }
.sheet { max-width: 520px; margin: 0 auto; border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-2); padding: 16px 24px calc(26px + var(--safe-b)); }
.sheet .w { font: 500 30px var(--font-editorial); }
.sheet-btns button { min-height: 44px; }
.sheet-btns .a { color: var(--card); }
.rd-set .rd-seg.on, .fb-seg.on, .kw.on { color: var(--card); }
.rd-set .rd-seg { min-height: 44px; border-radius: 8px; }
.sort-opt { min-height: 44px; }
.toast { max-width: calc(100% - 32px); white-space: normal; text-align: center; line-height: 1.6; }

@media (min-width: 760px) and (max-width: 1050px) {
  .nav-end > span { display: none; }
  .editorial-copy { padding: 24px; }
  .home-reading-layout { gap: 24px; grid-template-columns: minmax(0, 1fr) 240px; }
  .reading-sidebar { padding-left: 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .home-picks .article { flex-direction: row; }
  .home-picks .article .thumb { width: 120px; aspect-ratio: auto; height: auto; }
  .cat-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-link { gap: 12px; padding: 20px; }
}
@media (max-width: 759px) {
  .screen > .view { padding: 24px 20px 24px; gap: 24px; }
  .page-intro h1 { font-size: 29px; margin: 8px 0 10px; }
  .page-intro .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .page-intro p { font-size: 12px; }
  .reading-date { display: none; }
  .tabbar { order: 1; padding: 0 18px calc(7px + var(--safe-b)); border: 0; border-top: 1px solid var(--border); background: var(--bg); }
  .nav-inner { min-height: 61px; justify-content: center; gap: 0; }
  .tabbar .nav-brand, .nav-end { display: none; }
  .tabbar .pill { width: 100%; max-width: 440px; height: 60px; gap: 0; }
  .tabbar .pill button { flex-direction: column; flex: 1; gap: 4px; min-width: 0; font-size: 10px; padding: 4px 0; }
  .tabbar .pill button.on::after { top: 0; bottom: auto; height: 2px; left: 35%; right: 35%; }
  .tabbar .pill button svg { height: 20px; width: 20px; }
  .editorial-feature { min-height: 0; grid-template-columns: 1fr; border-radius: 12px; }
  .editorial-photo { grid-row: 1; height: 280px; min-height: 0; }
  .editorial-photo img { object-position: center 25%; }
  .editorial-copy { padding: 22px; }
  .editorial-copy h2 { font-size: 25px; line-height: 1.6; margin: 14px 0 10px; }
  .editorial-en { font-size: 14px; }
  .editorial-credit { margin-top: 18px; font-size: 10px; }
  .editorial-cta { margin-top: 18px; width: 100%; justify-content: space-between; }
  .photo-label { left: 18px; bottom: 18px; }
  .photo-arrow { right: 18px; bottom: 18px; }
  .home-reading-layout { display: flex; flex-direction: column; gap: 30px; margin: 0; }
  .section-heading { padding-bottom: 16px; }
  .section-heading h2 { font-size: 20px; }
  .article-grid { gap: 16px; }
  .article > .article-copy, .article.people-card > .article-copy { padding: 16px; }
  .article .t { font-size: 18px; }
  .reading-sidebar { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; gap: 18px; }
  .reading-note { display: none; }
  .topic-grid { grid-template-columns: 1fr; gap: 12px; }
  .topic-link { padding: 20px; }
  .topic-link b { font-size: 19px; }
  .editorial-footer { padding-top: 22px; font-size: 10px; gap: 10px; }
  .editorial-footer span:last-child { font-size: 12px; }
  .cat-section { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .me-view { grid-template-columns: 1fr; }
  .me-view .overview-card { padding: 20px; }
  .me-entries { grid-template-columns: 1fr; }
  .me-view .history-entry { padding: 20px !important; }
  .screen > .view.read-scroll { padding: 22px 0 112px; }
  /* 这里原本还有 `.read-scroll { --rd-pad: 22px; }` —— 2026-09-20 删除，归回 styles.css。 */
  .read-top { padding: 8px 18px; min-height: 72px; }
  .read-hero { gap: 17px; }
  .read-hero h1.title { font-size: 30px; line-height: 1.3; }
  .read-hero .title-zh { font-size: 14px; }
  .read-cover, .read-cover.has-img { height: 230px; }
  .read-cover.has-img.people-cover { height: auto; }
  .read-finish { width: calc(100% - 32px); }
}
@media (max-width: 480px) {
  .article-grid, .cat-section { grid-template-columns: 1fr; }
  .home-picks .article { flex-direction: row; }
  .home-picks .article .thumb { width: 104px; aspect-ratio: auto; height: auto; min-height: 170px; }
  .home-picks .article .article-copy { padding: 15px; }
  .home-picks .article .t { font-size: 16px; }
  .home-picks .article .article-meta { font-size: 9px; }
  .home-picks .article .article-meta > span:last-child { display: none; }
  .editorial-photo { height: 248px; }
  .editorial-copy { padding: 20px; }
  .editorial-copy h2 { font-size: 24px; }
  .page-intro { gap: 12px; }
  .page-intro h1 { font-size: 27px; letter-spacing: 0; }
  .discover-view .page-intro > .row { gap: 5px !important; }
  .discover-view .page-intro .icon-btn { width: 35px; height: 35px; }
  .discover-view .page-intro .eyebrow { max-width: 210px; }
  .history-row .thumb { width: 56px; height: 70px; }
  .history-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 私人书架：阅读入口与收藏按钮为同级控件，点收藏不会打开文章。 */
.article-shell { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.article-shell > .article { border: 0; border-radius: 0; flex: 1; height: auto; }
.article-shell > .article:hover { transform: none; }
.article-menu-trigger {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
  background: rgba(26,36,32,.62); color: #fff; font: 700 14px var(--font-num); letter-spacing: 1px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
}
.article-menu-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.article-menu-title { min-width: 0; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.5 var(--font-cn); color: var(--text-1); }
.article-progress { font-size: 12px; color: var(--brand); }

.shelf-section { margin: 0 0 32px; }
.shelf-empty { margin: 0; padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.shelf-view { padding: 32px; }
.shelf-view .history-filters { margin-bottom: 24px; flex-wrap: wrap; }
.shelf-view .history-empty .text-action { display: block; margin: 16px auto 0; }
@media (max-width: 680px) {
  .shelf-view { padding: 22px 20px; }
}

/* 私人的命名书架与可固定摄影封面，延续现有阅读卡片的层次。 */
.collections-view { padding: 32px; }
.collection-entry { width: 100%; text-align: left; margin-bottom: 24px; color: var(--text-1); cursor: pointer; }
.collection-entry .grow { gap: 5px; min-width: 0; }
.collection-entry .muted { line-height: 1.6; }
.collection-toolbar { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 24px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collection-card { display: flex; align-items: center; gap: 14px; min-height: 120px; width: 100%; text-align: left; color: var(--text-1); cursor: pointer; }
.collection-spine { display: grid; place-items: center; width: 48px; height: 68px; flex-shrink: 0; border-radius: 3px 9px 9px 3px; background: var(--brand-soft); border-left: 4px solid var(--brand); color: var(--brand); }
.collection-card .grow { min-width: 0; }
.collection-card b { display: block; font: 600 17px/1.5 var(--font-cn); overflow-wrap: anywhere; }
.collection-card small { display: block; margin-top: 6px; color: var(--text-3); }
.collection-sheet { max-height: 85dvh; overflow-y: auto; }
.collection-sheet h2 { margin: 0; font: 600 19px/1.5 var(--font-cn); }
.collection-sheet p { line-height: 1.7; overflow-wrap: anywhere; }
.collection-sheet form { display: flex; flex-direction: column; gap: 12px; }
.collection-sheet input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-1); background: var(--card); font: 16px var(--font-cn); }
.collection-options { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.collection-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text-1); font: 14px/1.5 var(--font-cn); cursor: pointer; }
.collection-option span:first-child { overflow-wrap: anywhere; }
.collection-option span:last-child { white-space: nowrap; font-size: 12px; }
.collection-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.collection-confirm { justify-content: flex-end; gap: 12px; }
.editorial-photo-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: -20px 0 30px; color: var(--text-3); font-size: 12px; }
.editorial-photo-controls > div { display: flex; flex-wrap: wrap; gap: 6px; }
.editorial-photo-controls button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-2); background: var(--card); font: inherit; cursor: pointer; }
.editorial-photo-controls button[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.collection-entry:focus-visible, .collection-card:focus-visible, .collection-option:focus-visible, .editorial-photo-controls button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Phone comfort: keep controls readable and clear of Android's cutout/gestures. */
.phone {
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
.icon-btn, .nav-end .icon-btn, .discover-view .page-intro .icon-btn,
.article-menu-trigger { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-shrink: 0; }
.nav-brand { min-height: 44px; }
.editorial-photo-controls button { min-height: 44px; }
.rd-set .rd-seg { height: 44px; min-height: 44px; }
.fab-bar {
  width: max-content;
  max-width: calc(100% - 24px - var(--safe-l) - var(--safe-r));
  left: calc((100% + var(--safe-l) - var(--safe-r)) / 2);
}
.fab-bar button.fab-main { white-space: nowrap; flex-shrink: 0; }
.sheet { left: var(--safe-l); right: var(--safe-r); overscroll-behavior: contain; }
.read-top .center { min-width: 0; }
.read-top-title { max-width: 100%; }
@media (max-width: 680px) {
  .collections-view { padding: 22px 20px; }
  .collection-grid { grid-template-columns: 1fr; }
}

/* 单层查词卡：内容独立滚动，认识/收藏按钮一直留在卡片底部。 */
.sheet.word-sheet { overflow: hidden; }
.word-sheet > :not(.word-sheet-body) { flex-shrink: 0; }
.word-sheet .w { overflow-wrap: anywhere; }
.word-sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.word-sheet-body > * { flex-shrink: 0; }
.word-sheet-body .ctx, .word-sheet-body .example-box { overflow-wrap: anywhere; }
.word-sheet-body:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* 文档导入：状态更新不重建输入框，扫描识别可随时取消。 */
.cv-import > .row { flex-wrap: wrap; }
.cv-import p { margin: 0; line-height: 1.65; }
.cv-ocr-option { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 1.6; }
.cv-ocr-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.cv-import-status { font-size: 13px; line-height: 1.65; color: var(--brand); overflow-wrap: anywhere; }
.cv-import-status:empty { display: none; }
.cv-import-warnings { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.cv-import [disabled] { opacity: .55; cursor: wait; }
