/* 专题详情页（topic-page.js，第 4 轮 Part T2）的样式：作用域为 .topic-page > .page-head、.topic-page-tabs 与 .topic-tab-{overview,materials,reports,notes,settings}。
   版式取设计稿 e-formal 的“文件”语言（与今日、研究专题列表同一套）：白色纸面、细线分隔、左侧 88px 标签栏（--ss-report-label）+ 正文栏，
   宋体（--ss-font-serif）只用于标题与关键数字；声纳青只用于链接、引用、选中状态与新内容；每屏一个主按钮；用细线，不用卡片。
   页头带的几何与页签的窄屏滚动、渐隐沿用 formal-theme.css（.page-head.report-head、.tabs.deep-tabs，规格 23.41），这里只改字体、颜色、标签与页签计数。
   概览栅格同今日：≥1280px 正文 + 380px 右栏（间距 48）；1101–1279px 右栏 320（间距 40）；≤1100px 单栏、“专题概况”在正文之后。
   断点 1280 / 1100 / 800 / 480；颜色只用 var(--ss-*) 令牌或其 color-mix（深色主题随令牌切换）；不用 !important，不写内联样式；
   作用域内的 [hidden] 一律不显示（作者样式的 display 会盖过浏览器默认的 [hidden]）；强制配色、打印与减少动态效果各有对应规则。 */

/* ── 页头带：宋体标题、细边标签、研究问题与监测一行 ─────── */
.topic-page>.page-head [hidden]{display:none}
.topic-page>.page-head .page-title h1{font:700 28px/34px var(--ss-font-serif);letter-spacing:.01em;color:var(--ss-ink);overflow-wrap:anywhere;text-wrap:balance}
/* 首帧不认识的专题：标题位置为一条骨架线（读屏读到“正在读取专题…”） */
.topic-page>.page-head .page-title h1 .skeleton-bar{display:block;width:min(420px,60vw);height:26px;margin:5px 0}
/* 标签：细边、无底色（待核验为浅赭黄底），与标题基线居中 */
.topic-page>.page-head .page-title>.ss-tag{border:1px solid var(--ss-line);background:var(--ss-surface);color:var(--ss-ink-2);line-height:20px;font-weight:500}
.topic-page>.page-head .page-title>.ss-tag.tone-warn{border-color:color-mix(in srgb,var(--ss-warn) 45%,var(--ss-surface));background:var(--ss-warn-softer);color:var(--ss-warn-text)}
/* 元信息行：研究问题（正文色）与监测一行（说明色）在同一行，放不下时换行 */
.topic-page>.page-head .page-meta-row{column-gap:20px}
.topic-page>.page-head .page-meta-row>.page-meta{color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.6}
.topic-page>.page-head .topic-monitor-line{display:inline-flex;flex-wrap:wrap;align-items:baseline;margin:0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6}
.topic-page>.page-head .topic-monitor-line>.state-dot{align-self:center;font-size:inherit}
.topic-page>.page-head .topic-monitor-rest{white-space:pre-wrap;font-variant-numeric:tabular-nums}
.topic-page>.page-head .topic-archived-line{margin:0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6}

/* ── 页签：计数为无衬线小字（不再是等宽体），选中页签的计数随文字颜色 ─────── */
.topic-page-tabs .tab-count{margin-left:4px;color:var(--ss-muted);font:500 var(--ss-text-xs)/1 var(--ss-font);font-variant-numeric:tabular-nums}
.topic-page-tabs button.active .tab-count{color:inherit}

/* ── 内容区：作用域内 [hidden] 不显示；程序聚焦时不画大框（键盘聚焦仍有焦点框） ─────── */
:is(.topic-tab-overview,.topic-tab-materials,.topic-tab-reports,.topic-tab-notes,.topic-tab-settings) [hidden]{display:none}
:is(.topic-tab-overview,.topic-tab-materials,.topic-tab-reports,.topic-tab-notes,.topic-tab-settings):focus:not(:focus-visible){outline:none}
:is(.topic-tab-overview,.topic-tab-materials,.topic-tab-reports,.topic-tab-notes,.topic-tab-settings) .loading.skeleton{max-width:720px;padding:4px 0}
/* 两行的章节标签（如“已保存的 / 探索草稿”）：每行一个块 */
:is(.topic-tab-notes,.topic-tab-settings) .doc-label>.topic-label-line{display:block}
/* 图标（SVG 属性绘制）：箭头为描线，三点为填充 */
:is(.topic-tab-overview,.topic-tab-materials) .topic-icon{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:is(.topic-tab-overview,.topic-tab-materials) .topic-icon-dots{width:16px;height:16px;fill:currentColor;stroke:none}
/* 空态与说明：一句话 + 文字链接，不是卡片 */
:is(.topic-tab-overview,.topic-tab-materials,.topic-tab-reports,.topic-tab-notes,.topic-tab-settings) .topic-empty{margin:0;padding:14px 0 16px;color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.7}
:is(.topic-tab-materials,.topic-tab-reports,.topic-tab-notes) .topic-empty>p{margin:0 0 8px}
:is(.topic-tab-materials,.topic-tab-reports,.topic-tab-notes) .topic-empty>p:last-child{margin-bottom:0}
.topic-tab-materials .topic-empty-links{display:flex;flex-wrap:wrap;gap:4px 20px}
.topic-tab-materials .topic-empty-links a{display:inline-flex;align-items:center;min-height:32px;color:var(--ss-accent-text);font-weight:500}

/* ── 概览：正文栏 + 右栏“专题概况” ─────── */
.topic-tab-overview{--topic-rail:var(--ss-side-panel);--topic-gap:48px}
.topic-tab-overview>.overview-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--topic-rail);column-gap:var(--topic-gap);align-items:start}
.topic-tab-overview .overview-main{min-width:0}
.topic-tab-overview .overview-results{min-width:0}

