/* 展会演示专用样式。展台屏按 1920×1080 设计，字号比原型略大。 */
:root { --chat-w: 500px; --hl: #fff1b8; --hl-on: #ffd666; --c-raw: #7b8590; --c-generic: #c2410c; --c-exp: #0e6e64; }
body { font-size: 14px; }
.messages { scroll-behavior: auto; }
.msg.agent .text { font-size: 14px; }
.tool { font-size: 12.5px; }

/* 启动遮罩 */
.boot { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 200; transition: opacity .3s; }
.boot.off { opacity: 0; pointer-events: none; }
.boot .box { text-align: center; color: var(--text-2); }
.boot .brand-mark { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 14px; }
.boot b { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* 顶栏补充 */
.brand-mark svg { color: #fff; }
.topbar .demo-tag { font-size: 11px; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 1px 8px; }
.menu-btn { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 3px 9px; font-size: 12px; color: var(--text-2); display: inline-flex; gap: 5px; align-items: center; }
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 对话区 */
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.chat-head b { color: var(--text); font-size: 13px; }
.msg.agent .text .next { margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--accent-2); border-radius: 0 6px 6px 0; color: var(--text-2); font-size: 13px; }
.msg.agent .text .next b { color: var(--accent); }
.tool-head .ic svg { display: block; }
.tool-body table { border-collapse: collapse; font-size: 12px; }
.tool-body td { padding: 1px 10px 1px 0; vertical-align: top; }
.tool-body td:first-child { color: var(--text-3); white-space: nowrap; }
.src-chip { display: inline-flex; align-items: center; gap: 3px; border: 0; background: var(--info-bg); color: var(--info); border-radius: 4px; padding: 0 6px; font-size: 11px; line-height: 18px; white-space: nowrap; cursor: pointer; }
.src-chip:hover { filter: brightness(.95); }
.approval-body .why { color: var(--text-3); font-size: 11.5px; }
.approval-body .flowline { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 8px; font-family: var(--mono); font-size: 11.5px; }
.approval-body .flowline span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; }
.approval-body .flowline i { color: var(--text-3); font-style: normal; }
.memo .row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.memo .row .pill { flex: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.composer textarea { font-size: 14px; }
.composer-bar kbd { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; background: var(--surface-2); }
.suggest .lbl { font-size: 11.5px; color: var(--text-3); align-self: center; }
.chip { font-size: 12.5px; }

/* 工作区 */
.tab .dot-new { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pane .doc { max-width: 1180px; }
.ws-empty { height: 100%; display: grid; place-items: center; color: var(--text-3); }

/* 项目概况 */
.ov-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.file-row:last-child { border-bottom: 0; }
.file-row .ic { width: 30px; height: 30px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.file-row .meta { flex: 1; min-width: 0; }
.file-row .meta span { display: block; font-size: 11.5px; color: var(--text-3); }
.wellmap { width: 100%; height: 300px; display: block; }

/* 处理报告（纸面） */
.paper-wrap { background: #e9ecef; min-height: 100%; padding: 24px 0 60px; }
.paper { width: 820px; max-width: calc(100% - 40px); margin: 0 auto 20px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); padding: 40px 56px 32px; font-family: "Songti SC", "SimSun", "Noto Serif SC", serif; font-size: 14px; line-height: 1.85; color: #222; position: relative; }
.paper h1 { font-size: 24px; text-align: center; margin: 40px 0 12px; font-weight: 700; }
.paper h2 { font-size: 16px; margin: 0 0 10px; }
.paper p { margin: 0 0 8px; text-indent: 2em; }
.paper .pno { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: #888; font-family: var(--font); }
.paper .cover-meta { text-align: center; color: #555; font-size: 13px; line-height: 2; margin-top: 60px; }
.paper .made-by { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 11.5px; color: var(--accent); border: 1px solid #b9dcd6; background: var(--accent-2); border-radius: 999px; padding: 2px 10px; margin-top: 20px; }
.paper table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin: 6px 0 10px; font-family: var(--font); }
.paper th, .paper td { border: 1px solid #bbb; padding: 3px 8px; text-align: left; }
.paper th { background: #f2f2f2; }
.paper mark { background: var(--hl); padding: 1px 0; border-radius: 2px; cursor: pointer; transition: background .2s; }
.paper mark.on { background: var(--hl-on); box-shadow: 0 0 0 2px var(--hl-on); }
.paper mark sup { font-family: var(--font); font-size: 10px; color: var(--warn); font-weight: 700; margin-left: 2px; }
.paper .flowbox { font-family: var(--mono); font-size: 12px; background: #f7f7f7; border: 1px solid #ddd; padding: 8px 12px; line-height: 1.7; text-indent: 0; }

/* 经验库 */
.exp-group { margin-bottom: 18px; }
.exp-group h3 { font-size: 13px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.exp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: start; }
.exp-card.hit { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-2); }
.exp-card .eid { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.exp-card .body b { display: block; margin-bottom: 2px; }
.exp-card .body span { color: var(--text-3); font-size: 12px; }
.exp-card .side { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

/* 图表通用 */
.plot { display: block; width: 100%; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.panel-title .sub { font-weight: 400; color: var(--text-3); font-size: 12px; }
.panel-title .right { margin-left: auto; display: flex; gap: 6px; align-items: center; font-weight: 400; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.vtag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.vtag i { width: 9px; height: 9px; border-radius: 50%; }

/* 剖面查看器 */
.sec-wrap { position: relative; flex: 1; min-height: 0; background: #fff; }
.sec-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.swipe-handle { position: absolute; top: 0; bottom: 0; width: 26px; margin-left: -13px; cursor: ew-resize; display: flex; justify-content: center; z-index: 2; }
.swipe-handle::before { content: ""; width: 2px; background: #111; height: 100%; box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
.swipe-handle b { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 12px; }
.swipe-lbl { position: absolute; top: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(17,17,17,.75); color: #fff; font-size: 12px; z-index: 2; pointer-events: none; }

/* 井震标定 */
.tie-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tie-head .cc { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tie-head .cc.bad { color: var(--danger); } .tie-head .cc.warn { color: var(--warn); } .tie-head .cc.ok { color: var(--ok); }
.tie-head .lbl { font-size: 11px; color: var(--text-3); display: block; }
.tie-body { flex: 1; min-height: 0; position: relative; background: #fff; }
.tie-body canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 作业 */
.job-wrap { display: grid; grid-template-columns: 340px 1fr; height: 100%; }
.job-steps { background: var(--surface); border-right: 1px solid var(--border); padding: 16px; overflow: auto; }
.job-steps h3 { margin: 0 0 4px; font-size: 14px; }
.job-steps .sub { color: var(--text-3); font-size: 12px; margin-bottom: 14px; }
.jstep { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; background: var(--surface); }
.jstep .h { display: flex; align-items: center; gap: 8px; }
.jstep .h b { font-family: var(--mono); font-size: 12.5px; }
.jstep .h .st { margin-left: auto; font-size: 11px; color: var(--text-3); }
.jstep .p { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.jstep .bar { height: 3px; background: var(--surface-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.jstep .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.jstep.done { border-color: #9cc9a6; background: #f0faf2; }
.jstep.done .h .st { color: var(--ok); }
.jstep.run { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
.job-main { padding: 16px 20px; overflow: auto; }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.qc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; }
.qc-card .t { font-size: 12px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; }
.qc-card .t span { font-weight: 400; color: var(--text-3); }
.qc-card canvas { height: 130px; }

/* 对比 */
.cmp-sub { display: flex; gap: 4px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); align-items: center; flex-wrap: wrap; }
.cmp-sub button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; color: var(--text-2); }
.cmp-sub button.on { background: var(--text); color: #fff; border-color: var(--text); }
.cmp-sub .sp { flex: 1; }
.metric-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.metric-table th, .metric-table td { border-bottom: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.metric-table th { color: var(--text-3); font-weight: 500; font-size: 12px; }
.metric-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
.metric-table td.best { color: var(--ok); font-weight: 700; }
.metric-table td.worse { color: var(--danger); }
.big-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.big-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.big-kpi span { font-size: 12px; color: var(--text-3); display: block; }
.big-kpi .vals { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.big-kpi .from { font-size: 16px; color: var(--text-3); }
.big-kpi .arrow { color: var(--text-3); }
.big-kpi .to { font-size: 26px; font-weight: 700; color: var(--ok); }
.big-kpi small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.cmp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card-plot { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; }

/* 作业报告 */
.rep-verdict { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.rep-verdict .pill { font-size: 12px; line-height: 22px; padding: 0 10px; }
.rep-actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 1500px) {
  :root { --chat-w: 440px; }
  .big-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-grid3 { grid-template-columns: 1fr; }
}
