/*
 * 正式版主题层（令牌 v2.2，2026-10-12，待确认后才上线）。
 * 输入：tokens.css 的 --ss-* 令牌与 fonts/fonts.css 的自托管宋体；research.html 的 .topbar 与 nav#breadcrumb.page-crumbs 结构。
 * 作用：在页面样式之后、演示与 A4 视图样式（report-present.css、report-a4.css）之前加载。统一正文字体，页面主标题改用宋体；「顶栏」一节是海军蓝单条顶栏
 *       （品牌、四个主导航、资料库搜索、账户菜单），「位置路径」一节是页面区内的位置路径。配色全部来自令牌，不写死颜色。
 *       「报告文件版式」一节是报告阅读面（深度研究报告页、专题概览、正式报告）的结论优先版式；
 *       「演示与 A4 入口（第 2 轮）」一节是报告工具条上的“演示”按钮与“导出”菜单中的 A4 汇报版入口。
 * 后续：其余结构改动按节追加在本文件末尾，并删掉被覆盖的旧规则。
 * 第 4 轮整合：图文编排的章节隐式行改为 min-content（标签栏 h3 跨 40 行时短章节不再多出约 40px 底部空白）；
 *       报告区内未满足全文定位的引用（.is-abs）恢复虚线框（原规则被报告区引用规则的更高特异度盖掉）。
 */

/* 正文与界面：旧样式在 body 上写死了 Segoe UI，这里统一回到令牌字体 */
body,button,input,select,textarea{font-family:var(--ss-font)}

/* 页面主标题：宋体加粗，字距略收，避免与界面黑体混为一体 */
main h1,.titlebar h1,.explore-hero h1{font-family:var(--ss-font-serif);font-weight:700;letter-spacing:.01em}

/* ===== 顶栏（v2.1）=====
   海军蓝、54px（令牌 --ss-topbar-height，含 1px 底线）、不吸顶；内层宽度跟随 main（最大 1720px，左右边距同页面边距）。
   结构：.topbar > .topbar-in > a.brand + nav.mainnav + form#topbar-search + a.topbar-search-link + .account（#account-toggle + #account-menu）。
   断点：1100 搜索框 260px；900 收起品牌副名、搜索框 200px；800 同一行只留标识、导航收紧、搜索变为图标、账户菜单改为整宽面板；359 收起标识。 */
.topbar{position:relative;z-index:30;height:var(--ss-topbar-height);background:var(--ss-navy);color:var(--ss-on-navy);border-bottom:1px solid var(--ss-navy-3);font-size:var(--ss-text-md);line-height:1.4}
/* 深色主题的海军蓝与页面底只差 1.03:1，用分隔线色画出顶栏下沿 */
[data-theme=dark] .topbar{border-bottom-color:var(--ss-line)}
.topbar-in{display:flex;align-items:center;gap:24px;height:100%;max-width:1720px;margin:0 auto;padding:0 32px}

/* 顶栏内焦点框改为海军蓝上可见的浅青；按钮去掉全站按钮的底色、描边、阴影、最小高度与按下缩放 */
.topbar :focus-visible{outline:2px solid var(--ss-accent-on-navy);outline-offset:2px}
.topbar button{min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;transform:none}
.topbar button:hover{border-color:transparent;box-shadow:none;color:inherit}
.topbar button:active{transform:none}
.topbar a:hover{text-decoration:none}

/* 品牌：标识四角与声波反白、声纳用浅青，只在顶栏内生效；登录页克隆的标识仍为墨色四角与声纳青 */
.topbar .brand{display:inline-flex;align-items:center;gap:10px;flex:none;color:var(--ss-on-navy);white-space:nowrap}
.topbar .brand-mark{display:block;flex:0 0 26px;width:26px;height:26px;color:var(--ss-on-navy)}
.topbar .brand-mark .mark-wave{stroke:var(--ss-on-navy)}
.topbar .brand-mark .mark-dot{fill:var(--ss-accent-on-navy)}
.topbar .brand-name{font-size:var(--ss-text-lg);font-weight:700;letter-spacing:.01em;line-height:1}
.topbar .brand-sub{padding-left:10px;border-left:1px solid var(--ss-on-navy-line);color:var(--ss-on-navy-muted);font-size:var(--ss-text-sm);line-height:1}

/* 主导航：整条栏高都是点击区；当前项只认 aria-current，白字加 2px 浅青下划线；右侧留白把搜索与账户推到最右 */
.mainnav{align-self:stretch;flex:none;margin-right:auto}
.mainnav ul{display:flex;gap:4px;height:100%;margin:0;padding:0;list-style:none}
.mainnav li{display:flex}
.mainnav a{position:relative;display:flex;align-items:center;padding:0 12px;color:var(--ss-on-navy-muted);font-size:var(--ss-text-md);font-weight:500;line-height:1;white-space:nowrap}
.mainnav a:hover,.mainnav a[aria-current=page]{color:var(--ss-on-navy)}
.mainnav a[aria-current=page]::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:var(--ss-accent-on-navy)}
.mainnav a:focus-visible{outline-offset:-4px}