/* 已发布正式报告一行：小标签 · 宋体标题 · 类型与状态 · 箭头；整行是链接，下方细线与“最新研究成果”分开 */
.topic-tab-overview a.overview-formal{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;padding:2px 0 12px;border-bottom:1px solid var(--ss-line);color:var(--ss-ink);text-decoration:none}
.topic-tab-overview .overview-formal-kicker{flex:none;color:var(--ss-muted);font:500 var(--ss-text-xs)/1.5 var(--ss-font);letter-spacing:.14em}
.topic-tab-overview .overview-formal-title{min-width:0;color:var(--ss-ink);font:600 var(--ss-text-lg)/1.5 var(--ss-font-serif);overflow-wrap:anywhere}
.topic-tab-overview .overview-formal-meta{color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6}
.topic-tab-overview a.overview-formal>.topic-icon{align-self:center;margin-left:auto;color:var(--ss-accent-text)}
.topic-tab-overview a.overview-formal:hover .overview-formal-title{color:var(--ss-accent-text);text-decoration:underline;text-underline-offset:4px}

/* 最新研究成果：小标签与“根据现有资料更新研究成果”一行，宋体标题、版本行、核对声明、操作行，正文按章节进入标签栏 */
.topic-tab-overview .overview-report{margin:0;padding:14px 0 4px;border-bottom:0}
.topic-tab-overview .overview-report-kicker{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 16px}
.topic-tab-overview .overview-kicker{margin:0;color:var(--ss-muted);font:500 var(--ss-text-xs)/1.5 var(--ss-font);letter-spacing:.14em}
.topic-tab-overview .overview-report-kicker>button.overview-update{min-height:32px;padding:4px 0;border:0;background:none;box-shadow:none;color:var(--ss-ink-2);font-size:var(--ss-text-sm);font-weight:500}
.topic-tab-overview .overview-report-kicker>button.overview-update:hover{color:var(--ss-primary-text);text-decoration:underline;text-underline-offset:3px}
.topic-tab-overview .overview-report-kicker>button.overview-update:active{transform:none}
.topic-tab-overview h2.overview-report-title{display:block;margin:4px 0 2px;color:var(--ss-ink);font:700 22px/1.45 var(--ss-font-serif);letter-spacing:.01em;text-wrap:balance;overflow-wrap:anywhere}
.topic-tab-overview .overview-version{margin:0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6;font-variant-numeric:tabular-nums}
.topic-tab-overview .overview-report .report-declaration,.topic-tab-overview .overview-older .report-declaration{margin:10px 0 0}
.topic-tab-overview .overview-report-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0}
/* 打开完整报告与演示是链接，外观同次按钮（32px 白底细边） */
.topic-tab-overview .overview-report-actions>a{display:inline-flex;align-items:center;min-height:32px;padding:5px 12px;border:1px solid var(--ss-line);border-radius:var(--ss-radius-control);background:var(--ss-surface);color:var(--ss-ink);font-size:var(--ss-text-sm);font-weight:500;line-height:1.5;text-decoration:none;white-space:nowrap}
.topic-tab-overview .overview-report-actions>a:hover{border-color:var(--ss-primary-text);color:var(--ss-primary-text);text-decoration:none}
.topic-tab-overview .overview-report-actions>button{font-weight:500}
/* 导出面板向右展开（菜单在操作行左侧，原来的 right:0 会向左越出正文栏）；A4 汇报版是链接时也按按钮排版 */
.topic-tab-overview .report-export-menu>.report-exports{left:0;right:auto}
.topic-tab-overview .report-exports>.report-a4-entry>a.report-a4-button{display:inline-flex;align-items:center;text-decoration:none}

