/* MS Archive — 档案库风格：瑞士国际主义 / 卡片目录。1px 边框、无阴影、无渐变、单一强调色
   （唯一的例外是精选星标的金色 --star，见「精选星标」一节）。 */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-mute: #6b6b6b;
  --border: #dcd9d3;
  --accent: #8b2500;
  --ok: #2d6a4f;
  --warn: #9c6b00;
  --zebra: #fafaf9;
  --star: #b8860b;
  --wrap: 1480px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* {box-sizing: border-box;}
html {-webkit-text-size-adjust: 100%;}
body {margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;}
a {color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px;}
a:hover {color: var(--accent); text-decoration-color: var(--accent);}
h1, h2, h3 {font-size: 15px; font-weight: 600; margin: 0;}
p {margin: 0 0 0.6rem;}
/* 行内代码在 .md 之外也要像代码：条目字段格里只走行内 Markdown（容器没有 .md） */
code, pre {font-family: var(--mono);}
.mono {font-family: var(--mono); font-size: 12px;}
.dim {color: var(--text-mute);}
.ok {color: var(--ok);}
.warn {color: var(--warn);}
.lede {color: var(--text);}
/* 行内说明：一个 i，悬停 / 键盘聚焦出气泡。只放「不说会误操作」的补充，
   页面正文该讲清楚的仍然讲清楚，不拿它藏教学段落。 */
.info-tip {position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-left: 6px; border: 1px solid currentColor; border-radius: 50%;
  color: var(--text-mute); font: italic 10px/1 Georgia, "Times New Roman", serif;
  cursor: help; vertical-align: 1px;}
.info-tip:hover, .info-tip:focus-visible {color: var(--accent);}
.info-tip:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.info-tip-pop {position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%);
  width: max-content; max-width: 260px; padding: 6px 8px; background: var(--text); color: var(--surface);
  font: 400 11px/1.55 var(--sans); text-align: left; opacity: 0; visibility: hidden; pointer-events: none;}
.info-tip:hover .info-tip-pop, .info-tip:focus .info-tip-pop {opacity: 1; visibility: visible;}
/* 靠近边缘时改成向左/右展开，别把气泡顶出视口 */
.media-note .info-tip-pop, .panel-head .info-tip-pop {left: -4px; transform: none;}
.search-scope .info-tip-pop {left: auto; right: -4px; transform: none;}
@media (max-width: 640px) {
  .info-tip-pop {left: auto; right: -4px; transform: none; max-width: 220px;}
}
/* ---------------- 头部 ---------------- */
.site-head {background: var(--surface); border-bottom: 1px solid var(--border);}
.head-row {display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 32px 14px; max-width: var(--wrap); margin: 0 auto;}
/* 内页：站名 + 「开发版本 / 非资源站」两个标记（原来它们独占一条 41px 高的通知栏，
   条目页首屏的每一像素都要留给主图，见 main.js 的 fitHero）。首页那条栏保留。 */
.head-brand {display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; gap: 8px 12px; min-width: 0;}
.head-flags {display: inline-flex; align-items: center; gap: 6px;}
.brand {display: inline-flex; align-items: center; gap: 9px; text-decoration: none;}
.brand-text {display: inline-flex; align-items: baseline; gap: 10px;}
/* 品牌图形标志（软盘剪影，几何来自 assets/brand/mark.svg） */
.brand-mark {display: block; flex: 0 0 auto;}
/* 开发版本标记：外框区分，正式部署后自动消失 */
.flag-dev {background: none; color: var(--accent); border: 1px solid var(--accent); padding: 0 6px;}
.brand:hover {color: var(--text);}
.brand-en {font-size: 17px; font-weight: 600; letter-spacing: 0.01em;}
.brand-zh {color: var(--text-mute); font-size: 13px;}
.search {display: flex; flex: 0 1 360px; border: 1px solid var(--border); background: var(--surface);}
.search input {flex: 1; border: 0; padding: 7px 10px; font-size: 13px; font-family: var(--sans); background: transparent; color: var(--text); outline: none;}
.search button {border: 0; border-left: 1px solid var(--border); background: var(--zebra); color: var(--text-mute); padding: 0 12px; cursor: pointer; font-size: 14px;}
.search:focus-within {border-color: var(--accent);}
/* 搜索页空状态：页面中央只留一个输入框，别再写一段「我们搜哪些字段」的导语 */
.search-page.is-search-home {display: flex; flex-direction: column; justify-content: center; min-height: 52vh;}
.search-page.is-search-home .search {flex: none;}
.search-lg {flex: 0 1 680px; width: min(680px, 100%); margin: 18px 0 10px; border-color: var(--text);}
.search-lg input {padding: 12px 14px; font-size: 15px;}
.search-lg button {padding: 0 20px; font-size: 13px;}
.search-result-head {display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px;}
/* 用户内容页（search/?user=）：标题下只留计数，不再重复搜索页那套结果头 */
.user-content-meta {display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -4px 0 4px; color: var(--text-mute);}
.user-content-meta strong {color: var(--text); font-weight: 600;}
.search-user-list {list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px;}
.search-user-list .su-name {color: #1e5aa8; text-decoration: none; border-bottom: 1px solid rgba(30, 90, 168, .35);}
.search-user-list .su-name:hover {color: var(--accent); border-bottom-color: currentColor;}
.search-user-list .su-site {margin-left: 2px; color: var(--text-mute); text-decoration: none;}
.search-user-list .su-site:hover {color: var(--accent);}
.search-stats {margin: 0; color: var(--text-mute);}
.search-stats strong {color: var(--text); font-weight: 600;}
.search-scope {display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--text-mute);}
.empty-actions {display: flex; justify-content: center; gap: 8px; margin: 12px 0 0;}
/* 顶栏里的导航分隔线与通知条底色**不设 max-width**：线和底色要铺满整宽，内容再用 padding
   推到 --wrap 的边界上。早先这两条和正文一样用 max-width: var(--wrap) + margin: 0 auto，
   在比 --wrap（1480px）宽的屏幕上，分隔线两端各缩进一截、通知条也短一截，而 header 的白底
   与它自己的下边框却是整宽的 —— 于是顶部两边看起来像被切掉了两块。
   max(…, (100% - --wrap)/2 + …) 在窄屏（100% < --wrap 时算出负数）自动退回原来的 24px / 32px，
   宽屏则正好落在正文左边缘上。≤860px 那条媒体查询里的 20px 依旧生效。 */
.nav {display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--border); padding: 0 max(24px, calc((100% - var(--wrap)) / 2 + 24px));}
.nav a {padding: 10px 13px; text-decoration: none; font-size: 13px; color: var(--text); border-bottom: 2px solid transparent;}
.nav a:hover {color: var(--accent); border-bottom-color: var(--accent);}
.nav a[aria-current="page"] {border-bottom-color: var(--accent); color: var(--accent);}
.notice {display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-mute); background: var(--zebra); border-top: 1px solid var(--border); padding: 9px max(32px, calc((100% - var(--wrap)) / 2 + 32px));}
.flag {font-family: var(--mono); font-size: 11px; color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; letter-spacing: 0.04em;}
/* ---------------- 主体与页脚 ---------------- */
.site-main {max-width: var(--wrap); margin: 0 auto; padding: 28px 32px 56px; min-height: 60vh;}
.site-foot {border-top: 1px solid var(--border); background: var(--surface);}
/* 蜜标：页脚里那个给批量采集器准备的隐藏链接（见 layouts/default.php）。
   用「移出视口」而不是 display:none —— 无头浏览器会跳过 display:none 的元素，
   而 off-screen 的链接它照样会去跟。真人看不到，也拿不到焦点（tabindex="-1"）。 */
.trap {position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;}
/* 页脚两行、左对齐：第一行收录规模，第二行版权 + 合规链接同行。
   早先是整体居中的，左右两片空白比内容还显眼；左对齐后跟正文同一条左边线。
   行内链接不另设颜色：全局 a 规则给的是正文色 + 浅下划线，正好从灰色元信息里跳出来。
   （免责声明 / 交流群 / 缓存时间已从这里移走或删掉） */
.foot-meta {display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: var(--wrap); margin: 0 auto; padding: 22px 32px; font-family: var(--mono); font-size: 11px; color: var(--text-mute);}
/* 版权与合规链接同行、字号比上面的机器可读信息大一点：11px 的中文链接几乎读不出来，
   而合规信息恰恰要能一眼看到 */
.foot-copy {font-size: 12px;}
.foot-group {font-size: 12px;}
.foot-group a {font-weight: 600;}
.foot-police-icon {display: inline-block; width: 18px; height: 20px; margin-right: 4px; vertical-align: -4px;}
.page-title {font-size: 16px; font-weight: 600; margin-bottom: 6px;}
/* RSS 订阅入口：只给一个短标签，订阅动作本身自明；悬停/聚焦才用强调色。
   feed-head 用在图鉴、文章列表的标题行，hb-links 用在首页区块标题行。 */
.feed-head {display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px;}
.feed-head .page-title {margin-bottom: 0;}
.feed-link {flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  text-decoration: none; border: 1px solid var(--border); padding: 1px 7px; white-space: nowrap;}
.feed-link:hover, .feed-link:focus-visible {border-color: var(--accent); color: var(--accent);}
.hb-links {display: inline-flex; align-items: baseline; gap: 12px;}
/* 归档页的标题行：标题 + 数量，一条底线把内容和导航分开。不再在下面补一句
   「按××归档」—— 列表本身已经把这件事说完了。 */
.page-head {display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px;}
.page-head .page-title {margin: 0;}
.page-count {color: var(--text-mute);}
.intro {color: var(--text-mute); margin-bottom: 14px; max-width: 72ch;}
/* ---------------- 首页 ---------------- */
.home-intro {border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 32px; text-align: center;}
.hi-site {font-family: var(--mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;}
.hi-title {font-size: 16px; font-weight: 600; margin-bottom: 8px;}
.hi-decl {color: var(--text-mute); margin-bottom: 8px;}
.hi-decl strong {color: var(--text);}
.hi-stat {color: var(--text-mute); margin: 0;}
.home-block {margin-bottom: 40px;}
.hb-head {display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px;}
.hb-title {font-size: 14px;}
.hb-more {font-family: var(--mono); font-size: 12px; color: var(--text-mute);}
.card-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 18px; align-items: start;}
/* 首页「最新收录」宽屏六栏：1480px 下每张约 230px、1280px 下约 190px，
   卡片回到「扫一眼能看很多条」的尺寸；中屏逐级降到 5 / 4 / 3 栏，手机两栏。
   首页最多只放两行（12 条），不再用 18 条拉成三行。 */
.card-grid.cols-6 {grid-template-columns: repeat(6, minmax(0, 1fr));}
@media (max-width: 1279px) {.card-grid.cols-6 {grid-template-columns: repeat(5, minmax(0, 1fr));}}
@media (max-width: 1023px) {.card-grid.cols-6 {grid-template-columns: repeat(4, minmax(0, 1fr));}}
@media (max-width: 819px)  {.card-grid.cols-6 {grid-template-columns: repeat(3, minmax(0, 1fr));}}
/* 首页「最新文章」沿用文章列表卡，但限制单卡宽度：一两篇时不会拉成整屏大白条；
   两篇并排，窗口不够宽就上下排，左图右文不会被压扁 */
.article-list.home-articles {display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 0;}
.article-list.home-articles > .article-card {flex: 0 1 590px; min-width: 0;}
.card {display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--border); background: var(--surface);}
.card:hover {border-color: var(--accent); color: var(--text);}
/* 卡片封面按图片实际比例显示（不裁切、不强制 3:4 画幅）：
   同一个 grid 里各行高度会不一样，这是「照原比例列条目」的代价，也正是想要的效果。
   max-height 只兜极端长条（例如书脊扫描），配合 contain 只是等比缩小，不裁切。 */
.card-media {position: relative; overflow: hidden; background: var(--zebra);}
.card-media .pic, .card-media .placeholder {display: block;}
.card-media .pic img {max-height: 480px; object-fit: contain;}
.card-media .placeholder {aspect-ratio: 4 / 3;}
.card-body {padding: 10px 13px 13px; border-top: 1px solid var(--border);}
.card-title {font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 3px;}
.card-sub {font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin: 0 0 4px; line-height: 1.4;}
.card-id {font-family: var(--mono); font-size: 11px; color: #9a968e; margin: 0;}
.brand-strip {display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;}
.brand-tile {display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--surface); padding: 14px 16px; text-decoration: none;}
.brand-tile:hover {border-color: var(--accent); color: var(--text);}
.bt-name {font-weight: 600; font-size: 14px;}
.bt-en {font-family: var(--mono); font-size: 11px; color: var(--text-mute);}
.bt-count {font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 6px;}
.timeline {display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; padding-bottom: 10px; border-bottom: 1px solid var(--border);}
.tl-item {display: flex; flex-direction: column; align-items: center; text-decoration: none; min-width: 30px;}
.tl-bar {width: 100%; background: var(--border); min-height: 3px;}
.tl-item:hover .tl-bar {background: var(--accent);}
.tl-year {font-family: var(--mono); font-size: 9px; color: var(--text-mute); margin-top: 4px; transform: rotate(-45deg);}
/* ---------------- 图鉴：侧栏筛选与工具栏 ---------------- */
.catalog-head {margin-bottom: 20px;}
.catalog-body {display: flex; gap: 32px; align-items: flex-start;}
.facets {flex: 0 0 260px; background: var(--surface); border: 1px solid var(--border);}
/* 「筛选」折叠条只在手机上出现（规则在文件末尾的 ≤860px 媒体块里）；
   放在这里是因为媒体块里的规则要能盖住它，同优先级下靠后的才生效。 */