/* 资料库搜索：320×34 半透明框；800px 以下改为 34px 图标链接 */
.topbar-search{display:flex;align-items:center;gap:8px;flex:0 1 320px;width:320px;min-width:0;height:34px;padding:0 10px;border:1px solid var(--ss-on-navy-line);border-radius:var(--ss-radius-tag);background:var(--ss-on-navy-fill);color:var(--ss-on-navy-muted)}
.topbar-search:hover{background:var(--ss-on-navy-fill-hover)}
.topbar-search:focus-within{border-color:var(--ss-accent-on-navy);background:var(--ss-on-navy-fill-hover)}
.topbar-search svg,.topbar-search-link svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.topbar .topbar-search input{flex:1;width:auto;max-width:none;min-width:0;height:32px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ss-on-navy);font-size:var(--ss-text-sm)}
.topbar .topbar-search input::placeholder{color:var(--ss-on-navy-muted);opacity:1}
.topbar .topbar-search input:focus-visible{outline:0}
.topbar-search-link{display:none;place-items:center;flex:none;width:34px;height:34px;border:1px solid var(--ss-on-navy-line);border-radius:var(--ss-radius-tag);background:var(--ss-on-navy-fill);color:var(--ss-on-navy)}
.topbar-search-link:hover{background:var(--ss-on-navy-fill-hover)}

/* 账户：30px 头像按钮；当前页在账户菜单里时头像外加一圈浅青 */
.account{position:relative;display:flex;align-items:center;align-self:stretch;flex:none}
.topbar .account-toggle{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%}
.account-toggle #identity{display:inline-grid;place-items:center}
.topbar .avatar{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid var(--ss-on-navy-line);border-radius:50%;background:var(--ss-navy-2);color:var(--ss-on-navy);font-size:var(--ss-text-sm);font-weight:500;line-height:1}
.account-toggle:hover .avatar,.account-toggle[aria-expanded=true] .avatar{border-color:var(--ss-on-navy-muted)}
.account:has(.account-menu [aria-current=page]) .avatar{box-shadow:0 0 0 2px var(--ss-accent-on-navy)}
/* 焦点框画在圆形头像上（窄屏按钮为 44px 高的触控区，框不随按钮变成椭圆） */
.topbar .account-toggle:focus-visible{outline:0}
.account-toggle:focus-visible .avatar{outline:2px solid var(--ss-accent-on-navy);outline-offset:3px}

/* 账户菜单：展开面板（按钮 + aria-expanded，不是 role=menu），白底细边；收起时用 hidden，不占位、不造成横向溢出 */
.account-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:31;width:256px;max-width:calc(100vw - 32px);padding:6px 0;background:var(--ss-surface);border:1px solid var(--ss-line);border-radius:var(--ss-radius-tag);box-shadow:var(--ss-shadow-pop);color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.5;text-align:left}
.account-menu:focus{outline:0}
.account-head{padding:8px 16px 10px;border-bottom:1px solid var(--ss-line-2)}
.account-name{margin:0;color:var(--ss-ink);font-weight:600;overflow-wrap:anywhere}
.account-role{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:2px 0 0;color:var(--ss-muted);font-size:var(--ss-text-sm)}
/* “研究室试点”是说明性标签，不是链接或激活态：中性底、弱化文字、细边（青色只用于引用、链接、激活与“新”） */
.account-menu .pilot{display:inline-block;padding:0 6px;border:1px solid var(--ss-line);border-radius:var(--ss-radius-tag);background:var(--ss-surface-2);color:var(--ss-muted);font-size:var(--ss-text-xs);line-height:18px;white-space:nowrap}
.account-links{margin:0;padding:6px 0;list-style:none}
.account-actions{padding-top:6px;border-top:1px solid var(--ss-line-2)}
.account-menu a,.topbar .account-menu .account-item{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 16px;color:var(--ss-ink-2);font-size:var(--ss-text-md);font-weight:400;line-height:1.4;text-align:left;text-decoration:none}
.account-menu a:hover,.topbar .account-menu .account-item:hover{background:var(--ss-surface-2);color:var(--ss-ink)}
.account-menu a[aria-current=page]{color:var(--ss-primary-text);font-weight:600;box-shadow:inset 3px 0 0 var(--ss-accent)}
/* 只有外观切换项带图标：图标放到行尾，各项文字左缘与账户名对齐（16px） */
.account-item svg{order:1;width:16px;height:16px;flex:none;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.7}
.account-item .icon-fill{fill:currentColor;stroke:none}
/* 菜单在白底上：焦点框改回文字主色，内缩画在条目内 */
.account-menu :focus-visible{outline:2px solid var(--ss-primary-text);outline-offset:-2px}

/* 登录态：访客（登录、注册页）只留品牌；读取账户期间搜索图标与账户区占位但不显示 */
body[data-auth=guest] :is(.mainnav,.topbar-search,.topbar-search-link,.account){display:none}
body:not([data-auth]) :is(.topbar-search-link,.account){visibility:hidden}