/* 正文章节：左侧标签栏（计数 01、02… + 章节名）+ 正文栏，章节间细线；两种正文（分节正文与图文编排）同一规则 */
.topic-tab-overview :is(.overview-report-body,.overview-older-body){min-width:0;margin-top:14px;counter-reset:topic-section}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-sections{display:block}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section,
.topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section{display:grid;grid-template-columns:var(--ss-report-label) minmax(0,1fr);grid-auto-rows:min-content;column-gap:20px;margin:0;padding:14px 0 10px;border:0;border-top:1px solid var(--ss-line);border-radius:0;background:none}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>h5,
.topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section>h3{grid-column:1;grid-row:1/span 60;align-self:start;margin:0;padding:3px 0 0;border:0;color:var(--ss-muted);font:500 var(--ss-text-xs)/1.5 var(--ss-font);letter-spacing:.02em;overflow-wrap:anywhere;counter-increment:topic-section}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>h5::before,
.topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section>h3::before{content:counter(topic-section,decimal-leading-zero);display:block;color:var(--ss-primary-text);font:600 var(--ss-text-sm)/1.5 var(--ss-font-serif);letter-spacing:.04em;font-variant-numeric:tabular-nums lining-nums}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>:not(h5),
.topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section>:not(h3){grid-column:2;min-width:0}
.topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>.presentation-gaps>h3{color:var(--ss-warn-text)}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>h6{margin:8px 0 2px;color:var(--ss-ink);font-size:var(--ss-text-md);line-height:1.5;font-weight:600}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>h6:nth-child(2){margin-top:0}
/* 段落：15px、阅读行高、正文色；≥1280px 不超过约 42 个汉字宽；分节正文首段（核心结论）与研究概览为宋体主结论 */
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .answer{min-height:0;max-width:44rem;margin:0 0 8px;color:var(--ss-ink-2);font-size:15px;line-height:var(--ss-leading-read);text-wrap:pretty}
.topic-tab-overview :is(.overview-report-body,.overview-older-body) .answer:last-child{margin-bottom:4px}
.topic-tab-overview .overview-report-body .overview-section:first-child>.answer:first-of-type,
.topic-tab-overview .overview-report-body.report-presentation>.presentation-overview>.answer{color:var(--ss-ink);font:600 17px/1.7 var(--ss-font-serif);letter-spacing:.01em}
/* 图文编排：图表模块不再是圆角卡片，与章节同样以细线分隔、落在正文栏 */
.topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>figure.presentation-visual{margin:0 0 0 calc(var(--ss-report-label) + 20px);padding:14px 0 12px;border:0;border-top:1px solid var(--ss-line);border-radius:0;background:none}
.topic-tab-overview .presentation-visual>h3{margin:0 0 4px;color:var(--ss-ink);font-size:var(--ss-text-lg);line-height:1.45}
.topic-tab-overview .presentation-visual .presentation-kicker{margin:0 0 2px;letter-spacing:.14em}
/* 关键发现：宋体数字 1、2、3 编号，正文与“查看 n 条出处”在正文列 */
.topic-tab-overview .presentation-key-findings .presentation-findings{display:grid;gap:8px;margin:0;padding:0;list-style:none;counter-reset:topic-finding}
.topic-tab-overview .presentation-key-findings .presentation-findings>li{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:6px;font-size:15px;line-height:var(--ss-leading-read);counter-increment:topic-finding}
.topic-tab-overview .presentation-key-findings .presentation-findings>li::before{content:counter(topic-finding);grid-column:1;grid-row:1/span 3;color:var(--ss-primary-text);font:700 var(--ss-text-lg)/26px var(--ss-font-serif);font-variant-numeric:tabular-nums lining-nums}
.topic-tab-overview .presentation-key-findings .presentation-findings>li>*{grid-column:2;min-width:0}
.topic-tab-overview .presentation-key-findings .presentation-findings .answer{margin:0}
.topic-tab-overview .presentation-key-findings .presentation-kind{margin:0 2px 0 0}
.topic-tab-overview .presentation-findings .presentation-refs{justify-self:start;margin:1px 0 0;font-size:var(--ss-text-xs);line-height:1.5}
.topic-tab-overview .presentation-refs button.link-button{min-height:24px;color:var(--ss-accent-text);font-size:var(--ss-text-xs);font-weight:500}
.topic-tab-overview .presentation-refs .hint{color:var(--ss-muted);font-size:var(--ss-text-xs)}

/* 较早的研究成果：标签栏章节，每个研究一行可展开（标题 · 版本 · 日期），展开后为声明、操作与正文 */
.topic-tab-overview .overview-older-list{margin-top:10px}
/* 概览正文栏里的分节标签与章节标签同一字距（.02em），七个字的“较早的研究成果”在 88px 内一行放下 */
.topic-tab-overview .doc-section>.doc-label{letter-spacing:.02em}
.topic-tab-overview details.overview-older+details.overview-older{border-top:1px solid var(--ss-line-2)}
.topic-tab-overview details.overview-older>summary{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:baseline;column-gap:8px;min-height:36px;padding:6px 0;list-style:none;cursor:pointer}
.topic-tab-overview details.overview-older>summary::-webkit-details-marker{display:none}
.topic-tab-overview details.overview-older>summary::before{content:"";align-self:center;width:6px;height:6px;margin-left:2px;border:solid var(--ss-muted);border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);transition:transform 150ms ease-out}
.topic-tab-overview details.overview-older[open]>summary::before{transform:rotate(45deg)}
.topic-tab-overview .overview-older-title{min-width:0;color:var(--ss-ink);font-size:var(--ss-text-md);font-weight:500;line-height:1.55;overflow-wrap:anywhere}
.topic-tab-overview details.overview-older>summary:hover .overview-older-title{color:var(--ss-primary-text);text-decoration:underline;text-underline-offset:3px}
.topic-tab-overview .overview-older-meta{color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.55;white-space:nowrap;font-variant-numeric:tabular-nums}
.topic-tab-overview .overview-older-content{padding:0 0 14px 22px}
.topic-tab-overview .overview-older-more{margin:6px 0 0;color:var(--ss-muted);font-size:var(--ss-text-sm)}