.facets-sum {display: none;}
.active-filters {border-bottom: 1px solid var(--border); padding: 13px 15px; background: var(--zebra);}
.af-head {display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px;}
.af-head a {font-family: var(--mono); font-size: 11px;}
.af-chip {display: inline-block; font-size: 12px; border: 1px solid var(--border); padding: 1px 7px; margin: 2px 2px 0 0; text-decoration: none; background: var(--surface);}
.af-chip:hover {border-color: var(--accent);}
.facet-group {border-bottom: 1px solid var(--border);}
.facet-group:last-child {border-bottom: 0;}
.facet-title {width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 12px 15px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; font-family: var(--sans); text-align: left;}
.facet-count {font-family: var(--mono); font-size: 11px; color: var(--text-mute); font-weight: 400;}
.facet-body {padding: 0 15px 14px; max-height: 320px; overflow-y: auto;}
.facet-more {margin-top: 6px;} .facet-more summary {font-size: 11px; color: var(--accent); cursor: pointer; padding: 3px 0;} .facet-more summary:hover {text-decoration: underline;}
.facet-title-static {cursor: default;}
.type-links {display: flex; gap: 6px; flex-wrap: wrap;}
.type-link {font-family: var(--mono); font-size: 12px; color: var(--text-mute); text-decoration: none; border: 1px solid var(--border); padding: 5px 12px; background: var(--surface);}
.type-link:hover {color: var(--accent); border-color: var(--accent);}
.type-link.is-on {color: var(--surface); background: var(--text); border-color: var(--text);}
.facet-opt {display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer;}
.facet-opt input {margin: 0; flex: 0 0 auto; width: 15px; height: 15px;}
.fo-label {flex: 1;}
.fo-count {color: var(--text-mute); font-size: 11px;}
.catalog-main {flex: 1; min-width: 0;}
.toolbar {display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px;}
.tb-count {color: var(--text-mute);}
.tb-actions {display: flex; gap: 26px; flex-wrap: wrap; align-items: center;}
.tb-group {display: flex; gap: 2px;}
.tb-group + .tb-group {border-left: 1px solid var(--border); padding-left: 24px;}
.tb-link {font-family: var(--mono); font-size: 12px; color: var(--text-mute); text-decoration: none; border: 1px solid var(--border); padding: 5px 12px; background: var(--surface);}
.tb-link:hover {color: var(--accent); border-color: var(--accent);}
.tb-link.is-on {color: var(--surface); background: var(--text); border-color: var(--text);}
.empty {border: 1px dashed var(--border); padding: 30px; text-align: center; color: var(--text-mute);}
.table-wrap {overflow-x: auto; border: 1px solid var(--border); background: var(--surface);}
.item-table {width: 100%; border-collapse: collapse; font-size: 13px;}
.item-table th {position: sticky; top: 0; background: var(--surface); z-index: 1; text-align: left; font-weight: 600; font-size: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;}
.item-table td {padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top;}
.item-table tbody tr:nth-child(even) {background: var(--zebra);}
.item-table tbody tr:hover {background: #f1efe9;}
.th-sort {text-decoration: none; color: var(--text);}
.th-sort:hover, .th-sort.is-on {color: var(--accent);}
.c-thumb {width: 52px;}
/* 列表缩略图也按图片实际比例：宽度固定 36px、高度自适应，竖图自然高一点、横图矮一点，
   不再统一裁成 36×48。max-height 只是防止极端长条把整行撑爆（配合 contain 也不裁切）。
   占位符仍给固定 36×48，免得没图的条目行塌成一条线。 */
.c-thumb .pic {display: block; width: 36px;}
.c-thumb .pic img {width: 36px; height: auto; max-height: 72px; object-fit: contain;}
.c-thumb .placeholder {display: block; width: 36px; height: 48px;}
.c-id {font-family: var(--mono); font-size: 11px; white-space: nowrap;}
.c-title {min-width: 160px;}
.row-title {text-decoration: none; font-weight: 600;}
.row-sub {display: block; font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 2px;}
.c-version, .c-brand, .c-region, .c-media, .c-pack, .c-edtype {color: var(--text-mute);}
.c-year {font-family: var(--mono); font-size: 11px; color: var(--text-mute); white-space: nowrap;}
.c-version .dim {color: #9a968e;}
.pagination {display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px;}
.pg-meta {color: var(--text-mute);}
.pg-links {display: flex; gap: 5px; align-items: center; flex-wrap: wrap;}
.pg-btn, .pg-num {font-family: var(--mono); font-size: 12px; border: 1px solid var(--border); padding: 5px 11px; text-decoration: none; background: var(--surface);}
.pg-num.is-cur {background: var(--text); color: var(--surface); border-color: var(--text);}
.pg-btn.is-dis {color: var(--text-mute); border-color: transparent;}
.pg-ell {font-family: var(--mono); font-size: 12px; padding: 0 4px; color: var(--text-mute);}
.pic {display: block; position: relative;}
/* 图片默认按自身比例显示（宽度撑满容器、高度自适应），不裁切。
   需要固定画幅的上下文（卡片、列表缩略图、胶片条）各自覆写尺寸。 */
.pic img {display: block; width: 100%; height: auto;}
.wm {position: absolute; inset: 0; pointer-events: none; background-repeat: repeat;}
/* 占位符本身不定高：各上下文自己决定尺寸（卡片/列表缩略图/胶片条）
   定死 min-height 会把 36px 宽的列表缩略图撑成竖条。 */
.placeholder {position: relative; display: flex; align-items: center; justify-content: center; background: var(--zebra); border: 1px solid var(--border);}
.ph-inner {font-family: var(--mono); font-size: 11px; color: #c4c0b8; letter-spacing: 0.1em;}
/* ---------------- 条目页 ---------------- */
.breadcrumb {font-size: 11px; color: var(--text-mute); margin-bottom: 16px;}
.breadcrumb a {text-decoration: none;}
/* 前台的管理员条：只有后台已登录时才渲染（见 public/index.php 的条目路由），匿名访客的 HTML 里没有它 */
.admin-strip {display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 14px;
  padding: 6px 10px; border: 1px solid var(--warn); border-left-width: 3px; border-radius: 3px;
  background: #fdf8ec; font-size: 12px;}
.admin-strip .as-tag {font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  color: #fff; background: var(--warn); padding: 2px 6px; border-radius: 2px;}
.admin-strip .as-link {text-decoration: none; color: var(--warn); border-bottom: 1px solid currentColor;}
.admin-strip .as-link:hover {color: var(--accent); border-bottom-color: var(--accent);}
.item-head {border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 22px;}
.item-heading {display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 32px;}
.item-heading-main {flex: 1 1 auto; min-width: 0;}
.item-heading .item-tools {flex: 0 1 540px; justify-content: flex-end; margin: 3px 0 0;}
.item-title {font-size: 22px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere;}
.item-title-en {font-family: var(--mono); font-size: 13px; color: var(--text-mute); margin: 3px 0 10px; overflow-wrap: anywhere;}
.item-meta {display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-mute);}
.item-meta .id {color: var(--text);}
.item-meta .sep {color: var(--border);}
/* 图像提供者与最后编辑者都收在条目标识这一行；人名用蓝色，和灰色元信息区分开。 */
.item-meta .credit-name {color: #1e5aa8;}
.item-meta a.credit-name {text-decoration-color: rgba(30, 90, 168, .35);}
.item-meta a.credit-name:hover {color: var(--accent);}
/* 个人网站不再占昵称的链接位：退成名字后面的小箭头 */
.item-meta .credit-site {margin-left: 2px; color: var(--text-mute); text-decoration: none; font-size: .92em;}
.item-meta .credit-site:hover {color: var(--accent);}
.item-meta .sc-sep {color: var(--text-mute);}
/* 浏览量是一个整体，别在数字和「次浏览」之间折行 */
.item-meta .view-count, .article-meta .am-views {white-space: nowrap; font-variant-numeric: tabular-nums;}
/* 条目页顶部压缩：站头 150 + 面包屑 34 + 标题块 133 + AI 提醒条 62 + 关键信息 140 = 500 多像素，
   一屏（笔记本 ~800）就被吃掉一半，主图只剩半张脸（站长 2026-10-11 反馈）。
   这里逐块收紧、并把「关键信息」挪进右栏（见 .item-layout）—— 只动条目页，其他页面照旧。 */
.item .breadcrumb {margin-bottom: 10px;}
/* 面包屑 + 管理员条同一行（管理员条原本独占一行 45px，那一行对首屏的主图来说太贵了） */
.item-top {display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px;}
.item-top .breadcrumb {margin-bottom: 0;}
.item-top .admin-strip {margin-bottom: 0;}
.item .item-head {padding-bottom: 10px; margin-bottom: 12px;}
.item .item-title-en {margin: 2px 0 6px;}
.item .item-meta {margin-bottom: 0;}
.item .ai-notice {padding: 5px 10px; margin-bottom: 12px; font-size: 11px; line-height: 1.5;}
.item .admin-strip {margin-bottom: 10px;}
/* 录入来源 = AI 识别：条目页顶部的提醒条（文案见 Repo\Source::AI_NOTICE） */
.ai-notice {border: 1px solid var(--border); background: var(--zebra); padding: 9px 12px; margin: 0 0 22px;
  font-size: 12px; color: var(--text-mute); line-height: 1.65;}
/* 「AI」小标签：前台提醒条与后台提醒共用（后台页面同样加载了本文件） */
.ai-mark {display: inline-block; font-family: var(--mono); font-size: 9px; line-height: 1.7; letter-spacing: .08em;
  color: #fff; background: var(--warn); padding: 0 4px; margin-right: 6px; vertical-align: 1px;}
/* 转录 / 备注这类容易被识别错的段落标题旁的标签，hover 出完整提醒 */
.ai-chip {display: inline-block; font-family: var(--mono); font-size: 9px; line-height: 1.6; letter-spacing: .06em;
  color: var(--warn); border: 1px solid var(--warn); padding: 0 4px; margin-left: 8px; vertical-align: 2px;
  font-weight: 400; cursor: help;}
/* 短介质清单与短内容物可以并排；任一边内容较多时由模板加 .is-stacked 改为通栏。 */
.item-physical {display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px 44px; margin-bottom: 30px; align-items: start;}
.item-physical.is-single, .item-physical.is-stacked {grid-template-columns: minmax(0, 1fr);}
.item-physical.is-stacked {gap: 26px;}
.item-physical .item-section {min-width: 0; margin-bottom: 0;}
@media (max-width: 900px) {
  .item-physical {grid-template-columns: 1fr; gap: 26px;}
}
.item-layout {display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 44px; margin-bottom: 28px; align-items: start;}
.item-media {grid-column: 1; grid-row: 1;}
.item-main {grid-column: 2; grid-row: 1 / span 2;}
/* 来源信息放左栏第二行：主图下面不再是一片空背景，右栏也短三行。 */
.item-colophon {grid-column: 1; grid-row: 2; align-self: start; min-width: 0; margin-top: 24px;}
@media (min-width: 1025px) {
  /* 右栏文字离窗口右边留一点余量；1280 下约 50px，宽屏更多。 */
  .item-main {padding-right: 12px;}
}
/* 左栏装得下 34 张缩略图也不许把列撑开：缩略图条是 nowrap 的，min-content 有 3000 多像素，
   少了 min-width: 0，网格项的自动最小尺寸会按内容算，整列被撑宽、大图跟着放大成 3000px 宽。 */
.item-media {min-width: 0;}
/* 右栏 = 「关键信息」摘要 + 事实卡。**必须包一层**：摘要和事实卡要跟主图同处一行 ——
   若把摘要单独放进网格第 1 行、事实卡放第 2 行，主图一高就把事实卡整体压下去（行高被主图撑开）。
   桌面端它跨两行，第二行左侧留给「收藏与收录」（.item-colophon）。
   手机上 .item-main 用 display: contents 拆开，让摘要回到主图前面（见 ≤1024px 那一档）。 */
.item-main {min-width: 0;}
.item-facts {min-width: 0;}
/* 缩略图条 = 换大图的选择器，紧贴主图下面（左栏里）。**一行横向胶片**、左右滑，不换行铺开：
   铺开的话图一多左栏就比右边的事实卡高好几百像素，条目信息之间会冒出大片空白
   （横向滑则左栏永远只多这一条的高度）。
   早期把它挪出去横跨两栏，桌面端就成了「选择器吊在整张参数表下面」，换图得先滑过去。
   两层结构：外面这层只管定位（两端箭头、吸底），真正滚动的是里面的 .strip-track ——
   箭头必须待在外层：绝对定位的子元素会跟着滚动内容一起走，左箭头滚出屏幕、右箭头飘到中间。 */
.gallery.media-strip {position: relative; padding: 6px 10px;
  border-top: 1px solid transparent;   /* 手机吸底态要显示这条线，常态留透明占位、高度才一致 */
}
.media-strip .strip-track {display: flex; flex-wrap: nowrap; gap: 10px;
  overflow-x: auto; scrollbar-width: thin;}
.media-strip .g-item {flex: 0 0 auto;}
/* 条子一行放不下时两端的翻页箭头（main.js 按需插入，见那里的说明）：
   鼠标悬停或键盘聚焦到条子上才出现，平时不挡缩略图；到头的那一侧自动失效。
   只在真有 hover 的设备上出现 —— 手机上横向滑动更顺手，吸底后条子也不宽。
   .is-flat 是「图不多，一行放得下」，由 main.js 标上。 */
.media-strip .strip-nav {display: none;}
@media (hover: hover) {
  .media-strip .strip-nav {position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    display: flex; align-items: center; justify-content: center; width: 30px; height: 46px; padding: 0;
    border: 1px solid var(--border); background: rgba(247, 246, 243, .95); color: var(--text);
    font-family: var(--sans); font-size: 16px; line-height: 1; cursor: pointer;
    opacity: 0; transition: opacity .15s;}
  .media-strip .strip-nav.prev {left: 2px;}
  .media-strip .strip-nav.next {right: 2px;}
  .media-strip:hover .strip-nav, .media-strip:focus-within .strip-nav {opacity: 1;}
  .media-strip .strip-nav[disabled] {opacity: 0; pointer-events: none;}
  .media-strip.is-flat .strip-nav {display: none;}
}
/* 吸底态：自然位置一旦没完整露在屏幕上，就固定到窗口底部（桌面端同样吸 —— 竖图/矮窗口下
   主图会把选择器顶到折线以下，换图得先滑过去）。只在条目主体还在屏幕上、页脚没露面时吸。
   桌面端 main.js 还会把 left/width 对齐到左栏，所以这里的 left/right: 0 是给手机通栏兜底。 */
.media-strip.is-docked {position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(247, 246, 243, .97); border-top-color: var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .07);}
/* 桌面端吸底时缩一档（104 → 72px）：它压在窗口最下沿，矮窗口上本来就没多少地方留给主图。
   占位高度由 main.js 按「未吸底时的高度」撑住，所以缩小这一档不会让页面上下跳。
   手机上不缩（≤640 那档本来就是 88px，而且竖屏的条子要能点得准）。 */
@media (min-width: 641px) {
  .media-strip.is-docked {padding: 4px 10px;}
  .media-strip.is-docked .g-item .pic, .media-strip.is-docked .g-item .placeholder,
  .media-strip.is-docked .g-item .pic img {height: 72px;}
  .media-strip.is-docked .g-label {padding: 2px 6px;}
}
/* 缩略图条外面那层（main.js 包的，用来在吸底时顶住原来的位置）：常态就是普通块，不用给样式。 */
.hero {position: relative; margin: 0 0 12px;}
/* 详细页主图：按原图比例显示，不裁切、不强制画幅。
   max-height 由 main.js 按「首屏剩下的高度」给（照片整个放得下，见那里的 fitHero）——
   所以 .pic 要收缩到图片实际宽度（fit-content），窄了才居中，边框也贴着照片而不是空一截。 */
.hero .pic {display: block; width: fit-content; max-width: 100%; margin: 0 auto;
  border: 1px solid var(--border); background: var(--surface);}
.hero .placeholder {width: 100%; aspect-ratio: 3 / 2;}   /* 没图时的占位：宽度得自己给（.pic 是 fit-content） */
.hero .pic img {display: block; max-width: 100%; height: auto;}
.hero figcaption {font-size: 11px; color: var(--text-mute); margin-top: 8px;}
/* 附件的内容摘要：只在选中那张图有 description 时出现，跟着大图一起换。 */
.hero-desc {margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: var(--text-mute); white-space: pre-line;}
/* 主图上的「上一张 / 下一张」：悬停到图上（或键盘聚焦）才出现，平时不打扰看图。
   存在的理由：竖图 + 矮窗口时主图能占满整屏，缩略图条再怎么样也在折线以下 ——
   有了这对手柄，不必先去够条子就能换图（main.js 插入，只放在两张以上时）。
   必须挂在 <a> 外面：按钮不能嵌在链接里。 */
.hero-nav {position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; align-items: center; justify-content: center; width: 34px; height: 54px; padding: 0;
  border: 1px solid var(--border); background: rgba(247, 246, 243, .92); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .15s;}
.hero-nav.prev {left: 10px;}
.hero-nav.next {right: 10px;}
.hero:hover .hero-nav, .hero:focus-within .hero-nav {opacity: 1;}
/* 可放大元素：鼠标悬停给一点提示 */
.zoomable, .g-item, .ml-photo {position: relative;}
.zoomable {display: block;}
.zoomable::after {content: "⤢ 放大"; position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; background: rgba(26,26,26,.72); color: #fff; padding: 3px 7px; opacity: 0; transition: opacity .15s;}
.zoomable:hover::after {opacity: 1;}
/* 画廊：统一高度、宽度随图片比例伸缩（胶片条式），避免竖图横图互相裁切。
   「运行截图」区块用它默认的换行铺开；条目页的缩略图条（.gallery.media-strip，规则在上面）
   覆写成一行横向滑 —— 两个类一起写，才盖得住这里的 flex-wrap: wrap。 */
.gallery {display: flex; flex-wrap: wrap; gap: 10px;}
.g-item {text-decoration: none; border: 1px solid var(--border); background: var(--surface); cursor: pointer;}
/* 画廊就是大图选择器：当前选中的那张必须一眼看出来（点一下换大图，再点一下放大） */
.g-item.is-cur {border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: -3px;}
.g-item.is-cur .g-label {color: var(--accent);}
.g-item:hover .g-label {color: var(--text);}
.g-item.is-cur:hover .g-label {color: var(--accent);}
.g-item .pic, .g-item .placeholder {display: block; height: 104px; width: auto;}
.g-item .pic img {height: 104px; width: auto; max-width: 220px; object-fit: contain;}
.g-item .placeholder {width: 78px;}
.g-label {display: block; font-size: 10px; color: var(--text-mute); padding: 4px 7px; border-top: 1px solid var(--border);}
/* 「运行截图」区块：说明文字压在画廊上方，与下面缩略图贴紧一点 */
.shot-note {font-size: 12px; color: var(--text-mute); margin: 0 0 12px;}
/* 截图的说明是自由填写的一句话，常常比缩略图本身宽。不给约束的话 <a> 会被文字撑宽，
   缩略图右边就空出一块（包装图集的标签是「正面 / 背面」这种短词，所以一直没暴露）。
   width:0 + min-width:100% 让标签不参与自身宽度计算：盒子宽度由缩略图决定，文字在盒子内换行。 */
.shot-gallery .g-item {display: flex; flex-direction: column; align-items: flex-start;}
.shot-gallery .g-label {width: 0; min-width: 100%; white-space: normal;}
/* 说明长短不一，别让同一行的格子互相拉到一样高（短说明下面会留一条空白）；
   缩略图顶边靠 flex-start 对齐就够了 */
.shot-gallery {align-items: flex-start;}
/* 图片目录：条目页末尾的紧凑索引。主图条负责换图，这里负责「看全 + 看元数据」。
   缩略图用统一的 4:3 画框（contain，不裁切），文字只保留角色、说明、文件名与尺寸 / 体积 / 日期。
   桌面 190px 起排，最多 7 列；手机 3 列，长文件名与描述先让位给缩略图和角色。 */
.image-index {display: block;}
.ii-pagination {margin-top: 14px;}
.ii-summary {display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; user-select: none;}
.ii-summary::-webkit-details-marker {display: none;}
.ii-summary-title {display: flex; align-items: baseline; gap: 8px; width: 100%; margin: 0; font: inherit;}
.ii-summary:focus-visible {outline: 2px solid var(--accent); outline-offset: 3px;}
.ii-toggle {margin-left: auto; font-weight: 400; color: var(--text-mute);}
.ii-closed {display: none;}
.image-index:not([open]) .ii-open {display: none;}
.image-index:not([open]) .ii-closed {display: inline;}
.ii-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px;}
.ii-card {display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden;}
.ii-card:hover, .ii-card:focus-visible {border-color: var(--accent); color: var(--text);}
.ii-card:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.ii-thumb {position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--zebra); border-bottom: 1px solid var(--border);}
.ii-thumb .pic, .ii-thumb .placeholder {display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;}
.ii-thumb .pic img, .ii-thumb img.ii-pic {width: 100%; height: 100%; object-fit: contain;}
.ii-no, .ii-flag {position: absolute; top: 5px; z-index: 1; padding: 0 4px;
  font: 10px/1.7 var(--mono); background: rgba(26, 26, 26, .78); color: #fff;}
.ii-no {left: 5px;}
.ii-flag {right: 5px; background: var(--accent);}
.ii-body {display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; padding: 7px 8px 8px;}
.ii-role {font-size: 10px; line-height: 1.4; letter-spacing: .02em; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.ii-title {font-size: 12px; line-height: 1.35; font-weight: 600; word-break: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;}
.ii-file {font-size: 10px; line-height: 1.45; color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.ii-desc {font-size: 11px; line-height: 1.45; color: var(--text-mute);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;}
.ii-meta {display: flex; flex-wrap: wrap; margin-top: auto; padding-top: 2px; font-size: 10px; line-height: 1.45;
  color: var(--text-mute); font-variant-numeric: tabular-nums;}
.ii-meta > span + span::before {content: " · ";}
@media (max-width: 900px) {
  .ii-grid {grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;}
}
@media (max-width: 640px) {
  .ii-grid {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;}
  .ii-grid.is-few {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .ii-body {gap: 1px; padding: 5px 6px 6px;}
  .ii-role {font-size: 9.5px;}
  .ii-title {font-size: 11px; line-height: 1.3;}
  .ii-file {font-size: 9.5px;}
  .ii-desc {display: none;}
  .ii-meta {display: block; padding-top: 1px; font-size: 9.5px; line-height: 1.35;}
  .ii-size {display: block;}
  .ii-size::before {content: "" !important;}
  .ii-note, .ii-date {display: none;}
  .ii-no, .ii-flag {top: 3px; padding: 0 3px; font-size: 9px;}
  .ii-no {left: 3px;}
  .ii-flag {right: 3px;}
}
@media (max-width: 350px) {
  .ii-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .ii-size {display: inline;}
  .ii-size::before {content: " · " !important;}
}
.media-note {font-size: 11px; color: var(--text-mute); margin-top: 12px;}
.block-title {font-size: 14px; margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--border);}
/* ---------------- 条目页：关键信息速览与分组事实卡 ---------------- */
/* 「关键信息」摘要：桌面端在右栏顶部。不画格子 —— 跟下面的事实卡同一套「标签 / 值」排版，
   只把值放大加粗；flex 流式排，字段多一个少一个都不会留下空框。 */
.glance {margin-bottom: 32px;}
.glance .block-title {margin-bottom: 14px; padding-bottom: 6px;}
/* 摘要不再单独做成带框的表格：它跟下面的事实卡同一套「标签 / 值」排版，只是字号大一点。
   空单元格的问题也随之消失 —— 没有框，就没有「最后一格没填满」的缺口。 */
.glance-grid {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 34px; margin: 0;}
/* 5 个字段正好排一行：4 列会把「附件完整度」单独剩在下一行。 */
.glance-grid.count-5 {grid-template-columns: repeat(5, minmax(0, 1fr));}
@media (min-width: 1025px) and (max-width: 1179px) {
  .glance-grid, .glance-grid.count-5 {grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 900px) {
  .glance-grid, .glance-grid.count-5 {grid-template-columns: repeat(3, minmax(0, 1fr));}
}
.glance-item {background: none; padding: 0; border: 0; min-width: 0;}
.glance-item dt {font-size: 11px; color: var(--text-mute); margin-bottom: 3px;}
.glance-item dd {margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; word-break: break-word;}
.glance-item dd.mono {font-size: 13.5px;}
/* 桌面端事实卡分两列、每格一行：不再把 3–4 个字段塞进一屏，读起来松一点。
   两列是「分组」的列，不是「字段」的列 —— 每组仍按标签在上、值在下的顺序读。 */
.fact-groups {display: block; column-count: 2; column-gap: 56px;}
.fact-group {break-inside: avoid; margin: 0 0 38px;}
.fg-title {font-size: 12px; font-weight: 600; color: var(--text-mute); letter-spacing: 0.08em; padding-bottom: 7px; border-bottom: 1px solid var(--border); margin-bottom: 12px;}
.fact-grid {display: block; margin: 0;}
.fact {min-width: 0; padding: 11px 0 0;}
.fact dt {font-size: 11px; color: var(--text-mute); margin-bottom: 3px;}
.fact dd {margin: 0; font-size: 14.5px; line-height: 1.65; word-break: break-word;}
.fact dd.mono {font-size: 12.5px;}
.fact-details {min-width: 0;}
.fact-summary {display: flex; align-items: flex-start; gap: 12px; cursor: pointer; list-style: none;}
.fact-summary::-webkit-details-marker {display: none;}
.fact-summary:focus-visible {outline: 2px solid var(--accent); outline-offset: 3px;}
.fact-preview {flex: 1; min-width: 0; color: var(--text-mute); display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;}
.fact-toggle {flex: 0 0 auto; padding-top: 2px; color: var(--accent); white-space: nowrap;}
.fact-close {display: none;}
.fact-details[open] .fact-open {display: none;}
.fact-details[open] .fact-close {display: inline;}
.fact-details[open] .fact-preview {display: none;}
.fact-details[open] .fact-summary {justify-content: flex-end; margin-bottom: 6px;}
.fact-full {overflow-wrap: anywhere;}
.item-section {margin-bottom: 34px;}
/* 别名在文末单独一行：它常常很长，挤在「识别」里会把整组拉高。 */
.item-aliases .alias-line {margin: 0; font-size: 14px; line-height: 1.7;}
.media-list {list-style: none; padding: 0; margin: 0;}
.media-list li {display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px dotted var(--border);}
.media-list li:last-child {border-bottom: 0;}
.ml-seq {color: var(--text-mute); min-width: 28px;}
.ml-name {flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere;}
/* 逐张的信息各带小标题：正面 Part No.（标签面/包装）/ 内环 Part No.（数据面内圈）/
   内环信息（IFPI、产地等，可能多行）/ 卷标（盘上那串）/ 盘面标注（盘面自己写的字）。
   以前卷标与 Part No. 是两个没有标题的 mono 串，读者无从分辨。 */
.ml-fact {display: inline-flex; align-items: baseline; gap: 5px; min-width: 0;}
.ml-k {flex: 0 0 auto; font-size: 10.5px; color: var(--text-mute); letter-spacing: .02em;}
.ml-v {min-width: 0; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere;}
.ml-v.mono {color: var(--accent);}
/* 内环其他信息是多行文本（一行一条），别让浏览器把换行折叠掉 */
.ml-v-lines {white-space: pre-line;}
@media (max-width: 640px) {
  /* 手机：一行放不下三样，让它们换行、并让出 ml-name 的弹性宽度 */
  .media-list li {flex-wrap: wrap; row-gap: 4px;}
  .ml-name {flex: 1 0 100%; order: -1;}
  .ml-fact {white-space: normal;}
}
.ml-photo {flex: 0 0 auto; display: block; width: 52px; height: 52px; border: 1px solid var(--border); background: var(--zebra);}
.ml-thumb {width: 52px; height: 52px;}
.ml-thumb img {object-fit: contain !important;}
.ml-photo-none {display: flex; align-items: center; justify-content: center; color: #c4c0b8;}
/* 多介质（≥3 张）：一行一张盘。列只在该条目真有这项数据时才渲染（PHP 侧算 flag），
   所以软盘套装不会拖着一列空白的内环。手机上表格折成卡片：表头藏掉，每个单元格前用
   data-label 补回字段名，照片与序号/类型并排在上，其余逐行铺开。 */
.media-table-wrap {padding: 2px 14px 6px;}
.media-table {width: 100%; border-collapse: collapse; font-size: 12.5px;}
.media-table th {text-align: left; font-weight: 400; font-size: 10.5px; letter-spacing: .02em; color: var(--text-mute); padding: 0 10px 6px 0; border-bottom: 1px solid var(--border); white-space: nowrap;}
.media-table td {padding: 8px 10px 8px 0; border-bottom: 1px dotted var(--border); vertical-align: top;}
.media-table tr:last-child td {border-bottom: 0;}
.media-table .mt-seq {color: var(--text-mute); white-space: nowrap;}
.media-table td.mt-type {min-width: 96px;}
.media-table .mt-en {display: block; font-size: 10.5px; color: #b3aea4;}
.media-table td.mt-note {white-space: pre-line; max-width: 320px;}
.media-table .mt-empty {color: #c4c0b8;}
.media-table .mt-photo {width: 52px;}
.media-table .mt-ops {text-align: right; white-space: nowrap;}
.mt-thumb {width: 44px; height: 44px; border: 1px solid var(--border); background: var(--zebra); display: block;}
.mt-thumb img {object-fit: contain !important;}
@media (max-width: 700px) {
  .media-table-wrap {padding: 2px 12px 8px;}
  .media-table thead {display: none;}
  .media-table, .media-table tbody {display: block;}
  .media-table tr {display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px 12px; padding: 10px 0; border-bottom: 1px dotted var(--border);}
  .media-table tr:last-child {border-bottom: 0;}
  .media-table td {display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; flex: 1 0 100%; padding: 0; border: 0;}
  .media-table td::before {content: attr(data-label); color: var(--text-mute); font-size: 11px;}
  .media-table td.mt-photo {flex: 0 0 52px; display: block; padding-top: 2px;}
  .media-table td.mt-photo::before {content: none;}
  .media-table td.mt-seq, .media-table td.mt-type {flex: 0 0 auto; display: block; padding-top: 16px;}
  .media-table td.mt-seq::before, .media-table td.mt-type::before {content: none;}
  .media-table td.mt-type {flex: 1 1 auto; min-width: 0;}
  .media-table td.mt-note {max-width: none;}
  .media-table td.mt-ops {display: block; text-align: right;}
  .media-table td.mt-ops::before {content: none;}
}
.plain-list {list-style: none; min-width: 0; padding: 0; margin: 0;}
.plain-list li {min-width: 0; padding: 6px 0; border-bottom: 1px dotted var(--border); overflow-wrap: anywhere;}
.plain-list li:last-child {border-bottom: 0;}
/* 条目附件：公开列元数据，下载按钮在登录后才指向文件路由。 */
.attachment-note {font-size: 11px; margin: -4px 0 10px;}
.attachment-list {list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); background: var(--surface);}
.attachment-list li {display: flex; gap: 14px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px dotted var(--border);}
.attachment-list li:last-child {border-bottom: 0;}
.attachment-main {display: flex; gap: 10px; align-items: flex-start; min-width: 0;}
.attachment-ext {flex: 0 0 auto; border: 1px solid var(--border); padding: 2px 5px; font-size: 10px; color: var(--accent);}
.attachment-main strong {display: block; font-size: 13px; line-height: 1.45;}
.attachment-desc {margin: 3px 0 0; font-size: 12px; color: var(--text-mute); white-space: pre-line;}
.attachment-meta {margin: 4px 0 0; font-size: 10px; color: var(--text-mute); word-break: break-all;}
.attachment-btn {flex: 0 0 auto; white-space: nowrap;}
@media (max-width: 640px) {
  .attachment-list li {align-items: flex-start;}
  .attachment-btn {font-size: 11px; padding-left: 9px; padding-right: 9px;}
}
.transcript {border: 1px solid var(--border); background: var(--surface); padding: 16px 18px; font-size: 13px; line-height: 1.65;}
/* 长转录 / 备注：默认只露三行纯文本，展开后再看全文。用原生 <details>，无 JS 也能开合。 */
.tcard {border: 1px solid var(--border); background: var(--surface);}
.tcard-sum {display: flex; align-items: flex-start; gap: 20px; padding: 12px 14px; cursor: pointer; list-style: none;}
.tcard-sum::-webkit-details-marker {display: none;}
.tcard-preview {flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-mute);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;}
/* 系统要求按行预览：三行之外截掉，展开后是完整列表。 */
.tcard-preview-lines {white-space: pre-line; max-height: calc(1.7em * 3);}
.tcard .plain-list {padding: 0 14px 14px;}
.tcard-toggle {flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; padding-top: 1px;}
.tcard-toggle .tcard-close {display: none;}
.tcard[open] .tcard-toggle .tcard-open {display: none;}
.tcard[open] .tcard-toggle .tcard-close {display: inline;}
.tcard[open] .tcard-preview {display: none;}
.tcard[open] .tcard-sum {padding-bottom: 10px;}
.tcard .transcript {border: 0; background: none; padding: 0 14px 14px;}
.compare-table, .matrix-table {width: 100%; border-collapse: collapse; font-size: 13px;}
.compare-table th, .matrix-table th, .compare-table td, .matrix-table td {padding: 10px 14px; border: 1px solid var(--border); text-align: left;}
.compare-table th, .matrix-table th {background: var(--surface); font-size: 12px;}
.compare-table tr.is-cur td, .matrix-table tr.is-cur td {background: #f4efe8;}

/* ---------------- 条目对比（/compare/） ---------------- */
.btn {display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 13px; line-height: 1.2; text-decoration: none; cursor: pointer;}
.btn:hover {border-color: var(--text); color: var(--text);}
.btn-primary {background: var(--text); border-color: var(--text); color: var(--surface);}
.btn-primary:hover {background: var(--accent); border-color: var(--accent); color: var(--surface);}
.compare-picker {display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  margin: 14px 0 18px; padding: 12px; border: 1px solid var(--border); background: var(--surface);}
.cmp-pick {position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 240px; flex: 1 1 280px;}
.cmp-pick-box {position: relative;}
.cmp-pick input {width: 100%; box-sizing: border-box; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); padding: 8px 10px; font-size: 13px; font-family: var(--mono);}
.cmp-picked {display: flex; align-items: center; gap: 8px; min-height: 26px; margin-top: 4px; font-size: 11px;}
.cmp-pk-thumb {width: 38px; height: 38px; flex: 0 0 38px; background: var(--zebra); overflow: hidden;}
.cmp-pk-thumb img {width: 100%; height: 100%; object-fit: cover;}
.cmp-pk-text {display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3;}
.cmp-pk-text strong {font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;}
.cmp-pk-text .mono, .cmp-pk-empty {font-size: 10px; color: var(--text-mute);}
.cmp-results {position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 360px;
  overflow: auto; border: 1px solid var(--accent); background: var(--surface); box-shadow: 0 8px 22px rgba(0,0,0,.1);}
.cmp-results[hidden] {display: none;}
.cmp-result {display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px;
  border: 0; border-bottom: 1px dotted var(--border); background: none; color: var(--text);
  text-align: left; cursor: pointer; font: inherit;}
.cmp-result:last-child {border-bottom: 0;}
.cmp-result:hover, .cmp-result:focus-visible {background: var(--zebra); outline: none;}
.cmp-result img {width: 42px; height: 42px; object-fit: cover; flex: 0 0 42px; border: 1px solid var(--border);}
.cmp-result-text {display: flex; flex-direction: column; gap: 1px; min-width: 0;}
.cmp-result-text strong {font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.cmp-result-text span {font-size: 10px; color: var(--text-mute); font-family: var(--mono);}
.cmp-result-empty {margin: 0; padding: 10px; font-size: 12px; color: var(--text-mute);}
.cmp-form-actions {display: flex; gap: 8px; align-items: center; flex-wrap: wrap;}
.cmp-go {padding: 8px 18px;}
.cmp-swap {color: var(--text-mute);}
.cp-vs, .cmp-vs {font-size: 12px; color: var(--text-mute); padding: 0 2px 9px;}
.cmp-heads {display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px;
  align-items: stretch; margin: 18px 0 12px;}
.cmp-head, .cmp-one {display: flex; gap: 12px; align-items: center; min-width: 0;
  border: 1px solid var(--border); background: var(--surface); padding: 10px; text-decoration: none; color: inherit;}
.cmp-one {max-width: 560px;}
.cmp-cover {width: 72px; height: 72px; flex: 0 0 72px; background: var(--zebra); display: flex;
  align-items: center; justify-content: center; overflow: hidden;}
.cmp-cover img {width: 100%; height: 100%; object-fit: cover;}
.cmp-head-body {display: flex; flex-direction: column; gap: 2px; min-width: 0;}
.cmp-head-body strong {font-size: 14px; line-height: 1.35;}
.cmp-kicker {font-size: 11px; color: var(--text-mute);}
.cmp-mid {align-self: center; font-size: 12px; color: var(--text-mute); letter-spacing: .08em;}
.cmp-summary {margin: 12px 0 10px; font-size: 13px;}
.cmp-summary span {font-size: 12px;}
.cmp-only {display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 12px; cursor: pointer;}
.cmp-only input {margin: 0;}
.compare-page.only-diff .cmp-table tr.is-same {display: none;}
.cmp-table tr.cmp-group th {background: var(--zebra); font-size: 12px; letter-spacing: .03em;}
.cmp-table th[scope="row"] {width: 160px; font-weight: 500; white-space: nowrap;}
.cmp-table tr.is-diff td {background: #fdf5ea;}
.cmp-table tr.is-diff th[scope="row"] {color: #8a5a12;}
.cmp-table tr.is-same td {color: var(--text-mute);}
.cmp-tag {display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 10px; font-weight: 500;
  border: 1px solid #d9b37a; color: #8a5a12; background: #fff8ec; vertical-align: 1px;}
.cmp-val {display: inline-block; white-space: pre-line; line-height: 1.55;}
.cmp-empty {color: var(--text-mute);}
.cmp-photo img {width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border);}
.cmp-long {white-space: pre-line; line-height: 1.6; max-height: 320px; overflow: auto; font-size: 12px;}
.cmp-foot {margin: 18px 0 0; font-size: 12px;}
@media (max-width: 700px) {
  .cmp-heads {grid-template-columns: 1fr;}
  .cmp-mid {display: none;}
  .cmp-cover {width: 60px; height: 60px; flex-basis: 60px;}
  .cmp-table th[scope="row"] {width: auto; white-space: normal;}
  .cmp-form-actions {width: 100%;}
  .cmp-form-actions .btn {flex: 1 1 auto;}
}
.cmp-media-hint, .cmp-scan-hint {margin: -4px 0 12px; font-size: 12px;}
.cmp-pair-bar {display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 12px;}
.cmp-pair-side {display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; font-size: 11px; color: var(--text-mute);}
.cmp-pair-side select {border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 7px 9px; font-size: 12px; max-width: 100%;}
.cmp-zoom-btn {padding: 7px 12px;}
.cmp-pair-photos {display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start;}
.cmp-pair-photo {margin: 0; border: 1px solid var(--border); background: var(--surface); padding: 8px;}
.cmp-pair-photo a {display: block; background: #f4f2ee; text-align: center; min-height: 180px;}
.cmp-pair-photo img {display: block; width: 100%; max-height: 520px; object-fit: contain; margin: 0 auto;}
.cmp-pair-photo figcaption {margin-top: 6px; font-size: 11px; color: var(--text-mute); line-height: 1.4;}
.cmp-pair-photo.is-empty a {display: flex; align-items: center; justify-content: center; color: var(--text-mute); font-size: 12px;}
.cmp-no-photo {display: flex; align-items: center; justify-content: center; min-height: 180px; color: var(--text-mute); font-size: 12px;}
.cmp-no-photo[hidden] {display: none;}
.cmp-pair-summary {margin: 10px 0 0; font-size: 12px; color: var(--text-mute);}
.cmp-pair-table {margin-top: 8px;}
.cmp-pair-table th[scope="row"] {width: 180px;}
.cmp-pair-table tr.is-diff td {background: #fdf5ea;}
.cmp-pair-table tr.is-same td {color: var(--text-mute);}
.cmp-pair-photo img[hidden], .cmp-pair-photo span[hidden], .cmp-zoom-btn[hidden] {display: none !important;}
.cmp-scan-table {table-layout: fixed;}
.cmp-scan-table th[scope="col"]:first-child,
.cmp-scan-table th[scope="row"] {width: 52px; color: var(--text-mute); font-weight: 400;}
.cmp-scan-table td {vertical-align: top;}
.cmp-scan-table tr.cmp-group.is-diff th {color: #8a5a12;}
.cmp-scan-item {display: flex; gap: 9px; align-items: flex-start; min-width: 0;}
.cmp-scan-thumb {display: block; width: 96px; height: 96px; flex: 0 0 96px; overflow: hidden;
  background: #f4f2ee; border: 1px solid var(--border);}
.cmp-scan-thumb img {display: block; width: 100%; height: 100%; object-fit: contain;}
.cmp-scan-meta {display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 11px; line-height: 1.45;}
.cmp-scan-seq {color: var(--text);}
.cmp-scan-cap, .cmp-scan-file {color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.cmp-scan-file {font-size: 10px;}
.cmp-zoom-dialog {width: min(1500px, 96vw); max-width: 96vw; max-height: 94vh; max-height: 94dvh; overflow: auto;
  padding: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text);}
.cmp-zoom-dialog::backdrop {background: rgba(20, 18, 15, .72);}
/* 关闭条贴在弹层顶部：手机上弹层比可视区高、内部还要滚动时，它也不会被滚走
   （2026-10-26 反馈：iOS 上关闭按钮被浏览器上下栏挡住，只能强行缩放页面）。 */
.cz-bar {display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 2;
  padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface);}
.cz-close {display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 32px; padding: 4px 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13px; line-height: 1; cursor: pointer;}
.cz-close:hover, .cz-close:focus-visible {border-color: var(--text); outline: none;}
.cz-stage {display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: #161513;
  overscroll-behavior: contain;}
.cz-stage figure {margin: 0; min-width: 0; text-align: center;}
.cz-stage img {display: block; width: 100%; max-height: 78vh; max-height: 78dvh; object-fit: contain; margin: 0 auto;}
.cz-stage figcaption {color: #d8d3c9; font-size: 11px; padding: 5px 0 1px;}
/* 弹层打开时锁住页面滚动：手机上滚的只能是弹层里面的图，背景页面不跟着动 */
html.cmp-zoom-open, html.cmp-zoom-open body {overflow: hidden;}
@media (max-width: 700px) {
  .cmp-pair-photos {grid-template-columns: 1fr;}
  .cmp-pair-bar .cmp-pair-side {flex-basis: 100%;}
  .cmp-zoom-btn {width: 100%;}
  .cmp-scan-table th[scope="col"]:first-child,
  .cmp-scan-table th[scope="row"] {width: 38px;}
  .cmp-scan-thumb {width: 64px; height: 64px; flex-basis: 64px;}
  /* 手机：弹层铺满可视区，关闭条固定在顶部、大点击区；图片区自己滚动。
     inset: 0 + 100% 跟着可视视口走，比 94vh 稳（iOS 的 vh 含浏览器栏区域）。 */
  .cmp-zoom-dialog[open] {position: fixed; inset: 0; width: 100%; max-width: 100%;
    height: 100%; max-height: 100%; margin: 0; border: 0; padding: 0;
    display: flex; flex-direction: column; overflow: hidden;}
  .cz-bar {flex: 0 0 auto; padding: calc(8px + env(safe-area-inset-top)) 12px 8px;}
  .cz-close {min-height: 44px; padding: 0 18px; font-size: 15px;}
  .cz-stage {flex: 1 1 auto; min-height: 0; grid-template-columns: 1fr;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom));}
  .cz-stage img {max-height: none;}
}
.item-tools {display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 5px 0 0; font-size: 11px;}
.item-tools .tools-btn {padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; border-bottom: 1px dotted currentColor;}
.item-tools .tools-btn:hover {border-bottom-style: solid;}
.item-tools a, .cmp-link {color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor;}
.item-tools a:hover, .cmp-link:hover {border-bottom-style: solid;}
/* 分享是条目页的主操作之一，给它一个实心按钮的边界，不从工具栏里飘过去。 */
.item-tools .share-open {padding: 2px 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-bottom: 1px solid var(--border);}
.item-tools .share-open:hover {border-color: var(--accent); color: var(--accent);}

/* 条目页：分享 / 二维码。按钮只在 share.js 就绪后出现，避免无 JS 时留一个点不动的死按钮。 */
body:not(.share-js) .share-open {display: none;}
.share-modal {width: min(920px, 94vw); max-width: 94vw; max-height: 90vh; max-height: 90dvh;
  padding: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  overflow: auto; scroll-margin-top: 18px;}
/* 关闭状态必须真的隐藏：手机那一档给 .share-modal 写了 display:flex 用于排版，
   作者样式会盖掉 UA 的 dialog:not([open]){display:none}，于是没打开的弹窗直接摊在页面
   底部（2026-10-31 站长反馈：手机看条目页冒出空白分享窗、点 ✕ 也关不掉 —— close() 对
   未打开的原生 dialog 是空操作）。这条特异性高于 .share-modal，写在前面也生效。 */
.share-modal:not([open]) {display: none;}
.share-modal::backdrop {background: rgba(20, 18, 15, .58);}
.share-head {display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--border);}
.share-title {font-size: 15px; font-weight: 600;}
.share-sub {margin: 4px 0 0; font-size: 11px; color: var(--text-mute); line-height: 1.55;}
.share-close {flex: 0 0 auto; width: 30px; height: 30px; padding: 0; border: 1px solid transparent;
  background: none; color: var(--text-mute); font: 15px/1 var(--sans); cursor: pointer;}
.share-close:hover, .share-close:focus-visible {border-color: var(--border); color: var(--accent); outline: none;}
.share-body {display: grid; grid-template-columns: minmax(0, 1fr) 268px; align-items: stretch;}
.share-preview {position: relative; padding: 22px; border-right: 1px solid var(--border);
  background: var(--zebra); display: flex; flex-direction: column; align-items: center; gap: 11px;}
.share-modes {display: flex; width: 100%; max-width: 280px; border: 1px solid var(--border); background: var(--surface);}
.share-mode {flex: 1 1 50%; min-height: 32px; padding: 0 10px; border: 0; background: transparent;
  color: var(--text-mute); font: 12px/1 var(--sans); cursor: pointer;}
.share-mode + .share-mode {border-left: 1px solid var(--border);}
.share-mode:hover {color: var(--accent);}
.share-mode.is-on {background: var(--text); color: var(--surface);}
.share-mode:focus-visible {outline: 1px solid var(--accent); outline-offset: 1px;}
.share-canvas {display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--border);
  background: #f7f6f3; transition: opacity .15s;}
.share-modal.is-rendering .share-canvas {opacity: .45;}
.share-note {margin: 0; font-size: 11px; color: var(--text-mute); text-align: center;}
.share-error {margin: 0; padding: 8px 10px; border: 1px solid #d9b8a8; background: #fbf1ea;
  color: var(--accent); font-size: 12px; line-height: 1.6; text-align: center;}
.share-side {padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0;}
.share-main {flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 9px; min-height: 0;}
.share-actions {display: flex; flex-direction: column; gap: 8px;}
.share-side .btn {width: 100%; min-height: 38px;}
.share-qr-block {margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--border); text-align: center;}
.share-modal.share-mode-code .share-canvas {max-width: 320px;}
.share-modal.share-mode-code .share-qr-block {display: none;}
.share-qr-label {margin: 0 0 7px; font-size: 10px; color: var(--text-mute); letter-spacing: .06em;}
.share-qr {display: block; width: 172px; height: 172px; max-width: 100%; margin: 0 auto;
  border: 1px solid var(--border); background: #fff;}
.share-url {margin: auto 0 0; padding-top: 11px; border-top: 1px solid var(--border);
  font-size: 10px; line-height: 1.6; color: var(--text-mute); word-break: break-all;}
.share-flash {margin: 0; font-size: 11px; color: var(--ok);}
.share-flash.is-error {color: var(--accent);}
body.share-lock {overflow: hidden;}
@media (max-height: 720px) and (min-width: 761px) {
  .share-preview {padding: 14px;}
  .share-canvas {max-width: 340px;}
}
@media (max-width: 640px) {
  .item-tools {gap: 5px 10px;}
  .item-tools .share-open {margin-left: auto;}
}
@media (max-width: 760px) {
  .share-modal {width: calc(100% - 20px); max-width: calc(100% - 20px); height: auto; max-height: 92vh;
    max-height: 92dvh; margin: auto; border: 1px solid var(--border); display: flex; flex-direction: column;
    overflow: hidden;}
  .share-head {flex: 0 0 auto; padding: 12px 16px 10px;}
  .share-body {display: flex; flex-direction: column; align-items: stretch; flex: 0 1 auto; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;}
  /* 别给预览区限高：限了以后画布 + 说明会溢出到下面的按钮上（说明文字压在「保存图片」上）。 */
  .share-preview {flex: 0 0 auto; padding: 14px 16px 12px; border-right: 0; border-bottom: 1px solid var(--border);}
  .share-close {width: 40px; height: 40px; font-size: 17px;}
  .share-modes {max-width: 240px; margin: 0 auto;}
  .share-canvas {width: auto; max-width: 100%; max-height: 36vh; margin: 0 auto;}
  .share-side {flex: 0 0 auto; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));}
  .share-main {flex: 0 0 auto; justify-content: flex-start;}
  .share-qr-block {display: none;}
  .share-side .btn {min-height: 44px;}
  .share-url {margin: 7px 0 0; word-break: break-all;}
}
@media print {.share-modal {display: none;}}
.item-disclaimer {border: 1px solid var(--border); background: var(--zebra); padding: 14px 18px; font-size: 12px; color: var(--text-mute); line-height: 1.65;}
.brand-list {border: 1px solid var(--border); background: var(--surface);}
.brand-row {display: grid; grid-template-columns: 1fr 1.4fr 140px 110px; gap: 18px; align-items: center; padding: 15px 20px; text-decoration: none; border-bottom: 1px solid var(--border);}
.brand-row:last-child {border-bottom: 0;}
.brand-row:hover {color: var(--text); background: var(--zebra);}
.br-name {font-weight: 600;}
.br-en {font-family: var(--mono); font-size: 12px; color: var(--text-mute);}
.br-span, .br-count {font-family: var(--mono); font-size: 11px; color: var(--text-mute); text-align: right;}
.year-list {border: 1px solid var(--border); background: var(--surface);}
.year-row {display: grid; grid-template-columns: 80px 1fr 90px; gap: 18px; align-items: center; padding: 12px 20px; text-decoration: none; border-bottom: 1px solid var(--border);}
.year-row:last-child {border-bottom: 0;}
.year-row:hover {color: var(--text); background: var(--zebra);}
.yr-year {font-weight: 600;}
.yr-bar {height: 8px; background: var(--zebra); border: 1px solid var(--border);}
.yr-bar span {display: block; height: 100%; background: var(--border);}
.year-row:hover .yr-bar span {background: var(--accent);}
.yr-count {text-align: right; color: var(--text-mute);}
.pack-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;}
.pack-card {display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); background: var(--surface); padding: 16px 18px; text-decoration: none;}
.pack-card:hover {border-color: var(--accent); color: var(--text);}
.pc-name {font-weight: 600;}
.pc-en {font-family: var(--mono); font-size: 11px; color: var(--text-mute);}
.pc-note {font-size: 12px; color: var(--text-mute);}
.pc-count {font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 4px;}
/* ---------------- 统计 / 排行榜 ---------------- */
.stats-page {max-width: 1080px;}
.stats-intro {margin-bottom: 24px; color: var(--text-mute);}
.stats-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start;}
.rank-title {font-size: 14px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border);}
.rank-list {list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-top: 0; background: var(--surface);}
.rank-row {display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 15px; border-bottom: 1px solid var(--border);}
.rank-row:last-child {border-bottom: 0;}
.rank-no {color: var(--text-mute); font-size: 11px;}
.rank-body {min-width: 0; display: flex; flex-direction: column; gap: 2px;}
.rank-name {font-weight: 600; overflow-wrap: anywhere;}
a.rank-name {text-decoration: none;}
a.rank-name:hover {color: var(--accent);}
.rank-meta {font-family: var(--mono); font-size: 11px; color: var(--text-mute);}
.rank-value {font-size: 11px; color: var(--text-mute); white-space: nowrap;}
/* 最近更改：没有名次，左列是时间；同一目只出现一次 */
.recent-list {list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-top: 0; background: var(--surface);}
.recent-row {display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 15px; border-bottom: 1px solid var(--border);}
.recent-row:last-child {border-bottom: 0;}
.recent-time {font-size: 11px; color: var(--text-mute); white-space: nowrap;}
.recent-body {min-width: 0; display: flex; flex-direction: column; gap: 2px;}
.recent-meta {font-size: 11px; color: var(--text-mute); overflow-wrap: anywhere;}
.recent-meta a {margin-left: 4px; white-space: nowrap;}
@media (max-width: 819px) {
  .stats-grid {grid-template-columns: 1fr; gap: 28px;}
}
/* ---------------- 条目编辑历史 ---------------- */
.history-page {max-width: 900px;}
.history-head {align-items: flex-start;}
.history-head-main {min-width: 0;}
.history-subject {margin: 4px 0 0; font-size: 12px; color: var(--text-mute); overflow-wrap: anywhere;}
.history-subject a {color: var(--text); text-decoration: none;}
.history-subject a:hover {color: var(--accent);}
.history-subject .mono {margin-left: 6px; color: var(--text-mute);}
.history-intro {margin-bottom: 18px; color: var(--text-mute);}
.history-list {list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border);}
.history-row {padding: 14px 0; border-bottom: 1px solid var(--border);}
.history-row-head {display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;}
.history-time {font-size: 11px; color: var(--text-mute); white-space: nowrap;}
.history-actor {font-weight: 600; overflow-wrap: anywhere;}
.history-action {padding: 1px 5px; border: 1px solid var(--border); font-family: var(--mono); font-size: 10px; color: var(--text-mute);}
.history-current {padding: 1px 5px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10px;}
.history-summary {color: var(--text-mute); font-size: 12px; overflow-wrap: anywhere;}
.history-diff {margin-top: 8px;}
.history-diff summary {width: max-content; color: var(--accent); font-size: 12px; cursor: pointer;}
.history-fields {display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 14px; margin: 10px 0 2px; padding: 10px 12px; border: 1px solid var(--border); background: var(--zebra, #f7f7f5);}
.history-fields dt {color: var(--text-mute); font-size: 12px;}
.history-fields dd {margin: 0; min-width: 0; font-size: 12.5px; line-height: 1.75; overflow-wrap: anywhere;}
.history-inline {white-space: pre-wrap; word-break: break-word;}
.history-inline del, .history-inline ins {padding: 0 2px;}
.history-inline .rev-del, .history-pre .rev-del {background: #fbe3e3; color: #8a2020; text-decoration: line-through;}
.history-inline .rev-ins, .history-pre .rev-ins {background: #e2f4e2; color: #1b5e20; text-decoration: none;}
.history-pre {margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; line-height: 1.75;}
.history-note {margin: 7px 0 0; font-size: 12px; color: var(--text-mute);}
/* ---------------- 关于 / 免责声明等散文页 ---------------- */
.prose-page {max-width: 74ch;}
.prose-meta {margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--border);}
/* ---------------- Markdown 正文（Support\Markdown 的输出，容器加 .md） ----------------
   这里只描述「Markdown 渲染出来的东西长什么样」：标题、段落、列表、引用、代码、表格、
   水平线、图片。容器自带 .md 才生效 —— 后台那些手写的 .plain-list（内容物清单、系统要求）
   是另一套东西，不受影响。 */
.md > :first-child {margin-top: 0;}
.md > :last-child {margin-bottom: 0;}
.md h1, .md h2 {font-size: 14px; font-weight: 600; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border);}
.md h3, .md h4, .md h5, .md h6 {font-size: 13px; font-weight: 600; margin: 16px 0 6px;}
.md p {margin: 0 0 10px;}
.md ul, .md ol {margin: 0 0 10px; padding-left: 24px;}
.md li {margin: 3px 0;}
.md li > ul, .md li > ol {margin: 4px 0 2px;}
.md blockquote {margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 2px solid var(--border); color: var(--text-mute);}
.md blockquote > :last-child {margin-bottom: 0;}
.md code {font-family: var(--mono); font-size: 12px; background: var(--zebra); border: 1px solid var(--border); padding: 0 4px;}
.md pre {margin: 0 0 12px; padding: 12px 14px; background: var(--zebra); border: 1px solid var(--border); overflow: auto;}
.md pre code {display: block; background: none; border: 0; padding: 0; font-size: 12px; line-height: 1.55; white-space: pre;}
.md hr {margin: 20px 0; border: 0; border-top: 1px solid var(--border);}
.md-table-wrap {margin: 0 0 12px; overflow-x: auto;}
.md table {width: 100%; border-collapse: collapse; font-size: 13px; margin: 0;}
.md th, .md td {padding: 8px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top;}
.md th {background: var(--surface); font-size: 12px; font-weight: 600;}
.md .md-center {text-align: center;}
.md .md-right {text-align: right;}
.md img {max-width: 100%; height: auto; border: 1px solid var(--border);}
/* 并列图：正好两张；桌面可缩到正文宽度的 40%，手机保持并排。图片外面包链接，沿用 main.js 的全屏查看器。 */
.md-pair {--pair-width: 100%; --pair-l: 1fr; --pair-r: 1fr;
  width: var(--pair-width); max-width: 100%; margin: 0 auto 16px;
  display: grid; grid-template-columns: minmax(0, var(--pair-l)) minmax(0, var(--pair-r));
  gap: 14px; align-items: start;}
.md-pair-item {margin: 0; min-width: 0;}
.md-pair-link {display: block; line-height: 0; border: 0;}
.md-pair-link img {width: 100%; height: auto; border: 1px solid var(--border); background: var(--zebra);}
.md-pair-item figcaption {margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-mute); text-align: center;}
@media (max-width: 640px) {
  /* 手机上仍要两张并排；忽略作者设的整块宽度，免得缩成两个指甲盖。 */
  .md-pair {width: 100%; max-width: 100%; gap: 8px;}
  .md-pair-item figcaption {margin-top: 4px; font-size: 11px;}
}
.md del {color: var(--text-mute);}
.md mark {background: #fff2a8; color: inherit; padding: 0 2px;}
.md dl {margin: 0 0 12px;}
.md dt {font-weight: 600; margin-top: 8px;}
.md dt:first-child {margin-top: 0;}
.md dd {margin: 2px 0 8px 22px;}
.md sup, .md sub {font-size: 75%; line-height: 0;}
.md kbd {font-family: var(--mono); font-size: 11px; border: 1px solid var(--border); border-bottom-width: 2px;
  padding: 0 4px; background: var(--surface);}
.md u {text-decoration: underline; text-underline-offset: 2px;}
.md input[type="checkbox"] {margin: 0 6px 0 0; vertical-align: baseline;}
.md li.md-task {list-style: none;}
.md a {word-break: break-word;}
/* 首页顶部那条声明：Markdown 渲染后仍是「一行状态条」，所以段落不带外边距 */
.notice-md {min-width: 0;}
.notice-md p {margin: 0;}
.notice-md img {height: 14px; width: auto; border: 0; vertical-align: -2px;}
.kv-list {list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 18px;}
.kv-list .k {color: var(--text-mute); font-size: 12px; margin-right: 6px;}
.chip-row {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;}
.chip {font-size: 12px; border: 1px solid var(--border); padding: 2px 9px; text-decoration: none; background: var(--surface);}
.chip:hover {border-color: var(--accent);}
/* ---------------- 错误页 ---------------- */
.error-page {border: 1px solid var(--border); background: var(--surface); padding: 30px;}
.err-code {font-size: 40px; color: var(--border); margin: 0 0 4px;}
.err-detail {white-space: pre-wrap; background: var(--zebra); border: 1px solid var(--border); padding: 10px; font-size: 11px; overflow: auto;}
/* ---------------- 键盘焦点与灯箱 ---------------- */
.item-table tbody tr.is-focus {background: #efe8dd !important;}
/* ---------------- 图片查看器：缩放 / 拖动看局部 ---------------- */
/* 背景用实色：半透明会让底下页面透出来，干扰看片 */
.viewer {position: fixed; inset: 0; z-index: 120; display: none; flex-direction: column; background: #141210;}
.viewer.is-open {display: flex;}
html.vw-locked {overflow: hidden;}
.vw-bar {flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid #3a3733; color: #d8d3ca; font-size: 12px;}
.vw-count {flex: 0 0 auto; color: #8f8a82;}
.vw-caption {flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.vw-tools {flex: 0 0 auto; display: flex; align-items: center; gap: 6px;}
.vw-tools [hidden] {display: none !important;}
.vw-btn {width: 32px; height: 30px; padding: 0; border: 1px solid #4a4640; background: none; color: #e6e1d8; font-size: 15px; line-height: 1; cursor: pointer;}
.vw-btn:hover {border-color: var(--accent); color: #fff;}
.vw-btn.is-on {border-color: var(--accent); background: #2a2621; color: #fff;}
.vw-zoom {min-width: 54px; text-align: center; color: #a9a49b;}
.vw-close {font-size: 19px; margin-left: 6px;}
/* 附件长说明：条子下面一条可滚动的窄带；换图时跟着当前图换，对比模式隐藏。 */
.vw-desc {flex: 0 0 auto; margin: 0; padding: 7px 14px; border-bottom: 1px solid #3a3733;
  background: #1a1714; color: #b8b2a8; font-size: 11px; line-height: 1.55;
  white-space: pre-line; max-height: 5.2em; overflow-y: auto;}
.vw-desc[hidden] {display: none !important;}
/* 图片查看器的左侧目录：单张模式可展开，对比模式隐藏。
   桌面端占据左侧一条、图片区自动缩窄；手机上改成覆盖式抽屉。 */
.vw-main {flex: 1 1 auto; display: flex; min-height: 0; position: relative;}
.vw-side {display: none; flex: 0 0 320px; flex-direction: column; min-height: 0;
  background: #1a1714; border-right: 1px solid #3a3733; color: #d8d3ca;}
.viewer.is-side .vw-side {display: flex;}
.vw-side-head {flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid #3a3733; font-size: 12px;}
.vw-side-head .mono {color: #8f8a82;}
.vw-side-close {margin-left: auto; width: 26px; height: 24px; font-size: 16px;}
.vw-side-list {flex: 1 1 auto; min-height: 0; overflow-y: auto; position: relative; padding: 4px 0 12px;}
.vw-side-group-title {position: sticky; top: 0; z-index: 1; margin: 0; padding: 6px 10px;
  background: #1a1714; color: #8f8a82; font-size: 10px; border-bottom: 1px solid #2b2722;}
.vw-side-item {display: flex; gap: 8px; align-items: flex-start; width: 100%; box-sizing: border-box;
  padding: 7px 10px; border: 0; border-bottom: 1px solid #2b2722; background: none;
  color: #d8d3ca; text-align: left; cursor: pointer; font: inherit;}
.vw-side-item:hover {background: #221e1a;}
.vw-side-item.is-active {background: #2a2621; box-shadow: inset 2px 0 0 var(--accent);}
.vw-side-item img {flex: 0 0 72px; width: 72px; height: 54px; object-fit: contain; background: #0f0d0b; border: 1px solid #3a3733;}
.vw-side-text {min-width: 0; display: flex; flex-direction: column; gap: 2px;}
.vw-side-text strong {font-size: 12px; line-height: 1.4; font-weight: 600; overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;}
.vw-side-text small {font-size: 10.5px; line-height: 1.45; color: #a9a49b; white-space: pre-line;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;}
/* 单张时 pane 0 占满；对比时两个 pane 各占一半（手机上上下各一半）。 */
.vw-stage {flex: 1 1 auto; display: flex; position: relative; overflow: hidden; background: #141210;}
.vw-stage.is-compare {gap: 1px; background: #3a3733;}
.vw-pane {position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #141210;}
.vw-pane[hidden] {display: none !important;}
/* 选中侧用浮在最上层的边框标出来：box-shadow 会被图片盖住，只剩底边一条。 */
.vw-pane.is-active::after {content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border: 1px solid var(--accent);}
.vw-pane.is-active .vw-pickbar {border-bottom-color: var(--accent);}
.vw-canvas {position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none;}
.vw-canvas.is-panning {cursor: grabbing;}
/* 对比时每边顶部一条选图器；单张时整条隐藏，画布占满。 */
.vw-pickbar {display: none; position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  align-items: center; gap: 5px; height: 32px; box-sizing: border-box; padding: 3px 6px;
  background: rgba(20, 18, 16, .92); border-bottom: 1px solid #3a3733;}
.viewer.is-compare .vw-pickbar {display: flex;}
.viewer.is-compare .vw-canvas {top: 32px;}
.vw-pick {flex: 1 1 auto; min-width: 0; max-width: calc(100% - 32px);
  border: 1px solid #4a4640; background: #1c1a17; color: #e6e1d8;
  font: 11px/1.3 var(--mono); padding: 3px 5px;}
.vw-pick:focus-visible {outline: 1px solid var(--accent); outline-offset: 1px;}
.vw-solo {flex: 0 0 auto; width: 26px; height: 24px; font-size: 12px;}
.vw-wrap {position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform;
  opacity: 0; transition: opacity .12s ease;}
.vw-pane.is-ready .vw-wrap {opacity: 1;}
/* 旋转/镜像只包住图片本身：wrap 负责缩放与平移，.vw-rot 绕自身中心转。
   这样 90°/270° 时把 wrap 的宽高互换即可，缩放/拖动仍是屏幕坐标。 */
.vw-rot {position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; will-change: transform;}
.vw-wrap img {display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none;}
.vw-hint {flex: 0 0 auto; margin: 0; padding: 7px 14px; border-top: 1px solid #3a3733; color: #8f8a82; font-size: 11px;}
@media (max-width: 640px) {
  .vw-bar {flex-wrap: wrap; gap: 6px 10px;}
  .vw-caption, .vw-hint {display: none;}
  .vw-tools {width: 100%; justify-content: flex-end; gap: 3px;}
  .vw-btn {width: 26px; height: 27px; font-size: 12px;}
  .vw-zoom {min-width: 40px; font-size: 11px;}
  .vw-close {font-size: 16px; margin-left: 0;}
  /* 手机上左右并排每边只剩 150px 左右，改上下排，图能宽一倍。 */
  .vw-stage.is-compare {flex-direction: column;}
  .vw-pickbar {height: 30px; padding: 3px 5px;}
  .viewer.is-compare .vw-canvas {top: 30px;}
  .vw-pick {font-size: 10px; max-width: calc(100% - 30px);}
  .vw-solo {width: 24px; height: 22px; font-size: 11px;}
  .vw-desc {font-size: 10px; max-height: 4.4em; padding: 6px 10px;}
  .vw-side {position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 340px); z-index: 12;
    box-shadow: 8px 0 24px rgba(0,0,0,.35);}
  .vw-side-item img {flex-basis: 62px; width: 62px; height: 48px;}
}
@media (max-width: 380px) {
  .vw-tools {gap: 2px;}
  .vw-btn {width: 23px; height: 25px;}
  .vw-zoom {min-width: 34px; font-size: 10px;}
  .vw-solo {width: 22px; height: 21px;}
}
@media (min-width: 1080px) {
  body {font-size: 15px; line-height: 1.62;}
  .pg-meta, .tb-count {font-size: 13px;}
}
/* 超宽屏才展开全部 10 列，并把容器同步加宽，保证每列都有余量 */
@media (min-width: 1560px) {
  :root {--wrap: 1660px;}
}
/* 列表视图按宽度逐步收起次要列，避免挤成一团（其余仍在网格视图与条目页） */
@media (max-width: 1559px) {
  .c-media, .c-edtype {display: none;}
}
@media (max-width: 1179px) {
  .c-pack {display: none;}
}
/* 条目页在中小桌面（含手机）先上下堆叠，让事实卡拿到整行宽度。
   堆叠之后 DOM 顺序变成了 大图 → 事实卡 → 缩略图条，而缩略图条**就是换大图的选择器** ——
   手机上事实卡有二三十行，等于「换一张图要先滑过整张参数表」。所以在这一档用 order 把
   缩略图条提到事实卡前面（紧跟大图）。桌面两栏布局里它照旧横跨两栏、位置不动。 */
@media (max-width: 1024px) {
  /* 单栏堆叠就够：缩略图条在主图下面这件事，DOM 顺序（主图 → 缩略图条 → 图片说明）本来就是对的，
     不需要再用 order 摆位置。
     右栏那层包装在这里拆开（display: contents）：手机上「关键信息」是进页面第一眼要看的东西，
     得回到主图前面 —— 用 order 排成 关键信息 → 主图 → 事实卡。 */
  .item-heading {display: block;}
  .item-heading .item-tools {max-width: none; justify-content: flex-start; margin-top: 8px;}
  .item-layout {grid-template-columns: 1fr; grid-template-rows: auto; gap: 28px;}
  .item-media {grid-column: auto; grid-row: auto;}
  .item-main {display: contents;}
  .glance {order: 1;}
  .item-media {order: 2;}
  .item-facts {order: 3;}
  .item-colophon {order: 4; grid-column: auto; grid-row: auto; margin-top: 0;}
  /* 单栏后事实卡回到整行宽度：两列分组在这里会太窄，改用每组内部的多列网格。 */
  .fact-groups {column-count: 1;}
  .fact-group {margin-bottom: 30px;}
  .fact-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 32px;}
  .fact {padding: 0;}
}
@media (max-width: 860px) {
  /* align-items 必须跟着改成 stretch：桌面是左右两栏、靠 flex-start 让侧栏不拉高，
     但换成上下堆叠后 flex-start 变成了「横向按内容撑」—— 结果区被撑到表格的 652px 宽，
     整个页面横向溢出（工具栏溢出屏幕外，手机上司空见惯的后果是「列表 / 网格」切换点不到）。 */
  .catalog-body {flex-direction: column; align-items: stretch;}
  .facets {flex: none; width: 100%;}
  .admin-cols {grid-template-columns: 1fr;}
  .head-row {flex-direction: column; align-items: stretch; padding: 16px 20px 12px; gap: 14px;}
  .site-main {padding: 20px 20px 40px;}
  .nav, .notice, .foot-meta {padding-left: 20px; padding-right: 20px;}
  .search {flex: none;}
  .brand-row {grid-template-columns: 1fr 1fr;}
  .br-span, .br-count {text-align: left;}
  /* 筛选栏收成一条可折叠的「筛选」：手机上整套分面排下来 1869px，结果被顶到 y≈2200 ——
     进图鉴先看到一屏半的筛选、看不到条目。收起后这一条只有一行高。
     桌面（≥861px）这一条不显示，筛选项照旧平铺在侧栏里；关了 JS 也只是默认全展开（原样）。 */
  .facets-sum {display: flex; align-items: center; gap: 8px; padding: 12px 15px; font-size: 13px;
    font-weight: 600; cursor: pointer; list-style: none;}
  .facets-sum::-webkit-details-marker {display: none;}
  .facets-sum::after {content: "▾"; margin-left: auto; color: var(--text-mute); font-size: 11px;}
  .facets-box[open] > .facets-sum::after {content: "▴";}
  .fs-note {font-weight: 400; font-size: 11px; color: var(--text-mute);}
}
/* 手机竖屏：条目卡收成两列小卡。
   卡片的 minmax 是 184px，390px 的手机减去两侧 20px 只剩 350px —— 塞不下两列，于是变成
   一列整宽：封面按整宽铺开（350px 宽、常常 400 高），再加大字号的下标，一条就把大半屏吃光，
   翻目录变成「一屏一条」。降到 148px 后 350px 能排两列（各约 169px），封面照样看得清，
   一屏能扫 4～6 条。封面比例仍然不裁切，只是把兜底的 max-height 从 480 收到 240，
   否则一条书脊那样的长条扫描又能把整行撑到半屏。 */
@media (max-width: 640px) {
  /* ---- 顶部：把首屏还给条目 ----
     实测（390px）改前第一个条目卡在 y=551：头部行 100 + 导航两行 88 + 通知条 91 + 简介 173
     + 小标题 46。这里逐块收：搜索与站名挤同一行、导航一行横滑、通知条与简介收紧。 */
  .head-row {flex-direction: row; align-items: center; gap: 10px; padding: 12px 20px 10px;}
  .site-head .brand-zh {display: none;}   /* 站名的中文副题：和下面的 h1 重复，还白占一行宽度 */
  /* 「非资源站」标记要和站名挤在同一行：它换行就白占一行高度 —— 正是这次从内页顶部省掉的那 41px */
  .head-brand {gap: 6px;}
  .head-flags .flag {font-size: 10px; padding: 0 4px; letter-spacing: 0;}
  .search {flex: 1 1 auto; min-width: 0;}
  /* 输入框自己的 min-content 是它的固有宽度（size≈20 字符），不归零的话整行塞不下
     「站名 + 非资源站标记 + 搜索」—— 标记就被挤到第二行，白占一行高度。 */
  .search input {min-width: 0; padding: 6px 10px;}
  /* 导航 8 项在 390px 上折成两行（88px）。改一行横滑，当前项仍在视口内（首屏就能看到 5 项）。 */
  .nav {flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;}
  .nav::-webkit-scrollbar {display: none;}
  .nav a {padding: 9px 11px; white-space: nowrap;}
  .notice {font-size: 11px; padding: 7px 20px;}
  .home-intro {padding-bottom: 12px; margin-bottom: 18px;}
  .hi-site {display: none;}               /* 「MS ARCHIVE · 实体软件收藏」同样是重复信息 */
  .hi-title {font-size: 15px; margin-bottom: 6px;}
  .hi-decl {margin-bottom: 6px;}
  .hb-head {padding-bottom: 6px; margin-bottom: 12px;}
  /* 工具栏在 390px 上排不下：5 个排序 chip + 视图切换比一屏还宽，而 .tb-group 是 nowrap 的
     flex 子项（缩不到比自身内容更窄），于是整条溢出到屏幕外 —— 手机上图鉴的「列表 / 网格」
     切换就这么被切掉了。允许每组内部换行，并把分组之间的竖线去掉（换行后那条线没有意义）。 */
  .tb-actions {gap: 10px 18px;}
  .tb-group {flex-wrap: wrap;}
  .tb-group + .tb-group {border-left: 0; padding-left: 0;}
  .card-grid {grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px;}
  .card-grid.cols-6 {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .card-media .pic img {max-height: 240px;}
  .card-body {padding: 8px 10px 10px;}
  .card-title {font-size: 13px; line-height: 1.3;}
  /* 下标（品牌 · 版本 · 地区 · 语言）在窄卡里能换三四行，比标题还高。
     不删信息，只夹到两行，剩下的交给条目页。 */
  .card-sub {font-size: 10px; margin-bottom: 3px; display: -webkit-box;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;}
  .card-id {font-size: 10px;}
  .badge-beta-sm {font-size: 9px;}
  /* 缩略图条在手机上再小一档：104px 的缩略图一行只放得下三个，缩到 88px 一行放四个。 */
  .media-strip .g-item .pic, .media-strip .g-item .placeholder,
  .media-strip .g-item .pic img {height: 88px;}
  .media-strip .g-label {padding: 3px 6px;}
  .glance-grid, .glance-grid.count-5 {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px;}
  /* 吸底态在手机上的差别只有一条：让出 iPhone 的底部安全区（其他样式在文件前面那份
     .media-strip.is-docked 里，桌面端同样吸底）。为什么要吸底：grid/flex 子项的 sticky
     活动范围被自己那一格框住，动不了；而固定定位会把它从文档流里抽走，所以 main.js 在
     外面包了一层占位 .strip-slot 顶住原位置。 */
  .media-strip.is-docked {padding-bottom: calc(6px + env(safe-area-inset-bottom));}
}
@media (prefers-reduced-motion: reduce) {
  * {scroll-behavior: auto !important;}
}

/* 测试版标记（is_beta）：描边样式，不与「开发版本」标记混淆 */
.badge-beta {display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--mono); font-size: 10px; line-height: 1.6; color: var(--accent); border: 1px solid var(--accent); padding: 0 5px; font-weight: 400;}
.badge-beta-sm {margin-left: 6px; font-size: 9px; padding: 0 4px;}

/* ---------------- 精选星标（Repo\Featured / featured_star()） ----------------
   一颗实心四芒星（sparkle），**只落在文字栏里**（站长 2026-10-16：「星不要放在图上」）：
   条目卡是底部文字栏的标题前，文章卡是右侧文字栏的标题前，详情页是 h1 前面。
   早先那版压在封面左上角的星（带白描边的那一颗）已按要求删掉 ——
   星压在扫描件上既挡图，又要靠描边硬撑对比度；落进文字栏后两个问题都不存在。
   尺寸用 em：卡片标题 14px、列表行 12px、详情页 h1 22px 共用这一条规则，不用逐处调。
   金色是本站**唯一**的第二个颜色（--star），只给这一处用；正文、链接、边框仍然只有 --accent。 */
.star {display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1em; height: 1em; margin-right: 0.36em; vertical-align: -0.08em;}
.star svg {display: block; width: 100%; height: 100%; fill: var(--star);}


/* ---------------- 捐赠页 ---------------- */
.donate-pledge {border: 1px solid var(--accent); background: var(--surface); padding: 10px 14px; margin: 0 0 20px; font-size: 13px; line-height: 1.7; max-width: 74ch;}
.donate-pledge strong {color: var(--accent);}
/* 承诺条与底部说明现在由后台按 Markdown 渲染（站长可编辑）：Markdown 会包一层 <p>，
   把首尾段落的外边距收掉，否则方框上下会各多出一截空白 */
.donate-pledge > :first-child, .donate-fine > :first-child {margin-top: 0;}
.donate-pledge > :last-child, .donate-fine > :last-child {margin-bottom: 0;}
.donate-page {max-width: none;}
.donate-page .donate-pledge, .donate-page .prose-body, .donate-page .donate-fine, .donate-page .prose-meta {max-width: 74ch;}
.donate-ways {margin-top: 28px; max-width: 780px;}
.donate-ways h2 {font-size: 14px; margin: 0 0 12px; padding-bottom: 4px; border-bottom: 1px solid var(--border);}
.donate-grid {display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;}
.donate-card {margin: 0; border: 1px solid var(--border); background: var(--surface); padding: 12px; text-align: center; flex: 1 1 180px; max-width: 230px;}
.donate-card img {display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 8px; background: #fff; padding: 4px; border: 1px solid var(--border);}
.donate-card figcaption {font-size: 13px;}
.donate-paypal {display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;}
/* PayPal 图形标志：和两张二维码一样放进白底方框里，三张卡片的视觉锚点高度对齐
   （选择器比 .donate-card img 多一层类，否则 width/height/padding 会被那条通用规则压回去） */
.donate-card .dp-logo {display: block; width: 112px; height: 112px; margin: 0 auto; padding: 18px; background: #fff; border: 1px solid var(--border);}
.dp-ico {margin: 0; font-family: var(--mono); font-size: 11px; color: var(--text-mute);}
.donate-paypal a {display: inline-block; border: 1px solid var(--text); padding: 7px 14px; text-decoration: none; font-size: 13px; color: var(--text); word-break: break-all;}
.donate-paypal a:hover {border-color: var(--accent); color: var(--accent);}
.donate-fine {margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-mute); max-width: 74ch;}
.donate-leaderboard, .donation-report {margin-top: 30px; max-width: 960px;}
.donate-leaderboard h2, .donation-report h2 {font-size: 14px; margin: 0 0 12px; padding-bottom: 4px; border-bottom: 1px solid var(--border);}
.donate-section-note {margin: -4px 0 14px; color: var(--text-mute); font-size: 12px; line-height: 1.7;}
.donate-currency-group + .donate-currency-group {margin-top: 22px;}
.donate-currency-group h3 {margin: 0 0 7px; font-size: 12px; font-weight: 500; color: var(--text-mute);}
.donate-table-wrap {overflow-x: auto; border: 1px solid var(--border); background: var(--surface);}
.donate-table {width: 100%; border-collapse: collapse; font-size: 13px;}
.donate-table th {padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text-mute); font: 10px var(--mono); white-space: nowrap;}
.donate-table td {padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top;}
.donate-table tr:last-child td {border-bottom: 0;}
.donate-table .donate-rank {width: 34px; color: var(--text-mute);}
.donate-table .donor-name {min-width: 100px; font-weight: 600;}
.donate-table .donor-amount {min-width: 80px; text-align: right; font-weight: 600;}
.donate-table .donor-message {min-width: 180px; max-width: 420px; line-height: 1.65; overflow-wrap: anywhere;}
.donor-message p {margin: 0;}
.donor-message p + p {margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);}
.donation-form {display: grid; gap: 14px; max-width: 780px;}
.donation-form-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;}
.donation-form label {display: grid; gap: 6px; font-size: 12px; color: var(--text-mute);}
.donation-form input, .donation-form select, .donation-form textarea {box-sizing: border-box; width: 100%; border: 1px solid var(--border); border-radius: 0; background: var(--surface); color: var(--text); padding: 8px 10px; font: 13px var(--sans);}
.donation-form input:focus, .donation-form select:focus, .donation-form textarea:focus {outline: 2px solid var(--accent); outline-offset: 1px;}
.donation-form textarea {resize: vertical; line-height: 1.6;}
.donation-form .btn {justify-self: start;}
.donation-hp {position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;}
.donation-report .form-ok, .donation-report .form-err {padding: 8px 12px; margin: 0; font-size: 13px;}
.donation-report .form-ok {border: 1px solid var(--ok); color: var(--ok);}
.donation-report .form-err {border: 1px solid var(--accent); color: var(--accent);}
@media (max-width: 640px) {
  .donation-form-grid {grid-template-columns: minmax(0, 1fr);}
  .donate-table th, .donate-table td {padding: 8px;}
}

/* ---------------- 联系 · 交流群 ---------------- */
/* 群号只给文本 + 复制按钮：QQ 群没有免分享 key 的加群链接，宁可不给链接也不给假链接 */
/* 只剩「关于」页那张卡片：首页那一行与页脚那份都按站长要求去掉了，
   compact 形态（.contact-line / .cc-num-sm / .cc-copy-sm）一并删掉，不留"没人调"的变体 */
.cc-copy {font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--text-mute); background: var(--surface); border: 1px solid var(--border); padding: 0 6px; cursor: pointer;}
.cc-copy:hover {border-color: var(--accent); color: var(--accent);}
.cc-copy.is-done {border-color: var(--ok); color: var(--ok);}
.cc-link {font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-mute); border-bottom: 1px dotted currentColor; text-decoration: none;}
.cc-link:hover {color: var(--accent); border-bottom-color: var(--accent);}
/* 交流群卡片：贴在正文流里、按内容收紧（早先是整行宽的大白框，显得空且群号字号过大） */
.contact-card {margin-top: 26px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); display: inline-block; max-width: 100%;}
.contact-card h2 {font-size: 13px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border);}
.cc-row {display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0;}
.contact-card .cc-num {font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--text);}
.contact-card .cc-copy {font-size: 12px; padding: 1px 8px;}

/* ---------------- 条目页：访客纠错 / 补充 ---------------- */
/* 弹窗本体（原生 <dialog>）：默认 display:none，点页头的「纠错 / 补充」才 showModal()。
   居中、限宽、内容超高时内部滚动；手机上留出安全边距。 */
.fr-modal {border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 18px 20px;
  width: min(680px, 92vw); max-height: 86vh; overflow: auto; scroll-margin-top: 12px;}
.fr-modal::backdrop {background: rgba(26, 26, 26, 0.42);}
/* 无 JS 时：链接 href="#field-report" 命中 :target，表单在页面原位置展开（老访客、爬虫都还能用）。
   dialog 的 UA 样式是绝对定位的浮层，这里显式退回文档流，免得它压在相关内容上。 */
.fr-modal:target {position: static; display: block; width: auto; max-width: none; margin: 20px 0 0;}
/* 有 JS 时（main.js 给 body 加了 .fr-js）关掉上面那套退化样式，只认 showModal()/close()。
   为什么必须关：Chromium 在 history.replaceState() 抹掉 #field-report 之后**不会**重算 :target，
   于是弹窗关掉了、表单却仍以 :target 样式摊在页面底部（实测踩到）。限 closed 状态：
   回执页（URL 里还带 #field-report）自动 showModal() 打开时，不能把打开的弹窗又藏起来。 */
body.fr-js .fr-modal:target:not([open]) {display: none;}
/* 关闭类按钮只在有 JS 时有意义：无 JS 时表单是就地展开的一块（没有"关掉"这回事），
   留着 ✕ / 取消 只会是点不动的死按钮 */
.fr-close, .fr-cancel {display: none;}
body.fr-js .fr-close {display: inline-block;}
body.fr-js .fr-cancel {display: inline-block;}
.fr-head {display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);}
.fr-title {font-size: 14px; display: flex; align-items: baseline; gap: 8px;}
.fr-sub {font-weight: 400;}
.fr-close {border: 0; background: none; color: var(--text-mute); font-size: 15px; line-height: 1;
  padding: 2px 4px; cursor: pointer; font-family: var(--sans);}
.fr-close:hover {color: var(--accent);}
/* 弹窗打开时锁住背景滚动（main.js 加/去这个类） */
body.fr-lock {overflow: hidden;}
.fr-flash {font-size: 13px; padding: 9px 12px; border: 1px solid var(--border); margin-bottom: 14px;}
.fr-flash-ok {color: var(--ok); border-color: #b6cbb0; background: #f2f6ee;}
.fr-flash-err {color: var(--accent); border-color: #d9b8a8; background: #fbf1ea;}
.fr-form {display: flex; flex-direction: column; gap: 12px;}
.fr-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;}
.fr-f {display: flex; flex-direction: column; gap: 4px; min-width: 0;}
.fr-l {font-size: 11px; color: var(--text-mute);}
.fr-f input, .fr-f select, .fr-f textarea {border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 13px; padding: 7px 9px; width: 100%;}
.fr-f textarea {resize: vertical; line-height: 1.6;}
.fr-f input:focus, .fr-f select:focus, .fr-f textarea:focus {outline: none; border-color: var(--accent); background: var(--surface);}
/* honeypot：屏幕外 + 不可聚焦，正常访客根本碰不到 */
.fr-hp {position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;}
.fr-actions {display: flex; align-items: center; gap: 12px; flex-wrap: wrap;}
.fr-submit {border: 1px solid var(--accent); background: var(--accent); color: #fff; font-family: var(--sans);
  font-size: 13px; padding: 8px 16px; cursor: pointer;}
.fr-submit:hover {filter: brightness(1.1);}
.fr-cancel {border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--sans);
  font-size: 13px; padding: 8px 14px; cursor: pointer;}
.fr-cancel:hover {border-color: var(--accent); color: var(--accent);}
@media print {.fr-modal {display: none;}}

/* ---------------- 文章（/articles/） ---------------- */
/* 列表：一篇一张卡，有封面就左图右文。做成"卡片"而不是纯文字列表，是因为
   文章常配包装照片 —— 封面就是这张卡的门面。 */
.article-list {display: flex; flex-direction: column; gap: 18px; margin-top: 18px;}
.article-cats {display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0;}
.ac-kicker {font-size: 10px; letter-spacing: .08em; color: var(--text-mute); margin-right: 2px;}
.ac-chip {display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim); font-size: 12px; text-decoration: none; line-height: 1.6;}
.ac-chip .mono {color: var(--text-mute); font-size: 10px;}
.ac-chip:hover {border-color: var(--accent); color: var(--accent);}
.ac-chip.is-on {background: var(--text); border-color: var(--text); color: var(--surface);}
.ac-chip.is-on .mono {color: var(--surface); opacity: .7;}
.ac-meta .am-cat {color: var(--accent);}
.ac-meta a.am-cat {text-decoration: none; border-bottom: 1px dotted currentColor;}
.ac-meta a.am-cat:hover {border-bottom-style: solid;}
.ac-meta a.am-author {color: inherit; text-decoration: none; border-bottom: 1px dotted transparent;}
.ac-meta a.am-author:hover {color: var(--accent); border-bottom-color: currentColor;}
.article-scope {font-size: 12px; color: var(--text-mute); margin: 8px 0 0;}
.article-scope strong {color: var(--text); font-weight: 600;}
.article-scope a {color: var(--accent); text-decoration: none;}
.article-scope a:hover {text-decoration: underline;}
.article-meta .am-cat {color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor;}
.article-meta .am-cat:hover {border-bottom-style: solid;}
.article-card {display: flex; gap: 0; border: 1px solid var(--border); background: var(--surface); align-items: stretch;}
.article-card.has-cover .ac-media {flex: 0 0 216px; overflow: hidden; border-right: 1px solid var(--border); background: var(--zebra);}
.article-card .ac-media img {display: block; width: 100%; height: 100%; object-fit: cover;}
.article-card .ac-body {padding: 14px 16px 16px; min-width: 0;}
.article-card.has-cover .ac-body {padding-left: 18px;}
.ac-title {font-size: 17px; font-weight: 600; margin: 0 0 6px; line-height: 1.4;}
.ac-title a {text-decoration: none;}
.ac-meta {font-size: 11px; color: var(--text-mute); margin: 0 0 8px;}
.ac-meta .am-sep {margin: 0 5px;}
.ac-summary {margin: 0 0 10px; color: var(--text-dim); line-height: 1.7;}
.ac-more {margin: 0; font-size: 12px;}
/* 搜索结果里的文章列表要更紧凑：那里主角是"两类结果"的对照，不是封面 */
.article-list.is-compact .article-card {border: 0; background: none;}
.article-list.is-compact .ac-body {padding: 0 0 10px;}

/* 详情：正文宽度单栏、行高放松（中文长文的可读性靠行高与栏宽） */
.article-page {max-width: 780px;}
.article-top {display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px;}
.article-top .breadcrumb {margin-bottom: 0;}
.article-top .admin-strip a {margin-left: 10px;}
.article-head {margin: 0 0 18px;}
.article-title {font-size: 28px; line-height: 1.3; margin: 0 0 10px;}
.article-meta {font-size: 12px; color: var(--text-mute); margin: 0;}
.article-meta .am-author {color: var(--text);}
.article-meta a.am-author {text-decoration: none; border-bottom: 1px dotted currentColor;}
.article-meta a.am-author:hover {color: var(--accent); border-bottom-style: solid;}
.article-copyright a {color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor;}
.article-copyright a:hover {color: var(--accent); border-bottom-style: solid;}
.article-meta .am-sep {margin: 0 6px;}
.article-meta .flag {margin-left: 8px;}
.article-cover {margin: 0 0 22px; border: 1px solid var(--border); background: var(--surface);}
.article-cover img {display: block; width: 100%; height: auto;}
.article-cover figcaption {padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-mute);}
.article-body {line-height: 1.9; font-size: 15px;}
/* 正文目录：文章与参考资料文本共用（生成逻辑在 Support\Toc）。 */
.page-toc {margin: 0 0 24px; border: 1px solid var(--border); background: var(--surface);}
.page-toc-box {padding: 0 14px 8px;}
.page-toc-head {display: flex; align-items: baseline; gap: 8px; padding: 10px 0 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 6px; cursor: pointer; list-style: none;}
.page-toc-head::-webkit-details-marker {display: none;}
.page-toc-arrow {display: inline-block; font-family: var(--mono); font-size: 10px; color: var(--text-mute);
  transition: transform .15s ease;}
.page-toc-box[open] .page-toc-arrow {transform: rotate(90deg);}
.page-toc-title {font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--text-mute);}
.page-toc-count {font-size: 10px; color: var(--text-mute);}
.page-toc-list {list-style: none; margin: 0; padding: 0;}
.page-toc-list .page-toc-sub {list-style: none; margin: 2px 0 4px 14px; padding: 0;}
.page-toc-list li {margin: 0;}
.page-toc-list a {display: block; padding: 2px 0; font-size: 12px; line-height: 1.55;
  color: var(--text-dim); text-decoration: none; overflow-wrap: anywhere;}
.page-toc-list a:hover, .page-toc-list a:focus-visible {color: var(--accent); text-decoration: underline; text-underline-offset: 2px;}
.page-toc-list .toc-l1 > a {font-size: 12.5px; font-weight: 600; color: var(--text);}
.page-toc-list .toc-l3 > a {font-size: 11.5px; color: var(--text-mute);}
.md h1[id], .md h2[id], .md h3[id] {scroll-margin-top: 18px;}
.article-figures {margin-top: 32px;}
.figure-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;}
.figure {margin: 0; border: 1px solid var(--border); background: var(--surface);}
.figure img {display: block; width: 100%; height: auto;}
.figure figcaption {padding: 6px 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-mute);}
.article-foot {margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--border);}
.article-copyright {font-size: 11px; color: var(--text-mute); line-height: 1.9; margin: 0 0 6px;}
/* 文章页脚的观点声明：与版权行同一块、比正文弱一档；后台「站点设置」可改，留空不显示 */
.article-disclaimer {font-size: 11px; color: var(--text-mute); line-height: 1.9; margin: 0 0 12px;}
.article-nav {display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px;}
.article-nav .an-index {margin-left: auto;}
.search-group {margin-top: 28px;}

@media (max-width: 640px) {
  .article-card {flex-direction: column;}
  .article-card.has-cover .ac-media {flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--border);}
  .article-card.has-cover .ac-media img {max-height: 210px;}
  .article-card.has-cover .ac-body {padding-left: 16px;}
  .article-title {font-size: 22px;}
  .article-nav .an-index {margin-left: 0;}
}

/* 文章 ↔ 条目：文章页的「文中提到的条目」用 .card-grid（沿用条目卡），
   条目页的「相关文章」用下面这套紧凑行 —— 条目页已经有六七个区块，不要再来一组大卡。 */
.article-items {margin-top: 34px;}
.article-refs {display: flex; flex-direction: column; gap: 10px;}
.article-ref {display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--border);
  background: var(--surface); padding: 10px 13px; text-decoration: none;}
.article-ref:hover {border-color: var(--accent);}
.article-ref .ar-title {font-weight: 600; line-height: 1.45;}
.article-ref .ar-meta {font-size: 11px; color: var(--text-mute);}
.article-ref .ar-sum {font-size: 12.5px; color: var(--text-dim); line-height: 1.6;}

/* 条目页的「相关视频」：外部链接，一行一个，播放图标只作视觉提示（不嵌播放器） */
.video-list {display: flex; flex-direction: column; gap: 8px;}
.video-ref {display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px;
  align-items: center; border: 1px solid var(--border);
  background: var(--surface); padding: 9px 12px; text-decoration: none; color: inherit;}
.video-ref:hover {border-color: var(--accent); color: var(--accent);}
.vr-play {width: 22px; height: 22px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--border); font-size: 10px; line-height: 1; color: var(--text-mute);}
.vr-title {min-width: 0; font-size: 13.5px; line-height: 1.5;}
.vr-host {font-size: 11px; color: var(--text-mute); white-space: nowrap;}
@media (max-width: 700px) {
  .video-ref {grid-template-columns: auto minmax(0, 1fr);}
  .vr-host {grid-column: 2; margin-top: -3px;}
}

/* 正文里插的条目卡片（[[card:msa-0001]]）：**左图右文的横版**（.card-compact）。
   正文里的卡片是"顺手点一下"的配角，不是主角 —— 竖版大卡在手机上几乎占满一屏，
   读者得划过一整张图才回到正文（站长 2026-10-11 反馈，参考知乎的卡片）。
   桌面两列、窄屏一列；缩略图固定 72px（窄屏 64px），标题最多两行。
   卡片本体仍是图鉴那张 .card，这里只把 .md 的通用排版按回去 —— .md h3 / .md p 的特异性
   比 .card-title / .card-id 高，不复位的话卡片标题会缩成 13px、编号下面还多一截外边距。 */
.md-item-cards {display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 0 0 16px;}
.md-item-cards .card-compact {flex-direction: row; align-items: stretch;}
.md-item-cards .card-compact .card-media {flex: 0 0 72px; width: 72px; border-right: 1px solid var(--border); background: var(--zebra);}
.md-item-cards .card-compact .card-media .pic {display: block; height: 100%;}
.md-item-cards .card-compact .card-media .pic img {width: 72px; height: 100%; min-height: 72px; object-fit: cover; border: 0;}
.md-item-cards .card-compact .card-media .placeholder {height: 100%; aspect-ratio: auto;}
.md-item-cards .card-compact .card-body {display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-width: 0; padding: 8px 11px; border-top: 0;}
.md-item-cards .card-compact .card-title {font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0; padding: 0; border: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;}
.md-item-cards .card-compact .card-sub {margin: 0; font-size: 10.5px;}
.md-item-cards .card-compact .card-id {margin: 0; font-size: 10.5px;}
.md-item-missing {color: var(--text-mute); font-size: 12px;}
@media (max-width: 640px) {
  .md-item-cards {grid-template-columns: 1fr; gap: 8px;}
  .md-item-cards .card-compact .card-media {flex-basis: 64px; width: 64px;}
  .md-item-cards .card-compact .card-media .pic img {width: 64px; min-height: 64px;}
  .md-item-cards .card-compact .card-title {font-size: 12.5px;}
}

/* ---------------- 贡献者申请 ---------------- */
.contrib-hero {max-width:880px;margin:32px auto 60px;padding:0 20px;}
.contrib-hero .lede {font-size:16px;line-height:1.7;margin:8px 0 18px;}
.contrib-step {margin-top:26px;}
.contrib-step + .contrib-step {margin-top:38px;padding-top:26px;border-top:1px solid var(--border);}
.contrib-step-kicker {font-size:10px;letter-spacing:.08em;color:var(--text-mute);margin:0 0 4px;}
.contrib-step h2 {font-size:16px;margin:0 0 10px;}
.contrib-step-next {display:flex;justify-content:flex-end;margin:12px 0 0;}
.contrib-step-back {font-size:11px;margin:0 0 12px;}
.contrib-rules {display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;margin:0 0 20px;list-style:none;color:var(--text-mute);font-size:12px;}
.contrib-rules li::before {content:"·";margin-right:7px;}
.contrib-start {max-width:560px;}
.contrib-summary {display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:6px 16px;margin:0;font-size:14px;}
.contrib-summary dt {color:var(--text-mute);}
.contrib-summary dd {margin:0;}
.contrib-images .admin-image-card {border:1px solid var(--border);background:var(--surface);padding:8px;margin:0;}
.contrib-images .admin-image-card img {display:block;width:100%;height:150px;object-fit:cover;}
.contrib-images .admin-image-card figcaption {font-size:11px;color:var(--text-mute);margin:6px 0;}
.contrib-cta {margin:22px 0 10px;}
.contrib-ack {border:1px solid var(--border);background:var(--surface);padding:10px 12px;margin:0 0 18px;}
.hp-field {position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

/* ---------------- 贡献者介绍（/contribute/） ----------------
   介绍页只在「权益」这一块用绿色勾号；其余仍是档案库的黑白灰。
   勾号是装饰，权益标题本身是 h3，屏幕阅读器不会读到重复的符号。 */
.ci-page {max-width:1040px;margin:0 auto;}
.ci-hero {padding:18px 0 34px;border-bottom:1px solid var(--border);}
.ci-kicker {font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0 0 10px;}
.ci-title {max-width:20ch;font-size:clamp(28px,4vw,40px);font-weight:600;line-height:1.18;letter-spacing:-.02em;margin:0 0 14px;}
.ci-lede {max-width:64ch;font-size:16px;line-height:1.75;color:var(--text-mute);margin-bottom:22px;}
.ci-lede p:last-child {margin-bottom:0;}
.ci-actions {display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.ci-btn {padding:10px 18px;font-size:14px;}
.ci-actions-note {font-size:12px;color:var(--text-mute);}
.ci-section {padding:32px 0;border-bottom:1px solid var(--border);}
.ci-section-head {display:flex;align-items:baseline;gap:12px;margin-bottom:16px;}
.ci-section-head h2 {font-size:15px;font-weight:600;}
.ci-benefits {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);}
.ci-benefit {display:flex;gap:12px;background:var(--surface);padding:18px 20px;}
.ci-check {flex:0 0 24px;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;margin-top:1px;border:1px solid rgba(45,106,79,.3);border-radius:50%;background:#eff7f2;color:var(--ok);font-size:14px;font-weight:700;line-height:1;}
.ci-benefit-body {min-width:0;}
.ci-benefit h3 {font-size:14px;line-height:1.4;margin:2px 0 5px;}
.ci-benefit p {font-size:12.5px;line-height:1.7;color:var(--text-mute);margin:0;}
.ci-benefit .ci-benefit-note {margin-top:5px;font-size:11px;color:#9a968e;}
.ci-body > * {max-width:760px;}
.ci-final {display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-top:32px;padding:24px 26px;border:1px solid var(--border);background:var(--surface);}
.ci-final h2 {font-size:20px;margin:0 0 4px;}
.ci-final p {max-width:58ch;margin:0;font-size:12.5px;line-height:1.7;color:var(--text-mute);}
.ci-final .ci-btn {flex:0 0 auto;}
@media (max-width:760px) {
  .ci-hero {padding-top:8px;}
  .ci-title {font-size:28px;}
  .ci-lede {font-size:15px;}
  .ci-benefits {grid-template-columns:1fr;}
  .ci-benefit {padding:16px;}
  .ci-section {padding:26px 0;}
  .ci-final {align-items:flex-start;padding:20px;margin-top:26px;}
  .ci-final .ci-btn {width:100%;}
}

/* 搜索结果：附件命中 + 条目命中位置。
   附件单独列一组，因为它们没有自己的页面；命中说明用 <mark> 标出查询词。
   条目卡下方的命中行是「为什么这条会出现」的答案 —— 只显示 1~3 行，不抢卡片本身。 */
.search-attachment-list {list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px;}
.search-attachment {border: 1px solid var(--border); background: var(--surface); padding: 10px 13px;}
.sa-head {display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;}
.sa-title {font-weight: 600; line-height: 1.5; text-decoration: none; border-bottom: 1px solid transparent;}
.sa-title:hover {color: var(--accent); border-bottom-color: currentColor;}
.sa-meta {font-size: 11px; color: var(--text-mute);}
.sa-from {font-size: 11px; margin: 4px 0 0; line-height: 1.6;}
.sa-from a {color: var(--text-dim); text-decoration: none; border-bottom: 1px dotted currentColor;}
.sa-from a:hover {color: var(--accent);}
.search-item {display: flex; flex-direction: column; min-width: 0;}
.search-item .card {flex: 1 1 auto;}
/* 命中片段常常是盘面标注这类长串（Office/Excel/PowerPoint/…），不折就会把整页撑宽：
   手机上条目卡是两列，命中文本把网格撑到 480px，右侧卡片被切掉（2026-10-31 站长要求排查）。 */
.search-hits {list-style: none; margin: 0; padding: 7px 10px 8px; border: 1px solid var(--border);
  border-top: 0; background: var(--zebra); font-size: 11.5px; line-height: 1.65; color: var(--text-dim);
  overflow-wrap: anywhere;}
.search-hits li + li {margin-top: 3px;}
.sh-label {display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-mute); font-size: 10.5px; line-height: 1.55; white-space: nowrap;}
.search-hit {margin: 5px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-dim); overflow-wrap: anywhere;}
.search-hit mark, .search-hits mark {background: #fff2a8; color: inherit; padding: 0 1px;}
@media (prefers-color-scheme: dark) {
  .search-hit mark, .search-hits mark {background: #6b5a12; color: #fff;}
}

/* ---------------- 侵权投诉 / DMCA / 下架通知 ---------------- */
.dmca-lang {display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 11px; color: var(--text-mute);}
.dmca-lang a {color: var(--text-mute); text-decoration: none; border-bottom: 1px solid transparent;}
.dmca-lang a:hover {color: var(--accent);}
.dmca-lang a.is-on {color: var(--text); border-bottom-color: var(--text);}
.dmca-page {max-width: 74ch;}
.dmca-page.dmca-narrow {max-width: 58ch;}
.dmca-lede {margin: 0 0 18px; color: var(--text-mute); font-size: 14px; line-height: 1.75;}
.dmca-official {margin: 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--accent); background: #fdf8f6; color: var(--text); font-size: 13px; line-height: 1.75;}
.dmca-steps {list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; counter-reset: dmca-step;}
.dmca-steps li {counter-increment: dmca-step; border: 1px solid var(--border); background: var(--surface); padding: 10px 12px; font-size: 12px; line-height: 1.55;}
.dmca-steps li::before {content: "0" counter(dmca-step); display: block; font-family: var(--mono); font-size: 10px; color: var(--text-mute); margin-bottom: 3px;}
.dmca-steps strong {display: block; font-size: 13px; margin-bottom: 2px;}
.dmca-steps span {color: var(--text-mute);}
.dmca-form {border: 1px solid var(--border); background: var(--surface); padding: 18px; margin: 0 0 16px;}
.dmca-form .field {margin-bottom: 14px;}
.dmca-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px;}
.dmca-form .f-label {font-size: 12px; color: var(--text-mute); display: block; margin-bottom: 4px;}
.dmca-form input[type="text"], .dmca-form input[type="email"], .dmca-form input[type="file"], .dmca-form textarea, .dmca-form select {width: 100%; box-sizing: border-box; border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 7px 9px; font-family: var(--sans); font-size: 13px;}
.dmca-form textarea {resize: vertical; line-height: 1.65;}
.dmca-form input[type="file"] {padding: 5px; font-size: 12px;}
.dmca-form .f-hint {display: block; margin-top: 4px; color: #a8a399; font-size: 11px; line-height: 1.6;}
.dmca-form .btn {margin-top: 2px;}
.check-line {display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; font-size: 12.5px; line-height: 1.65;}
.check-line input {margin-top: 3px; flex: 0 0 auto;}
.dmca-legal {border-left: 3px solid var(--border); background: #faf8f3; padding: 10px 12px; margin: 0 0 16px; font-size: 12.5px; line-height: 1.75; color: var(--text-mute);}
.dmca-legal p {margin: 0 0 8px;}
.dmca-legal p:last-child {margin-bottom: 0;}
.dmca-note {border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; line-height: 1.75; color: var(--text-mute);}
.dmca-note p {margin: 0 0 7px;}
.req {color: var(--accent);}
.dmca-captcha {display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap;}
.dmca-captcha img {display: block; width: 200px; height: 64px; border: 1px solid var(--border); background: #fff;}
.dmca-captcha a {font-size: 12px; color: var(--text-mute); text-decoration: underline;}
.dmca-hp {position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;}
.takedown-page {max-width: 74ch;}
.takedown-kicker {margin: 0 0 6px; font-size: 11px; letter-spacing: .06em; color: var(--text-mute);}
.takedown-card {border: 1px solid var(--border); background: var(--surface); padding: 18px 20px; margin: 18px 0;}
.takedown-meta {display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--border); font-size: 12.5px;}
.takedown-meta div {min-width: 0;}
.takedown-meta dt {color: var(--text-mute); font-size: 11px; margin-bottom: 2px;}
.takedown-meta dd {margin: 0; word-break: break-word;}
.takedown-notice {font-size: 14px; line-height: 1.8;}
.takedown-state {margin: 14px 0 0; padding: 8px 10px; border-left: 3px solid var(--warn, #9c6b00); background: #fdf8ec; color: #7a5400; font-size: 12.5px;}
.takedown-foot {font-size: 12.5px; color: var(--text-mute); line-height: 1.8;}
.takedown-foot .btn {margin: 2px 6px 2px 0;}
.prose-takedown {max-width: 74ch; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border);}
.prose-takedown h2 {font-size: 14px; margin: 0 0 8px;}
.prose-takedown p {font-size: 13px; line-height: 1.75; margin: 0 0 10px;}
@media (max-width: 640px) {
  .dmca-steps {grid-template-columns: 1fr;}
  .dmca-grid {grid-template-columns: 1fr;}
  .dmca-form {padding: 14px;}
  .takedown-meta {grid-template-columns: 1fr;}
}

/* ---------------- 条目页「参考资料」 ---------------- */
/* 竖排行，像「介质明细」一样用小缩略图；不在正文里铺大图，点整行才开灯箱。 */
.ref-list {list-style: none; padding: 0; margin: 0;}
.ref-item {border-bottom: 1px dotted var(--border);}
.ref-item:last-child {border-bottom: 0;}
.ref-main {display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 0;
  text-decoration: none; color: inherit;}
.ref-main:hover .ref-caption, .ref-main:hover .ref-open {color: var(--accent);}
.ref-thumb {flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);}
.ref-thumb .pic {display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;}
.ref-thumb .pic img {width: 100%; height: 100%; object-fit: contain;}
.ref-thumb .placeholder {width: 100%; height: 100%;}
.ref-seq {min-width: 24px; font-size: 11px; color: var(--text-mute);}
.ref-body {flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;}
.ref-caption {font-size: 13.5px; line-height: 1.5; color: var(--text); word-break: break-word;}
.ref-source {font-size: 11px; line-height: 1.5; color: var(--text-mute); word-break: break-word;}
.ref-open {flex: 0 0 auto; font-size: 11px; color: var(--accent); text-decoration: none;
  border-bottom: 1px dotted currentColor; white-space: nowrap;}
.ref-list + .ref-link-list {margin-top: 10px;}
@media (max-width: 640px) {
  .ref-main {gap: 10px;}
  .ref-thumb {flex-basis: 48px; width: 48px; height: 48px;}
  .ref-seq {min-width: 20px;}
}
.ref-link-list {display: flex; flex-direction: column; gap: 8px;}
.ref-link {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  border: 1px solid var(--border); background: var(--surface); padding: 9px 12px;
  text-decoration: none; color: inherit;}
.ref-link:hover {border-color: var(--accent); color: var(--accent);}
.ref-link-title {min-width: 0; font-size: 13.5px; line-height: 1.5; word-break: break-word;}
.ref-link-host {font-size: 11px; color: var(--text-mute); white-space: nowrap;}
.ref-link:hover .ref-link-host {color: var(--accent);}
@media (max-width: 700px) {
  .ref-link {grid-template-columns: 1fr;}
  .ref-link-host {margin-top: -3px;}
}