@media(max-width:1280px){.topbar-in{padding:0 24px}}
@media(max-width:1100px){.topbar-search{flex-basis:260px;width:260px}}
@media(max-width:900px){.topbar .brand-sub{display:none}.topbar-search{flex-basis:200px;width:200px}}
@media(max-width:800px){
  .topbar-in{gap:8px;padding:0 20px}
  .topbar .brand-name{display:none}
  .mainnav ul{gap:0}
  .mainnav a{padding:0 8px}
  .mainnav a[aria-current=page]::after{left:8px;right:8px}
  .topbar-search{display:none}
  .topbar-search-link{display:inline-grid}
  /* 账户菜单改为顶栏下方的整宽面板：定位基准换成 .topbar，随页面滚动 */
  .account{position:static}
  .account-menu{top:calc(100% + 1px);left:0;right:0;width:auto;max-width:none;border-width:0 0 1px;border-radius:0}
}
@media(max-width:480px){
  /* 触控区不小于 44px：账户按钮 44×44；搜索图标保持 34px 外观，::after 向外扩 5px 成为 44px 点击区；品牌链接占满栏高 */
  .topbar .account-toggle{width:44px;height:44px}
  .account-menu a,.topbar .account-menu .account-item{min-height:44px}
  .topbar-search-link{position:relative}
  .topbar-search-link::after{content:"";position:absolute;inset:-5px}
  .topbar .brand{align-self:stretch}
}
@media(max-width:359px){.topbar .brand{display:none}}

/* ===== 位置路径（v2.1）=====
   nav#breadcrumb.page-crumbs 在 .main-shell 内、main 之前（页面会整块替换 #workspace，所以不放进 main）。
   根级页面隐藏（setBreadcrumb 的首段为“研究空间”）；上级为链接；左右边距同 main；后面紧跟白色页头带时并入页头带。 */
.page-crumbs{display:block;width:100%;max-width:1720px;margin:0 auto;padding:10px 32px 4px;overflow:hidden;color:var(--ss-muted);font-size:var(--ss-text-sm);line-height:1.5;white-space:nowrap;text-overflow:ellipsis}
.page-crumbs a{color:var(--ss-muted)}
.page-crumbs a:hover{color:var(--ss-accent-text);text-decoration:underline;text-underline-offset:3px}
.page-crumbs .crumb-current{color:var(--ss-ink-2)}
.page-crumbs:has(+ main > .page-head:first-child){background:var(--ss-surface)}
/* 下沿留 4px：overflow:hidden 不再裁掉链接焦点框（2px 框 + 3px 偏移）的下边 */
@media(max-width:1280px){.page-crumbs{padding:10px 24px 4px}}
@media(max-width:800px){.page-crumbs{padding:8px 20px 4px}}

/* ===== 报告文件版式（v2.1，第 1 轮）=====
   深度研究报告页（/explore/{id} 的“研究报告”页签）、专题概览与正式报告的阅读面：结论优先。
   页头压缩（次要操作收进“更多”，结果质量并入元信息行）；工具条两行（版本 · 状态词 · 导出 · 编辑 ｜ 核对声明）；
   章节为“左侧标签栏（--ss-report-label，计数 01、02…）+ 正文栏”；核心结论首段为主结论，其余逐条编号并附证据状态行；
   目录与图例合为一行；引用编号视觉 18px、可点区域 ≥24×24；右栏 ≥1280px 为 380px，1101–1279px 为 --ss-report-rail-narrow；
   1100px 以下改用“来源与证据 N”抽屉，480px 以下抽屉为底部弹层。只引用令牌，深浅主题随令牌切换。 */

/* 页面主标题字距：workbench.css 的 .page-title h1（0,1,1）把上面 main h1 的字距压回 -.01em，这里按同一意图提高特异度 */
main .page-title h1{letter-spacing:.01em}

/* 研究页头：内边距与间距收紧到 12px / 8px，页签贴住页头下沿 */
.page-head.report-head{gap:8px;padding-top:12px;padding-bottom:12px}
.page-head.report-head .tabs{margin-bottom:-12px}
/* 元信息行：范围说明与结果质量同一行；结果质量是行内说明文字，不再是卡片，“只看这些”仍是文字按钮 */
.page-meta-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px;min-width:0}
.page-meta-row>.page-meta{margin:0}
.page-head .page-meta-row .deep-quality{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;padding:0;border:0;border-radius:0;background:none;font-size:var(--ss-text-sm);line-height:1.6;color:var(--ss-muted)}
.page-head .page-meta-row .deep-quality b{font-size:inherit;font-weight:600;color:var(--ss-ink-2)}
.page-head .page-meta-row .deep-quality .btn-link{min-height:0;padding:0;font-size:inherit}

/* 下拉菜单（页头“更多”、工具条“编辑”）：summary 与 32px 按钮同高，面板白底细边、向下展开；收起时不占位 */
.action-menu{position:relative}
.action-menu>summary{display:inline-flex;align-items:center;gap:6px;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);line-height:1.5;white-space:nowrap;list-style:none;cursor:pointer}
.action-menu>summary::-webkit-details-marker{display:none}
.action-menu>summary::before{display:none}
.action-menu>summary::after{content:"";margin-top:4px;border:4px solid transparent;border-top-color:currentColor}
.action-menu>summary:hover{border-color:var(--ss-primary-text)}
.action-menu[open]>summary{border-color:var(--ss-primary-text);color:var(--ss-primary-text)}
.action-menu-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:20;display:grid;gap:2px;min-width:200px;padding:6px;background:var(--ss-surface);border:1px solid var(--ss-line);border-radius:var(--ss-radius-card);box-shadow:var(--ss-shadow-pop)}
.action-menu-panel>button,.action-menu-panel>.row>button{justify-content:flex-start;width:100%;border-color:transparent;background:none;color:var(--ss-ink);text-align:left;white-space:nowrap}
.action-menu-panel>button:hover,.action-menu-panel>.row>button:hover{background:var(--ss-surface-2);color:var(--ss-primary-text)}
.action-menu-panel>.row{display:grid;gap:2px;margin:0;padding:2px 0 0;border-top:1px solid var(--ss-line-2)}
.action-menu-panel>.row:empty{display:none}