/* 时间线摘要：日期列（宋体、海军蓝；计划为虚线框“计划”标记 + 石板灰）| 事件标题，行间细线 */
.topic-tab-overview .overview-timeline{margin-top:10px}
.topic-tab-overview .overview-timeline-list{display:grid;margin:0;padding:0;list-style:none}
.topic-tab-overview .overview-timeline-list>li{display:grid;grid-template-columns:8.5rem minmax(0,1fr);column-gap:16px;align-items:baseline;padding:6px 0;border-top:1px solid var(--ss-line-2)}
.topic-tab-overview .overview-timeline-list>li:first-child{padding-top:0;border-top:0}
.topic-tab-overview .overview-timeline-date{color:var(--ss-primary-text);font:600 var(--ss-text-md)/1.6 var(--ss-font-serif);font-variant-numeric:tabular-nums lining-nums;white-space:nowrap}
.topic-tab-overview .overview-timeline-list>li.is-planned .overview-timeline-date{color:var(--ss-plan-text);font-weight:500}
.topic-tab-overview .overview-timeline-date .plan-mark{display:inline-block;margin-right:2px;padding:0 4px;border:1px dashed var(--ss-plan);border-radius:var(--ss-radius-tag);color:var(--ss-plan-text);font:500 var(--ss-text-xs)/18px var(--ss-font);vertical-align:1px}
.topic-tab-overview .overview-timeline-title{min-width:0;color:var(--ss-ink);font-size:var(--ss-text-md);line-height:1.6;overflow-wrap:anywhere}
.topic-tab-overview a.overview-timeline-more{display:inline-flex;align-items:center;min-height:32px;margin-top:4px;color:var(--ss-accent-text);font-size:var(--ss-text-sm);font-weight:500}

/* 没有研究成果：一句话 + 次按钮“根据现有资料更新研究成果” */
.topic-tab-overview .overview-empty{padding:14px 0 18px;border-bottom:1px solid var(--ss-line)}
.topic-tab-overview .overview-empty-text{max-width:40rem;margin:6px 0 12px;color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.7}
.topic-tab-overview .overview-empty>button.overview-update{font-weight:500}

/* 专题概况栏：小标签下一条墨色细线；链接行（数字为宋体海军蓝，箭头悬停变声纳青），再是研究范围与关键词两段文字 */
.topic-tab-overview .overview-rail{min-width:0}
.topic-tab-overview .overview-rail[hidden]{display:none}
.topic-tab-overview .overview-rail-label{margin:0;padding:0 0 8px;border-bottom:1px solid var(--ss-ink);color:var(--ss-muted);font:500 var(--ss-text-xs)/1.5 var(--ss-font);letter-spacing:.14em}
.topic-tab-overview .overview-figures{margin:0;padding:0;list-style:none}
.topic-tab-overview .overview-figures>li{border-bottom:1px solid var(--ss-line)}
.topic-tab-overview a.overview-figure{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px;min-height:40px;padding:7px 0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6;text-decoration:none;font-variant-numeric:tabular-nums}
.topic-tab-overview a.overview-figure .overview-num{color:var(--ss-primary-text);font:600 var(--ss-text-xl)/1.2 var(--ss-font-serif);font-variant-numeric:tabular-nums lining-nums}
.topic-tab-overview a.overview-figure.is-warn,.topic-tab-overview a.overview-figure.is-warn .overview-num{color:var(--ss-warn-text)}
.topic-tab-overview a.overview-figure>.topic-icon{align-self:center;margin-left:auto;color:var(--ss-faint)}
.topic-tab-overview a.overview-figure:hover{color:var(--ss-ink-2);text-decoration:none}
.topic-tab-overview a.overview-figure:hover>.topic-icon{color:var(--ss-accent-text)}
.topic-tab-overview a.overview-monitor{align-items:center;column-gap:0;color:var(--ss-muted)}
.topic-tab-overview a.overview-monitor>.state-dot{font-size:var(--ss-text-sm)}
.topic-tab-overview a.overview-monitor:hover{color:var(--ss-ink-2)}
.topic-tab-overview .overview-monitor-rest{white-space:pre-wrap}
.topic-tab-overview .overview-facts{display:grid;gap:10px;margin:14px 0 0}
.topic-tab-overview .overview-facts>div{display:grid;gap:2px;min-width:0}
.topic-tab-overview .overview-facts dt{color:var(--ss-muted);font:500 var(--ss-text-xs)/1.5 var(--ss-font);letter-spacing:.14em}
.topic-tab-overview .overview-facts dd{margin:0;color:var(--ss-ink-2);font-size:var(--ss-text-sm);line-height:1.65;overflow-wrap:anywhere}

