/* chain.css — 三部曲总览页（chain.wxss + trilogy-common.wxss + graph-canvas/step-chart 组件样式
 * 自小程序平移，rpx→px 按 1rpx=0.5px 换算；主题：学术论文风 单一深蓝 #1F3864 */

.ch-page {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  color: #1A1A1A;
  line-height: 1.6;
}

/* 覆盖 app.css 的卡片体系为本页学术风 */
.ch-page .card {
  border: 1px solid #C9CDD4;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}
.ch-page .card-title { font-size: 16px; color: #1A1A1A; }
.ch-page .muted { color: #595959; font-size: 12px; }
.ch-page .faint { color: #8C8C8C; font-size: 11px; }
.ch-page .accent { color: #1F3864; font-weight: 600; }

/* —— live-status 实时状态条（components/live-status 组件样式平移，供 mountLiveStatus 渲染） —— */
.live-status {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(31, 56, 100, 0.06);
  border: 0.5px solid rgba(31, 56, 100, 0.18);
  border-radius: 7px;
  font-size: 12px;
  color: #444;
  cursor: pointer;
}
.ls-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.ls-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  background: #999;
}
.ls-dot-cloud { background: #2e7d32; }
.ls-dot-local { background: #b26a00; }
.ls-title {
  font-weight: 600;
  margin-right: 6px;
  color: #1F3864;
}
.ls-source {
  color: #666;
  margin-right: 6px;
}
.ls-time {
  color: #999;
}
.ls-summary {
  margin-top: 5px;
  line-height: 1.6;
  color: #333;
}
.ls-detail {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #666;
  font-size: 11px;
}
.ls-hint {
  margin-top: 4px;
  color: #aaa;
  font-size: 10px;
}
.ls-loading { opacity: 0.75; }

/* —— Hero —— */
.hero {
  background: #1F3864; border-radius: 6px;
  padding: 20px 16px; margin-bottom: 12px;
}
.hero-title { color: #FFFFFF; font-size: clamp(15px, 4.2vw, 22px); font-weight: 600; letter-spacing: 0; line-height: 1.35; white-space: normal; overflow-wrap: break-word; word-break: normal; }
.hero-sub { color: #C7D0E0; font-size: 12px; margin-top: 5px; line-height: 1.6; overflow-wrap: break-word; }
.thesis {
  margin-top: 12px; background: rgba(255,255,255,0.08);
  border-radius: 4px; padding: 10px 12px;
}
.thesis-line {
  display: flex; align-items: flex-start; color: #FFFFFF;
  font-size: 12px; line-height: 1.7; margin-bottom: 5px;
}
.thesis-line:last-child { margin-bottom: 0; }
.thesis-no {
  flex-shrink: none; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 50%; background: rgba(255,255,255,0.25); color: #fff;
  font-size: 10px; margin-right: 7px; margin-top: 3px; flex: none;
}
.hero-stats { margin-top: 12px; display: flex; flex-wrap: wrap; }
.hero-stats .stat {
  background: rgba(255,255,255,0.12); color: #FFFFFF; font-size: 11px;
  border-radius: 4px; padding: 3px 8px; margin-right: 8px; margin-bottom: 4px;
}

/* —— 图谱区 —— */
.graph-intro { margin: 6px 0 10px; line-height: 1.6; }
.graph-legend {
  display: flex; flex-wrap: wrap; margin-top: 8px; padding-top: 7px;
  border-top: 1px dashed #D9DEE7;
}
.gl-item { margin-right: 14px; }
.gl-key { color: #B03A2E; font-weight: 600; }
.gl-bridge { color: #1F3864; text-decoration: underline dashed; }

/* —— 对象-关系图谱 (graph-canvas 组件) —— */
.gc-root {
  position: relative; width: 100%; height: 460px;
  background: #FFFFFF; border: 1px solid #C9CDD4; border-radius: 6px; overflow: hidden;
}
.gc-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.gc-band {
  position: absolute; top: 4px; transform: translateX(-50%);
  font-size: 10px; color: #8C8C8C; white-space: nowrap; letter-spacing: 0.5px;
}
.gc-node {
  position: absolute; transform: translate(-50%,-50%);
  background: #F2F5FA; border: 1px solid #9DB0CC; border-radius: 999px;
  padding: 1px 6px; font-size: 10px; color: #1F3864; line-height: 1.5;
  max-width: 75px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer;
}
.gc-node.gc-key { background: #E8EDF6; border: 2px solid #1F3864; font-weight: 600; }
.gc-node.gc-selected { background: #B03A2E; border-color: #B03A2E; color: #FFFFFF; }
.gc-fallback {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(31,56,100,0.85); color: #FFFFFF; font-size: 10px; padding: 4px 8px;
}

/* —— 对象详情面板 —— */
.detail-panel { border-left: 3px solid #B03A2E; }
.dp-head { display: flex; align-items: center; }
.dp-name { font-size: 17px; font-weight: 600; margin-right: 8px; }
.dp-badge {
  background: #1F3864; color: #FFFFFF; font-size: 10px;
  border-radius: 4px; padding: 2px 7px;
}
.dp-close { margin-left: auto; color: #8C8C8C; font-size: 12px; cursor: pointer; }
.dp-desc { margin-top: 5px; }
.dp-sec-title {
  margin: 11px 0 5px; font-size: 13px; font-weight: 600; color: #1F3864;
  border-left: 3px solid #1F3864; padding-left: 7px;
}
.dp-rel-row {
  background: #FAFAFA; border: 1px solid #E5E7EB; border-radius: 4px;
  padding: 6px 8px; margin-bottom: 5px;
}
.dp-rel-label { font-size: 12px; color: #1A1A1A; font-weight: 600; }
.dp-node {
  background: #F5F6FA; border: 1px solid #D9DEE7; border-radius: 4px;
  padding: 7px 8px; margin-bottom: 5px; cursor: pointer;
}
.dp-node:hover { border-color: #1F3864; }
.dp-node-key { border-color: #B03A2E; background: #FBF3F2; }
.dp-node-title { font-size: 13px; font-weight: 600; }
.dp-key-tag {
  background: #B03A2E; color: #FFFFFF; font-size: 9px; border-radius: 4px;
  padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.dp-prim-tag {
  background: #E8EDF5; color: #1F3864; font-size: 9px; border-radius: 4px;
  padding: 1px 5px; margin-left: 6px; vertical-align: middle;
}
.dp-go { margin-top: 3px; text-align: right; }

/* —— 涌现阶跃图 (step-chart 组件) —— */
.sc-scroll { width: 100%; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; }
.sc-track { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 4px; }
.sc-step {
  display: block; width: 100%; min-width: 0; margin-right: 0; height: auto;
  background: linear-gradient(180deg, #E8EDF6 0%, #F2F5FA 100%);
  border: 1px solid #1F3864; border-radius: 6px;
  padding: 8px; box-sizing: border-box;
  white-space: normal; cursor: pointer;
}
.sc-step:hover { background: #DCE4F0; }
.sc-ordinal {
  display: inline-block; background: #1F3864; color: #FFFFFF; font-size: 11px;
  padding: 1px 6px; border-radius: 4px; margin-bottom: 4px;
}
.sc-name { font-size: 14px; font-weight: 600; color: #1F3864; line-height: 1.45; overflow-wrap: break-word; word-break: normal; }
.sc-medium { font-size: 11px; color: #595959; margin-top: 4px; line-height: 1.6; overflow-wrap: break-word; }
.sc-firstbit {
  font-size: 10px; color: #1F3864; background: #FFFFFF;
  border-left: 3px solid #1F3864; padding: 2px 5px; margin-top: 4px;
  overflow-wrap: break-word;
}
.sc-hardsteps { margin-top: 6px; display: flex; flex-wrap: wrap; }
.sc-hardstep {
  width: 100%; box-sizing: border-box; border-left: 1px dashed #1F3864;
  padding: 2px 4px; display: flex; flex-direction: column;
  overflow-wrap: break-word;
}
.sc-hardstep:nth-child(odd) { border-left: none; }
.sc-hs-label { font-size: 11px; font-weight: 600; color: #B03A2E; }
.sc-hs-title { font-size: 10px; color: #595959; line-height: 1.45; overflow-wrap: break-word; word-break: normal; }
.sc-badges { margin-top: 5px; }
.sc-badge {
  display: inline-block; font-size: 10px; color: #B03A2E;
  border: 1px solid #B03A2E; border-radius: 4px; padding: 1px 5px; margin-right: 4px;
}
.sc-bridge {
  display: block; text-align: center; font-size: 11px; color: #1F3864;
  font-weight: 600; padding: 7px 5px 2px; margin-top: 6px;
  border-top: 1px dashed #1F3864; white-space: normal;
  overflow-wrap: break-word; line-height: 1.5;
}
.sc-legend { margin-top: 6px; }
.sc-legend-item { font-size: 10px; color: #8C8C8C; margin-right: 12px; }
.sc-legend-dash { border-bottom: 1px dashed #8C8C8C; }

/* —— 三系统入口卡 —— */
.sys-head { display: flex; align-items: center; }
.layer-badge {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  background: #1F3864; color: #FFFFFF; font-size: 12px; margin-right: 8px;
}
.sys-name { font-size: 16px; font-weight: 600; }
.sys-sub { margin-top: 5px; }
.sys-meta { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.sys-meta-item { font-size: 11px; color: #595959; }
.sys-firstbit { color: #1F3864; }
.sys-counts { margin-top: 6px; }
.sys-counts span { margin-right: 5px; }
.sys-card { cursor: pointer; }
.sys-card:hover { border-color: #1F3864; }
.chip-row { margin-top: 6px; }
.chip {
  display: inline-block; border: 1px solid #9DB0CC; border-radius: 999px;
  padding: 2px 8px; font-size: 11px; color: #1F3864; background: #F2F5FA;
}
.chip.has-anchor { border-color: #B03A2E; color: #B03A2E; background: #FBF3F2; }
.sys-key-chip { margin-top: 4px; margin-right: 6px; margin-bottom: 4px; }
.bridge-inline { padding: 5px 0 0; }
.bridge-line {
  height: 1px; background: #1F3864; opacity: 0.35;
  margin-bottom: 4px; border-bottom: 1px dashed #1F3864;
}
.bridge-label { font-size: 12px; color: #1F3864; font-weight: 600; }
.lane-foot { margin-top: 8px; text-align: right; }

/* —— 统一方法论 —— */
.method-list { margin-top: 9px; }
.method-item { display: flex; align-items: flex-start; margin-bottom: 7px; }
.method-key {
  flex: none; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 50%; background: #1F3864; color: #FFFFFF; font-size: 10px;
  margin-right: 7px; margin-top: 3px;
}
.method-text { font-size: 12px; color: #1A1A1A; line-height: 1.7; }
.tool-box {
  margin-top: 10px; background: #F2F5FA; border-left: 3px solid #1F3864;
  padding: 8px 10px; border-radius: 4px;
}
.tool-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.tool-note { margin-top: 4px; }

/* —— 休谟边界（源 trilogy-common.wxss 浅色版） —— */
.hume-banner {
  background: #F2F5FA; border: 1px solid #1F3864; border-radius: 3px;
  padding: 12px; margin-bottom: 12px;
}
.hume-title { font-size: 14px; font-weight: 600; color: #1F3864; margin-bottom: 6px; }
.hume-body { font-size: 12px; line-height: 1.7; color: #1A1A1A; }
.hume-corollaries { margin-top: 7px; border-top: 1px dashed #C9CDD4; padding-top: 6px; }
.corollary { font-size: 11px; color: #595959; margin-top: 3px; line-height: 1.6; }

/* —— 验证层锚点网格 —— */
.anchor-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 10px;
}
.anchor-card {
  width: 48%; background: #F5F6FA; border: 1px solid #D9DEE7; border-radius: 4px;
  padding: 9px; margin-bottom: 8px; box-sizing: border-box;
}
.anchor-value { font-size: 14px; margin: 3px 0; word-break: break-all; }
.anchor-status {
  margin-top: 3px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footnote { padding: 6px 4px 20px; line-height: 1.7; }

/* —— 涌现桥可运行卡 —— */
.bridge-run-card {
  border: 1px solid #D6DCE5; border-left: 3px solid #1F3864; border-radius: 6px;
  padding: 12px 12px 10px; margin-top: 12px; background: #FAFBFD;
}
.brc-head { display: flex; align-items: center; flex-wrap: wrap; }
.brc-route {
  background: #1F3864; color: #FFFFFF; font-size: 11px; border-radius: 4px;
  padding: 2px 6px; margin-right: 7px; font-weight: 600;
}
.brc-label { font-size: 14px; font-weight: 600; color: #1F3864; }
.brc-theory { font-size: 12px; line-height: 1.7; margin-top: 6px; }
.brc-model {
  background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 4px;
  padding: 8px 10px; margin-top: 8px;
}
.brc-model-name { font-size: 13px; font-weight: 600; }
.brc-eq { font-size: 11px; margin-top: 4px; }
.brc-prov { font-size: 10px; margin-top: 3px; }
.brc-map { font-size: 11px; margin-top: 5px; line-height: 1.6; }
.brc-anchor {
  display: flex; align-items: baseline; flex-wrap: wrap; margin-top: 7px;
  background: #FFF8E7; border: 1px solid #E8D9A8; border-radius: 4px; padding: 5px 8px;
}
.brc-anchor .anchor-name { font-size: 11px; }
.brc-anchor .anchor-value { font-size: 15px; font-weight: 600; margin: 0 6px; }
.brc-anchor .faint { font-size: 10px; }
.brc-params { display: flex; flex-wrap: wrap; margin-top: 4px; }
.brc-param { width: 50%; box-sizing: border-box; padding: 5px 6px 5px 0; }
.brc-param-label { font-size: 11px; }
.brc-param-input {
  border: 1px solid #C9D2E0; border-radius: 4px; background: #FFFFFF;
  padding: 4px 7px; font-size: 13px; margin-top: 3px; height: 26px;
  width: 100%; box-sizing: border-box; outline: none; font-family: inherit;
}
.brc-param-input:focus { border-color: #1F3864; }
.brc-param-range { font-size: 9px; margin-top: 1px; }
.brc-run-btn {
  margin-top: 8px; background: #1F3864; color: #FFFFFF; font-size: 12px;
  border: none; border-radius: 4px; padding: 7px 14px; cursor: pointer; font-family: inherit;
}
.brc-run-btn:hover { opacity: 0.9; }
.brc-run-btn[disabled] { background: #8C9BB5; color: #E7EBF2; cursor: default; }
.brc-result {
  background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 4px;
  padding: 7px 10px; margin-top: 8px;
}
.brc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 3px 0; border-bottom: 1px dashed #EEF1F6; font-size: 12px;
}
.brc-row:last-of-type { border-bottom: none; }
.brc-row-label { color: #5A6474; margin-right: 8px; }
.brc-row-value { font-weight: 600; color: #1F3864; text-align: right; }
.brc-paramtext { font-size: 10px; margin-top: 4px; word-break: break-all; }
.brc-error { margin-top: 6px; color: #B03A2E; font-size: 12px; }
.brc-fail { font-size: 10px; margin-top: 6px; line-height: 1.6; }

/* —— 理论督导工具: 学习曲线条形图 —— */
.tlc-chart-wrap { margin: 8px 0 10px; }
.tlc-legend { display: flex; gap: 10px; font-size: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.tlc-legend-a { color: #B03A2E; }
.tlc-legend-b { color: #1F8A70; }
.tlc-legend-drift { margin-left: auto; }
.tlc-chart {
  position: relative; display: flex; align-items: flex-end; gap: 2px;
  height: 70px; padding: 4px 0; background: #FAFAFA;
  border: 1px solid #E5E7EB; border-radius: 8px;
}
.tlc-drift-line {
  position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed #B03A2E; opacity: 0.55; z-index: 2;
}
.tlc-col {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  gap: 1px; height: 100%;
}
.tlc-bar { width: 3px; border-radius: 1px 1px 0 0; }
.tlc-bar-a { background: #B03A2E; }
.tlc-bar-b { background: #1F8A70; }

/* —— 联系与留言板 —— */
.contact-card {
  background: #1B1B2F; border-radius: 10px; padding: 16px; margin-bottom: 20px;
}
.contact-title { font-size: 14px; font-weight: 600; color: #FFFFFF; margin-bottom: 6px; }
.contact-body {
  font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 10px;
}
.contact-actions { display: flex; gap: 8px; }
.contact-btn {
  flex: 1; text-align: center; font-size: 12px; color: #FFFFFF; background: #534AB7;
  border-radius: 10px; padding: 7px 0; cursor: pointer; user-select: none;
}
.contact-btn:hover { opacity: 0.9; }
.contact-btn-ghost { background: rgba(255,255,255,0.12); }
.contact-disclaimer { font-size: 11px; color: #999; line-height: 1.6; margin-top: 8px; }
.contact-theory {
  margin-top: 4px; padding: 8px 10px; background: #F7F7FB;
  border-left: 3px solid #534AB7; border-radius: 8px;
  color: #1B1B2F; opacity: 0.92;
}

/* toast */
.ch-toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  background: rgba(26,26,26,0.9); color: #fff; font-size: 12px;
  border-radius: 8px; padding: 8px 14px; z-index: 999; max-width: 80vw;
}

/* __v146:BILAYOUT__ 2026-10-05 双语并列排版修复 ——
   双语串 (zh + " / " + en) 远长于单语, 长串元素一律允许换行, 禁止 nowrap 与固定半宽;
   窄屏 (<=560px) 下硬步骤/台阶改为单列堆叠, 消除横向裁切。 */
.hero-title, .sc-name, .sc-medium, .sc-firstbit, .sc-bridge, .sc-hs-label, .sc-hs-title {
  overflow-wrap: break-word;
  word-break: normal;
}
.sc-hardsteps { flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero { padding: 16px 12px; }
  .hero-title { font-size: 16px; }
  .sc-name { font-size: 13px; }
  .sc-hardstep { width: 100%; }
}

/* 2026-10-05 用户令①: 验证锚点清单 (model-derived 显式标占位·可见) */
#anchorStripCard .anchor-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #E3E3E8;
}
#anchorStripCard .anchor-row:last-child { border-bottom: none; }
#anchorStripCard .anchor-label { font-weight: 600; color: #1F3864; min-width: 140px; }
#anchorStripCard .anchor-value { font-family: 'Courier New', monospace; color: #8A5A00; }
#anchorStripCard .anchor-status {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 10px;
  background: #EDEFF3;
  color: #5A6472;
  border: 1px solid #D4D8DF;
}
#anchorStripCard .anchor-status-physical { background: #E6F4EA; color: #1E7A3A; border-color: #B7E0C4; }
#anchorStripCard .anchor-status-external { background: #E7F0FB; color: #1F5BA8; border-color: #BBD4F0; }
#anchorStripCard .anchor-status-model-derived { background: #FBEFE0; color: #9A5B00; border-color: #EBCBA0; }
#anchorStripCard .anchor-note { margin: -2px 0 4px 148px; font-size: 12.5px; color: #7A7F88; }
#anchorStripCard .anchor-summary { margin: 2px 0 10px; font-size: 12.5px; color: #6E7480; border-left: 3px solid #C0392B; padding-left: 8px; }
#anchorStripCard .anchor-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  letter-spacing: .5px;
}
#anchorStripCard .anchor-badge-ph { background: #C0392B; color: #FFF; }