/* 报告区：正文左右边距、章节计数器；1101–1279px（约 1160 宽的嵌入窗口）右栏收窄为 320px，通栏底色渐变随变量变化 */
.report-split .report-body{padding-top:12px;counter-reset:report-section}
@media(min-width:1101px) and (max-width:1279px){
  .report-split{--ss-side-panel:var(--ss-report-rail-narrow)}
  .report-split .report-body{padding-right:24px;padding-left:24px}
  .report-split .report-sources{padding-right:12px;padding-left:12px}
}

/* 工具条第 1 行：吸附在视口顶部（顶栏不吸顶，原 top:48px 会留缝）；页面底色、细下线，不再是卡片 */
/* 顶栏不再吸顶：所有报告工具条（含正式报告编辑页）贴住视口顶部，不留 48px 缝 */
.report-actions{top:0}
.report-split .report-actions{top:0;align-items:center;gap:8px 12px;padding:8px 0;border:0;border-bottom:1px solid var(--ss-line);border-radius:0;background:var(--ss-bg)}
.report-split .report-actions>.row{gap:8px;min-width:0}
.report-split .report-actions .report-actions-tools{margin-left:auto}
.report-split .report-actions .mobile-evidence{margin:0}
.report-split .report-export-menu>summary{min-height:32px}
/* 工具条第 2 行：核对声明（盾牌图标 +「核对声明」+ 说明 · 生成时间，附注接在后面）；不是提示条，不用警示色 */
.report-about.report-declaration{display:flex;flex-wrap:wrap;align-items:flex-start;gap:2px 8px;margin:10px 0 4px;padding:5px 12px 5px 10px;border-left:2px solid var(--ss-primary-text);background:var(--ss-primary-softer);color:var(--ss-ink-2);font-size:var(--ss-text-xs);line-height:1.6}
.report-declaration .declaration-icon{flex:none;width:16px;height:16px;margin-top:1px;fill:none;stroke:var(--ss-primary-text);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.report-declaration .declaration-key{flex:none;padding-right:8px;border-right:1px solid var(--ss-line);font-weight:600;color:var(--ss-primary-text)}
.report-declaration .declaration-text,.report-declaration .declaration-note{min-width:0;overflow-wrap:anywhere}
.report-declaration .declaration-text{flex:1 1 0}
.report-declaration .declaration-note{flex-basis:100%;padding-left:24px;color:var(--ss-muted)}
.report-split .report-body>h2.report-title{margin:12px 0 0;font-family:var(--ss-font-serif)}

/* 章节：左侧标签栏（计数 01、02… + 章节名，小号无衬线）+ 正文栏，章节间细线；核心结论不再是浅蓝底块 */
.report-split .report-body .report-section{display:grid;grid-template-columns:var(--ss-report-label) minmax(0,1fr);column-gap:20px;margin:0;padding:14px 0 16px;border-top:1px solid var(--ss-line);border-radius:0;background:none;counter-increment:report-section}
.report-split .report-body .report-section.report-core{padding-top:16px;border-top:0}
.report-split .report-body .report-section>h3.report-section-label{grid-column:1;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}
.report-split .report-body .report-section>h3.report-section-label::before{content:counter(report-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}
.report-split .report-body .report-section-body{grid-column:2;min-width:0}
.report-split .report-body .report-section-body>.report-subhead:first-child{margin-top:0}

/* 核心结论：首段为主结论（宋体、加大、不编号）；其余逐条以宋体比例数字 1、2、3 编号；每段下一行证据状态 */
.report-split .report-core .core-points{gap:6px}
.report-split .report-core .report-para{padding-top:3px;padding-bottom:3px}
.report-split .report-core .core-points>li.report-para:first-child{grid-template-columns:16px minmax(0,1fr);counter-increment:none}
.report-split .report-core .core-points>li.report-para:first-child::before{content:none}
.report-split .report-core .core-points>li::before{content:counter(core);font:700 var(--ss-text-lg)/26px var(--ss-font-serif);font-variant-numeric:tabular-nums lining-nums;color:var(--ss-primary-text)}
.report-split .report-body .report-core .report-para .answer{font-size:15px;line-height:var(--ss-leading-read);color:var(--ss-ink-2)}
.report-split .report-core .core-points>li.report-para:first-child .answer,.report-split .report-core .report-section-body>div.report-para:first-child .answer{font:600 18px/1.65 var(--ss-font-serif);color:var(--ss-ink)}
/* 状态行：只写证据覆盖（D9），中性色；未获取全文、引用待核验、无来源用警示文字色；圆点颜色同强度条 */
.para-status{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;margin:1px 0 0;color:var(--ss-muted);font-size:var(--ss-text-xs);line-height:1.5}
.para-status .status-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--ss-bar)}
.para-status .status-item+.status-item::before{content:"·";margin-right:8px;color:var(--ss-muted)}
.para-status .is-warn{color:var(--ss-warn-text)}
/* “查看 N 条出处”：与前一项以“·”分隔；视觉为一行小字，::after 把点击区上下扩到 24px（≤480 为 44px 高的按钮） */
.para-status .status-item+.presentation-refs::before{content:"·";margin-right:8px;color:var(--ss-muted)}
.para-status .presentation-refs button{position:relative;min-height:0;padding:0;border:0;background:none;color:var(--ss-primary-text);font-size:inherit}
.para-status .presentation-refs button::after{content:"";position:absolute;inset:-3px 0}
.para-status .presentation-refs button:hover{text-decoration:underline;text-underline-offset:3px}
/* 段落网格里正文与状态行固定在最后一列、编号在倒数第二列：打印时强度条按钮被隐藏，也不会把正文挤进 16px 的第一列 */
.report-para>.answer,.report-para>.para-status{grid-column:-2/-1}
.core-points>li.report-para::before{grid-row:1;grid-column:-3/-2}
.report-para:has(>.para-status)>.strength-bar{grid-row:1/span 2}