/* ── 资料：工具条（查找 · 审核状态 · 只看重点 · 查看已排除）、计数行、正式表格与每行“更多操作” ─────── */
.topic-tab-materials .topic-materials-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 8px}
.topic-tab-materials .topic-materials-toolbar>.search-box{flex:1 1 220px;max-width:300px}
.topic-tab-materials .topic-status-chips{gap:6px}
.topic-tab-materials button.chip{display:inline-flex;align-items:center;min-height:28px;padding:3px 10px;border:1px solid var(--ss-line);border-radius:var(--ss-radius-control);background:var(--ss-surface);box-shadow:none;color:var(--ss-ink-2);font-size:var(--ss-text-sm);font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums}
.topic-tab-materials button.chip:hover{border-color:var(--ss-ink-2);color:var(--ss-ink)}
.topic-tab-materials button.chip:active{transform:none}
.topic-tab-materials button.chip[aria-pressed=true]{border-color:var(--ss-primary-text);background:var(--ss-primary-soft);color:var(--ss-primary-text);font-weight:500}
.topic-tab-materials .topic-materials-toolbar>label.check{min-height:32px;color:var(--ss-ink-2);font-size:var(--ss-text-sm);font-weight:400}
.topic-tab-materials .topic-materials-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 16px;margin:0 0 6px}
.topic-tab-materials :is(.topic-materials-count,.topic-review-note){margin:0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6;font-variant-numeric:tabular-nums}
/* 表格：资料列占满余宽；加入为等宽数字；审核下拉框不超过 8em；操作列只放菜单按钮 */
.topic-tab-materials .topic-material-card{margin:0}
.topic-tab-materials table.topic-material-table thead th:nth-child(2){width:5.5em}
.topic-tab-materials table.topic-material-table thead th:nth-child(3){width:8.5em}
.topic-tab-materials table.topic-material-table thead th:nth-child(4){width:8em}
.topic-tab-materials table.topic-material-table thead th:nth-child(5){width:48px}
.topic-tab-materials table.topic-material-table td{vertical-align:top}
.topic-tab-materials .topic-material-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.topic-tab-materials button.topic-material-title{min-height:0;color:var(--ss-ink);font-size:var(--ss-text-md);font-weight:600;line-height:1.55;text-align:left}
.topic-tab-materials button.topic-material-title:hover{color:var(--ss-accent-text);text-decoration:underline;text-underline-offset:3px}
.topic-tab-materials .topic-material-flags{display:inline-flex;flex-wrap:wrap;gap:4px}
.topic-tab-materials .topic-material-flags>.ss-tag{line-height:18px}
.topic-tab-materials .topic-material-note{display:-webkit-box;margin:2px 0 0;overflow:hidden;color:var(--ss-ink-2);font-size:var(--ss-text-sm);line-height:1.6;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow-wrap:anywhere}
.topic-tab-materials .topic-material-source{margin-top:2px;overflow-wrap:anywhere}
.topic-tab-materials td.topic-material-added{color:var(--ss-ink-2);white-space:nowrap;font-variant-numeric:tabular-nums}
.topic-tab-materials td.topic-material-status select{width:100%;min-width:0;max-width:8em;min-height:30px;padding-top:3px;padding-bottom:3px;font-size:var(--ss-text-sm)}
.topic-tab-materials td.topic-material-status .state-dot{white-space:nowrap}
.topic-tab-materials td.topic-material-kind{color:var(--ss-ink-2);overflow-wrap:anywhere}
.topic-tab-materials td.topic-material-menu{text-align:right}
.topic-tab-materials tr.is-excluded button.topic-material-title{color:var(--ss-muted);font-weight:500}
/* 每行菜单：三点图标，不画下拉三角；面板向左展开、贴住右缘 */
.topic-tab-materials .topic-row-menu{display:inline-block;text-align:left}
.topic-tab-materials .topic-row-menu>summary::after{content:none}
.topic-tab-materials .topic-row-menu>.action-menu-panel{right:0;left:auto}
.topic-tab-materials .topic-materials-more{margin:12px 0 0}
.topic-tab-materials .topic-materials-more:empty{display:none}
.topic-tab-materials .topic-materials-filtered{border-bottom:1px solid var(--ss-line)}

/* ── 正式报告：说明一行 + 次按钮“新建报告”，其下墨色细线与链接登记表 ─────── */
.topic-tab-reports .topic-reports-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;padding:0 0 12px;border-bottom:1px solid var(--ss-ink)}
.topic-tab-reports .topic-reports-dek{flex:1 1 24rem;max-width:44rem;margin:0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.65}
.topic-tab-reports .topic-new-report{flex:none;font-weight:500}
.topic-tab-reports .topic-report-list{margin:0;padding:0;list-style:none}
.topic-tab-reports .topic-report-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:24px;padding:12px 0;border-bottom:1px solid var(--ss-line)}
.topic-tab-reports a.report-row{justify-self:start;color:var(--ss-ink);font:600 var(--ss-text-lg)/1.5 var(--ss-font-serif);text-decoration:none;overflow-wrap:anywhere}
.topic-tab-reports a.report-row:hover{color:var(--ss-accent-text);text-decoration:underline;text-underline-offset:4px}
.topic-tab-reports .report-meta{margin:0;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6;white-space:nowrap;font-variant-numeric:tabular-nums}
.topic-tab-reports .topic-report-item.is-published .report-meta{color:var(--ss-ink-2)}
.topic-tab-reports .topic-reports-empty{border-bottom:1px solid var(--ss-line)}

