/* 穷尽 / 更换品牌色、字体，先改这里。纯 CSS，无需编译。 */
:root {
  --paper: #f4f2e9;
  --paper-light: #fbfaf5;
  --ink: #192b29;
  --muted: #64716a;
  --line: #d5d9cc;
  --accent: #d9ec83;
  --clay: #a34d33;
  /* 大工蓝：大连理工大学标准色（《视觉形象识别系统》标准色 主色 C90 M45 Y0 K0）。
     屏幕值取图书馆电子期刊导航页头实测的 #0B59AF —— 与标准色的 CMYK 同族，
     且就是读者在本校网站上看到的那一支蓝。全站只有「本馆馆藏」这一族用它：
     回答的是「这本刊我们学校能不能读」，与全球指标的配色分开。 */
  --dlut: #0B59AF;
  --dlut-deep: #0A4C96;
  --serif: "STZhongsong", "华文中宋", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 16px; background: var(--ink); color: var(--paper); z-index: 20; }
.skip-link:focus { top: 12px; }
.page-width { width: min(100%, 1392px); margin: 0 auto; padding-inline: 64px; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.brand-mark { font: 700 32px/1.2 var(--serif); letter-spacing: -2px; display: flex; align-items: baseline; gap: 7px; }
.brand-dot { width: 5px; height: 5px; background: var(--clay); border-radius: 50%; }
.brand-caption { border-left: 1px solid var(--line); padding-left: 20px; font: 10px/1.7 var(--mono); letter-spacing: 1.9px; }
.brand-caption span { display: block; font: 10px/1.7 var(--sans); letter-spacing: 1px; }
.header-nav { display: flex; align-items: center; gap: 32px; font-size: 12px; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; }
.text-button { background: transparent; font-size: 12px; min-height: 44px; padding: 10px 0; display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.text-button:hover, .header-nav a:hover { color: var(--clay); }
.count { font: 11px var(--mono); padding: 4px 6px; min-width: 27px; text-align: center; border: 1px solid var(--line); }
#open-saved[aria-pressed="true"] .count { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; padding: 43px 0 36px; align-items: center; }
.eyebrow { margin: 0; font: 10px/1.7 var(--mono); letter-spacing: 1.5px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: 1px; }
.tiny-square { width: 5px; height: 5px; background: var(--clay); }
.series-no { margin-left: 14px; font: 10px var(--mono); color: var(--muted); letter-spacing: 1px; }
h1 { margin: 24px 0 17px -4px; font: 700 clamp(42px, 4.5vw, 58px)/1.08 var(--serif); letter-spacing: -.035em; }
.hero-title-sub { display: block; margin-top: 11px; font-size: clamp(66px, 6.5vw, 92px); line-height: 1.2; letter-spacing: -.055em; white-space: nowrap; }
/* 全站只有一个箭头图形（16 网格、1.5px 圆头描边，路径见 app.js 的 ARROW_SVG）。
   方向不画第二支路径，靠 --arrow-rot 旋转：--go 斜上（打开新一层）、
   --down 向下（同页往下）、--up 向上（回页首）。
   位移也走变量（--arrow-nudge），这样悬停时旋转不会被子元素自己的 transform 顶掉。 */
.icon-arrow { --arrow-rot: 0deg; --arrow-nudge: 0px;
  width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -.08em;
  transform: rotate(var(--arrow-rot)) translate(var(--arrow-nudge), 0);
  transition: transform .2s; }
.icon-arrow--go { --arrow-rot: -45deg; }
.icon-arrow--down { --arrow-rot: 90deg; }
.icon-arrow--up { --arrow-rot: -90deg; }
/* 刊名旁那枚：字号跟着 92px 的字标走。.52em ≈ 48px —— 早先的 Unicode 字形是 .7em（64px），
   换成 SVG 后同样的 em 值笔画偏重，压到 .52em 才与汉字的笔画重量相当。 */
.title-arrow { width: .52em; height: .52em; margin-left: .1em; color: var(--clay); vertical-align: .1em; }
.hero-tagline { margin: 17px 0 11px; font: 600 23px/1.65 var(--serif); letter-spacing: .8px; }
.hero-description { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.hero-art { max-width: 424px; width: 100%; justify-self: end; }
.art-caption { display: flex; justify-content: space-between; gap: 15px; font: 9px/1.5 var(--mono); letter-spacing: 1px; color: var(--muted); padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.catalog-art { height: 284px; position: relative; margin: 20px 0 12px; }
.catalog-back { position: absolute; width: 198px; height: 242px; top: 11px; left: 34%; background: var(--accent); border: 1px solid var(--ink); transform: rotate(9deg); padding: 16px 15px; }
.catalog-back span { font: 9px var(--mono); letter-spacing: 1px; }
.catalog-back i { display: block; height: 40px; border-bottom: 1px solid #192b2940; }
.catalog-middle { position: absolute; width: 194px; height: 246px; top: 17px; left: 14%; background: var(--paper-light); border: 1px solid #9aa499; padding: 18px 15px; transform: rotate(-9deg); }
.catalog-middle > span { font: 15px/2 var(--serif); }
.catalog-middle i { display: block; height: 26px; border-bottom: 1px solid var(--line); }
.catalog-middle small { display: block; margin-top: 20px; font: 7px var(--mono); letter-spacing: 1px; }
.journal-cover { position: absolute; width: 199px; height: 253px; left: 26%; top: 16px; background: var(--ink); color: var(--paper); padding: 16px 17px; transform: rotate(-1.5deg); box-shadow: 10px 10px 0 #192b290a; }
.cover-top { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #f4f2e945; align-items: center; }
.cover-top > span:first-child { font: 16px var(--serif); }
.cover-top > span:last-child { font: 7px/1.6 var(--mono); letter-spacing: 1px; text-align: right; }
.cover-character { font: 400 120px/1.35 var(--serif); display: block; position: relative; text-align: center; }
.cover-cross { position: absolute; right: -3px; top: 24px; color: var(--accent); font: 16px var(--mono); }
.cover-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f4f2e945; padding-top: 10px; }
.cover-bottom > span:first-child { font-size: 8px; line-height: 1.8; letter-spacing: 1.7px; }
.cover-number { color: var(--accent); font: italic 31px/1 Georgia, serif; }
.index-ribbon { position: absolute; left: 1%; top: 88px; writing-mode: vertical-rl; transform: rotate(180deg); font: 8px/1 var(--mono); letter-spacing: 2px; color: var(--muted); }
.art-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; letter-spacing: 2px; padding-top: 11px; border-top: 1px solid var(--line); }
.art-line { flex: 1; height: 1px; background: var(--line); }
.hero-copy, .hero-art { animation: page-enter .65s ease-out both; }
.hero-art { animation-delay: .08s; }
@keyframes page-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.search-section { border-top: 1px solid var(--ink); padding-top: 19px; }
.search-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; gap: 20px; }
.search-heading label { font-size: 15px; font-weight: 500; }
.section-index { font: italic 19px Georgia, serif; color: var(--clay); padding-right: 16px; }
.search-kind { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.search-box { display: flex; align-items: center; background: var(--paper-light); border: 1px solid var(--ink); min-height: 76px; padding-left: 24px; gap: 20px; transition: box-shadow .2s; }
.search-box:focus-within { box-shadow: 0 0 0 3px #d9ec8360; }
.search-icon { width: 23px; height: 23px; flex-shrink: 0; }
#journal-query { flex: 1; min-width: 0; height: 74px; border: 0; outline: none; background: transparent; font-size: 16px; }
#journal-query::placeholder { color: #747e73; opacity: 1; }
#journal-query::-webkit-search-cancel-button { -webkit-appearance: none; }
#clear-query { background: transparent; font-size: 23px; width: 44px; height: 44px; color: var(--muted); flex-shrink: 0; }
#clear-query:hover { color: var(--ink); }
kbd { font: 11px var(--mono); border: 1px solid var(--line); padding: 4px 7px; color: var(--muted); }
/* 按钮里只留文字：左边已有放大镜，再摆一个 ↗ 等于两个图标挤在一个框里 */
#search-button { align-self: stretch; width: 170px; padding: 16px 24px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; letter-spacing: 1px; margin: -1px; transition: background .2s; white-space: nowrap; }
#search-button:hover { background: #2d4540; }
.search-below { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.example-queries { display: flex; align-items: center; gap: 19px; }
.example-queries > span { font-size: 11px; color: var(--muted); }
.example-queries button { background: transparent; font-size: 11px; padding: 11px 0; min-height: 44px; display: inline-flex; gap: 8px; align-items: center; }
.example-queries button span { color: var(--muted); }
.example-queries button:hover { color: var(--clay); }
.search-note { font-size: 11px; color: var(--muted); white-space: nowrap; }
.search-note span { margin-left: 10px; }
.data-notice { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0 12px; }
.demo-label { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--clay); white-space: nowrap; }
.demo-label > span:first-child { width: 4px; height: 4px; background: var(--clay); }
.data-notice p { margin: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.data-notice .text-button { margin-left: auto; white-space: nowrap; font-size: 11px; color: var(--muted); }
.results-section { margin-top: 49px; scroll-margin-top: 24px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.results-heading .eyebrow { color: var(--muted); font-size: 9px; }
.results-heading h2 { font: 600 31px/1.6 var(--serif); margin: 7px 0 0; letter-spacing: 1px; }
.heading-square { display: inline-block; background: var(--accent); border: 1px solid var(--ink); height: 9px; width: 9px; vertical-align: .1em; margin-left: 17px; }
.results-tools { display: flex; align-items: center; gap: 22px; }
.filter-bar { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
/* 筛选栏：**两行栅格**，每一格都是单行高。
   第 1 行给学科（独占整行）—— 它比别的格多两件东西：词表下拉（JCR 254 类 / ESI 22 领域…）
   和「关键字定位 + 排序」工具。第 2 行是其余 5 个维度，等分 5 列。
   ★ 让学科独占一行，是为了消灭「高矮不齐」：早先学科格在本格里叠了三行
   （标签 / 取值 / 工具，实测 114px），其余 5 格只有 44px，栅格按行居中 → 那 5 个
   标签比「学科」低 35px，整条筛选栏没有一条对齐的线（用户截图反馈的「没有美感」
   就是这个）。现在两行各自内部等高，左边缘与第 2 行首列对齐。
   列数按断点写死，不靠 flex 猜 —— 早先 flex 等分 + nowrap 硬挤一行，
   900px 上下拉只剩五十来像素、只露得出三四个字：「放得下」不等于「看得清」。
   ★ 别把这几条挪到文件末尾：末尾的无媒体查询规则会盖掉所有断点（踩过一次：
   390px 下六列硬挤，每列只剩 41px）。 */
.filter-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 18px; align-items: center; flex: 1 1 auto; min-width: 0; }
.filter-item { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; min-width: 0; }
.filter-item > span { color: var(--muted); flex-shrink: 0; white-space: nowrap; }
.filter-item select { border: 1px solid var(--line); width: 100%; min-width: 0; min-height: 42px; background: var(--paper-light); padding: 8px 26px 8px 12px; font-size: 12px; }
.filter-item select:hover { border-color: var(--ink); }
/* 学科格独占第 1 行；`词表 + 取值 + 工具` 排成一行（放不下才换行，见文件末尾那节）。 */
.filter-item-subject { grid-column: 1 / -1; }
.filter-label { display: inline-flex; align-items: center; gap: 8px; }
.filter-label label { cursor: pointer; }
/* 词表下拉：小号，但**是有边框的** —— 和取值下拉一样读得出「这是一个可点的框」，只是矮一档。
   早先做成无框下划线，可原生 select 的箭头永远贴着框的右边缘，而框宽由最长选项
   （「教育部学科」）撑着：选中「JCR」时文字和箭头隔着 60px，看着像断了一截
   （用户截图里最扎眼的一处）。加回边框之后，这个宽度才像是「一个控件」。 */
#subject-scheme { flex: 0 0 auto; width: auto; min-height: 32px; height: auto;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper-light);
  color: var(--muted); padding: 5px 22px 5px 9px; font: 12px/1.5 var(--sans); letter-spacing: .2px; }
#subject-scheme:hover { color: var(--ink); border-color: var(--ink); }
#subject-scheme:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
#subject-scheme option:disabled { color: var(--line); }
.filter-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: 0 0 auto; }
.reset-button { color: var(--muted); font-size: 11px; }
.result-summary { font: 11px/1.8 var(--sans); margin: 0; color: var(--muted); text-align: right; white-space: nowrap; }
.query-context { display: flex; align-items: center; gap: 14px; padding: 17px 0 12px; min-height: 53px; }
#result-query { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
#active-filters button, #active-filters span { font-size: 10px; padding: 5px 8px; background: #e8eadf; border: 1px solid var(--line); }
#active-filters button { min-height: 30px; }
.list-note { font-size: 10px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.list-note span { margin-left: 8px; }
.list-column-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); letter-spacing: 1px; padding: 11px 0; border-bottom: 1px solid var(--ink); }
.journal-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 18px; padding: 25px 14px 24px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .2s; }
.journal-row:hover { background: #fbfaf5a0; }
.row-index { font: italic 17px/1.8 Georgia, serif; color: var(--clay); padding-top: 1px; }
.journal-main { min-width: 0; }
.journal-name { display: inline-flex; background: none; text-align: left; padding: 0; font: 600 23px/1.5 var(--serif); letter-spacing: .4px; text-underline-offset: 5px; }
.journal-name:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.journal-english { font: 15px/1.7 Georgia, serif; margin: 3px 0 11px; overflow-wrap: anywhere; }
.journal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--muted); font: 10px/1.9 var(--sans); }
.journal-meta .issn, .journal-meta code, .journal-issn { font: 11px/1.8 var(--mono); }
/* 出版方原来也挂一个「·」前缀，一行就成了三个中点 —— 见文件末尾「元信息行的中点」那节。 */
.subject-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.mini-tag { display: inline-block; padding: 3px 7px; font-size: 9px; line-height: 1.6; border: 1px solid var(--line); color: var(--muted); }
.mini-tag.demo, .mini-tag.demo-tag { color: var(--clay); border-color: #a34d3340; }
/* 中文核心标记（南大 CSSCI／北大核心／CSCD／AMI）。列表卡片上唯一一个「不翻详情
   也能答出来」的判断位——作者扫一遍列表，先要知道的是这本算不算核心。
   取详情页「中文核心与评价名录」那一段的紫红，同一族颜色。 */
.mini-tag.cncore-tag { color: #8a3f68; border-color: #8a3f6859; background: #8a3f6814; }
/* 常用缩写（NEJM／PNAS／JACS）。用等宽字把缩写与刊名拉开——这一格跟「曾用名与别名」
   长得像，但那边是刊名沿革、这边是检索用的简写，字体不同才分得清。 */
.mini-tag.abbr-tag { font-family: var(--mono); letter-spacing: .05em; color: var(--ink); border-color: #7d8f8440; }
/* 本馆馆藏（这本刊本校订没订）。这一段回答的是「你能不能拿到全文」，跟旁边的全球指标
   不是一回事，所以先用一个明确的判断句，不混进字段表。这一族用大工蓝：判断句是蓝字，
   来源标签本身就是链接（点库名直达该库全文入口），开放获取的来源在标签尾挂一个
   OA 角标，说明它不登录也能读。 */
.holding-verdict { font-size: 12px; color: var(--muted); }
.holding-verdict.is-ok { color: var(--dlut); }
.mini-tag.holding-tag { font-family: var(--mono); letter-spacing: .02em; color: var(--dlut); border-color: #0B59AF59; background: #0B59AF10; }
a.mini-tag.holding-link { text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
a.mini-tag.holding-link:hover { background: #0B59AF22; border-color: #0B59AFa0; }
/* OA 角标：贴在开放获取来源标签的尾部，等宽小字，与库名拉开。 */
.oa-mark { font-style: normal; font-family: var(--mono); font-size: 8px; margin-left: 6px; padding: 0 3px; color: #7a5a12; background: #b98a1f22; border: 1px solid #b98a1f59; }
/* 列表卡片徽标：「大连理工」跳该刊页面（馆藏行的 SFX 全文直链），「OA」跳开放获取全文入口。
   两个都是链接，光标与下划线行为统一。「大连理工」是列表里唯一的**实心**色块 —— 它是读者
   扫列表时最想知道的一件事（这本我们学校有没有），实心大工蓝才捞得出来，其余标签保持描边。 */
a.mini-tag.hold-badge { text-decoration: none; cursor: pointer; color: #ffffff; border-color: var(--dlut); background: var(--dlut); }
a.mini-tag.hold-badge:hover { background: var(--dlut-deep); border-color: var(--dlut-deep); }
a.mini-tag.oa-badge { text-decoration: none; cursor: pointer; color: #7a5a12; border-color: #b98a1f59; background: #b98a1f14; }
a.mini-tag.oa-badge:hover { background: #b98a1f26; border-color: #b98a1fa0; }
/* 详情页右上角「在本馆查看」：与 kicker 同一行、推到最右。实心大工蓝，和列表徽标同族 ——
   kicker 里唯一一个可点的动作，就该是全块实色。 */
a.portal-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 10px/1.6 var(--sans); letter-spacing: 1px; color: #ffffff; border: 1px solid var(--dlut); background: var(--dlut); text-decoration: none; transition: background .15s, border-color .15s; }
a.portal-link:hover { background: var(--dlut-deep); border-color: var(--dlut-deep); }
a.portal-link .icon-arrow { width: 12px; height: 12px; }
a.portal-link:hover .icon-arrow { --arrow-nudge: 3px; }
/* 筛选栏右端的馆藏限定开关（学科那一行右侧回车的空地）。
   它是全站唯一一个**二态开关**，不是下拉：按下去等于「列表只剩大连理工大学有馆藏的刊」。
   形态沿着全站的方角与方点母题走 —— 左边一个方框指示器，按下后填实；整块由描边转成
   实心大工蓝，和列表里「大连理工」徽标、详情页「在本馆查看」是同一族色，读者一眼认得出
   这三处说的是同一件事。右边的刊数两种状态都给：它既是「限定之后还剩多少」，
   也顺手把「学校到底能读多少」讲清楚。 */
.hold-toggle { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 13px; font: 12px/1.5 var(--sans); letter-spacing: .01em; color: var(--muted); border: 1px solid var(--line); background: var(--paper-light); transition: color .18s, border-color .18s, background .18s; }
.hold-toggle-box { width: 11px; height: 11px; flex: 0 0 auto; border: 1px solid currentColor; transition: background .18s, border-color .18s; }
/* 刊数用 #64716a 本色，不再叠透明度：11px 的字上再淡一档只有 2.9:1，过不了 AA
   （本色是 4.9:1）。比正文轻一档靠的是等宽小字号，不靠颜色。
   margin-left:auto 是给窄屏铺满那一档用的：那时开关独占一整行，靠它把刊数顶到最右，
   文字仍紧贴左侧方框，不会被 space-between 居中成三段。 */
.hold-toggle-count { margin-left: auto; font: 11px/1 var(--mono); letter-spacing: .02em; }
.hold-toggle:hover { color: var(--dlut); border-color: var(--dlut); }
.hold-toggle:active { transform: translateY(1px); }
.hold-toggle[aria-pressed="true"] { color: #ffffff; border-color: var(--dlut); background: var(--dlut); }
.hold-toggle[aria-pressed="true"] .hold-toggle-box { background: #ffffff; border-color: #ffffff; }
.hold-toggle[aria-pressed="true"] .hold-toggle-count { opacity: .85; }
.hold-toggle[aria-pressed="true"]:hover { background: var(--dlut-deep); border-color: var(--dlut-deep); }
@media (max-width: 600px) {
  /* 窄屏下这一行本来就换行，开关跟着独占一整行并铺满：缩在右上角只有拇指那么大，
     反而点不准。 */
  .hold-toggle { margin-left: 0; flex: 1 1 100%; width: 100%; min-height: 42px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hold-toggle, .hold-toggle-box { transition: none; }
  .hold-toggle:active { transform: none; }
}
.row-actions { display: flex; align-items: center; gap: 25px; align-self: center; }
.save-button { width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; transition: background .2s, border-color .2s; }
.save-button svg { width: 17px; height: 19px; }
.save-button:hover { border-color: var(--ink); }
.save-button[aria-pressed="true"] { background: var(--accent); border-color: var(--ink); }
.detail-button { background: transparent; min-height: 44px; min-width: 87px; padding: 8px 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 11px; }
.detail-button:hover { color: var(--clay); }
.detail-button .icon-arrow { width: 14px; height: 14px; }
.detail-button:hover .icon-arrow { --arrow-nudge: 4px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0 0; }
.page-caption { font-size: 10px; color: var(--muted); }
.page-controls { display: flex; gap: 18px; align-items: center; }
.page-controls button { height: 42px; width: 44px; border: 1px solid var(--line); background: transparent; font-size: 20px; }
.page-controls button:hover:not(:disabled) { background: var(--accent); border-color: var(--ink); }
.page-controls button:disabled { color: #9ba397; opacity: .6; }
#page-status { font: 11px var(--mono); min-width: 61px; text-align: center; }
.state-panel { text-align: center; padding: 54px 20px; border-bottom: 1px solid var(--line); }
.state-symbol { display: block; font: 40px/1.3 Georgia, serif; color: var(--clay); margin-bottom: 12px; }
.state-panel h3 { font: 600 22px/1.6 var(--serif); margin: 0 0 11px; }
.state-panel p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 0 0 24px; }
.primary-button { background: var(--ink); color: var(--paper); min-height: 46px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 20px; font-size: 12px; }
.primary-button:hover { background: #2d4540; }
.primary-button span { font-size: 19px; }
.loading-mark { display: inline-block; width: 20px; height: 20px; border: 1px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: loading 1s linear infinite; margin-bottom: 15px; }
@keyframes loading { to { transform: rotate(360deg); } }
.guide-strip { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 33px; margin: 64px 0 62px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.guide-strip .eyebrow { font-size: 9px; color: var(--muted); }
.guide-strip h2 { font: 600 21px/1.7 var(--serif); margin: 10px 0 0; }
.guide-item { padding-left: 25px; border-left: 1px solid var(--line); }
.guide-item > span { font: 9px/1.6 var(--mono); color: var(--clay); letter-spacing: .7px; }
.guide-item h3 { font-size: 13px; font-weight: 500; margin: 13px 0 10px; }
.guide-item p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.9; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 35px; }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand > span { font: 600 23px var(--serif); }
.footer-brand p { font-size: 11px; color: var(--muted); }
.footer-notes { margin-left: auto; margin-right: 37px; text-align: right; }
.footer-notes p { font-size: 10px; color: var(--muted); margin: 0 0 6px; }
.footer-notes > span { font: 8px var(--mono); color: var(--muted); letter-spacing: .8px; }
.site-footer > a { font-size: 11px; min-height: 44px; display: flex; align-items: center; gap: 9px; }
.site-footer > a:hover { color: var(--clay); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--paper); border: 1px solid #64716a; padding: 13px 24px; font-size: 12px; line-height: 1.7; z-index: 30; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 4px 18px #192b291a; }
dialog { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 0; max-height: calc(100dvh - 64px); box-shadow: 0 18px 90px #0002; }
dialog::backdrop { background: #192b2970; backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-enter .22s ease-out; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.journal-dialog { width: min(780px, calc(100vw - 64px)); }
.dialog-close { position: sticky; top: 0; z-index: 2; margin-left: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; min-height: 55px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 11px; }
.dialog-close span { font-size: 23px; }
.dialog-close:hover { background: var(--accent); }
#detail-content { padding: 2px 44px 37px; overflow-wrap: anywhere; }
.detail-kicker { display: flex; align-items: center; gap: 16px; color: var(--clay); font: 10px/1.7 var(--mono); letter-spacing: 1px; margin: 0 0 13px; }
.detail-title { font: 600 36px/1.5 var(--serif); margin: 0 0 4px; }
.detail-english { margin: 0 0 22px; font: 20px/1.6 Georgia, serif; }
.detail-description { font-size: 13px; line-height: 2; margin: 18px 0 26px; color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; border-top: 1px solid var(--ink); margin: 20px 0 30px; }
.detail-fact { padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-fact dt { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.detail-fact dd { margin: 0; font-size: 13px; line-height: 1.8; }
.detail-fact code { font: 13px/1.7 var(--mono); }
.detail-metrics { background: #e9ece2; padding: 20px; margin: 23px 0; }
.detail-metrics > h3, .detail-section-title { margin: 0 0 14px; font: 600 18px/1.5 var(--serif); }
.detail-metrics > p { font-size: 11px; line-height: 1.9; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.metric-card { border-bottom: 1px solid #c6cdbd; padding: 12px 0; }
.metric-card h4, .metric-card > span { display: block; font: 10px/1.7 var(--sans); color: var(--muted); margin: 0 0 6px; }
.metric-card p, .metric-card strong { margin: 0; font-size: 13px; line-height: 1.6; font-weight: 500; }
/* 影响因子分区 · 按年：标题行右侧挂年份下拉，切换只重画下面这格 */
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.history-head h4 { margin: 0; }
.history-year { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); flex: 0 0 auto; }
.history-year select { border: 1px solid var(--line); background: var(--paper-light); min-height: 34px; padding: 6px 26px 6px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.history-year select:hover { border-color: var(--ink); }
.history-block .metric-note { margin: 9px 0 4px; font-size: 11px; line-height: 1.9; color: var(--muted); }
/* 「按年」里的标签长短差得远：「中科院分区（2025 升级版）」在窄屏会折成两行，
   而隔壁「JCI 分区」只有一行 —— 数值紧跟标签的话，同一行的数值就高低不齐
   （和筛选栏那次「高矮不齐」是同一类毛病）。卡片内竖排 + 数值贴底，
   同一行的数值就永远落在同一条线上，标签几行都不影响。 */
.history-block .metric-card { display: flex; flex-direction: column; }
.history-block .metric-card > .metric-value { margin-top: auto; }
.history-block .metric-card > .metric-value-line { display: inline-flex; align-items: center;
  gap: 6px; margin-top: auto; }
.history-block .metric-value-line .metric-value { margin: 0; }
.metric-value.quartile-value { color: var(--clay); }
.detail-toolbar { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.detail-toolbar button, .detail-toolbar a { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 11px 17px; background: transparent; border: 1px solid var(--ink); font-size: 11px; }
.detail-toolbar button:hover, .detail-toolbar a:hover { background: var(--accent); }
.detail-toolbar button[aria-pressed="true"] { background: var(--accent); }
.detail-toolbar .detail-save { width: auto; font-size: 11px; }
.detail-source { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 25px; }
.detail-source > span { font-size: 10px; color: var(--muted); }
.detail-source > p { font-size: 12px; line-height: 1.9; margin: 7px 0 0; }
.detail-source > p.detail-source-date { font-size: 10px; color: var(--muted); }
.source-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.detail-loading, .detail-error { padding: 25px 0; font-size: 13px; line-height: 1.8; }
.detail-retry { padding: 12px 20px; background: var(--ink); color: var(--paper); font-size: 12px; min-height: 44px; margin-bottom: 25px; }
.detail-note { font-size: 11px; line-height: 1.9; color: var(--muted); padding: 17px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.detail-note a { text-decoration: underline; text-underline-offset: 3px; }
.about-dialog { width: min(630px, calc(100vw - 64px)); }
.about-content { padding: 0 39px 32px; }
.about-content .eyebrow { color: var(--muted); font-size: 9px; }
.about-content h2 { font: 600 32px/1.6 var(--serif); margin: 13px 0 24px; }
.about-content > p:not(.eyebrow) { font-size: 12px; line-height: 2; color: var(--muted); margin: 20px 0; }
.about-content > p.about-local { font-size: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 1500px) { .hero { padding-block: 52px 44px; gap: 100px; } .catalog-art { height: 307px; } .journal-cover { height: 269px; width: 213px; } .catalog-back { height: 257px; width: 211px; } .catalog-middle { height: 260px; width: 208px; } .cover-character { font-size: 132px; } }
@media (max-width: 1100px) {
  .page-width { padding-inline: 40px; }
  .hero { gap: 35px; grid-template-columns: 1.25fr 1fr; }
  .hero-title-sub { font-size: 75px; }
  .hero-tagline { font-size: 21px; }
  .catalog-back { left: 32%; } .catalog-middle { left: 9%; } .journal-cover { left: 20%; }
  .search-note { display: none; }
  .guide-strip { gap: 20px; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .guide-item { padding-left: 18px; } .guide-item p br { display: none; }
  .row-actions { gap: 20px; }
}
@media (max-width: 820px) {
  .page-width { padding-inline: 28px; }
  .site-header { min-height: 85px; } .header-nav { gap: 20px; } .brand-caption { display: none; }
  .hero { grid-template-columns: 1.2fr .8fr; gap: 23px; padding: 37px 0 32px; }
  .hero-title-sub { font-size: 58px; } h1 { font-size: 44px; }
  .hero-tagline { font-size: 17px; letter-spacing: 0; }
  .hero-description { font-size: 12px; }
  .series-no { margin-left: auto; font-size: 8px; }
  .art-caption { font-size: 6px; letter-spacing: .5px; }
  .catalog-art { height: 223px; margin-top: 17px; }
  .journal-cover { width: 147px; height: 204px; padding: 13px; left: 20%; top: 9px; }
  .cover-character { font-size: 87px; line-height: 1.5; }
  .cover-top { padding-bottom: 9px; }
  .cover-top > span:first-child { font-size: 12px; } .cover-top > span:last-child { font-size: 5px; }
  .cover-bottom { padding-top: 8px; } .cover-bottom > span:first-child { font-size: 6px; }
  .cover-number { font-size: 23px; }
  .catalog-middle { width: 147px; height: 200px; top: 9px; left: 7%; padding: 13px; }
  .catalog-middle > span { font-size: 10px; } .catalog-middle i { height: 23px; } .catalog-middle small { font-size: 5px; }
  .catalog-back { width: 147px; height: 195px; top: 7px; padding: 13px; }
  .catalog-back span { font-size: 7px; }
  .index-ribbon { font-size: 6px; left: -4%; top: 64px; }
  .art-footer { font-size: 8px; padding-top: 8px; }
  .search-box { min-height: 68px; padding-left: 20px; gap: 15px; } #journal-query { height: 66px; font-size: 15px; }
  #search-button { width: 148px; padding-inline: 18px; font-size: 13px; }
  .filter-fields { gap: 15px; } .filter-item select { min-width: 112px; padding-left: 9px; }
  .filter-item { gap: 8px; }
  .result-summary { font-size: 10px; }
  .results-section { margin-top: 36px; }
  .journal-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 13px; padding-block: 22px; }
  .row-actions { gap: 13px; } .detail-button { min-width: 68px; gap: 8px; }
  .journal-name { font-size: 21px; }
  .guide-strip { grid-template-columns: repeat(3,1fr); gap: 26px; }
  .guide-strip > div:first-child { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; }
  .guide-strip h2 { margin-top: 0; font-size: 20px; } .guide-strip h2 br { display: none; }
  .guide-item { border-left: 0; padding-left: 0; }
  .footer-notes { margin-right: 10px; } .footer-brand p { display: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 16px; }
  .page-width { padding-inline: 22px; }
  .site-header { min-height: 76px; gap: 18px; }
  .brand-mark { font-size: 28px; }
  .header-nav { gap: 17px; font-size: 11px; } .header-nav .text-button { font-size: 11px; gap: 8px; }
  .about-link { display: none; } .browse-link { gap: 10px !important; }
  .count { font-size: 10px; min-width: 25px; padding: 4px; }
  .hero { position: relative; display: block; padding-top: 27px; padding-bottom: 24px; min-height: 286px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-eyebrow { font-size: 10px; gap: 8px; }
  .series-no { margin-left: auto; font-size: 8px; }
  h1 { font-size: 37px; margin: 25px 0 14px -2px; }
  .hero-title-sub { font-size: clamp(47px, 10.2vw, 62px); margin-top: 10px; letter-spacing: -.035em; }
  .title-arrow { margin-left: .17em; font-size: .68em; }
  .hero-tagline { font-size: 17px; margin-top: 14px; }
  .hero-description { font-size: 11px; line-height: 1.85; }
  .hero-art { display: none; }
  .search-section { padding-top: 15px; }
  .search-heading { margin-bottom: 12px; align-items: center; gap: 9px; }
  .search-heading label { font-size: 13px; }
  .section-index { font-size: 17px; padding-right: 9px; }
  .search-kind { font-size: 9px; letter-spacing: 0; }
  .search-box { min-height: 62px; padding-left: 14px; gap: 11px; }
  .search-icon { width: 18px; height: 18px; }
  #journal-query { height: 60px; font-size: 12px; }
  #clear-query { width: 32px; height: 44px; font-size: 21px; }
  kbd { display: none; }
  #search-button { width: 93px; padding-inline: 12px; font-size: 11px; gap: 8px; }
  #search-button span { font-size: 18px; }
  .example-queries { gap: 13px; flex-wrap: wrap; }
  .example-queries > span { font-size: 10px; } .example-queries button { font-size: 9px; gap: 4px; }
  .data-notice { flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 13px; }
  .data-notice p { flex: 1; min-width: 210px; font-size: 10px; line-height: 1.8; }
  .data-notice .text-button { min-height: 28px; padding: 3px 0; margin-left: 0; font-size: 10px; }
  .results-section { margin-top: 30px; }
  .results-heading { margin-bottom: 18px; gap: 10px; align-items: center; }
  .results-heading h2 { font-size: 27px; margin-top: 5px; }
  .results-heading .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .heading-square { width: 7px; height: 7px; margin-left: 13px; }
  .results-tools { gap: 8px; flex-direction: column; align-items: end; }
  .results-tools .text-button { font-size: 10px; min-height: 30px; padding: 3px 0; }
  .filter-bar { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .filter-fields { width: 100%; gap: 12px; flex-wrap: wrap; }
  .filter-item { gap: 7px; font-size: 10px; flex: 1 1 45%; }
  .filter-item select { min-width: 0; width: 100%; min-height: 42px; font-size: 11px; padding-inline: 8px 20px; }
  /* 重置按钮与计数同处一列，窄屏下改为一横排左右分布，不再需要负 margin 去挪位 */
  .filter-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .reset-button { min-height: 32px; padding: 2px 0; font-size: 10px; }
  .result-summary { text-align: left; font-size: 10px; }
  .query-context { padding-top: 14px; padding-bottom: 8px; min-height: 46px; gap: 8px; flex-wrap: wrap; }
  #result-query { font-size: 11px; max-width: 100%; }
  .list-note { display: none; }
  .list-column-labels { font-size: 8px; padding: 9px 0; }
  .journal-row { grid-template-columns: 23px minmax(0,1fr); gap: 10px; padding: 21px 0; }
  .row-index { font-size: 14px; line-height: 1.8; }
  .journal-name { font-size: 22px; }
  .journal-english { font-size: 13px; margin-bottom: 10px; }
  .journal-meta { font-size: 9px; line-height: 1.85; gap: 5px; } .journal-issn { font-size: 10px; }
  .subject-tags { margin-top: 10px; gap: 6px; padding-right: 0; }
  .mini-tag { font-size: 8px; padding: 3px 6px; }
  .row-actions { grid-column: 2; justify-content: end; gap: 18px; margin-top: 2px; }
  .save-button { height: 40px; width: 40px; font-size: 18px; }
  .detail-button { font-size: 10px; min-height: 40px; min-width: 80px; }
  .pagination { padding-top: 17px; gap: 8px; }
  .page-caption { font-size: 8px; } .page-controls { gap: 10px; }
  .page-controls button { height: 40px; width: 40px; font-size: 18px; }
  #page-status { font-size: 10px; min-width: 42px; }
  .guide-strip { margin: 40px 0 32px; padding: 23px 0; grid-template-columns: 1fr; gap: 24px; }
  .guide-strip > div:first-child { display: block; } .guide-strip .eyebrow { font-size: 8px; }
  .guide-strip h2 { margin-top: 10px; font-size: 23px; } .guide-strip h2 br { display: block; }
  .guide-item { padding-left: 16px; border-left: 1px solid var(--line); }
  .guide-item > span { font-size: 8px; } .guide-item h3 { font-size: 13px; margin-block: 10px 8px; }
  .guide-item p { font-size: 11px; } .guide-item p br { display: none; }
  .site-footer { gap: 12px; flex-wrap: wrap; padding-bottom: 28px; }
  .footer-brand > span { font-size: 24px; }
  .footer-notes { margin-right: 0; } .footer-notes p { font-size: 9px; }
  .footer-notes > span { font-size: 7px; }
  .site-footer > a { width: 100%; font-size: 10px; min-height: 32px; justify-content: end; }
  dialog { max-height: calc(100dvh - 24px); }
  .journal-dialog, .about-dialog { width: calc(100vw - 24px); }
  .dialog-close { padding: 12px 18px; min-height: 50px; }
  #detail-content { padding: 1px 22px 27px; }
  .detail-title { font-size: 28px; }
  .detail-english { font-size: 16px; margin-bottom: 18px; }
  .detail-kicker { font-size: 9px; flex-wrap: wrap; gap: 8px; }
  /* kicker 换行后 margin-left:auto 失效（按钮独占一行会被推到最右半行），
     窄屏让「在本馆查看」占满一行，好点按。 */
  a.portal-link { margin-left: 0; width: 100%; justify-content: space-between; min-height: 40px; }
  .detail-description { font-size: 12px; line-height: 1.9; }
  .detail-collections { margin: 14px 0 20px; }
  .coll-head { margin-bottom: 8px; }
  .coll-row { gap: 5px; }
  .coll-tag { font-size: 9px; padding: 3px 7px; gap: 5px; }
  .coll-group-label { font-size: 9px; }
  .detail-facts { gap: 0 18px; margin-bottom: 20px; }
  .detail-fact { padding: 13px 0; }
  .detail-fact dd { font-size: 11px; }
  .detail-fact dt { font-size: 9px; }
  .detail-metrics { padding: 17px; margin-block: 20px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .detail-toolbar { gap: 8px; }
  .detail-toolbar button, .detail-toolbar a { font-size: 10px; padding: 10px 13px; }
  .detail-note { font-size: 10px; }
  .about-content { padding: 0 24px 26px; }
  .about-content h2 { font-size: 27px; margin-bottom: 20px; }
  .state-panel { padding: 40px 12px; }
  .state-panel h3 { font-size: 21px; } .state-panel p { font-size: 11px; }
}
@media (max-width: 360px) {
  .page-width { padding-inline: 17px; }
  .header-nav { gap: 12px; } .header-nav a { gap: 6px !important; }
  .hero-title-sub { font-size: 44px; }
  .hero-tagline { font-size: 15px; }
  .search-kind { font-size: 8px; }
  .search-box { gap: 8px; padding-left: 10px; } #search-button { width: 82px; padding-inline: 10px; }
  .example-queries { gap: 10px; }
  .page-caption { max-width: 110px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===============================================================
   接真实数据后新增（筛选栏扩展 / 行内指标 / 详情分段）
   沿用上面的变量，不引入新色。
   =============================================================== */

/* 筛选栏的列数：宽屏 5 列到底（学科那一行独占整行，见上面的基础规则），
   逐档收窄到 3 列、2 列；排不下就整列换行，不再硬挤成一行。
   等分是必要的 —— 下拉框默认会按「最长的那个选项」撑宽，实测 #subject-filter 被
   "SOCIAL SCIENCES, GENERAL（6,258）" 撑到 343px。 */
@media (max-width: 1180px) {
  /* 5 列仍排得下，只收紧间距、并把下拉右侧的留白（箭头位）从 26px 收到 22px，
     给正文腾地方。这一档不换列，免得筛选栏忽高忽低。 */
  .filter-fields { gap: 12px 12px; }
  .filter-item { gap: 8px; }
  .filter-item select { padding-right: 22px; }
  /* 这一档开始筛选栏要吃紧，学科行右侧那句提示先撤 —— 它只是「怎么用」，不是内容 */
  .subject-hint { display: none; }
}
@media (max-width: 1050px) {
  /* 5 列时每列只剩 ~150px，「中科院 [全部分区]」就挤得肉眼可见了。
     降到 3 列（放几列由容器自己算，排不下整列换行）。学科那行不受影响，它本来就占整行。 */
  .filter-fields { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 860px) {
  .filter-fields { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}

/* 列表行内的关键指标条 — 只渲染有据可依的项 */
.row-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.fact-chip { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid var(--line); padding: 3px 8px; }
.fact-chip-label { font: 9px/1.6 var(--sans); color: var(--muted); font-style: normal; }
.fact-chip b { font: 500 10px/1.6 var(--mono); color: var(--ink); }
.quartile-tag { color: var(--clay); border-color: #a34d3355; }

/* 详情页新增分段 */
.detail-subsection { margin-top: 22px; }
.detail-subsection h4 { margin: 0 0 9px; font: 10px/1.7 var(--mono); letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-chips .mini-tag { font-size: 10px; padding: 4px 8px; }
.detail-source-note { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.warn-badge { color: var(--clay) !important; border-color: #a34d3355 !important; }

/* ---- 收录标签 ----
   详情顶部把收录位铺成一栏标签，取代原来「出版机构 X、国家、语种。收录于 A、B…」
   那段话（出版机构/国别/语种下方字段表各有一行，复述是重复）。
   29 个收录位：一色一位会花，一类一色又分不开，折中办法是「一位一色相、色相按类目分段」，
   色相由 JS 算好挂在 --tone / --tone-tint / --tone-edge 上，CSS 里不硬编码任何颜色，
   于是数据源加了收录位也不会掉色。 */
.detail-collections { margin: 18px 0 26px; }
.coll-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.coll-head-label { font: 10px/1.7 var(--mono); letter-spacing: 1.3px; color: var(--muted); }
.coll-head-count { font: 500 11px/1.7 var(--mono); color: var(--ink); }
.coll-row { display: flex; flex-wrap: wrap; gap: 6px; }
.coll-empty { font: 500 11px/1.7 var(--mono); color: var(--muted); }
.coll-note { margin: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.coll-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 10px; line-height: 1.7;
  color: var(--tone, var(--muted)); background: var(--tone-tint, transparent);
  border: 1px solid var(--tone-edge, var(--line)); white-space: nowrap; }
.coll-tag::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--tone, var(--muted)); }
.coll-group-label { display: block; font: 10px/1.7 var(--mono); letter-spacing: .6px; color: var(--tone, var(--muted));
  margin-bottom: 7px; padding-left: 8px; border-left: 2px solid var(--tone-edge, var(--line)); }
.coll-group-label.other { color: var(--muted); border-left-color: var(--line); }
/* 「数量 + 口径」这类要在一个字段里交代两件事的场合用得上 */
.fact-hint { display: block; margin-top: 3px; font-size: 10px; line-height: 1.7; color: var(--muted); }

/* 学科归属：一行一类，标签在左、值在右，避免长清单糊成一片 */
.subject-line { margin-bottom: 13px; }
.subject-line-label { display: block; font: 10px/1.7 var(--mono); letter-spacing: .6px; color: var(--muted); margin-bottom: 7px; }

/* 字段表在窄屏上单列 —— 真实数据的值比演示数据长得多，
   双列会把「MEDLINE、PubMed Central 等」这类多值挤成竖条。 */
@media (max-width: 560px) {
  .detail-facts { grid-template-columns: 1fr; gap: 0; }
}

/* ---- ISSN 展示 ----
   一本刊可以同时有印刷版号和电子版号，两个号都能检索命中。列表行里额外挂出的
   电子号用千分符分开（沿用 .journal-publisher 的做法），并压低一档亮度，
   让主号仍在视觉首位。 */
/* 元信息行的中点只留「ISSN · eISSN」这一处。出版方与国别靠 8px 间隙 + 字体切换
   （等宽号 → 无衬线名）分隔就够了，再加点就是一行三个中点，密得读不出分组。 */
.journal-publisher { margin-left: 2px; }
.journal-meta .eissn::before { content: "·"; padding-right: 8px; }
.journal-meta .eissn { color: var(--muted); }

/* 命中当前检索词的那个号：用纸感高亮条标出来 —— 否则「搜电子号、结果显示印刷号」
   会被当成查错了。用 inset 阴影而不是背景色，避免撑高行距。 */
.issn-hit { color: var(--ink) !important; font-weight: 700; box-shadow: inset 0 -0.45em 0 var(--accent); }

/* ===============================================================
   可读性（2026-10-14）：字号上调
   原字号是按「放得下」定的 —— 列表标签 9px、详情说明 10px、页脚 8px，
   在 1080p 上要凑近才看得清。这一节只动字号与行高，不动栅格与断点：
   排不下时由既有的换行规则兜住（筛选栏整列换行、学科格窄屏独占整行）。
   放在文件最后是有意的 —— 同特异性下后者生效，才能盖住上面各断点里的旧字号。
   =============================================================== */
/* 筛选栏 */
.filter-item { font-size: 12px; }
.filter-item select { font-size: 13.5px; min-height: 44px; }
#subject-scheme { font-size: 12px; min-height: 34px; }
/* 学科格内部：「学科 + 词表 + 选择器」排同一行，放不下才换行。
   选择器给上限宽度：不给的话它会跟着最长的选项长，把整行撑歪。 */
.filter-item-subject { position: relative; flex-wrap: wrap; gap: 10px 12px; }

/* ============ 学科选择器（可搜索的下拉） ============
   JCR 有 254 个类别，原生 <select> 有个致命的手感问题：关键字框过滤的是**弹层里**的选
   项，弹层不打开就毫无反馈 —— 输入「肿瘤」，屏幕上看不出任何变化，像没生效。
   所以候选直接摊在面板里：面板一开就列出候选，边打字边收窄，点一下即选中。
   原生 select（#subject-filter）留在 DOM 里当状态载体（hidden），界面换成什么不影响
   URL 同步、刷新还原与自动化验收那一套。 */
.subject-picker { flex: 1 1 240px; max-width: 430px; min-width: 0; }
/* 右侧那句「共 N 个类别 · 点开可输入筛选」：这一行本来就空着一大片，
   顺手把「这块能打字」讲出来 —— 自绘面板不像原生下拉那样一眼看出可输入。 */
.subject-hint { flex: 0 1 auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.filter-item-subject #subject-filter { display: none; }
.subject-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; padding: 9px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper-light); color: var(--ink);
  font: 13.5px/1.5 var(--sans); }
.subject-trigger:hover, .subject-trigger[aria-expanded="true"] { border-color: var(--ink); }
.subject-trigger-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-trigger[data-empty="true"] .subject-trigger-text { color: var(--muted); }
.subject-trigger-caret { flex: 0 0 auto; font-size: 11px; color: var(--muted); transition: transform .2s; }
.subject-trigger[aria-expanded="true"] .subject-trigger-caret { transform: rotate(180deg); }
/* 面板挂在**整行**上（.filter-item-subject 的绝对定位子元素），不是挂在选择器上：
   面板宽度就能按整行算，窄屏也不会往右溢出。 */
.subject-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  width: min(560px, 100%); border: 1px solid var(--ink); background: var(--paper-light);
  box-shadow: 0 14px 34px #1f2b2426; }
.subject-panel-head { display: flex; align-items: center; gap: 8px; padding: 10px;
  border-bottom: 1px solid var(--line); }
#subject-search { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 8px 11px;
  font-size: 13px; border: 1px solid var(--line); background: var(--paper); }
#subject-search::placeholder { color: #747e73; opacity: 1; }
#subject-sort { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 12.5px; white-space: nowrap; cursor: pointer; }
#subject-sort:hover { border-color: var(--ink); color: var(--ink); }
#subject-sort[aria-pressed="true"] { background: var(--accent); border-color: var(--ink); color: var(--ink); }
/* 列表高度取「首行 + 4 整行」的高度（39 + 4×57），让最后一行正好收在边上 ——
   留半行截断看着像渲染出错，而它能滚这件事由滚动条本身说明。 */
.subject-list { list-style: none; margin: 0; padding: 0; max-height: 268px; overflow-y: auto; }
/* 一行 = 左边两行文字（中文名在上、英文名在下）+ 右边一个期刊数。
   用 flex 而不是 grid：grid 里带「确定行号」的项会插队参与自动排列（踩过一次 ——
   期刊数跑到第一列、中文名被挤到右边去了），flex 的顺序就是书写顺序，不用猜。 */
.subject-option { display: flex; align-items: center; gap: 14px; padding: 9px 12px;
  border-bottom: 1px solid #e6e8dd; cursor: pointer; }
.subject-option:last-child { border-bottom: 0; }
.subject-option:hover, .subject-option.is-active { background: #eef0e6; }
.subject-option[aria-selected="true"] { background: var(--accent); }
.subject-option-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.subject-option-label { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.subject-option-en { font: 11.5px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.subject-option-count { flex: 0 0 auto; min-width: 3.6em; text-align: right;
  font: 11.5px var(--mono); color: var(--clay); }
.subject-option-all .subject-option-label { color: var(--muted); }
.subject-empty { padding: 22px 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.subject-panel-foot { margin: 0; padding: 9px 12px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted); }
#subject-search:focus-visible { outline-offset: 1px; }
#subject-sort:focus-visible { outline-offset: 1px; }
#subject-sort:hover { border-color: var(--ink); color: var(--ink); }
#subject-sort[aria-pressed="true"] { background: var(--accent); border-color: var(--ink); color: var(--ink); }
/* 列表 */
.list-column-labels { font-size: 11px; letter-spacing: .8px; }
.row-index { font-size: 19px; }
.journal-name { font-size: 25px; }
.journal-english { font-size: 16.5px; }
.journal-meta { font-size: 11.5px; }
.journal-meta .issn, .journal-meta code, .journal-issn { font-size: 12px; }
.mini-tag { font-size: 10.5px; }
.fact-chip-label { font-size: 10.5px; }
.fact-chip b { font-size: 12px; }
.detail-button { font-size: 12.5px; }
.page-caption { font-size: 11px; }
.result-summary { font-size: 12px; }
#result-query { font-size: 13px; }
#active-filters button, #active-filters span { font-size: 11.5px; }
.list-note { font-size: 11px; }
/* 页头与页脚 */
.hero-description { font-size: 14px; }
.data-notice p { font-size: 12.5px; }
.data-notice .text-button { font-size: 12px; }
.footer-notes p { font-size: 12px; }
.footer-notes > span { font-size: 11px; letter-spacing: 1px; }
.guide-item p { font-size: 12px; }
.guide-item h3 { font-size: 14px; }
.guide-item > span { font-size: 10px; }
/* 详情 */
.dialog-close { font-size: 12px; }
.detail-kicker { font-size: 11.5px; }
.detail-fact dt { font-size: 11.5px; }
.detail-fact dd { font-size: 14.5px; }
.detail-description { font-size: 14px; }
.detail-subsection h4 { font-size: 11.5px; }
.detail-chips .mini-tag { font-size: 11.5px; }
.subject-line-label { font-size: 11px; }
.coll-head-label { font-size: 11px; }
.coll-head-count { font-size: 12px; }
.coll-tag { font-size: 11.5px; }
.coll-group-label { font-size: 11px; }
.coll-note { font-size: 12px; }
.fact-hint { font-size: 11px; }
.metric-card h4, .metric-card > span { font-size: 11px; }
.metric-card p, .metric-card strong { font-size: 15px; }
.detail-metrics > p, .metric-note { font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.history-block .metric-note { font-size: 12.5px; }
.history-year { font-size: 11.5px; }
.history-year select { font-size: 13px; }
.detail-source > span { font-size: 11px; }
.detail-source > p { font-size: 13px; }
.detail-source-note { font-size: 12.5px; }
.detail-toolbar button, .detail-toolbar a { font-size: 12px; }
.about-content > p:not(.eyebrow) { font-size: 13.5px; }
.state-panel p { font-size: 13px; }

/* 学科分区：一个体系一行，一次全列出来（2026-10-14 由「单个下拉 + 一张卡片」改）。
   为什么不再用「一次只显示一条」的下拉：一本刊 JCR 是 Q1、中科院是几区，本该并排看，
   原来却要开合下拉、记住上一个值。现在每行自己带一个分区，只在**该体系有多个学科**时
   才把学科名做成下拉（ADVANCED MATERIALS 的 JCR 有 6 个类别），选完只换本行。
   列的取舍见 app.js 里 categoryBlock 的注释：整块没有值的列不渲染。 */
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cat-head h4 { margin: 0; }
.cat-count { font: 10.5px/1.7 var(--mono); letter-spacing: .5px; color: var(--muted); }
.cat-table { margin-top: 10px; border-top: 1px solid var(--line); }
.cat-row { display: grid; gap: 3px 14px; align-items: center; padding: 9px 0;
  grid-template-columns: minmax(96px, 122px) minmax(0, 1fr) 62px; }
.cat-table.cat-has-rank .cat-row { grid-template-columns: minmax(96px, 122px) minmax(0, 1fr) 62px minmax(96px, 116px); }
.cat-row + .cat-row { border-top: 1px solid #c6cdbd; }
.cat-row-head { padding: 5px 0; }
.cat-row-head span { font-size: 10px; line-height: 1.6; letter-spacing: .6px; color: var(--muted); }
.cat-scheme { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.cat-subject { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat-sub-zh { font-size: 13.5px; line-height: 1.5; }
.cat-sub-en { font-size: 11px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.cat-select { width: 100%; max-width: 360px; min-width: 0; border: 1px solid var(--line);
  background: var(--paper-light); min-height: 32px; padding: 5px 22px 5px 8px;
  font-size: 12.5px; line-height: 1.5; }
.cat-select:hover { border-color: var(--ink); }
.cat-q { display: inline-flex; align-items: center; gap: 5px; }
.cat-q-value { font: 600 14px/1.4 var(--mono); }
.cat-q-value.quartile-value { color: var(--clay); }
.cat-top { font-size: 9.5px; line-height: 1.5; letter-spacing: .4px; color: var(--clay); border: 1px solid var(--clay); padding: 0 4px; }
.cat-rank { font: 12px/1.5 var(--mono); color: var(--ink); }
.cat-rank .cat-pct-inline { display: block; font-size: 11px; color: var(--muted); }
.cat-block .metric-note { margin-top: 10px; }

/* 「按年」块里选定年份后展开的各学科分区（2026-10-14 加）。
   与上面「学科分区」块共用 .cat-table 那一套行样式，只是标题低一级（h5）、
   并且随年份下拉整块重画。该年没有明细时留一句说明，不留空白。 */
.history-cats { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.history-cats:empty { display: none; }
.history-cats .cat-head { margin: 0; }
.history-cats .cat-head h5 { margin: 0; font: 10px/1.7 var(--mono); letter-spacing: 1.2px;
  color: var(--muted); text-transform: uppercase; }
.history-cats .cat-table { margin-top: 8px; }
.history-cats .metric-note { margin: 9px 0 0; }
.history-cats .metric-note.cat-absent { color: var(--muted); }

@media (max-width: 600px) {
  /* 窄屏两列：学科那行仍是整行。最小列宽 140px —— 390px 下刚好两列，
     字挤不下去就整列换行，不再压成「只剩一个箭头」的下拉。 */
  .filter-fields { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .filter-item select { font-size: 12.5px; }
  #subject-scheme { font-size: 11.5px; min-height: 32px; }
  #subject-search, #subject-sort { font-size: 12.5px; }
  .list-column-labels { font-size: 10px; }
  .row-index { font-size: 16px; }
  .journal-name { font-size: 23px; }
  .journal-english { font-size: 14.5px; }
  .journal-meta { font-size: 11px; }
  .journal-issn { font-size: 11.5px; }
  .mini-tag { font-size: 10px; }
  .fact-chip b { font-size: 11.5px; }
  .detail-button { font-size: 11.5px; }
  .page-caption { font-size: 10px; }
  .result-summary { font-size: 11.5px; }
  #result-query { font-size: 12.5px; }
  #active-filters button, #active-filters span { font-size: 11px; }
  .data-notice p { font-size: 12px; }
  .footer-notes p { font-size: 11px; }
  .footer-notes > span { font-size: 10px; }
  .detail-kicker { font-size: 11px; }
  .detail-fact dt { font-size: 10.5px; }
  .detail-fact dd { font-size: 13px; }
  .detail-description { font-size: 13px; }
  .coll-tag { font-size: 11px; }
  .coll-group-label { font-size: 10.5px; }
  .metric-card p, .metric-card strong { font-size: 14px; }
  .detail-metrics > p, .metric-note { font-size: 12px; }
  .detail-toolbar button, .detail-toolbar a { font-size: 11.5px; }
  .detail-source > p { font-size: 12.5px; }
  .about-content > p:not(.eyebrow) { font-size: 13px; }
  /* 窄屏「学科分区」的计数（「5 个体系 · 19 条学科 · 3 行可切换」）在 390px 下正好顶到
     右边缘，差几像素就溢出 —— 让它自己占一行，别和标题挤。 */
  .cat-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  /* 学科分区窄屏：表头撤掉，一行折成三层 —— 第一层「体系 + 分区」（对齐两端），
     第二层学科（占满），第三层名次。不做横向滚动：全站没有一处靠横滑看内容。 */
  .cat-row, .cat-table.cat-has-rank .cat-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "scheme quartile"
      "subject subject"
      "rank rank";
    gap: 4px 10px;
  }
  .cat-row-head { display: none; }
  .cat-scheme { grid-area: scheme; }
  .cat-subject { grid-area: subject; }
  .cat-q { grid-area: quartile; justify-self: end; }
  .cat-rank { grid-area: rank; }
  .cat-rank .cat-pct-inline { display: inline; margin-left: 8px; }
  .cat-select { max-width: none; }
}

/* ===============================================================
   口径说明改到数值之后（2026-10-14）
   原来 metricGroup 把口径说明排在指标卡**前面**：「评价指标」那段五行小字挡在
   首屏，打开卡片先读到的是解释，影响因子反而被推到折线以下。现在统一排到数值之后，
   这一节只补它需要的上间距 —— 指标卡自带 border-bottom，说明紧贴会像卡片的附属行。
   =============================================================== */
.metric-grid + .metric-note { margin: 15px 0 0; }
/* 说明现在跟在数值后面，与下一段（学科分区 / 学科归属）之间要有段落感 */
.detail-subsection > .metric-note + .metric-subsection,
.detail-subsection > .metric-note + .detail-subsection { margin-top: 22px; }