/* 目录与图例合为一行，放在核心结论之后、与正文栏左缘对齐 */
.report-split .report-guide{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 20px;padding:10px 0 12px calc(var(--ss-report-label) + 20px);border-top:1px solid var(--ss-line)}
.report-split .report-guide .report-toc{margin:0}
.report-split .report-guide .strength-legend{margin:0}

/* 图文编排（深度报告页）：概览、关键发现与章节同样是“标签栏 + 正文栏”，概览不再是卡片；子节点不另包一层，标题跨行放在左栏 */
.report-split .report-presentation{counter-reset:report-section}
.report-split .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 16px;border:0;border-top:1px solid var(--ss-line);border-radius:0;background:none;counter-increment:report-section}
.report-split .report-presentation>section.presentation-overview{border-top:0}
.report-split .report-presentation>section>h3{grid-column:1;grid-row:1/span 40;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}
.report-split .report-presentation>section>h3::before{content:counter(report-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}
.report-split .report-presentation>section>:not(h3){grid-column:2;min-width:0}
.report-split .report-presentation>.presentation-gaps>h3{color:var(--ss-warn-text)}
.report-split .report-presentation>figure{margin-left:calc(var(--ss-report-label) + 20px)}
.report-split .presentation-overview>.report-para .answer{font:600 18px/1.65 var(--ss-font-serif);color:var(--ss-ink)}
/* 关键发现：与核心结论同样以宋体数字 1、2、3 编号（CSS 计数），段落、类型标注都在正文列 */
.report-split .presentation-key-findings .presentation-findings{gap:6px;margin:0;padding:0;list-style:none;counter-reset:finding}
.report-split .presentation-key-findings .presentation-findings>li{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:6px;counter-increment:finding}
.report-split .presentation-key-findings .presentation-findings>li::before{content:counter(finding);grid-column:1;grid-row:1/span 3;color:var(--ss-primary-text);font:700 var(--ss-text-lg)/32px var(--ss-font-serif);font-variant-numeric:tabular-nums lining-nums}
.report-split .presentation-key-findings .presentation-findings>li>*{grid-column:2;min-width:0}
.report-split .presentation-key-findings .presentation-kind{justify-self:start;margin:4px 0 0}
.report-split .presentation-findings .report-para{margin:0}
.report-split .presentation-findings p.para-status{margin:1px 0 0}

/* 引用编号：视觉 18px 方框（黑体比例数字），::after 把可点区域扩到 ≥24×24，不改变行高；未满足全文定位的引用为虚线框；
   与前面的标点放进 .cite-group 不断行。只写 button.cite-ref，不影响正文里的口径数字按钮 */
.answer .cite-group{white-space:nowrap}
.answer button.cite-ref,.report-split .report-body .answer button.cite-ref{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;min-height:18px;margin:0 0 0 3px;padding:0 4px;border:1px solid color-mix(in srgb,var(--ss-accent) 45%,transparent);border-radius:3px;background:var(--ss-surface);color:var(--ss-accent-text);font:500 11px/1 var(--ss-font);font-variant-numeric:tabular-nums;vertical-align:2px;box-shadow:none}
.answer button.cite-ref::after{content:"";position:absolute;inset:-4px -3px}
.answer button.cite-ref.is-abs,.report-split .report-body .answer button.cite-ref.is-abs{border-style:dashed}
.answer button.cite-ref:hover{border-color:var(--ss-accent);background:var(--ss-accent-soft)}

/* 来源栏（>1100px）：紧凑列表——编号、标题、一行“类型 · 覆盖 · 日期”，引句与来源说明只在选中时展开；不改卡片 DOM */
.report-split .report-sources>.evidence-card{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px;padding:9px 10px 10px 38px}
.report-split .report-sources>.evidence-card>.row:first-child{display:contents}
.report-split .report-sources>.evidence-card .source-num{position:absolute;top:10px;left:10px}
.report-split .report-sources>.evidence-card>h3{order:-1;flex:1 0 100%;font-size:var(--ss-text-sm);line-height:1.5}
.report-split .report-sources>.evidence-card>.hint{font-size:var(--ss-text-xs)}
.report-split .report-sources>.evidence-card>:is(.quote,.evidence-meta,.actions){flex:1 0 100%}
.report-split .report-sources>.evidence-card:not(.selected)>:is(.quote,.evidence-meta){display:none}
.report-split .report-sources>.evidence-card>.actions{margin-top:2px}
/* 类型与覆盖标签在紧凑卡片里读作一行说明文字，与日期以“·”相连；需补原文时仍用警示文字色 */
.report-split .report-sources>.evidence-card .badge:not(.source-num){padding:0;border:0;background:none;color:var(--ss-muted);font-size:var(--ss-text-xs);line-height:1.6}
.report-split .report-sources>.evidence-card .badge.warn:not(.source-num){color:var(--ss-warn-text)}
.report-split .report-sources>.evidence-card>.row:first-child>.badge:not(.source-num)::after{content:"·";margin-left:5px;color:var(--ss-muted)}
.report-split .report-sources>.evidence-card>.actions{gap:2px 14px}
.report-split .report-sources>.evidence-card>.actions :is(a,button){min-height:24px;padding:0;border:0;background:none;color:var(--ss-primary-text);font-size:var(--ss-text-xs)}
.report-split .report-sources>.evidence-card>.actions :is(a,button):hover{text-decoration:underline;text-underline-offset:3px}
/* 检查器里的来源卡片：来源说明（来源、获取时间）按内容宽度排成一行、放不下时整项换行，不在词中断行；操作条在 320px 栏内可换行 */
.report-inspector .evidence-card .evidence-meta{display:flex;flex-wrap:wrap;gap:2px 12px}
.report-inspector .evidence-card .evidence-meta>.hint{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.report-inspector .inspector-row>.inspector-label{flex:none}
.report-inspector .inspector-actions{display:flex;flex-wrap:wrap}
.report-inspector .inspector-actions>button{flex:1 1 auto}

/* 专题概览：报告按章节显示（小标题 + 正文），核对声明行在标题下 */
.overview-report .report-declaration{margin:6px 0 4px}
.overview-sections{display:grid;gap:2px}
.overview-section h5{margin:14px 0 4px;color:var(--ss-ink);font-size:var(--ss-text-lg);line-height:1.45;font-weight:600}
.overview-section h6{margin:10px 0 2px;color:var(--ss-ink-2);font-size:var(--ss-text-md);line-height:1.5;font-weight:600}
.overview-report-body .answer{min-height:0;margin:0 0 8px;font-size:15px;line-height:var(--ss-leading-read)}
/* 正式报告编辑页：核对声明在版本选择之上 */
.report-editor-layout .report-declaration{margin:0 0 12px}

@media(max-width:1100px){
  .report-split .report-body{padding-top:0}
}
@media(max-width:800px){
  /* 工具条横排换行：版本与状态词在左，导出、编辑、来源与证据在右（≤480 见下）。
     菜单面板不在文档流里展开：浮在工具条下方、与工具条同宽、叠在正文上方，内容多时面板内滚动，不造成横向溢出 */
  .report-split .report-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
  .report-split .report-actions .action-menu,.report-split .report-actions .report-export-menu{position:static}
  .report-split .report-actions .action-menu-panel,.report-split .report-actions .report-export-menu>.report-exports{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:5;width:auto;min-width:0;max-height:min(70dvh,560px);overflow:auto;margin:0;box-shadow:var(--ss-shadow-pop)}
  .report-split .core-points>li.report-para:first-child{grid-template-columns:24px minmax(0,1fr)}
}
/* 769–800px 工具条仍吸顶（sticky 本身是面板的定位基准）；768px 以下不吸顶，改为相对定位作面板基准 */
@media(max-width:768px){.report-split .report-actions{position:relative}}
@media(max-width:760px){
  /* 标签栏折到上方：章节号与章节名一行，正文在下 */
  .report-split .report-body .report-section,.report-split .report-presentation>section{grid-template-columns:minmax(0,1fr);row-gap:6px}
  .report-split .report-body .report-section-body,.report-split .report-presentation>section>:not(h3){grid-column:1}
  .report-split .report-presentation>section>h3{grid-row:auto}
  .report-split .report-body .report-section>h3.report-section-label::before,.report-split .report-presentation>section>h3::before{display:inline;margin-right:8px}
  .report-split .report-guide{padding-left:0}
  .report-split .report-presentation>figure{margin-left:0}
}
@media(max-width:480px){
  /* 页头操作：继续追问、加入或打开专题、更多，一行等分，44px 触控高度 */
  .page-head.report-head .page-actions{flex-wrap:nowrap;width:100%}
  .page-head.report-head .page-actions>*{flex:1 1 0;min-width:0}
  .page-head.report-head .page-actions>button,.page-head.report-head .page-actions>.action-menu>summary{width:100%;justify-content:center}
  /* 报告页头：标题按行内排版，「深度研究」等类型标签紧跟标题末尾，不再单独占一行（只作用于报告页头） */
  .page-head.report-head .page-title{display:block}
  .page-head.report-head .page-title>h1{display:inline}
  .page-head.report-head .page-title>.ss-tag{margin-left:8px}
  .action-menu>summary{min-height:44px}
  .action-menu-panel>button,.action-menu-panel>.row>button{min-height:44px}
  /* 工具条两行：版本下拉独占一行（44px）；导出、编辑与“来源与证据 N”为一行等宽按钮（44px）。
     工具组按 display:contents 展开，三个按钮直接参与工具条换行；菜单面板仍浮在工具条下方（见 ≤800） */
  .report-split .report-actions .report-actions-tools{display:contents}
  .report-split .report-actions .report-actions-main{flex:1 0 100%;min-width:0}
  .report-split .report-actions .report-actions-main select{flex:1 1 auto;width:auto;max-width:none;min-width:0;min-height:44px}
  /* 三个按钮按工具条内宽三等分（扣掉两个 8px 间距）；用固定基准而不是 flex:1 1 0，按钮自身的内边距不会让它比菜单宽 */
  .report-split .report-actions .report-actions-tools>:is(.action-menu,.mobile-evidence){flex:0 0 calc((100% - 16px) / 3);min-width:0}
  .report-split .report-actions .report-actions-tools>.action-menu>summary{width:100%;min-height:44px;justify-content:center}
  /* “来源与证据 N”是 flex 按钮：文字垂直居中，字重与颜色同“导出”“编辑”，三个按钮外观一致 */
  .report-split .report-actions .report-actions-tools>.mobile-evidence{min-height:44px;padding-inline:6px;overflow:hidden;white-space:nowrap;align-items:center;justify-content:center;color:var(--ss-ink);font-weight:400}
  /* 关键发现的“查看 N 条出处”为 44px 高的按钮 */
  .para-status .presentation-refs button{min-height:44px}
  /* 证据抽屉为底部弹层：约 82dvh，顶部拖动条；阅读器抽屉不受影响 */
  /* 宽度铺满：去掉 dialog 默认的 max-width（calc(100% - 2em - 6px)），否则右侧露出 34px 页面 */
  #evidence-drawer:not(.reader-drawer){width:100%;max-width:none;margin:0;height:82dvh;max-height:82dvh}
  #evidence-drawer:not(.reader-drawer)>header{padding-top:18px}
  #evidence-drawer:not(.reader-drawer)>header::before{content:"";position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--ss-faint)}
}
/* ===== 第 1 轮评审修正（formal-r1）=====
   首屏收紧、图文关键发现与核心结论同一排布、来源编号与正文引用同形、阅读行宽、段末孤字、图表分节、
   吸顶工具条下的焦点可见、强制配色下的当前导航、窄屏页签贴边与渐隐。只引用令牌。 */

/* 首屏：页签、核对声明、正文上沿、核心结论上下内边距与段距各收一点，1160×740 读完“1 句结论 + 4 条发现” */
@media(min-width:801px){.page-head.report-head .tabs button{padding:6px 0 8px}}
.report-about.report-declaration{margin:8px 0 2px}
.report-split .report-body{padding-top:8px}
.report-split .report-body .report-section.report-core{padding-top:10px;padding-bottom:10px}
.report-split .report-core .core-points{gap:4px}
.report-split .report-core .report-para{padding-top:2px;padding-bottom:2px}

/* 图文关键发现：与核心结论同为“强度条 | 编号 | 正文”（16px 28px 1fr），编号取 li 的 finding 计数、与正文首行同高（26px）；
   类型标注（研究判断、证据缺口）在正文首行行内；概览与关键发现之间的留白与经典路径一致 */
.report-split .report-presentation>section.presentation-overview{padding-bottom:10px}
.report-split .report-presentation>section.presentation-key-findings{padding-top:10px}
.report-split .presentation-key-findings .presentation-findings{display:grid;gap:4px}
.report-split .presentation-key-findings .presentation-findings>li{display:block}
.report-split .presentation-key-findings .presentation-findings>li::before{content:none}
.report-split .presentation-key-findings .presentation-findings>li>.report-para{grid-template-columns:16px 28px minmax(0,1fr);padding-top:2px;padding-bottom:2px}
.report-split .presentation-key-findings .presentation-findings>li>.report-para::before{content:counter(finding);grid-row:1;grid-column:2;color:var(--ss-primary-text);font:700 var(--ss-text-lg)/26px var(--ss-font-serif);font-variant-numeric:tabular-nums lining-nums}
.report-split .presentation-key-findings .presentation-findings>li>:not(.report-para){margin-left:44px}
.report-split .presentation-key-findings .presentation-findings .answer{font-size:15px;line-height:var(--ss-leading-read);color:var(--ss-ink-2)}
.report-split .presentation-key-findings .presentation-kind{margin:0 2px 0 0}
@media(max-width:800px){
  .report-split .presentation-key-findings .presentation-findings>li>.report-para{grid-template-columns:24px 28px minmax(0,1fr)}
  .report-split .presentation-key-findings .presentation-findings>li>:not(.report-para){margin-left:52px}
}

/* 来源栏编号与正文引用编号同形：18px 青色细框、白底、黑体比例数字（不再是灰底等宽小方块），便于“正文 [2] ↔ 来源 2”对照 */
.report-split .report-sources .badge.source-num,.report-split .report-sources .source-num{min-width:18px;height:18px;padding:0 4px;border:1px solid color-mix(in srgb,var(--ss-accent) 45%,transparent);border-radius:3px;background:var(--ss-surface);color:var(--ss-accent-text);font:500 11px/16px var(--ss-font);font-variant-numeric:tabular-nums}

/* 报告页头元信息行：中文词内不断行（如“来源标签”），只在空格与标点处换行；过长时仍按 overflow-wrap:anywhere 断开 */
.page-head.report-head .page-meta{word-break:keep-all}

/* 阅读行宽：≥1280px 正文段落不超过约 42 个汉字宽；段末避免单字孤行（只改排版，不改文字节点，口径匹配不受影响） */
.report-split .report-body .answer{text-wrap:pretty}
@media(min-width:1280px){.report-split .report-body .answer{max-width:42rem}}

/* “数据与图表”节：图表不再是带框圆角卡片，与其他分节一样以细线分隔；图表标题为 h4（节标题为 h3） */
.report-split .research-visualizations .research-visual-card{margin:0;padding:16px 0;border:0;border-top:1px solid var(--ss-line);border-radius:0}
.report-split .research-visualizations .research-visual-card:first-child{padding-top:0;border-top:0}
.report-split .report-body .research-visual-card>h4{margin:0 0 6px;padding:0;color:var(--ss-ink);font-size:17px;line-height:1.45;font-weight:700}
/* 图表数据表 7 列：给最小宽度，窄屏时外层 .visual-table-wrap 横向滚动，不再逐字断行 */
.visual-table-wrap>.visual-data-table{min-width:640px}

/* 吸顶工具条下的焦点可见（WCAG 2.4.11）：反向 Tab 时浏览器滚动留出工具条高度；768px 以下工具条不吸顶，不设 */
@media(min-width:801px){html:has(.report-split .report-actions){scroll-padding-top:64px}}
@media(min-width:769px) and (max-width:800px){html:has(.report-split .report-actions){scroll-padding-top:104px}}

/* Windows 高对比（强制配色）：当前导航项的下划线与账户菜单页的头像外圈改用系统前景色，否则会被强制成背景色而消失 */
@media(forced-colors:active){
  .mainnav a[aria-current=page]::after{background:CanvasText}
  .account:has(.account-menu [aria-current=page]) .avatar{outline:2px solid CanvasText;outline-offset:2px}
}

/* 页签行：≤768px 贴住页头带两侧（负边距抵消页头内边距），首个页签与标题左缘对齐；
   ≤480px 页签可横向滚动时右缘渐隐提示还有内容，滚到末端后取消（滚动时间线；不支持或无需滚动时不渐隐） */
@media(max-width:768px){.page-head .tabs.deep-tabs{margin-inline:calc(-1 * var(--mx, 20px));padding-inline:var(--mx, 20px)}}
@keyframes ss-tabs-fade{
  0%,96%{mask-image:linear-gradient(to right,var(--ss-ink) calc(100% - 32px),transparent)}
  100%{mask-image:none}
}
@media(max-width:480px){
  @supports (animation-timeline:scroll()){
    .page-head .tabs.deep-tabs{animation:ss-tabs-fade linear both;animation-timeline:scroll(self inline)}
  }
}

@media print{
  .action-menu{display:none}
  .report-split .report-actions{position:static;border:0}
  /* 打印保留引用编号（workspace.css 的打印规则以 !important 隐藏全部按钮，只能同样以 !important 放回） */
  .answer button.cite-ref,.report-split .report-body .answer button.cite-ref{display:inline!important;border:0;background:none}
  .answer button.cite-ref::before{content:"["}
  .answer button.cite-ref::after{content:"]";position:static}
}

/* ===== 演示与 A4 入口（第 2 轮）=====
   演示：工具条右侧第一个次要按钮（与“导出”“编辑”同为 32px 白底细边），图标只用 currentColor；≤800px 不提供演示，按钮隐藏。
   A4 汇报版：导出面板第一项，主色文字按钮 + 一行说明，下方细线与服务器生成的文件分开；≤480px 为 44px 整行按钮。 */
.report-split .report-actions .report-present-button{display:inline-flex;align-items:center;gap:6px;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);line-height:1.5;font-weight:400;white-space:nowrap;box-shadow:none}
.report-split .report-actions .report-present-button:hover{border-color:var(--ss-primary-text);color:var(--ss-primary-text)}
.report-present-icon{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.report-present-icon .icon-fill{fill:currentColor;stroke:none}
@media(max-width:800px){.report-split .report-actions .report-present-button{display:none}}
.report-exports>.report-a4-entry{display:grid;gap:4px;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid var(--ss-line-2)}
.report-exports>.report-a4-entry>.report-a4-button{justify-self:start;min-height:32px;padding:5px 12px;border:1px solid var(--ss-primary-text);border-radius:var(--ss-radius-control);background:var(--ss-surface);color:var(--ss-primary-text);font-size:var(--ss-text-sm);line-height:1.5;font-weight:600;white-space:normal;text-align:left;box-shadow:none}
.report-exports>.report-a4-entry>.report-a4-button:hover{background:var(--ss-primary-softer);border-color:var(--ss-primary-text);color:var(--ss-primary-text)}
.report-a4-hint{margin:0;color:var(--ss-muted);font-size:var(--ss-text-xs);line-height:1.6}
@media(max-width:480px){.report-exports>.report-a4-entry>.report-a4-button{justify-self:stretch;min-height:44px;text-align:center}}
@media print{.report-present-button,.report-a4-entry{display:none!important}}