/* ── 笔记：标签栏章节；阅读视图（宋体小标题、阅读行高的段落、编号引用与“〔原文引用〕”），编辑表单 ─────── */
/* 阅读视图：笔记正文在左，“编辑笔记”在右上角与首个小标题同一行；编辑时表单占满正文栏 */
.topic-tab-notes .topic-notes>.doc-body{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:start}
.topic-tab-notes .topic-notes>.doc-body>*{grid-column:1/-1}
.topic-tab-notes .topic-notes>.doc-body>.topic-notes-tools{grid-column:2;grid-row:1}
.topic-tab-notes .topic-notes>.doc-body>:is(.topic-notes-view,.topic-notes-empty){grid-column:1;grid-row:1}
.topic-tab-notes .topic-notes-tools{display:flex;justify-content:flex-end;margin:0}
.topic-tab-notes .topic-notes-tools>button{font-weight:500}
.topic-tab-notes .topic-notes-view{max-width:44rem}
.topic-tab-notes .topic-notes-heading{margin:4px 0 8px;color:var(--ss-ink);font-family:var(--ss-font-serif);line-height:1.45;letter-spacing:.01em}
.topic-tab-notes h3.topic-notes-heading{font-size:var(--ss-text-xl);font-weight:700}
.topic-tab-notes h4.topic-notes-heading{margin-top:12px;font-size:var(--ss-text-lg);font-weight:600}
.topic-tab-notes .topic-notes-view>.topic-notes-heading:first-child{margin-top:0}
.topic-tab-notes .answer.topic-note-paragraph{min-height:0;margin:0 0 10px;color:var(--ss-ink-2);font-size:15px;line-height:var(--ss-leading-read);text-wrap:pretty}
.topic-tab-notes .note-source-ref{color:var(--ss-muted);font-size:var(--ss-text-sm);white-space:nowrap}
.topic-tab-notes .topic-notes-empty{padding-top:4px}
.topic-tab-notes form.topic-notes-form{display:grid;gap:10px;max-width:48rem;margin:0;padding:0;border:0}
.topic-tab-notes form.topic-notes-form>label.field{color:var(--ss-muted);font-size:var(--ss-text-xs);letter-spacing:.06em}
.topic-tab-notes textarea.topic-notes-input{width:100%;min-height:300px;color:var(--ss-ink);font-size:15px;line-height:var(--ss-leading-read);resize:vertical}
.topic-tab-notes form.topic-notes-form>[role=alert]{margin:0;color:var(--ss-danger-text);font-size:var(--ss-text-sm)}
.topic-tab-notes .topic-saved-list{margin:0;padding:0;list-style:none}
.topic-tab-notes .topic-saved-list>li{padding:6px 0;border-top:1px solid var(--ss-line-2);color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.topic-tab-notes .topic-saved-list>li:first-child{padding-top:0;border-top:0}
/* 表单按钮行：主按钮 + 取消（笔记），或主按钮 + 提示（设置） */
:is(.topic-tab-notes,.topic-tab-settings) .topic-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
:is(.topic-tab-notes,.topic-tab-settings) .topic-form-actions>button{font-weight:500}

/* ── 设置：基本信息与研究范围两节（表单），主按钮与正文栏左缘对齐；监测与归档两节只有说明 ─────── */
.topic-tab-settings form.topic-settings-form{display:block;margin:0;padding:0;border:0}
.topic-tab-settings .topic-settings-basic>.doc-body{display:grid;gap:14px;max-width:40rem}
.topic-tab-settings .topic-settings-scope>.doc-body{max-width:48rem}
.topic-tab-settings .doc-body label.field{gap:6px;color:var(--ss-muted);font-size:var(--ss-text-xs);font-weight:500;letter-spacing:.06em}
.topic-tab-settings .doc-body label.field>:is(input,select,textarea){letter-spacing:0}
.topic-tab-settings textarea.topic-settings-question{min-height:0;resize:vertical}
.topic-tab-settings .topic-settings-hint{margin:2px 0 0;color:var(--ss-muted);font-size:var(--ss-text-xs);line-height:1.6}
.topic-tab-settings .topic-settings-actions{padding:4px 0 18px calc(var(--ss-report-label) + 24px)}
.topic-tab-settings .topic-settings-actions>button{order:1}
.topic-tab-settings .topic-settings-actions>[role=alert]{order:2;flex:1 1 16rem;margin:0;color:var(--ss-danger-text);font-size:var(--ss-text-sm)}
.topic-tab-settings .topic-settings-text{max-width:40rem;margin:0 0 10px;color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.7}
.topic-tab-settings .topic-settings-text:last-child{margin-bottom:0}
.topic-tab-settings .topic-settings-text a{color:var(--ss-accent-text);font-weight:500}
.topic-tab-settings .topic-settings-monitor-line{display:flex;flex-wrap:wrap;align-items:baseline;margin:0 0 6px;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.6}
.topic-tab-settings .topic-settings-monitor-line>.state-dot{align-self:center}
.topic-tab-settings .topic-settings-monitor-rest{white-space:pre-wrap;font-variant-numeric:tabular-nums}
.topic-tab-settings .topic-settings-archive .topic-archive{font-weight:500}

/* ── 1101–1279px：右栏收窄为 320px、间距 40 ─────── */
@media(max-width:1279px){
  .topic-tab-overview{--topic-rail:var(--ss-report-rail-narrow);--topic-gap:40px}
}
/* ── ≤1100px：概览单栏，“专题概况”在正文之后，同样是“标签栏 + 正文”分节，链接行两列 ─────── */
@media(max-width:1100px){
  .topic-tab-overview>.overview-layout{grid-template-columns:minmax(0,1fr)}
  .topic-tab-overview .overview-rail{display:grid;grid-template-columns:var(--ss-report-label) minmax(0,1fr);column-gap:20px;align-items:start;margin-top:12px;padding:14px 0 4px;border-top:1px solid var(--ss-line)}
  .topic-tab-overview .overview-rail-label{grid-column:1;grid-row:1/span 2;padding:3px 0 0;border-bottom:0}
  .topic-tab-overview .overview-rail>:not(.overview-rail-label){grid-column:2;min-width:0}
  .topic-tab-overview .overview-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
  .topic-tab-overview .overview-figures>li{border-top:1px solid var(--ss-line);border-bottom:0}
  .topic-tab-overview .overview-figures>li:nth-child(-n+2){border-top:0}
  .topic-tab-overview .overview-facts{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;margin-top:10px;padding-top:12px;border-top:1px solid var(--ss-line)}
}
/* ── ≤800px：标签栏折到上方；演示不提供；导出面板浮在操作行下方；资料表改为堆叠行；页头标题 24px ─────── */
@media(max-width:800px){
  .topic-page>.page-head .page-title h1{font-size:var(--ss-text-2xl);line-height:32px}
  .topic-tab-overview a.overview-present{display:none}
  .topic-tab-overview .overview-report-actions{position:relative}
  .topic-tab-overview .overview-report-actions>.report-export-menu{position:static}
  .topic-tab-overview .overview-report-actions>.report-export-menu>.report-exports{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:5;width:auto;max-height:min(70dvh,560px);overflow:auto;margin:0;box-shadow:var(--ss-shadow-pop)}
  .topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section,
  .topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section{grid-template-columns:minmax(0,1fr);row-gap:4px}
  .topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>h5,
  .topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section>h3{grid-row:auto;padding-top:0}
  .topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>h5::before,
  .topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section>h3::before{display:inline;margin-right:8px}
  .topic-tab-overview :is(.overview-report-body,.overview-older-body) .overview-section>:not(h5),
  .topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>section>:not(h3){grid-column:1}
  .topic-tab-overview :is(.overview-report-body,.overview-older-body).report-presentation>figure.presentation-visual{margin-left:0}
  .topic-tab-overview .overview-older-content{padding-left:0}
  .topic-tab-overview .overview-rail{grid-template-columns:minmax(0,1fr);row-gap:8px}
  .topic-tab-overview .overview-rail-label{grid-row:auto;padding:0}
  .topic-tab-overview .overview-rail>:not(.overview-rail-label){grid-column:1}
  /* 资料表堆叠：第一行为资料（标题、标签、笔记、来源）与菜单按钮，第二行为加入 · 审核 · 分类（各带小标签）；表头只留给读屏 */
  .topic-tab-materials table.topic-material-table,.topic-tab-materials table.topic-material-table tbody{display:block;width:100%}
  .topic-tab-materials table.topic-material-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .topic-tab-materials table.topic-material-table tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 0 12px;border-bottom:1px solid var(--ss-line)}
  .topic-tab-materials table.topic-material-table tbody tr:first-child{border-top:1px solid var(--ss-ink)}
  .topic-tab-materials table.topic-material-table tbody tr>td{display:block;padding:0;border:0}
  .topic-tab-materials table.topic-material-table tbody tr>td.topic-material-main{flex:1 1 calc(100% - 64px);min-width:0;order:1}
  .topic-tab-materials table.topic-material-table tbody tr>td.topic-material-menu{flex:0 0 auto;order:2;align-self:flex-start}
  .topic-tab-materials table.topic-material-table tbody tr>td:is(.topic-material-added,.topic-material-status,.topic-material-kind){display:inline-flex;flex:0 1 auto;align-items:center;gap:6px;order:3;min-width:0;color:var(--ss-ink-2);font-size:var(--ss-text-sm)}
  .topic-tab-materials table.topic-material-table tbody tr>td[data-label]::before{content:attr(data-label);flex:none;color:var(--ss-muted);font-size:var(--ss-text-xs);letter-spacing:.06em}
  .topic-tab-materials td.topic-material-status select{width:auto;max-width:none}
  .topic-tab-reports .topic-report-item{grid-template-columns:minmax(0,1fr);row-gap:2px}
  .topic-tab-reports .report-meta{white-space:normal}
  .topic-tab-settings .topic-settings-actions{padding-left:0}
}
/* ── ≤480px：页头标题 20px；页签、筹码、菜单、查找框、设置字段、表单按钮与链接行不低于 44px（页签用页头作用域压过 workbench.css 的 min-height:0）；时间线摘要日期在上 ─────── */
@media(max-width:480px){
  .topic-page>.page-head .page-title h1{margin-right:8px;font-size:var(--ss-text-xl);line-height:28px}
  .topic-page>.page-head .page-title>.ss-tag{margin:0 8px 0 0;vertical-align:3px}
  .topic-page>.page-head .topic-page-tabs button{min-height:44px}
  .topic-tab-overview .overview-report-kicker>button.overview-update,
  .topic-tab-overview .overview-report-actions>a,
  .topic-tab-overview .overview-report-actions>button,
  .topic-tab-overview .overview-report-actions>.report-export-menu>summary,
  .topic-tab-overview a.overview-timeline-more,
  .topic-tab-overview .overview-empty>button.overview-update{min-height:44px}
  .topic-tab-overview a.overview-figure{min-height:44px}
  .topic-tab-overview details.overview-older>summary{grid-template-columns:14px minmax(0,1fr);min-height:44px}
  .topic-tab-overview .overview-older-meta{grid-column:2;white-space:normal}
  .topic-tab-overview .overview-timeline-list>li{grid-template-columns:minmax(0,1fr);row-gap:0}
  .topic-tab-overview .overview-timeline-date{font-size:var(--ss-text-sm)}
  .topic-tab-overview .overview-figures,.topic-tab-overview .overview-facts{grid-template-columns:minmax(0,1fr)}
  .topic-tab-overview .overview-figures>li:nth-child(2){border-top:1px solid var(--ss-line)}
  .topic-tab-materials .topic-materials-toolbar>.search-box{flex-basis:100%;max-width:none}
  .topic-tab-materials .topic-materials-toolbar input[type=search],
  .topic-tab-settings :is(input:not([type=checkbox]):not([type=radio]),select){min-height:44px}
  .topic-tab-materials button.chip{position:relative;min-height:36px}
  .topic-tab-materials button.chip::after{content:"";position:absolute;inset:-4px 0}
  .topic-tab-materials .topic-materials-toolbar>label.check{min-height:44px}
  .topic-tab-materials button.topic-material-title{position:relative}
  .topic-tab-materials button.topic-material-title::after{content:"";position:absolute;inset:-8px 0}
  .topic-tab-materials td.topic-material-status select{min-height:44px}
  .topic-tab-materials .topic-materials-more>button,.topic-tab-materials .topic-empty button,.topic-tab-materials .topic-empty-links a{min-height:44px}
  .topic-tab-reports .topic-reports-head>button{flex:1 1 100%;min-height:44px}
  .topic-tab-reports a.report-row{display:inline-block;padding:6px 0}
  .topic-tab-notes .topic-notes-tools>button,.topic-tab-notes .topic-form-actions>button{min-height:44px}
  .topic-tab-notes .topic-notes>.doc-body{grid-template-columns:minmax(0,1fr);row-gap:8px}
  .topic-tab-notes .topic-notes>.doc-body>:is(.topic-notes-tools,.topic-notes-view,.topic-notes-empty){grid-column:1;grid-row:auto}
  .topic-tab-notes .topic-notes-tools>button{flex:1 1 auto}
  :is(.topic-tab-notes,.topic-tab-settings) .topic-form-actions>button{flex:1 1 auto;min-height:44px}
  .topic-tab-settings .topic-settings-archive .topic-archive{width:100%;min-height:44px}
  .topic-tab-settings .topic-settings-text a{display:inline-block;padding:10px 0}
}

