/* index.css — 分析工作台（pages/index/index.wxss 平移）
 * rpx→px 按 1rpx=0.5px 换算；主题：紫色 #534AB7 / 深底 #1B1B2F。
 * 通用类（card/btn/status-bar 等）在 .ix-container 作用域内覆盖 app.css，
 * 以保持小程序原版面（无 card-title 竖条、纯色主按钮、本页状态条配色）。
 */

/* ===== live-status 实时状态条（components/live-status 组件样式平移，供 mountLiveStatus 渲染） ===== */
.live-status {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(83, 74, 183, 0.06);
  border: 0.5px solid rgba(83, 74, 183, 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: #534AB7;
}
.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; }

/* ===== 快速导航（coreOnly 时隐藏） ===== */
.section-nav {
  display: flex; background: #1B1B2F; padding: 0 4px;
  border-radius: 6px; margin-bottom: 4px;
}
.section-nav-item {
  flex: 1; text-align: center; padding: 12px 0;
  font-size: 13px; color: #C8C8E0;
  border-bottom: 2px solid #534AB7;
  font-weight: 500; cursor: pointer; user-select: none;
}
.section-nav-item:hover { color: #FFFFFF; }

/* ===== 区块分隔 ===== */
.page-section {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px dashed rgba(131, 120, 220, 0.35);
}

/* ===== 通用卡片（覆盖 app.css，恢复本页原版面） ===== */
.ix-container { padding: 12px 0 18px; }
.ix-container .card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.ix-container .card-title {
  font-size: 15px; font-weight: 500; color: #1B1B2F;
  margin-bottom: 8px; display: block;
}
.ix-container .card-title::before { display: none; }

/* ===== 按钮（覆盖 app.css） ===== */
.ix-container .btn-primary, .ix-container .btn-secondary {
  text-align: center; padding: 12px 0; border-radius: 6px;
  font-size: 14px; margin-top: 8px; margin-left: 0; margin-right: 0;
  transition: opacity 0.2s; cursor: pointer; border: none; width: 100%;
  display: block; box-sizing: border-box; font-weight: 400;
}
.ix-container .btn-primary { background: #534AB7; color: #FFFFFF; }
.ix-container .btn-secondary { background: #F0F0F5; color: #534AB7; margin-top: 6px; }
.ix-container .btn-primary:hover { opacity: 0.9; }
.ix-container .btn-secondary:hover { opacity: 0.85; }
.btn-disabled { opacity: 0.4; pointer-events: none; }

/* ===== 状态栏（覆盖 app.css 配色） ===== */
.ix-container .status-bar {
  display: flex; align-items: center;
  padding: 8px 10px; border-radius: 6px; margin-bottom: 8px;
  font-size: 13px; margin-top: 0; margin-left: 0; margin-right: 0;
}
.ix-container .status-idle    { background: #F7F7FA; color: #888780; }
.ix-container .status-running { background: #EEEDFE; color: #534AB7; }
.ix-container .status-success { background: #E1F5EE; color: #0F6E56; }
.ix-container .status-error   { background: #FCEBEB; color: #A32D2D; }
.ix-container .loading-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #534AB7; margin-right: 8px;
}

/* ===== 云函数错误 + 重试按钮 ===== */
.ix-container .cloud-error {
  margin-top: 8px; background: #FCEBEB; color: #A32D2D;
  font-size: 12px; padding: 8px 10px; border-radius: 6px;
  line-height: 1.5; word-break: break-all;
}
.ix-container .cloud-error .retry-btn {
  margin-top: 6px; background: #FFFFFF; border: 1px solid #A32D2D;
  color: #A32D2D; border-radius: 4px; padding: 4px 14px;
  font-size: 12px; cursor: pointer;
}
.ix-container .cloud-error .retry-btn:hover { background: #FBE0E0; }

/* ===== 公式展示 ===== */
.formula-box {
  background: #1B1B2F; border-radius: 8px; padding: 16px;
  text-align: center; margin: 4px 0 12px;
}
.formula-main {
  color: #FFFFFF; font-size: 18px; font-weight: 500;
  font-family: 'Times New Roman', 'STIXGeneral', serif;
  letter-spacing: 0.5px;
}
.formula-sub {
  display: block; margin-top: 6px; font-size: 13px; color: #E8E6F5;
  font-family: 'Times New Roman', 'STIXGeneral', serif;
}
.formula-note {
  display: block; margin-top: 5px; font-size: 11px; color: #AFA9EC; line-height: 1.6;
}

/* ===== 图例 ===== */
.legend { margin-top: 4px; }
.legend-row { display: flex; align-items: flex-start; margin-bottom: 6px; }
.legend-sym {
  width: 44px; flex-shrink: 0; font-weight: 500; color: #534AB7;
  font-family: 'Times New Roman', serif; font-size: 15px;
}
.legend-desc { flex: 1; font-size: 12px; color: #5F5E5A; line-height: 1.5; }
.uni-sym-wide { width: 100px; font-size: 13px; }

/* ===== 统一映射总纲 ===== */
.uni-tag {
  display: inline-block; font-size: 10px; color: #534AB7; background: #EEEDFE;
  border-radius: 3px; padding: 2px 7px; margin-bottom: 6px;
}
.uni-text { font-size: 13px; color: #444441; line-height: 1.7; margin-bottom: 4px; }

/* ===== 权重 / 约束 ===== */
.constraint-line { font-size: 13px; color: #444441; }
.ok-text { color: #0F6E56; font-weight: 500; }
.fail-text { color: #A32D2D; font-weight: 500; }

/* ===== 公理 ===== */
.axiom-list { margin-top: 4px; }
.axiom-item {
  display: flex; flex-direction: column; padding: 7px 10px; border-radius: 6px;
  margin-bottom: 6px; border-left: 3px solid #0F6E56; background: #F7F7FA;
}
.axiom-fail { border-left-color: #E24B4A; background: #FCEBEB; }
.axiom-name { font-weight: 500; font-size: 13.5px; color: #1B1B2F; margin-bottom: 2px; }
.axiom-desc { font-size: 12px; color: #5F5E5A; }
.axiom-summary {
  margin-top: 8px; text-align: center; font-size: 14px; font-weight: 500;
  color: #0F6E56; background: #E1F5EE; padding: 8px; border-radius: 6px;
}

/* ===== 串联运行（范畴内核 pipeline） ===== */
.btn-row { display: flex; margin-top: 8px; }
.btn-row .btn-primary { flex: 1; margin-right: 8px; }
.btn-row .btn-secondary { flex: 1; margin-top: 0; }
.pipeline-verdict {
  margin-bottom: 8px; padding: 8px; border-radius: 6px;
  font-size: 13px; font-weight: 500; line-height: 1.5;
}
.pipeline-verdict-ok { color: #0F6E56; background: #E1F5EE; }
.pipeline-verdict-fail { color: #A32D2D; background: #FCEBEB; }
.pipeline-stage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.pipeline-stage-name { font-weight: 500; font-size: 13.5px; color: #1B1B2F; }
.pipeline-stage-status { font-size: 11.5px; font-weight: 500; }
.pipe-ok { color: #0F6E56; }
.pipe-skip { color: #888780; }
.pipe-fail { color: #A32D2D; }
.pipeline-stage-detail { font-size: 12px; color: #5F5E5A; line-height: 1.5; }

/* ===== 加载卡片 ===== */
.loading-card {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 0; color: #888780; font-size: 13px;
}
.loading-card .loading-dot { margin-right: 8px; }

/* ===== 物理涌现链 ===== */
.emerge-formula { text-align: center; padding: 10px 0; margin-top: 6px; }
.emerge-eq {
  display: block; font-size: 18px; color: #534AB7;
  font-family: 'Times New Roman', serif; font-weight: 500;
}
.emerge-desc { font-size: 11px; color: #888780; margin-top: 4px; }

.overall-emerge {
  display: flex; align-items: baseline; justify-content: center;
  padding: 12px 0; margin-bottom: 8px; background: #F7F7FA; border-radius: 8px;
}
.emerge-label { font-size: 14px; color: #888780; margin-right: 8px; }
.emerge-value {
  font-size: 36px; font-weight: 500; color: #534AB7;
  font-family: 'Times New Roman', serif;
}

.emerge-stage { padding: 10px 0; border-bottom: 1px solid #F1EFE8; }
.emerge-stage:last-child { border-bottom: none; }
.emerge-stage-header { display: flex; align-items: center; margin-bottom: 6px; }
.emerge-stage-num {
  width: 24px; height: 24px; border-radius: 50%; background: #534AB7; color: #FFFFFF;
  font-size: 14px; font-weight: 500; text-align: center; line-height: 24px;
  margin-right: 8px; flex-shrink: 0;
}
.emerge-stage-name { font-size: 15px; font-weight: 500; color: #1B1B2F; }
.emerge-stage-output {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px;
}
.emerge-output-name { font-size: 12px; color: #888780; }
.emerge-output-val {
  font-size: 18px; font-weight: 500; color: #0F6E56;
  font-family: 'Times New Roman', serif;
}
.emerge-stage-physics { font-size: 11px; color: #5F5E5A; line-height: 1.5; margin-bottom: 6px; }
.emerge-stage-bar { height: 6px; background: #F1EFE8; border-radius: 3px; overflow: hidden; }
.emerge-bar-fill {
  height: 100%; background: linear-gradient(90deg, #534AB7, #7F77DD);
  border-radius: 3px; transition: width 0.5s;
}
.emerge-arrow { text-align: center; font-size: 18px; color: #534AB7; margin: 4px 0; }

/* 贡献占比 */
.contrib-row { display: flex; align-items: center; margin-bottom: 7px; }
.contrib-name { width: 90px; font-size: 12px; color: #5F5E5A; flex-shrink: 0; }
.contrib-bar-track {
  flex: 1; height: 12px; background: #F1EFE8; border-radius: 6px;
  overflow: hidden; margin: 0 8px;
}
.contrib-bar-fill { height: 100%; background: #534AB7; border-radius: 6px; }
.contrib-val {
  width: 40px; text-align: right; font-size: 11px; color: #5F5E5A;
  font-family: 'Times New Roman', serif;
}

/* ODE 详情 */
.ode-grid { display: flex; flex-wrap: wrap; margin-top: 6px; }
.ode-item {
  width: 48%; background: #F7F7FA; border-radius: 6px;
  padding: 8px; margin: 0 2% 6px 0;
}
.ode-item:nth-child(2n) { margin-right: 0; }
.ode-label { display: block; font-size: 11px; color: #888780; margin-bottom: 4px; }
.ode-val {
  font-size: 14px; font-weight: 500; color: #1B1B2F;
  font-family: 'Times New Roman', serif;
}
.ode-highlight { background: #EEEDFE; }
.ode-highlight .ode-val { color: #534AB7; }
.ode-ok .ode-val { color: #0F6E56; }
.ode-warn .ode-val { color: #B8860B; }
.ode-note {
  font-size: 11px; line-height: 1.5; margin-top: 8px;
  border-radius: 4px; padding: 7px 9px;
}
.ode-note-ok { background: #E1F5EE; color: #0F6E56; }
.ode-note-warn { background: #FAEEDA; color: #8A650B; }

/* ===== 参数输入端口 ===== */
.param-fixed-box {
  background: #EEF6FF; border: 1px solid #B5D4F5; border-radius: 6px;
  padding: 8px 10px; margin-bottom: 10px;
}
.param-fixed-row { display: flex; justify-content: space-between; align-items: center; }
.param-fixed-name { font-size: 13px; font-weight: 600; color: #1D5FA8; }
.param-fixed-val { font-size: 12px; color: #1D5FA8; font-weight: 600; }
.param-fixed-prov { font-size: 10px; color: #5B7E9E; margin-top: 3px; }

.param-row { padding: 7px 0; border-bottom: 1px solid #EFEEF4; }
.param-row:last-of-type { border-bottom: none; }
.param-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.param-label { font-size: 13px; font-weight: 600; color: #23222A; }
.param-default { font-size: 10px; color: #9B9AA5; }
.param-input-line { display: flex; align-items: center; }
.param-input {
  flex: 1; margin-right: 6px; background: #F7F7FA;
  border: 1px solid #DDDCE6; border-radius: 4px;
  padding: 5px 8px; font-size: 13px; color: #23222A;
  height: 26px; line-height: 26px; outline: none;
}
.param-input:focus { border-color: #534AB7; }
.param-range { font-size: 10px; color: #9B9AA5; white-space: nowrap; }
.param-prov { font-size: 10px; color: #9B9AA5; margin-top: 3px; line-height: 1.4; }
.param-prov-pending { color: #B8860B; }
.param-note {
  font-size: 10px; color: #777682; margin-top: 8px; line-height: 1.5;
  background: #F7F7FA; border-radius: 4px; padding: 6px 8px;
}

/* ===== 回溯分析 ===== */
.backtrack-intro { font-size: 13px; color: #5F5E5A; padding: 8px 0; line-height: 1.5; }
.bt-section { padding: 6px 0; border-bottom: 1px solid #F1EFE8; margin-bottom: 6px; }
.bt-label { font-size: 12px; color: #888780; }

.bt-attr-row { display: flex; padding: 6px 0; border-bottom: 1px solid #F1EFE8; }
.bt-attr-stage { width: 80px; font-size: 12px; font-weight: 500; color: #1B1B2F; flex-shrink: 0; }
.bt-attr-data { flex: 1; font-size: 11px; color: #5F5E5A; line-height: 1.6; }
.bt-verdict {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; margin-top: 4px;
}
.bt-verdict-dominant { background: #E1F5EE; color: #0F6E56; }
.bt-verdict-important { background: #EEEDFE; color: #534AB7; }
.bt-verdict-secondary { background: #FAEEDA; color: #B8860B; }
.bt-verdict-minor { background: #F7F7FA; color: #888780; }
.bt-verdict-negligible { background: #F7F7FA; color: #AAAAAA; }

.bt-conclusion {
  font-size: 11px; color: #5F5E5A; background: #F7F7FA;
  padding: 8px; border-radius: 6px; margin-top: 6px; line-height: 1.6;
}

.bt-grid { display: flex; flex-wrap: wrap; margin: 6px 0; }
.bt-item {
  width: 48%; background: #F7F7FA; border-radius: 6px;
  padding: 8px; margin: 0 2% 6px 0;
}
.bt-item:nth-child(2n) { margin-right: 0; }
.bt-val {
  font-size: 14px; font-weight: 500; color: #1B1B2F;
  font-family: 'Times New Roman', serif;
}
.bt-highlight { background: #EEEDFE; }
.bt-highlight .bt-val { color: #534AB7; }

.bt-verdict-box {
  text-align: center; padding: 8px; background: #E1F5EE; border-radius: 6px;
  font-size: 13px; color: #0F6E56; font-weight: 500; margin: 6px 0;
}

.bt-sens-row {
  display: flex; align-items: center; padding: 6px 0;
  border-bottom: 1px solid #F1EFE8; flex-wrap: wrap;
}
.bt-sens-param { width: 40%; font-size: 12px; font-weight: 500; color: #1B1B2F; }
.bt-sens-base { width: 30%; font-size: 11px; color: #888780; font-family: 'Times New Roman', serif; }
.bt-sens-val { width: 30%; font-size: 11px; color: #534AB7; font-family: 'Times New Roman', serif; }
.bt-sens-sign {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; margin-top: 2px;
}
.bt-sens-sign.high-sens { background: #FCEBEB; color: #A32D2D; }
.bt-sens-sign.medium-sens { background: #FAEEDA; color: #B8860B; }
.bt-sens-sign.low-sens { background: #F7F7FA; color: #888780; }

/* ===== 理论结论（DeepSeek） ===== */
.ds-intro { font-size: 12px; color: #5F5E5A; padding: 6px 0; line-height: 1.5; }
.ds-analysis { font-size: 13px; color: #1B1B2F; line-height: 1.7; padding: 6px 0; }
.ds-confidence {
  font-size: 11px; color: #0F6E56; background: #E1F5EE;
  padding: 4px 8px; border-radius: 4px; display: inline-block; margin-top: 4px;
}

.theory-card { background: linear-gradient(135deg, #1B1B2F 0%, #2D2D4F 100%); }
.theory-card .card-title { color: #FFFFFF; }

.theory-chain { margin: 8px 0; }
.theory-step { display: flex; align-items: flex-start; padding: 8px 0; }
.theory-num {
  width: 24px; height: 24px; border-radius: 50%; background: #534AB7; color: #FFFFFF;
  font-size: 14px; font-weight: 500; text-align: center; line-height: 24px;
  margin-right: 8px; flex-shrink: 0;
}
.theory-text { flex: 1; font-size: 12px; color: #DDDDEE; line-height: 1.6; }
.theory-arrow { text-align: center; font-size: 16px; color: #534AB7; margin: 2px 0 2px 24px; }

.theory-key {
  display: flex; flex-wrap: wrap; margin-top: 12px;
  border-top: 1px solid #444466; padding-top: 12px;
}
.theory-key-item { width: 50%; padding: 6px 0; }
.tk-label { display: block; font-size: 11px; color: #8888AA; margin-bottom: 4px; }
.tk-val { font-size: 12px; color: #FFFFFF; font-weight: 500; line-height: 1.4; }

.theory-conclusion {
  margin-top: 12px; font-size: 12px; color: #CCCCDD; line-height: 1.7;
  background: rgba(83, 74, 183, 0.15); padding: 10px; border-radius: 6px;
}

/* ===== toast（wx.showToast 平移） ===== */
.ix-toast {
  position: fixed; left: 50%; bottom: 14vh; transform: translateX(-50%);
  z-index: 9999; max-width: 80vw; background: rgba(0, 0, 0, 0.78); color: #fff;
  border-radius: 8px; padding: 10px 16px; font-size: 13px; line-height: 1.6;
}

/* ===== 今日 wi 校准摘要（权重越打越准，当日实证） ===== */
/* __v128:HIDEWI 10-03 用户令: 该摘要无实际意义, 整块强制隐藏。
   CSS 与 DOM 骨架全部保留, 只加 display:none !important, 便于日后一行恢复。 */
.cal-summary {
  background: rgba(83, 74, 183, 0.18); border: 1px solid rgba(83, 74, 183, 0.45);
  color: #FFFFFF; font-size: 12px; line-height: 1.6;
  border-radius: 8px; padding: 8px 14px; margin: 2px 0 10px;
  display: none !important;   /* __v128:HIDEWI 恢复=删本行 */
}
.cal-summary::before {
  content: '⚖'; flex-shrink: 0; font-size: 13px;
}
.cal-summary.hidden { display: none; }

/* ===== 游戏专属入口（分析工作台 → 吞噬天帝 专属页） ===== */
.game-portal {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 12px; padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139,41,65,0.22), rgba(83,74,183,0.18));
  border: 1px solid rgba(201,178,122,0.35);
  border-radius: 10px;
}
.game-portal .gp-flame { font-size: 26px; line-height: 1; }
/* __v128:WHITE 10-03 用户令: 入口区文字全部纯白(原 #F2E3B0 米黄 / #B9B2E8 淡紫在深底上偏暗, 读不清) */
.game-portal .gp-info { flex: 1; min-width: 0; }
.game-portal .gp-title { font-size: 16px; font-weight: 700; color: #FFFFFF; }
.game-portal .gp-sub { font-size: 12px; color: #FFFFFF; margin-top: 2px; opacity: 0.94; }
.game-portal .gp-enter {
  flex: none; text-decoration: none;
  padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(135deg, #8B2941, #534AB7);
  color: #FFFFFF; font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.game-portal .gp-enter:hover { filter: brightness(1.08); }

/* __v131:MODELANCHOR 模型锚点核验面板 (js/index.js renderModelAnchors 填充) */
.model-anchor-panel { margin-top: 14px; border-top: 1px dashed #d8d2e8; padding-top: 12px; font-size: 13px; }
.model-anchor-panel .ma-title { font-weight: 700; color: #534AB7; margin-bottom: 8px; }
.model-anchor-panel .ma-group { margin-bottom: 10px; }
.model-anchor-panel .ma-group-hd { font-weight: 600; color: #2a2a3a; margin: 6px 0 4px; display: flex; align-items: center; }
.model-anchor-panel .ma-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.model-anchor-panel .ma-dot-3 { background: #534AB7; }
.model-anchor-panel .ma-dot-6 { background: #8B2941; }
.model-anchor-panel .ma-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 4px 0; border-bottom: 1px solid #f0edf6; }
.model-anchor-panel .ma-fn { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #1a1a2e; font-weight: 600; }
.model-anchor-panel .ma-badge { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.model-anchor-panel .ma-ok { background: #1f8a4c; color: #fff; }
.model-anchor-panel .ma-warn { background: #C0392B; color: #fff; }
.model-anchor-panel .ma-detail { flex: 1 1 100%; color: #555; line-height: 1.5; margin-top: 2px; }
.model-anchor-panel .ma-proof { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #1f8a4c; background: #f3faf5; border-left: 3px solid #1f8a4c; padding: 4px 8px; margin: 4px 0 2px; }
.model-anchor-panel .ma-link { color: #534AB7; font-weight: 600; text-decoration: underline; }