/* ── 强制配色：细线、标签边框、计数与菜单按钮保持可见 ─────── */
@media(forced-colors:active){
  .topic-page>.page-head .page-title>.ss-tag{border-color:CanvasText}
  .topic-tab-overview :is(.overview-rail-label,.overview-figures>li,a.overview-formal,.overview-report-body .overview-section),
  .topic-tab-reports :is(.topic-reports-head,.topic-report-item){border-color:CanvasText}
  .topic-tab-overview .overview-timeline-date .plan-mark{border-color:CanvasText}
  .topic-tab-materials button.chip[aria-pressed=true]{border:2px solid Highlight}
  .topic-tab-overview details.overview-older>summary::before{border-color:CanvasText}
}

/* ── 打印：纸面只留标题、正文、表格与说明；菜单、按钮与概况链接的箭头不打印，较早成果展开 ─────── */
@media print{
  .topic-tab-overview>.overview-layout{display:block}
  .topic-tab-overview .overview-rail{margin-top:16px;padding-top:12px;border-top:1px solid var(--ss-ink)}
  .topic-tab-overview :is(.overview-report-kicker>button,.overview-report-actions,.overview-timeline-more,.topic-icon),
  .topic-tab-materials :is(.topic-materials-toolbar,.topic-materials-more,.topic-material-menu),
  .topic-tab-reports .topic-new-report,
  .topic-tab-notes .topic-notes-tools,
  .topic-tab-settings :is(.topic-settings-actions,.topic-archive){display:none}
  .topic-tab-overview :is(.overview-report-body,.overview-older-body) .answer{max-width:none}
  .topic-tab-materials table.topic-material-table tr{break-inside:avoid}
}

/* ── 减少动态效果：展开箭头不旋转过渡 ─────── */
@media(prefers-reduced-motion:reduce){
  .topic-tab-overview details.overview-older>summary::before{transition:none}
}
