/*
 * 模盾大模型安全防护控制台：统一视觉入口。
 * 调用关联：index.html、login.html 与 app.js 生成的业务视图均使用本文件；不依赖外部字体或网络资源。
 * 修改约束：颜色、尺寸与阴影优先修改下方设计变量；页面专属样式按业务分组，避免影响共享表单和弹窗。
 * 本模块只负责展示，不实现权限控制、登录验证、任务状态或设备健康判断；状态由服务端与脚本写入。
 */
:root {
  color-scheme: light;
  --navy: #021b33;
  --navy-soft: #0a2a47;
  --blue: #0b71bb;
  --blue-hover: #075e9e;
  --blue-light: #edf6fc;
  --blue-line: #cfe5f5;
  --canvas: #f4f7fb;
  --surface: #ffffff;
  --text: #172c43;
  --muted: #7a889a;
  --line: #e6ecf3;
  --green: #188567;
  --red: #d34e57;
  --amber: #be831d;
  --shadow: 0 3px 18px rgba(24, 48, 77, .035);
  --radius: 14px;
  --sidebar-width: 230px;
}

/* 共享标题和提示条中的独立图标必须显式限宽；SVG默认300px会挤压标题，导致窄列出现竖排与超高卡片。 */
.panel-header > svg, .info-banner > svg { width: 24px; height: 24px; flex: 0 0 24px; }
.live-job-grid { display: grid; grid-template-columns: minmax(230px,.85fr) minmax(0,1.15fr); gap: 24px; margin-top: 24px; }
.live-job-grid .step-dot { font-size: 11px; display: grid; place-items: center; }
.live-job-grid .evidence-block pre { max-height: 250px; }
@media(max-width:700px) { .live-job-grid { grid-template-columns: 1fr; } }

/* 基础排版与可访问焦点：正文字号固定从 16px 起，密集表格和辅助信息才使用较小字号。 */
* { box-sizing: border-box; }
html { min-width: 360px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid rgba(11, 113, 187, .38); }
input, select, textarea { min-width: 0; }
input, select, textarea { border: 1px solid #dce5ef; border-radius: 9px; color: var(--text); background: #fff; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #80b9df; box-shadow: 0 0 0 3px rgba(11, 113, 187, .08); outline: none; }
input::placeholder, textarea::placeholder { color: #a0acbb; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); width: 16px; height: 16px; padding: 0; box-shadow: none; }
textarea { resize: vertical; min-height: 104px; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--text); font-weight: 650; line-height: 1.4; }
h1 { font-size: 28px; letter-spacing: -.6px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin-bottom: 14px; }
small { font-size: 12px; }
code, pre, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; }
.muted, .text-muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-blue { color: var(--blue); }
.nowrap { white-space: nowrap; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* 主壳体：导航固定宽度、工作区自身可收缩；内容最大宽度用于大屏保持可读行长。 */
.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar-width); background: var(--navy); color: #a6bbcf; padding: 26px 15px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; line-height: 1.2; font-size: 24px; font-weight: 650; letter-spacing: 1px; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 46px; flex-shrink: 0; border: 1px solid #4a8bb3; border-radius: 13px; background: linear-gradient(145deg, #14577e, #103d61); font-size: 24px; color: #d8f0ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.brand small { display: inline-block; margin-left: 3px; font-size: 12px; font-weight: 500; color: #88aecb; letter-spacing: 1.5px; }
.brand em { display: block; font-size: 12px; font-weight: 400; font-style: normal; color: #8da6be; letter-spacing: 2px; margin-top: 8px; }
.workspace-label { margin: 38px 13px 12px; font-size: 12px; color: #6e8aa4; letter-spacing: 1.4px; }
#navigation { overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #294662 transparent; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 45px; padding: 10px 14px; border: 0; border-radius: 9px; margin: 3px 0; background: transparent; color: #a7bbce; text-align: left; font-size: 15px; font-weight: 450; transition: background .15s, color .15s; }
.nav-item svg { width: 19px; height: 19px; color: #7f9bb5; }
.nav-item:hover { color: #f6fbff; background: rgba(69, 135, 183, .13); }
.nav-item.active { color: #f4fbff; background: #0b426b; box-shadow: inset 3px 0 0 #49aeed; font-weight: 600; }
.nav-item.active svg { color: #77caff; }
.nav-label, .nav-section, .nav-group-title { color: #6e8aa4; text-transform: uppercase; font-size: 12px; letter-spacing: 1.6px; padding: 22px 14px 7px; }
.nav-divider { height: 1px; margin: 17px 13px; background: rgba(156, 191, 221, .1); }
.nav-count { margin-left: auto; padding: 1px 6px; font-size: 12px; border-radius: 5px; background: #194668; color: #acd7f3; }
.sidebar-bottom { display: flex; align-items: flex-start; gap: 10px; padding: 18px 10px 0; margin-top: 16px; border-top: 1px solid rgba(168, 202, 230, .13); font-size: 12px; color: #a4bdd3; }
.sidebar-bottom .live-dot { margin-top: 6px; }
.sidebar-bottom small { display: block; color: #6f8da8; font-size: 12px; margin-top: 4px; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #4fbb97; box-shadow: 0 0 0 3px rgba(79,187,151,.12); }
.workspace { display: flex; flex: 1; min-width: 0; margin-left: var(--sidebar-width); flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.breadcrumb { color: #8491a1; font-size: 12px; white-space: nowrap; }
.breadcrumb span { padding: 0 12px; color: #c2cbd7; }
.breadcrumb strong { color: #516279; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.env-tag { padding: 4px 8px; border: 1px solid #e0e9f1; border-radius: 5px; font-size: 12px; font-weight: 500; color: #7d91a5; letter-spacing: .4px; white-space: nowrap; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; color: #7d90a6; background: #fff; font-size: 21px; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { color: var(--blue); background: var(--blue-light); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf3fb; color: #5786ab; font-size: 12px; }
.user-button, .text-button { padding: 3px 0; border: 0; background: transparent; color: #5f7085; font-size: 12px; }
.text-button { color: #8794a5; }
.user-button:hover, .text-button:hover { color: var(--blue); }
#main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 30px 32px 34px; flex: 1; outline: none; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 32px; color: #a0acba; border-top: 1px solid var(--line); font-size: 12px; }
.loading-view { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 65vh; color: var(--muted); }
.loading-view h2 { font-size: 18px; margin: 22px 0 8px; }
.loading-view p { font-size: 14px; }
.spinner { width: 28px; height: 28px; display: inline-block; border: 2px solid #dfeaf3; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 页面标题与动作：主次层级稳定，动作可以折行，防止窄屏截断关键按钮。 */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { display: block; margin-bottom: 7px; color: #7790a9; font-size: 12px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.page-heading h1 { margin-bottom: 7px; }
.page-heading p { color: #8592a4; font-size: 14px; margin-bottom: 0; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.button svg { width: 16px; height: 16px; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 3px 8px rgba(11,113,187,.12); }
.button.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.button.secondary { background: #fff; color: #536a81; border-color: #dfe7ef; }
.button.secondary:hover:not(:disabled) { background: #f7fbfe; border-color: #9fc8e4; color: var(--blue); }
.button.ghost { background: transparent; color: #61778d; border-color: transparent; }
.button.ghost:hover:not(:disabled) { background: var(--blue-light); color: var(--blue); }
.button.danger { background: #fff5f5; border-color: #f0cdd0; color: #bd4c55; }
.button.danger:hover:not(:disabled) { background: #fce9ea; }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.button.full { width: 100%; }

/* 态势指标和栅格：在不扩大字号差异的前提下，以留白、标记和数字建立数据优先级。 */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.metric-card { position: relative; min-width: 0; padding: 21px 22px 19px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-label { display: block; color: #8391a3; font-size: 12px; margin-bottom: 13px; }
.metric-value { display: block; color: #20374e; font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric-value small { margin-left: 5px; font-size: 12px; font-weight: 400; color: #94a1b1; letter-spacing: 0; }
.metric-note { display: block; font-size: 12px; color: #97a3b2; margin-top: 12px; }
.metric-note strong, .metric-note .up { color: var(--green); font-weight: 500; }
.metric-icon { position: absolute; top: 20px; right: 21px; width: 32px; height: 32px; display: grid; place-items: center; color: #7aabce; border-radius: 9px; background: #f1f7fc; }
.metric-icon svg { width: 17px; height: 17px; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; align-items: start; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px; }
.grid-two > .panel, .grid-three > .panel { margin-bottom: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 22px 17px; border-bottom: 1px solid #eef2f7; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-header p { margin: 5px 0 0; color: #7a8b9f; font-size: 12px; }
.panel-header > span, .panel-header > a { font-size: 12px; }
.panel-body { padding: 22px; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eef2f7; padding: 13px 22px; font-size: 12px; color: #8a99aa; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 15px; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 18px; }

/* 筛选、标签和页签共用浅色语义色。purple 仅兼容业务风险分类，不作为主视觉或渐变使用。 */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e1e9f1; border-radius: 6px; padding: 4px 9px; background: #fff; color: #7a8ba0; font-size: 12px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 11px 2px 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8996a7; font-size: 14px; white-space: nowrap; }
.tab.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 17px 22px; border-bottom: 1px solid #edf1f6; }
.filter-bar .button:last-child { margin-left: auto; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 220px; color: #96a6b8; }
.search-field input { width: 100%; font-size: 12px; height: 36px; }
input.search-field { display: block; padding: 8px 12px; height: 36px; font-size: 12px; }
.search-field svg { width: 16px; height: 16px; }
.filter-select { height: 36px; min-width: 130px; font-size: 12px; color: #718298; padding: 7px 30px 7px 11px; background-color: #fff; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 5px; padding: 2px 7px; font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.badge.blue { color: #4082b4; background: #edf6fd; border-color: #e2eff8; }
.badge.green { color: #2e987a; background: #edf8f3; border-color: #dff1e8; }
.badge.red { color: #cd6870; background: #fff0f1; border-color: #fbe3e5; }
.badge.amber { color: #bb9147; background: #fff8eb; border-color: #f7edd6; }
.badge.gray { color: #8c9aab; background: #f3f6f9; border-color: #e9eef3; }
.badge.purple { color: #7d83a2; background: #f1f3f8; border-color: #e7eaf2; }

/* 数据表格：保留横向滚动而不压缩字段；详情主字段和辅助字段通过行内层级呈现。 */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.table thead { background: #f8fafd; }
.table th { padding: 12px 19px; color: #8b99a9; font-size: 12px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid #edf1f6; }
.table td { padding: 15px 19px; border-bottom: 1px solid #eef2f7; color: #61758b; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfdff; }
.table .cell-title { display: block; color: #3d536b; font-size: 14px; font-weight: 500; }
.table .cell-sub { display: block; font-size: 12px; color: #7c8da0; margin-top: 4px; }
.table .mono { font-size: 12px; color: #71879f; }
.row-action { display: inline-flex; align-items: center; border: 0; background: transparent; padding: 4px 3px; margin-right: 8px; font-size: 12px; color: #548eb8; white-space: nowrap; }
.row-action:hover { color: var(--blue-hover); }
.row-action.danger { color: #c9656c; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 240px; text-align: center; color: #94a3b6; padding: 35px; }
.empty-state svg { width: 44px; height: 44px; color: #b6cadc; }
.empty-state h3 { font-size: 16px; margin: 3px 0 0; color: #6a7e94; }
.empty-state p { margin: 0 0 7px; font-size: 14px; max-width: 460px; }

/* 态势横幅、拓扑与趋势图：图形只承载当前数据或案例，不在 CSS 中产生模拟指标。 */
.hero-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; position: relative; overflow: hidden; min-height: 150px; padding: 27px 31px; border: 1px solid #d8e9f5; border-radius: var(--radius); background: linear-gradient(110deg, #edf6fd, #f8fcff); margin-bottom: 24px; }
.hero-copy { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 650px; }
.hero-copy .eyebrow { color: #75a4c4; }
.hero-copy h2 { color: #315b7c; font-size: 20px; margin-bottom: 8px; }
.hero-copy p { color: #71889c; font-size: 14px; margin-bottom: 0; }
.hero-copy .button { margin-top: 15px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; width: 265px; min-height: 175px; color: #91bad6; flex-shrink: 0; isolation: isolate; }
.hero-visual > svg { position: relative; z-index: 2; width: 77px; height: 77px; padding: 19px; border: 1px solid #d4e9f9; border-radius: 23px; color: #fff; background: #3389bf; box-shadow: 0 8px 25px rgba(31,110,165,.13), inset 0 1px 0 rgba(255,255,255,.2); }
.hero-orbit { position: absolute; inset: 19px 9px; border: 1px solid #c7e0f0; border-radius: 50%; transform: rotate(-17deg); }
.hero-orbit::before { content: ""; position: absolute; inset: -18px 19px; border: 1px solid #dfedf6; border-radius: 50%; transform: rotate(35deg); }
.hero-tag { position: absolute; z-index: 3; padding: 6px 11px; border: 1px solid #dceaf5; border-radius: 8px; background: rgba(255,255,255,.97); color: #7196b0; box-shadow: 0 4px 10px rgba(56,112,151,.04); font-size: 12px; white-space: nowrap; }
.hero-tag::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #86b8d7; margin-right: 6px; vertical-align: 2px; }
.tag-one { left: 0; top: 13px; }
.tag-two { right: -2px; top: 56px; }
.tag-three { left: 37px; bottom: 5px; }
.topology { position: relative; min-height: 280px; background-image: radial-gradient(#dce8f3 .8px, transparent .8px); background-size: 19px 19px; border-radius: 10px; }
.topology svg, svg.topology, .topology-svg { display: block; width: 100%; height: auto; min-height: 260px; }
.topology-link { stroke: #c8ddeb; stroke-width: 1.5; fill: none; }
.topology-link.active { stroke: #5ba6d9; stroke-width: 2; stroke-dasharray: 6 5; }
.topology-node { cursor: pointer; }
.topology-node rect, .topology-node circle { transition: stroke .15s, fill .15s; }
.topology-node:hover rect, .topology-node:hover circle { stroke: #70b1dd; }
.topology-node text { font-family: inherit; }
.topology-legend { display: flex; justify-content: center; gap: 20px; color: #95a5b5; font-size: 12px; padding-top: 12px; }
.spark-chart { display: block; width: 100%; min-height: 120px; overflow: visible; }
.spark-chart text { font-size: 11px; fill: #8197ab; }
.chart-labels { display: flex; justify-content: space-between; color: #acb5c1; font-size: 12px; margin-top: 10px; }
.list-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #edf2f7; background: transparent; text-align: left; }
.list-row:is(button):hover { background: #f8fbfe; }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-icon { width: 35px; height: 35px; flex-shrink: 0; display: grid; place-items: center; background: #eff6fc; color: #78a6c8; border-radius: 10px; }
.list-icon svg { width: 17px; height: 17px; }
.list-content { min-width: 0; flex: 1; }
.list-content strong { display: block; color: #526981; font-weight: 500; font-size: 14px; }
.list-content p, .list-content small { display: block; margin: 4px 0 0; font-size: 12px; color: #7e8fa2; }
.list-extra { margin-left: auto; text-align: right; flex-shrink: 0; font-size: 12px; color: #899aad; }
.progress { overflow: hidden; width: 100%; height: 5px; background: #edf2f7; border-radius: 6px; }
.progress-bar { height: 100%; width: 0; background: #63a7d4; border-radius: inherit; transition: width .25s ease; }
.progress-bar.green { background: #58aa92; }
.progress-bar.red { background: #df8c92; }

/* 案例卡片和执行步骤：序号、阶段和状态沿用真实脚本状态；无自动播放的伪实时动画。 */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.case-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; }
.case-card:hover { box-shadow: 0 8px 28px rgba(31,66,99,.06); border-color: #cbdde9; }
.case-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 137px; overflow: hidden; background: #f0f6fb; border-bottom: 1px solid #e7eff6; color: #76a4c8; }
.case-cover svg { width: 100%; max-width: 250px; height: 115px; }
.case-cover .badge { position: absolute; top: 13px; left: 15px; }
.case-number { position: absolute; right: 16px; top: 13px; font-size: 12px; color: #9bb3c6; letter-spacing: 1px; }
.case-card > h3, .case-card > p, .case-meta, .case-actions { margin-left: 19px; margin-right: 19px; }
.case-card > h3 { margin-top: 17px; margin-bottom: 7px; font-size: 16px; }
.case-card > p { color: #74869a; font-size: 14px; margin-bottom: 15px; min-height: 39px; }
.case-body { padding: 18px 19px 0; }
.case-body h3 { font-size: 16px; margin-bottom: 7px; }
.case-body p { color: #7c8da0; font-size: 12px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #7b8da0; font-size: 12px; margin-top: auto; margin-bottom: 16px; }
.case-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid #edf2f7; padding: 13px 0 16px; }
.step-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.step { display: flex; position: relative; gap: 15px; padding-bottom: 23px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px; background: #e3ebf3; }
.step:last-child { padding-bottom: 0; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid #dce7f1; border-radius: 50%; background: #f7fafd; font-size: 12px; color: #a2b2c2; }
.step-content { min-width: 0; flex: 1; }
.step-content h3, .step-content strong { display: block; font-size: 14px; color: #7e91a5; font-weight: 500; margin: 2px 0 5px; }
.step-content p { font-size: 12px; color: #9eacbb; margin-bottom: 0; }
.step.active .step-dot { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px #edf6fd; }
.step.active .step-content h3, .step.active .step-content strong { color: var(--blue); }
.step.done .step-dot { background: #edf8f3; border-color: #cce8dc; color: #57a58c; }

/* 详情与证据：长命令、模型响应允许换行，代码区限定滚动，避免撑破弹窗与主栅格。 */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.detail-block { min-width: 0; padding: 17px 18px; border: 1px solid #e7edf5; border-radius: 9px; background: #fbfcfe; }
.detail-block > small, .detail-block > label { display: block; color: #99a7b7; font-size: 12px; margin-bottom: 6px; }
.detail-block > strong { color: #5a7189; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.detail-block h3 { font-size: 14px; margin-bottom: 10px; }
.detail-block p { margin-bottom: 0; font-size: 14px; color: #7e90a4; }
.code-block { max-width: 100%; overflow: auto; border: 1px solid #213c53; border-radius: 10px; padding: 16px 18px; background: #0b2237; color: #a5c1d7; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-block .prompt { color: #58afc6; }
.evidence-block { padding: 15px 17px; border-left: 3px solid #a8cbe4; border-radius: 0 7px 7px 0; background: #f3f8fc; color: #6c869c; font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-block h3, .evidence-block strong { color: #4c7594; }
.evidence-block + .evidence-block { margin-top: 12px; }

/* 原生 dialog：背景遮罩由浏览器维护，限制滚动在弹窗内部，关闭及提交按钮保持可见。 */
#modal, .modal-dialog { width: min(900px, calc(100vw - 48px)); max-height: 89vh; max-height: 89svh; padding: 0; border: 0; border-radius: 17px; color: var(--text); background: #fff; box-shadow: 0 24px 100px rgba(0,20,40,.24); overflow: auto; }
#modal::backdrop, .modal-dialog::backdrop { background: rgba(4, 24, 43, .43); backdrop-filter: blur(4px); }
.modal-content, #modal-content { min-width: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 27px 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 21px; margin-bottom: 5px; }
.modal-header p { font-size: 12px; color: #92a0b1; margin-bottom: 0; }
.modal-header .icon-button { flex-shrink: 0; border: none; color: #8da0b2; }
.modal-body { padding: 24px 27px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 27px; border-top: 1px solid var(--line); background: #fbfcfe; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 19px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #667e94; font-size: 14px; }
.form-field > label { font-size: 14px; font-weight: 500; color: #657b91; }
.form-field input, .form-field select, .form-field textarea { width: 100%; font-size: 14px; }
.form-field.full, .form-field.wide { grid-column: 1 / -1; }
.form-field .form-hint, .form-hint { margin: 0; color: #7d8da0; font-size: 12px; line-height: 1.65; }
.form-error { color: #c4636b; font-size: 12px; min-height: 20px; margin: 5px 0 13px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #7a8fa3; }

/* 非阻塞任务与消息：停靠区域避开侧栏，消息自身可点击，空容器不拦截底下的页面操作。 */
.job-dock { position: fixed; right: 23px; bottom: 23px; z-index: 70; display: flex; flex-direction: column; gap: 10px; width: min(355px, calc(100vw - 32px)); pointer-events: none; }
.job-card { padding: 17px 18px; border: 1px solid #d6e7f3; border-radius: 12px; background: #fff; box-shadow: 0 6px 35px rgba(17,53,85,.13); pointer-events: auto; }
.job-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.job-title { color: #57738b; font-size: 12px; font-weight: 600; }
.job-progress { height: 4px; overflow: hidden; border-radius: 4px; background: #edf3f8; margin: 10px 0; }
.job-progress > span, .job-progress > div { display: block; height: 100%; background: #62a6d4; transition: width .2s; }
.job-meta { display: flex; justify-content: space-between; gap: 10px; color: #9cabb9; font-size: 12px; }
.toasts { position: fixed; z-index: 150; top: 20px; left: calc(50% + var(--sidebar-width) / 2); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 40px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid #d6e9e2; border-radius: 9px; background: #fff; color: #4c8b76; box-shadow: 0 6px 25px rgba(22,62,84,.12); font-size: 14px; animation: toast-enter .2s ease-out; }
.toast.error { border-color: #f0d3d6; color: #c46970; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

/* 安全评测、报告和账户：这些组件服务结果证据与整改闭环，不用装饰图形代替实际评分。 */
.benchmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.benchmark-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.benchmark-category { font-size: 12px; font-weight: 600; color: #8ca8bf; letter-spacing: 1px; margin-bottom: 16px; }
.benchmark-title { font-size: 17px; color: #3f5b74; font-weight: 600; margin: 0 0 9px; }
.benchmark-description { font-size: 14px; color: #74869a; min-height: 58px; margin-bottom: 17px; }
.benchmark-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #8fa0b2; font-size: 12px; margin-bottom: 18px; }
.benchmark-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px solid #edf2f7; }
.score-card { text-align: center; background: #f1f7fc; border: 1px solid #dfebf5; border-radius: 12px; padding: 24px 20px; }
.score-value { display: block; font-size: 52px; line-height: 1.15; color: #477fa7; font-weight: 650; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.score-value small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #8eabbf; }
.score-label { display: block; color: #86a0b5; font-size: 12px; margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; padding: 0 0 23px 25px; border-left: 1px solid #dce8f2; margin-left: 5px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; background: #9bbdd6; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #cfe1ef; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item h3, .timeline-item strong { font-size: 14px; font-weight: 500; color: #5f7b94; margin: 0 0 6px; }
.timeline-item time, .timeline-item small { color: #7e8fa2; font-size: 12px; }
.timeline-item p { color: #90a0b2; font-size: 12px; margin: 7px 0 0; }
.report-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 18px; }
.report-card h3 { font-size: 17px; margin-bottom: 8px; }
.report-card p { font-size: 14px; color: #8b9caf; }
.notice, .info-banner { display: flex; align-items: flex-start; gap: 11px; padding: 14px 17px; border: 1px solid #dceaf5; border-radius: 9px; background: #f1f7fc; color: #7393ad; font-size: 12px; line-height: 1.8; margin-bottom: 22px; }
.notice svg, .info-banner svg { width: 16px; height: 16px; margin-top: 3px; }
.notice p, .info-banner p { margin: 0; }
.notice.amber { background: #fffaf0; color: #ab914f; border-color: #f0e6c8; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; }
.account-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); margin-bottom: 22px; }
.account-summary .avatar { width: 54px; height: 54px; font-size: 19px; }
.account-summary h2 { font-size: 18px; margin-bottom: 4px; }
.account-summary p { font-size: 12px; color: #98a6b5; margin-bottom: 0; }

/* 实际业务模板适配：app.js 的表格没有附加 .table 类，使用容器选择器共享样式，避免裸表退回浏览器默认布局。 */
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.table-wrap thead { background: #f8fafd; }
.table-wrap th { padding: 13px 19px; border-bottom: 1px solid #eaf0f6; color: #8092a5; font-size: 13px; font-weight: 500; white-space: nowrap; }
.table-wrap td { padding: 16px 19px; border-bottom: 1px solid #edf2f7; color: #61758b; vertical-align: middle; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: #fbfdff; }
.cell-title { display: block; color: #3d536b; font-size: 14px; font-weight: 500; }
.cell-sub { display: block; color: #7c8da0; font-size: 12px; margin-top: 5px; }
.cell-title.row-action { padding-left: 0; text-align: left; white-space: normal; line-height: 1.6; }
.table-wrap .mono { color: #71879f; font-size: 13px; }
.nav-item > small { margin-left: auto; min-width: 20px; padding: 1px 5px; border-radius: 5px; color: #afd7f2; background: #16466a; font-size: 12px; text-align: center; }
.filter-bar { margin-bottom: 20px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 14px; }
.panel > .filter-bar { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.filter-bar input, .filter-bar select, .filter-bar .search-field input { font-size: 14px; }
.source-link { font-size: 13px; color: #6590af; overflow-wrap: anywhere; }
.list-icon.red { background: #fff0f1; color: #ca7c83; }
.panel-body > .muted { margin-top: 17px; font-size: 14px; line-height: 1.8; }
.panel > .tabs { padding: 0 22px; margin-bottom: 0; }

/* 兼容业务卡片：选中状态对应当前拓扑，主标题、资产数量和动作保持纵向对齐。 */
.net-card { margin-bottom: 0; transition: border-color .18s, box-shadow .18s; }
.net-card.selected { border-color: #a4cce7; box-shadow: 0 0 0 1px #d6e8f6, var(--shadow); }
.net-card .panel-header { padding-bottom: 15px; border-bottom: 0; }
.net-card .panel-body { padding-top: 4px; }
.net-card .panel-body h2 { font-size: 18px; margin-bottom: 10px; }
.net-card .panel-body > p { font-size: 14px; color: #8194a6; line-height: 1.8; min-height: 50px; }
.net-card .case-meta, .net-card .case-actions { margin-left: 0; margin-right: 0; }
.net-card .case-actions { flex-wrap: wrap; padding-bottom: 0; margin-bottom: 0; gap: 7px; }
.net-card .case-actions .button { font-size: 12px; padding-left: 9px; padding-right: 9px; }
.case-card .panel-body { display: flex; flex: 1; flex-direction: column; }
.case-card .panel-body > h2 { font-size: 18px; margin-bottom: 10px; }
.case-card .panel-body > p { color: #7f91a5; font-size: 14px; line-height: 1.8; }
.case-card .panel-body > .case-actions { margin: auto 0 0; padding-bottom: 0; flex-wrap: wrap; }
.case-cover { background-image: radial-gradient(#d9e9f5 .8px, transparent .8px); background-size: 17px 17px; }
.case-cover > svg { width: 65px; height: 65px; color: #8cb6d3; stroke-width: 1.2; }
.case-steps { list-style: none; counter-reset: case-step; margin: 0 0 20px; padding: 0; }
.case-steps li { counter-increment: case-step; display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; color: #8298aa; font-size: 13px; line-height: 1.6; }
.case-steps li::before { content: counter(case-step, decimal-leading-zero); color: #8dafc7; font-size: 11px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.info-banner > div { flex: 1; min-width: 0; }
.info-banner > label { display: flex; flex-direction: column; gap: 6px; margin-left: auto; min-width: 185px; color: #7b94aa; font-size: 12px; }
.info-banner select { font-size: 13px; padding: 7px 10px; }

/* 评测套件选择器：按钮整卡可点；选中态依靠边框和勾选，不只依赖颜色区分。 */
.suite-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.suite-card { display: flex; position: relative; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 20px 17px; border: 1px solid #e2eaf2; border-radius: 11px; background: #fff; color: #6c86a0; text-align: left; transition: background .15s, border-color .15s, box-shadow .15s; }
.suite-card:hover { border-color: #b6d5eb; background: #fbfdff; }
.suite-card > svg { width: 24px; height: 24px; color: #85abc7; margin-bottom: 6px; }
.suite-card > strong { font-size: 15px; color: #4e6c86; font-weight: 550; }
.suite-card > span:not(.selection-check) { font-size: 12px; color: #8499ac; line-height: 1.8; }
.suite-card.selected { border-color: #76b3dd; background: #f0f7fd; box-shadow: 0 0 0 1px #d5e9f8; }
.suite-card.selected > svg, .suite-card.selected > strong { color: #3a82b2; }
.selection-check { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2c86bd; color: #fff; font-size: 11px; }
.evaluation-toolbar { display: flex; align-items: center; gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.evaluation-toolbar > label { display: flex; flex-direction: column; gap: 7px; flex: 0 0 230px; color: #7d93a8; font-size: 12px; }
.evaluation-toolbar select { max-width: 100%; font-size: 14px; }
.evaluation-toolbar > div { flex: 1; min-width: 0; }
.evaluation-toolbar strong { color: #657f96; font-size: 14px; font-weight: 500; }
.evaluation-toolbar p { color: #8c9eaf; font-size: 12px; margin: 5px 0 0; line-height: 1.8; }
.evaluation-toolbar > .button { align-self: flex-end; margin-bottom: 2px; }
.evaluation-result { border: 1px solid #e3ebf3; border-radius: 11px; padding: 19px; margin-top: 16px; }
.evaluation-result > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.evaluation-result > div:first-child strong { font-size: 15px; font-weight: 550; color: #52718d; }
.evaluation-result > p { font-size: 14px; color: #8195a9; margin: 15px 0; line-height: 1.85; }
.evaluation-result .code-block { margin-bottom: 0; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid.three .score-value { font-size: 34px; letter-spacing: -1px; }
.metric-grid.three .score-card > span { display: block; font-size: 12px; color: #809caf; margin-top: 10px; }
.benchmark-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.benchmark-card > h2 { font-size: 19px; margin-bottom: 12px; }
.benchmark-card .benchmark-meta { display: block; margin-top: 19px; line-height: 1.9; }
.benchmark-actions { flex-wrap: wrap; }

/* 详情、导览和报告：布局匹配当前模板；对象标签与对象值分行，长证据只在自身容器内滚动。 */
.detail-title { margin-bottom: 25px; }
.detail-title > .badge { margin-right: 6px; }
.detail-title h2 { font-size: 23px; margin: 12px 0 8px; }
.detail-title p { color: #8396a8; font-size: 14px; line-height: 1.85; }
.detail-grid > div:not(.detail-block) { min-width: 0; padding: 14px 16px; border: 1px solid #e8eef5; border-radius: 8px; background: #fbfcfe; }
.detail-grid > div > span { display: block; font-size: 12px; color: #8c9fb0; margin-bottom: 6px; }
.detail-grid > div > strong { display: block; font-size: 14px; font-weight: 500; color: #5b778f; overflow-wrap: anywhere; }
.detail-grid + h3, .chips + h3 { margin-top: 25px; font-size: 16px; }
.evidence-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 10px; border-bottom: 1px solid #e1eaf2; margin-bottom: 12px; white-space: normal; }
.evidence-header strong { font-size: 14px; font-weight: 550; }
.evidence-header .muted { color: #91a5b7; font-size: 12px; }
.evidence-block pre { margin: 0; max-height: 350px; overflow: auto; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-grid article { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 21px 19px; border: 1px solid #e1eaf3; border-radius: 11px; background: #f8fbfe; }
.guide-number { color: #8bb8d7; font-size: 30px; font-weight: 500; letter-spacing: -1px; line-height: 1.3; margin-bottom: 24px; }
.guide-grid h3 { font-size: 17px; margin-bottom: 9px; color: #52738e; }
.guide-grid p { font-size: 14px; color: #8299ad; line-height: 1.85; margin-bottom: 24px; }
.guide-grid .button { margin-top: auto; }
.reports-list { display: flex; flex-direction: column; gap: 15px; }
.reports-list .report-card { display: flex; align-items: center; gap: 22px; margin: 0; }
.report-icon { display: grid; place-items: center; width: 58px; height: 68px; flex: 0 0 58px; border: 1px solid #dceaf5; border-radius: 12px; background: #f0f7fc; color: #8ab4cf; }
.report-icon svg { width: 27px; height: 27px; stroke-width: 1.4; }
.report-card > div:not(.report-actions) { min-width: 0; flex: 1; }
.report-card h2 { font-size: 18px; margin-bottom: 7px; }
.report-card p { margin-bottom: 8px; color: #8295a8; }
.report-card .muted { font-size: 12px; color: #98a9b9; }
.report-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; margin-left: auto; flex-shrink: 0; }
.job-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #edf2f7; }
.job-header .job-title { display: flex; align-items: center; gap: 8px; }
.job-header .job-title svg { width: 17px; height: 17px; }
.job-card p { font-size: 12px; color: #8aa0b4; margin-bottom: 10px; }
.modal-body form > .form-field { margin-top: 18px; }
.modal-body form > .notice { margin-top: 20px; }
.modal-body .modal-footer { margin: 22px -27px -24px; }

/* 登录专用：深蓝网格和环形护栏图形均为本地 CSS，右侧表单与品牌叙述在视觉上保持独立。 */
.login-body { background: #fff; }
.login-layout { display: grid; grid-template-columns: 52% 48%; min-height: 100vh; min-height: 100svh; }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 100vh; min-height: 100svh; padding: 42px clamp(34px, 4.3vw, 76px) 30px; background-color: var(--navy); background-image: radial-gradient(ellipse at 70% 68%, rgba(20,90,135,.36), transparent 53%), linear-gradient(rgba(134,184,220,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(134,184,220,.025) 1px, transparent 1px); background-size: auto, 44px 44px, 44px 44px; }
.login-story .brand { font-size: 25px; }
.login-story .brand small { font-size: 12px; margin-left: 7px; }
.login-story .brand-mark { width: 40px; height: 43px; }
.login-copy { position: relative; z-index: 1; margin-top: clamp(55px, 7vh, 90px); }
.eyebrow.light { font-size: 12px; letter-spacing: 2.4px; color: #5f93b9; margin-bottom: 17px; }
.login-copy h1 { color: #eef6fc; font-size: clamp(33px, 3.4vw, 49px); line-height: 1.32; letter-spacing: -1.5px; font-weight: 600; margin-bottom: 20px; }
.login-copy p { font-size: 16px; color: #7e9cb6; line-height: 1.95; margin-bottom: 0; }
.login-network { position: relative; height: clamp(220px, 31vh, 340px); min-height: 220px; width: 100%; max-width: 480px; margin: 0 auto; }
.orbit { position: absolute; left: 50%; top: 53%; transform: translate(-50%,-50%) rotate(-20deg); border: 1px solid rgba(104,169,212,.19); border-radius: 50%; }
.orbit-one { width: 74%; height: 56%; }
.orbit-two { width: 95%; height: 84%; transform: translate(-50%,-50%) rotate(15deg); border-color: rgba(104,169,212,.11); }
.network-core { position: absolute; top: 53%; left: 50%; transform: translate(-50%,-50%) rotate(-5deg); display: grid; place-items: center; width: 81px; height: 88px; border-radius: 23px; background: linear-gradient(135deg, #13527d, #0d3555); border: 1px solid #376b91; color: #a5dcff; box-shadow: 0 0 70px rgba(41,139,199,.17), inset 0 1px 0 rgba(255,255,255,.1); font-size: 38px; font-weight: 500; }
.network-core::before, .network-core::after { content: ""; position: absolute; background: rgba(105,170,213,.15); width: 133px; height: 1px; z-index: -1; }
.network-core::before { transform: rotate(36deg); left: -105px; }
.network-core::after { transform: rotate(-26deg); right: -112px; }
.network-node { position: absolute; display: grid; place-items: center; width: 52px; height: 42px; border: 1px solid #285270; border-radius: 10px; background: #0a2a45; color: #6f9fbd; font-size: 12px; font-style: normal; letter-spacing: .8px; box-shadow: 0 5px 16px rgba(0,10,22,.11); }
.network-node::after { content: ""; position: absolute; right: 5px; top: 5px; height: 3px; width: 3px; border-radius: 50%; background: #51b19d; }
.n1 { left: 12%; top: 29%; }
.n2 { right: 6%; top: 26%; }
.n3 { left: 18%; bottom: 14%; }
.n4 { right: 20%; bottom: 11%; }
.login-foot { position: relative; margin-top: auto; color: #52748f; font-size: 12px; letter-spacing: 1.3px; padding-top: 12px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 45px clamp(30px, 5vw, 80px); background: #fff; }
.login-card { width: 100%; max-width: 390px; }
.login-card > .eyebrow { color: #a0b0be; letter-spacing: 2px; margin-bottom: 10px; }
.login-card h2 { color: #1e3a52; font-size: 27px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.4px; }
.login-card > p { color: #718397; font-size: 14px; margin-bottom: 31px; }
#login-form > label { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; color: #6d8297; font-size: 12px; }
#login-form input { width: 100%; height: 45px; padding: 11px 13px; border-color: #e0e8ef; font-size: 14px; background: #fcfdfe; }
#login-form input:focus { background: #fff; }
.password-field { position: relative; }
.password-field input { padding-right: 58px !important; }
.password-field button { position: absolute; top: 0; right: 0; height: 45px; width: 53px; background: transparent; border: 0; color: #97aabd; font-size: 12px; }
.password-field button:hover { color: var(--blue); }
#login-form .form-error { margin-top: -4px; margin-bottom: 9px; min-height: 20px; }
#login-submit { min-height: 44px; font-size: 14px; border-radius: 8px; letter-spacing: 1px; }
.demo-credentials { background: #f7fafc; border: 1px solid #e8eef5; border-radius: 10px; padding: 15px 17px 13px; margin-top: 26px; }
.demo-credentials strong { display: block; color: #8a9caf; font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.demo-credentials > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #9baaba; font-size: 12px; margin-top: 6px; }
.demo-credentials code { font-size: 12px; color: #6c8ba5; }
.demo-credentials small { display: block; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e7edf3; font-size: 12px; color: #7d8da0; line-height: 1.8; }
.login-assurance { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #7d8da0; margin-top: 25px; }
.login-assurance .live-dot { height: 5px; width: 5px; flex-basis: 5px; box-shadow: none; background: #97c7b6; }

/* 响应式：中等宽度优先减少列数；移动端把导航改成可横向滚动的顶栏，仍保留所有业务入口。 */
@media (min-width: 1800px) {
  #main { padding-top: 36px; padding-bottom: 42px; }
  .metric-card { padding: 25px; }
  .metric-value { font-size: 34px; }
}
@media (max-width: 1250px) {
  .topbar { padding: 0 25px; }
  #main { padding: 26px 25px; }
  .metric-grid { gap: 12px; }
  .metric-card { padding: 18px; }
  .metric-icon { right: 16px; top: 17px; width: 27px; height: 27px; }
  .metric-label { font-size: 12px; }
  .metric-value { font-size: 27px; }
  .case-grid, .benchmark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
  .panel-header { padding-left: 18px; padding-right: 18px; }
  .panel-body { padding: 18px; }
  .hero-visual { width: 210px; }
  .suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evaluation-toolbar { flex-wrap: wrap; gap: 18px; }
  .evaluation-toolbar > label { flex-basis: 220px; }
  .evaluation-toolbar > div { flex-basis: calc(100% - 245px); }
  .evaluation-toolbar > .button { margin-left: auto; }
  .env-tag { display: none; }
}
@media (max-width: 1020px) {
  :root { --sidebar-width: 200px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 22px; gap: 10px; }
  .brand small { font-size: 12px; letter-spacing: .8px; }
  .brand em { font-size: 12px; letter-spacing: 1px; }
  .nav-item { font-size: 14px; gap: 10px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-two, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { align-items: flex-start; }
  .heading-actions { max-width: 220px; }
  .page-heading h1 { font-size: 25px; }
  .hero-banner { padding: 23px; }
  .hero-visual { width: 175px; }
  .hero-visual > svg { width: 65px; height: 65px; padding: 15px; border-radius: 19px; }
  .hero-tag { padding: 5px 7px; }
  .tag-one { left: -9px; }
  .tag-two { right: -13px; top: 69px; }
  .tag-three { left: 17px; }
  .reports-list .report-card { flex-wrap: wrap; }
  .report-actions { flex-direction: row; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); align-items: center; justify-content: flex-end; }
  .login-layout { grid-template-columns: 47% 53%; }
  .login-story { padding-left: 32px; padding-right: 32px; }
  .login-copy h1 { font-size: 34px; }
  .login-panel { padding-left: 35px; padding-right: 35px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; padding: 15px 18px 8px; flex-shrink: 0; }
  .sidebar .brand { font-size: 20px; gap: 9px; }
  .sidebar .brand-mark { height: 32px; width: 32px; border-radius: 9px; font-size: 18px; }
  .sidebar .brand em { display: none; }
  .sidebar .brand small { font-size: 12px; }
  .workspace-label, .sidebar-bottom, .nav-label, .nav-section, .nav-group-title, .nav-divider { display: none; }
  #navigation { display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; margin-top: 12px; scrollbar-width: none; }
  #navigation::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; min-width: max-content; min-height: 37px; margin: 0; padding: 8px 11px; gap: 7px; font-size: 12px; }
  .nav-item svg { width: 15px; height: 15px; }
  .nav-item.active { box-shadow: inset 0 -2px 0 #49aeed; }
  .nav-count { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 54px; padding: 0 20px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb span { padding: 0 7px; }
  .top-actions { gap: 10px; }
  .top-actions .avatar, .top-actions .icon-button { display: none; }
  #main { padding: 24px 19px; }
  .footer { padding: 15px 19px; flex-direction: column; gap: 4px; }
  .page-heading { flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { justify-content: flex-start; max-width: none; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 18px; }
  .metric-label { max-width: calc(100% - 27px); }
  .metric-note { font-size: 12px; }
  .case-grid, .benchmark-grid { gap: 13px; }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { display: none; }
  .hero-copy h2 { font-size: 17px; }
  .hero-banner { padding: 20px; }
  .filter-bar { padding: 14px 16px; gap: 8px; }
  .search-field { flex: 1; min-width: 170px; }
  .filter-select { min-width: 110px; flex: 1; }
  .filter-bar .button:last-child { margin-left: 0; }
  .table { min-width: 620px; }
  .table th, .table td { padding-left: 16px; padding-right: 16px; }
  .table-wrap table { min-width: 620px; }
  .table-wrap th, .table-wrap td { padding-left: 16px; padding-right: 16px; }
  .info-banner { flex-wrap: wrap; }
  .info-banner > label { width: 100%; flex-basis: 100%; margin-left: 0; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-grid article { padding: 20px; }
  .guide-number { margin-bottom: 12px; font-size: 27px; }
  .guide-grid p { margin-bottom: 18px; }
  .metric-grid.three { gap: 9px; }
  .metric-grid.three .score-card { padding: 20px 10px; }
  .metric-grid.three .score-value { font-size: 27px; }
  .evidence-header { flex-wrap: wrap; gap: 5px; }
  #modal, .modal-dialog { width: calc(100vw - 24px); border-radius: 13px; }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .modal-body .modal-footer { margin-left: -20px; margin-right: -20px; margin-bottom: -20px; flex-wrap: wrap; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 24px 27px 23px; }
  .login-story .brand-mark { width: 34px; height: 36px; font-size: 20px; }
  .login-story .brand { font-size: 22px; }
  .login-copy { margin-top: 32px; }
  .login-copy h1 { font-size: 30px; line-height: 1.35; margin-bottom: 15px; }
  .login-copy p { font-size: 12px; }
  .eyebrow.light { font-size: 12px; letter-spacing: 1.4px; margin-bottom: 12px; }
  .login-network { position: absolute; right: -46px; top: 55px; height: 215px; width: 230px; opacity: .42; }
  .network-core { width: 57px; height: 63px; border-radius: 16px; font-size: 27px; }
  .network-node { width: 39px; height: 31px; font-size: 12px; }
  .login-copy { max-width: 80%; }
  .login-foot { display: none; }
  .login-panel { padding: 36px 26px 40px; }
  .login-card { max-width: 420px; }
  .login-card h2 { font-size: 25px; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 17px; }
  .top-actions { gap: 9px; }
  .user-button, .text-button { font-size: 12px; }
  .metric-value { font-size: 28px; }
  .metric-icon { width: 24px; height: 24px; right: 13px; }
  .metric-icon svg { width: 14px; height: 14px; }
  .metric-card { padding: 17px 15px; }
  .metric-note { line-height: 1.7; }
  .case-grid, .benchmark-grid { grid-template-columns: minmax(0, 1fr); }
  .suite-grid { gap: 10px; }
  .suite-card { padding: 17px 13px; }
  .suite-card > strong { font-size: 14px; }
  .suite-card > span:not(.selection-check) { font-size: 12px; }
  .evaluation-toolbar > label, .evaluation-toolbar > div { flex-basis: 100%; }
  .evaluation-toolbar > .button { width: 100%; margin-left: 0; }
  .reports-list .report-card { padding: 19px; gap: 15px; }
  .report-icon { width: 45px; flex-basis: 45px; height: 56px; }
  .report-card h2 { font-size: 16px; }
  .case-cover { min-height: 150px; }
  .hero-visual { display: none; }
  .form-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-header { padding: 16px; }
  .panel-body { padding: 16px; }
  .panel-footer { padding: 12px 16px; }
  .notice, .info-banner { padding: 12px 14px; font-size: 12px; }
  .login-network { right: -80px; opacity: .25; }
  .login-copy { max-width: 100%; }
}

/* 减少动态效果尊重系统偏好；打印时只输出业务内容，避免侧栏和固定任务层遮挡报告。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .footer, .job-dock, .toasts, .heading-actions, .filter-bar, .row-action, .case-actions, .benchmark-actions { display: none !important; }
  html, body, .workspace, #main { background: #fff; margin: 0; padding: 0; }
  .panel, .metric-card, .report-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .table { min-width: 0; font-size: 12px; }
  .table th, .table td { padding: 6px; }
  .table-wrap table { min-width: 0; font-size: 12px; }
  .table-wrap th, .table-wrap td { padding: 6px; }
}

/* 模盾视觉系统：为护栏链路而非诱饵拓扑设计；正文、证据和处置决定拥有稳定的可读层级。 */
:root {
  --navy: #081d34;
  --navy-soft: #12314f;
  --blue: #1166c6;
  --blue-hover: #0c53a4;
  --blue-light: #eef5ff;
  --blue-line: #d3e4fa;
  --canvas: #f4f6fa;
  --text: #1b3048;
  --muted: #65778d;
  --line: #e4eaf2;
  --green: #13866a;
  --red: #cf3f4e;
  --amber: #ad7416;
  --sidebar-width: 238px;
  --shadow: 0 3px 20px rgba(25, 49, 83, .035);
}
html { min-width: 320px; }
button, a, input, textarea, select { touch-action: manipulation; }
button > svg, .button > svg { width: 18px; height: 18px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%2365778d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 35px; }
select:disabled { opacity: .65; }
small { font-size: 13px; }
.brand { letter-spacing: .5px; font-weight: 600; }
.brand-mark { width: 42px; height: 45px; border-radius: 12px; background: linear-gradient(145deg,#1c5e9e,#123a65); border-color: #437fb1; color: #d9efff; }
.brand-mark > svg { width: 26px; height: 30px; }
.brand em { letter-spacing: 1px; color: #9cb0c6; font-size: 12px; }
.brand small { font-size: 12px; }
.workspace-label { color: #8ba5bf; font-size: 12px; margin-top: 35px; }
.nav-item { color: #a8bed4; font-size: 14px; padding-top: 11px; padding-bottom: 11px; margin-top: 4px; }
.nav-item.active { background: #173d68; box-shadow: inset 3px 0 0 #5da8ff; }
.nav-item.active svg { color: #a6d4ff; }
.nav-item svg { color: #8ba8c5; }
.breadcrumb, .topbar button { font-size: 14px; }
.breadcrumb strong { color: #4b6078; }
.top-actions { gap: 15px; }
.footer { color: #76879a; }
.sidebar-bottom small { color: #8ba6c0; }
#main { max-width: 1740px; padding-top: 30px; }
.page-heading { align-items: flex-start; }
.page-heading h1 { font-size: 28px; letter-spacing: -.5px; font-weight: 650; }
.page-heading p { color: #65778d; font-size: 15px; max-width: 900px; line-height: 1.8; }
.eyebrow { color: #647d99; font-size: 12px; }
.button { font-size: 14px; min-height: 39px; border-radius: 8px; }
.button.small { font-size: 13px; min-height: 32px; }
.button:disabled { opacity: .55; }
.panel-header h2, .panel-header h3 { font-size: 17px; }
.panel-header p, .panel-header > span, .panel-header > a { font-size: 13px; color: #6e8197; }
.panel-body { color: #4f657d; }
.panel-body > p { font-size: 16px; }
.metric-grid { gap: 18px; }
.metric-card { padding: 22px; min-height: 144px; }
.metric-label, .stat-label { display: block; font-size: 14px; color: #62778e; margin-bottom: 13px; }
.metric-value, .stat-value { display: block; font-weight: 650; font-size: 32px; line-height: 1.2; letter-spacing: -.7px; color: #1b3550; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 13px; color: #6e8197; line-height: 1.6; }
.metric-icon { color: #578cc4; background: #edf4fd; }
.muted, .text-muted { color: var(--muted); }
.notice, .info-banner { color: #516e8c; font-size: 14px; border-color: #dce7f5; background: #f0f6fe; line-height: 1.8; }
.notice.amber, .info-banner.amber { color: #896321; background: #fffaed; border-color: #efdfb7; }
.notice.success, .info-banner.success { color: #1d765f; background: #edf8f2; border-color: #cee9de; }
.notice p, .info-banner p { font-size: inherit; }
.badge { padding: 3px 8px; font-size: 13px; border-radius: 5px; }
.badge.blue { color: #296bae; background: #edf4ff; border-color: #dce9fa; }
.badge.green { color: #16795f; background: #ecf8f2; border-color: #d5ece1; }
.badge.red { color: #b63849; background: #fff0f2; border-color: #f8d8de; }
.badge.amber { color: #986917; background: #fff8e9; border-color: #f1e3be; }
.badge.gray { color: #63768c; background: #f1f4f8; border-color: #e3e9f1; }
.badge.purple { color: #7161a8; background: #f3f0fb; border-color: #e6e1f3; }
.chip { color: #667c93; font-size: 13px; padding: 4px 9px; }
.table-wrap th { color: #63788f; font-size: 13px; background: #f7f9fc; }
.table-wrap td { color: #4d647c; font-size: 14px; }
.cell-title { color: #2c455f; font-size: 14px; font-weight: 550; }
.cell-sub { color: #6e8197; font-size: 13px; }
.row-action { color: #1766b6; font-size: 13px; }
.form-error { color: #b83345; font-size: 14px; }
.empty-state { color: #71869b; min-height: 210px; }
.empty-state h3 { color: #506b85; }
.empty-state p { font-size: 14px; }
.empty-state svg { color: #94b1cb; }
.loading-view p { color: #63788e; }

/* 业务栅格：内容列显式 minmax(0,...)，防止长模型名、JSON、URL撑大整个页面。 */
.content-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 22px; align-items: start; margin-bottom: 22px; }
.content-grid.equal, .comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.content-grid > *, .comparison-grid > *, .demo-grid > *, .app-grid > *, .policy-grid > *, .report-grid > * { min-width: 0; }
.content-grid > .panel, .comparison-grid > .panel { margin-bottom: 0; }
.demo-grid, .app-grid, .policy-grid, .report-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.demo-card, .application-card, .policy-card, .research-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.demo-card { transition: box-shadow .16s,border-color .16s,transform .16s; }
.demo-card:hover { border-color: #bdd4ee; box-shadow: 0 7px 25px rgba(24,72,124,.065); transform: translateY(-2px); }
.demo-card h3, .application-card h3, .policy-card h3, .research-card h3 { font-size: 18px; color: #284561; margin: 16px 0 9px; line-height: 1.5; }
.demo-card p, .application-card p, .policy-card p, .research-card p { font-size: 14px; color: #657c93; margin-bottom: 17px; line-height: 1.85; }
.demo-card .button, .application-card .card-actions, .policy-card .card-actions, .research-card .card-actions { margin-top: auto; }
.demo-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 13px; background: #edf4ff; color: #347abf; font-size: 20px; }
.demo-icon svg { width: 24px; height: 24px; }
.demo-icon.red { background: #fff0f3; color: #c85566; }
.demo-icon.green { background: #eef8f3; color: #248d74; }
.demo-icon.amber { background: #fff8e9; color: #b48a39; }
.demo-icon.purple { background: #f2f0fc; color: #8774bc; }
.case-tag { display: inline-flex; align-items: center; color: #6a82a0; background: #f2f6fb; border-radius: 5px; padding: 3px 8px; font-size: 12px; }
.demo-card > .case-tag { position: absolute; right: 20px; top: 27px; max-width: calc(100% - 100px); }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding-top: 16px; border-top: 1px solid #eaf0f6; }
.card-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; font-size: 13px; color: #6d8297; margin: 0 0 18px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.application-card h3, .policy-card h3 { margin-top: 14px; }
.application-card .detail-grid { width: 100%; margin: 0 0 20px; }
.application-card .detail-grid > div { padding: 10px 12px; }
.application-card .detail-grid > div > span { font-size: 12px; }
.application-card .detail-grid > div > strong { font-size: 14px; }
.policy-card .chips { margin-bottom: 18px; }
.policy-enabled { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #297f6d; }
.policy-disabled { color: #8090a2; }

/* 工作台横幅把四道检查位置公开展示：不把动画或装饰光晕解释成真实引擎运行状态。 */
.hero-workbench { position: relative; overflow: hidden; padding: 30px; background: #102f53; border: 1px solid #1e4771; color: #c7d9ec; border-radius: 15px; margin-bottom: 24px; }
.hero-workbench::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0,rgba(55,123,196,.18),transparent 55%); pointer-events: none; }
.hero-workbench > * { position: relative; }
.hero-workbench h2 { color: #f2f7ff; font-size: 26px; font-weight: 550; margin-bottom: 12px; letter-spacing: -.4px; }
.hero-workbench p { color: #acc6e2; font-size: 15px; max-width: 790px; line-height: 1.9; }
.hero-workbench .eyebrow { color: #86b6e5; }
.hero-workbench .button.primary { background: #edf5ff; color: #144c86; border-color: #edf5ff; box-shadow: none; }
.hero-workbench .button.primary:hover { background: #dbeaff; }
.hero-workbench .button.secondary { background: transparent; color: #d3e5f9; border-color: #4b6e94; }
.hero-workbench .button.secondary:hover { background: #1c426c; }
.guard-pipeline { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 8px 0; align-items: stretch; }
.pipeline-step { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 17px 14px; border: 1px solid #dfE8f3; border-radius: 10px; background: #f8fafd; color: #71869c; transition: border-color .2s,background .2s,box-shadow .2s; }
.pipeline-step:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -13px; width: 12px; height: 1px; background: #c5d9ee; z-index: 1; }
.pipeline-step strong { color: #365779; font-size: 14px; font-weight: 600; }
.pipeline-step small { color: #69829a; font-size: 12px; line-height: 1.7; }
.pipeline-step svg { width: 21px; height: 21px; color: #759ac0; }
.pipeline-step[data-status="active"], .pipeline-step.active { border-color: #78afe6; background: #eef6ff; box-shadow: 0 0 0 3px rgba(48,123,201,.08); }
.pipeline-step[data-status="active"] svg, .pipeline-step.active svg { color: #2474c6; animation: guard-pulse 1.1s ease-in-out infinite; }
.pipeline-step[data-status="completed"], .pipeline-step[data-status="pass"], .pipeline-step[data-status="allow"], .pipeline-step.success { border-color: #b2dacb; background: #eff9f4; }
.pipeline-step[data-status="completed"] strong, .pipeline-step[data-status="pass"] strong, .pipeline-step[data-status="allow"] strong { color: #257d65; }
.pipeline-step[data-status="block"], .pipeline-step[data-status="blocked"], .pipeline-step.blocked { border-color: #efbbc4; background: #fff2f4; }
.pipeline-step[data-status="block"] strong, .pipeline-step[data-status="blocked"] strong { color: #b74657; }
.pipeline-step[data-status="mask"], .pipeline-step[data-status="review"] { border-color: #e8d2a0; background: #fff9ec; }
.pipeline-step[data-status="skipped"] { opacity: .55; }
.hero-workbench .guard-pipeline { margin-top: 22px; }
.hero-workbench .pipeline-step { background: #183b61; border-color: #365779; }
.hero-workbench .pipeline-step strong { color: #e0edfc; }
.hero-workbench .pipeline-step small { color: #a9c3df; }
.hero-workbench .pipeline-step svg { color: #8bbcec; }
.hero-workbench .pipeline-step::after { background: #4a6e95; }
@keyframes guard-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* 演示结果：用户请求、上游内容与最终交付分开显示，危险段落有文字标签，避免只凭红绿色判断。 */
.chat-bubble { max-width: 100%; padding: 17px 19px; border: 1px solid #e0e8f1; background: #f5f8fc; color: #304d69; border-radius: 13px; line-height: 1.9; font-size: 15px; margin-bottom: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-bubble.user, .chat-bubble.input { background: #eff5ff; border-color: #dce8f7; }
.chat-bubble.assistant, .chat-bubble.output { background: #f5f9f7; border-color: #dfece6; }
.chat-bubble.danger, .chat-bubble.blocked { background: #fff3f4; border-color: #f3dce0; }
.chat-label { display: flex; align-items: center; gap: 8px; color: #71869d; font-size: 13px; margin: 0 0 8px; }
.chat-label svg { width: 17px; height: 17px; }
.trace-step { position: relative; padding: 17px 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 13px; }
.trace-step > header, .trace-step .trace-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.trace-step strong { color: #355674; font-size: 15px; }
.trace-step p { color: #6a8096; font-size: 14px; margin-bottom: 0; line-height: 1.85; }
.trace-step.active { border-color: #9dc4ed; box-shadow: 0 0 0 3px #eff6fd; }
.trace-step.blocked { border-color: #edc9d1; background: #fffbfc; }
.finding { border-left: 3px solid #779fca; border-radius: 5px; background: #f5f8fc; padding: 12px 15px; color: #526d86; font-size: 14px; line-height: 1.8; margin: 12px 0; overflow-wrap: anywhere; }
.finding.risk-high, .finding.high, .finding.critical { border-color: #d1596a; background: #fff4f5; color: #995363; }
.finding.medium, .finding.risk-medium { border-color: #d1a658; background: #fffaef; color: #8e713b; }
.finding.low { border-color: #69a48c; background: #f1f9f5; }
.finding strong { color: inherit; display: block; margin-bottom: 4px; }
.decision-block, .decision-allow, .decision-mask, .decision-review { border-radius: 11px; padding: 18px 20px; font-size: 15px; margin-bottom: 18px; border: 1px solid #d9e9e1; }
.decision-block { color: #a93b4d; background: #fff1f3; border-color: #f0cdd5; }
.decision-allow { color: #237a5e; background: #eef9f3; border-color: #d0e9dd; }
.decision-mask, .decision-review { color: #916a28; background: #fff9eb; border-color: #ecdeb9; }
.decision-block strong, .decision-allow strong, .decision-mask strong, .decision-review strong { display: block; font-size: 20px; color: inherit; margin-bottom: 6px; }
.decision-block p, .decision-allow p, .decision-mask p, .decision-review p { margin: 0; font-size: 14px; color: inherit; line-height: 1.8; }
.decision-label { font-weight: 600; }
mark { color: #a12c42; background: #ffe2e7; border-radius: 3px; padding: 1px 3px; }
.comparison-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.comparison-panel > header { background: #f5f8fc; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #486782; }
.comparison-panel > div { padding: 18px; }

/* 工具、策略和证据编辑：字段只用于自定义场景，常用操作由卡片和预置案例承担。 */
.toolbar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 17px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 20px; }
.toolbar .filter-input { flex: 1 1 230px; min-width: 0; max-width: 460px; }
.toolbar select { min-width: 140px; }
.toolbar .button:last-child { margin-left: auto; }
.filter-input { min-height: 40px; font-size: 14px; }
.segment-control { display: inline-flex; align-items: stretch; gap: 3px; padding: 4px; background: #edf1f7; border-radius: 9px; max-width: 100%; flex-wrap: wrap; }
.segment-control button { border: 0; border-radius: 6px; padding: 7px 14px; background: transparent; color: #73869b; font-size: 14px; }
.segment-control button.active, .segment-control button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 5px rgba(35,61,89,.08); color: #1f67ae; font-weight: 550; }
.segment-control button:hover { color: #1f67ae; }
.form-grid, .detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; margin-bottom: 20px; }
.field, .form-field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; color: #506b85; font-size: 14px; }
.field input, .field select, .field textarea, .form-field input, .form-field select, .form-field textarea { width: 100%; font-size: 14px; }
.field small, .form-field small { color: #71869b; font-size: 13px; line-height: 1.7; }
.field.full, .form-field.full { grid-column: 1/-1; }
.field > label, .form-field > label { display: block; margin-bottom: 2px; }
label.checkbox, .checkbox-row { display: flex; gap: 9px; align-items: center; color: #607a92; font-size: 14px; }
.detail-grid > div:not(.detail-block) { background: #f8fafd; border-color: #e6edf5; }
.detail-grid > div > span { color: #6b8097; font-size: 13px; }
.detail-grid > div > strong { color: #3a5875; font-size: 15px; font-weight: 500; }
.code-block, pre.code-block { margin: 10px 0 17px; padding: 17px 19px; border: 1px solid #1e3b59; border-radius: 10px; background: #10283f; color: #cadbed; font: 13px/1.9 "SFMono-Regular",Consolas,"Liberation Mono",monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow: auto; }
.code-block code { color: inherit; font-size: inherit; }
.code-block.light { background: #f5f8fc; border-color: #e0e9f3; color: #476782; }
.evidence-block { padding: 17px 19px; border: 1px solid #e0e8f2; border-radius: 10px; margin-bottom: 17px; background: #f8fafd; color: #526c86; }
.evidence-block pre { font-size: 13px; color: #3e5b77; }
.evidence-block h3 { font-size: 15px; margin-bottom: 10px; }
.evidence-header .muted { font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; }
.switch input { width: 17px; height: 17px; }

/* 时间线、研究资料与报告延续同一信息密度：来源、实现状态和实际结果各自可读。 */
.activity-list { display: flex; flex-direction: column; }
.activity-item, .activity-list > article, .activity-list > li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f6; list-style: none; }
.activity-item:last-child, .activity-list > :last-child { border-bottom: 0; }
.activity-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: #eff5fe; border-radius: 10px; color: #5286b9; }
.activity-icon svg { width: 17px; height: 17px; }
.activity-item > div, .activity-list > article > div { min-width: 0; flex: 1; }
.activity-item strong, .activity-list h3 { font-size: 14px; color: #3d5b77; font-weight: 550; margin-bottom: 4px; }
.activity-item p, .activity-list p { font-size: 13px; color: #74869a; margin-bottom: 0; line-height: 1.8; }
.activity-item time { font-size: 12px; color: #7e90a4; white-space: nowrap; }
.timeline-item h3, .timeline-item strong { color: #3c5b77; font-size: 15px; }
.timeline-item p, .timeline-item time, .timeline-item small { font-size: 13px; color: #6b8197; }
.timeline-item::before { background: #659acb; }
.research-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.research-card .chips { margin-bottom: 15px; }
.research-card h3 { margin-top: 8px; font-size: 18px; }
.research-card .research-meta { font-size: 13px; color: #6c8197; line-height: 1.8; margin-bottom: 16px; }
.research-card .source-link { font-size: 13px; color: #236caf; }
.research-card .card-actions { margin-top: auto; }
.report-grid .report-card { margin-bottom: 0; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; }
.report-grid .report-card p { color: #6a8097; font-size: 14px; }
.report-grid .report-card .card-actions { margin-top: auto; }
.report-icon { background: #eff5fe; color: #6094c6; border-color: #dbe7f5; }
.score-label { color: #5b7894; font-size: 14px; }
.score-value { color: #286fae; }
.score-card { background: #f2f7fd; }
.progress-track { height: 7px; border-radius: 7px; background: #eaf0f7; overflow: hidden; margin: 10px 0; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: #4d94d7; }

/* 原生dialog在退出时仍可键盘访问；大内容自身滚动，不借助全屏固定层遮住关闭动作。 */
#modal { width: min(980px,calc(100vw - 48px)); padding: 0; max-height: calc(100svh - 56px); border: 1px solid #d9e3ef; border-radius: 15px; background: #fff; color: var(--text); box-shadow: 0 22px 80px rgba(5,26,50,.21); }
#modal::backdrop { background: rgba(7,27,49,.42); backdrop-filter: blur(3px); }
#modal-content { min-width: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 27px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header h2 { font-size: 21px; margin: 0; color: #274460; }
.modal-header p { margin: 6px 0 0; font-size: 14px; color: #70859c; }
.modal-header .icon-button { flex-shrink: 0; }
.modal-body { padding: 25px 27px; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 9px; padding: 17px 27px; border-top: 1px solid var(--line); background: #fafbfd; }
.modal-footer .muted { margin-right: auto; font-size: 13px; }
.modal-body .modal-footer { margin: 23px -27px -25px; }
.modal-body h3 { font-size: 16px; }
.modal-body .detail-grid { gap: 12px; }
.toast { color: #25765f; font-size: 14px; }
.toast.error { color: #b73e50; }

/* 登录是一条真实权限边界：品牌图形突出输入/工具/输出关系，账户提示与密码操作保持清晰。 */
.login-story { background-color: #081d34; background-image: radial-gradient(ellipse at 75% 72%,rgba(38,107,179,.25),transparent 55%),linear-gradient(rgba(157,194,231,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(157,194,231,.025) 1px,transparent 1px); }
.login-copy { margin-top: clamp(55px,8vh,94px); }
.login-copy h1 { font-weight: 550; color: #f1f6fd; letter-spacing: -1.2px; }
.login-copy p { color: #9ab6d1; line-height: 1.95; }
.eyebrow.light { color: #7da9d6; }
.login-foot { color: #8da8c4; font-size: 13px; letter-spacing: .5px; }
.login-network { margin-top: 12px; }
.network-core { background: linear-gradient(140deg,#265b92,#173c64); border-color: #4d80ad; box-shadow: 0 0 70px rgba(58,134,210,.18),inset 0 1px 0 rgba(255,255,255,.1); }
.network-core > svg { width: 40px; height: 45px; }
.network-node { color: #a2c3e3; background: #143352; border-color: #3b6388; font-size: 14px; font-style: normal; }
.orbit-one { border-color: rgba(137,181,225,.25); }
.orbit-two { border-color: rgba(137,181,225,.12); }
.login-card > .eyebrow { color: #6d849b; }
.login-card > p { color: #637a92; font-size: 15px; line-height: 1.8; }
#login-form > label { color: #506a82; font-size: 14px; }
#login-form input { font-size: 16px; height: 46px; color: #243f5a; }
#login-submit { font-size: 15px; }
.password-field button { color: #64809b; font-size: 13px; }
.demo-credentials { background: #f5f8fc; border-color: #e3eaf2; padding: 16px 18px; }
.demo-credentials strong { color: #4d6881; font-size: 14px; font-weight: 550; }
.demo-credentials > div { color: #687f96; font-size: 13px; gap: 14px; }
.demo-credentials code { color: #365f84; font-size: 13px; }
.demo-credentials small { color: #6b8095; font-size: 12px; }
.login-assurance { color: #6b8197; font-size: 12px; }

/* 模盾适配覆盖：两级收窄后再切成单列，业务证据中的长字符串始终只在其容器内换行。 */
@media (max-width: 1320px) {
  .demo-grid, .app-grid, .policy-grid, .research-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guard-pipeline { gap: 9px; }
  .pipeline-step { padding: 14px 10px; }
  .pipeline-step:not(:last-child)::after { width: 9px; right: -10px; }
  .pipeline-step small { font-size: 12px; }
}
@media (max-width: 1080px) {
  :root { --sidebar-width: 210px; }
  .content-grid, .content-grid.equal { grid-template-columns: minmax(0,1fr); }
  .hero-workbench { padding: 24px; }
  .hero-workbench h2 { font-size: 24px; }
  .guard-pipeline { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pipeline-step:not(:last-child)::after { display: none; }
  .page-heading p { font-size: 14px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .sidebar { padding: 17px 18px 9px; }
  .sidebar .brand { font-size: 21px; }
  .sidebar .brand-mark > svg { width: 22px; height: 24px; }
  .nav-item { font-size: 13px; padding: 9px 12px; }
  .topbar { padding: 0 18px; }
  .top-actions { gap: 12px; }
  #main { padding: 23px 18px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 14px; }
  .hero-workbench { padding: 23px 20px; border-radius: 12px; }
  .hero-workbench h2 { font-size: 23px; }
  .hero-workbench p { font-size: 14px; }
  .metric-grid { gap: 11px; }
  .metric-card { padding: 19px 16px; min-height: 140px; }
  .metric-label { font-size: 13px; max-width: calc(100% - 20px); }
  .metric-value { font-size: 29px; }
  .metric-note { font-size: 12px; }
  .metric-icon { right: 13px; width: 24px; height: 24px; }
  .demo-grid, .app-grid, .policy-grid, .report-grid, .research-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .comparison-grid { grid-template-columns: minmax(0,1fr); }
  .guard-pipeline { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .pipeline-step { padding: 14px; }
  .pipeline-step:last-child { grid-column: 1/-1; }
  .toolbar { padding: 15px; gap: 9px; }
  .toolbar .filter-input, .toolbar select { flex: 1 1 100%; max-width: 100%; }
  .toolbar .button:last-child { margin-left: 0; }
  .segment-control { width: 100%; }
  .segment-control button { flex: 1; font-size: 13px; padding-left: 9px; padding-right: 9px; }
  .demo-card, .application-card, .policy-card, .research-card { padding: 21px; }
  .form-grid, .detail-grid { grid-template-columns: minmax(0,1fr); }
  .notice, .info-banner { font-size: 14px; padding: 14px 15px; }
  .activity-item { flex-wrap: wrap; }
  .activity-item time { margin-left: 46px; }
  #modal { width: calc(100vw - 22px); max-height: calc(100svh - 32px); }
  .modal-header { padding: 20px; }
  .modal-header h2 { font-size: 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; }
  .modal-body .modal-footer { margin: 22px -20px -20px; }
  .detail-title h2 { font-size: 22px; }
  .code-block { padding: 15px; font-size: 12px; }
  .login-copy p { font-size: 14px; }
  .login-copy h1 { font-size: 31px; }
  .login-story { padding: 26px; }
  .login-panel { padding: 34px 26px 42px; }
  .login-network { opacity: .24; }
  .login-network .network-core > svg { width: 30px; height: 34px; }
  .network-node { font-size: 12px; }
  .demo-credentials > div { flex-wrap: wrap; gap: 2px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-step svg { animation: none !important; }
  .demo-card:hover { transform: none; }
}

/* app.js 实际模板适配：图标绝不依赖 SVG 的300px浏览器默认值；指标、结果和记录各自占明确区域。 */
#main svg, #modal svg { width: 20px; height: 20px; }
.empty-state svg { width: 44px !important; height: 44px !important; }
.hero-workbench { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-workbench > div:first-child { max-width: 770px; }
.hero-workbench .chips { margin-top: 19px; }
.hero-workbench .chip { color: #bad2eb; border-color: #3d5f82; background: #183c61; font-size: 12px; }
.hero-shield { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 220px; height: 200px; flex: 0 0 220px; color: #a6cbf0; }
.hero-shield::before, .hero-shield::after { content: ""; position: absolute; border: 1px solid rgba(132,180,230,.13); border-radius: 50%; width: 185px; height: 185px; z-index: 0; }
.hero-shield::after { width: 155px; height: 155px; border-color: rgba(132,180,230,.1); }
#main .hero-shield svg { position: relative; width: 68px; height: 68px; color: #a8d3ff; margin-bottom: 10px; filter: drop-shadow(0 5px 20px rgba(106,171,242,.15)); }
.hero-shield > span { font-size: 18px; letter-spacing: 4px; color: #c9e2fc; z-index: 1; }
.hero-shield > small { font-size: 8px; letter-spacing: 1.3px; margin-top: 6px; color: #7ca8d3; z-index: 1; }
.metric-card > svg { position: absolute; right: 19px; top: 21px; color: #6090c2; width: 20px; height: 20px; }
.metric-card > small { display: block; margin-top: 12px; font-size: 13px; line-height: 1.7; color: #6d8197; }
.metric-card > span:not(.metric-icon):not(.stat-value) { display: block; color: #62778e; font-size: 14px; margin-bottom: 12px; }
.metric-card > strong { display: block; color: #234668; font-size: 25px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.metric-card > strong.stat-value { font-size: 32px; line-height: 1.2; }
.metric-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-grid.three .metric-card { min-height: 144px; }
.metric-grid.three .metric-card > strong { font-size: 22px; letter-spacing: -.5px; }
.metric-grid.three .metric-card > small { color: #6b8096; font-size: 12px; }
.guard-pipeline { grid-template-columns: repeat(4,minmax(0,1fr)); }
.pipeline-symbol { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #eef4fb; color: #6092c2; margin-bottom: 3px; }
#main .pipeline-symbol svg { width: 19px; height: 19px; }
.pipeline-step[data-status="masked"], .pipeline-step[data-status="observed"] { border-color: #e5d4aa; background: #fff9ee; }
.pipeline-step[data-status="masked"] strong, .pipeline-step[data-status="observed"] strong { color: #8f6c2d; }
.panel-body > .guard-pipeline + .info-banner { margin-top: 20px; margin-bottom: 0; }
.info-banner.compact { padding: 13px 16px; margin-bottom: 18px; }
.badge.orange { color: #9c6c22; background: #fff7e8; border-color: #f0e0bc; }
.demo-card > .case-tag { position: static; display: flex; justify-content: space-between; gap: 8px; max-width: none; width: 100%; margin-top: 16px; font-size: 13px; padding: 0; background: none; color: #6a8198; }
.demo-card h2, .application-card h2, .policy-card h2, .research-card h2, .report-card h2 { font-size: 18px; font-weight: 600; color: #2a4967; margin: 15px 0 10px; line-height: 1.6; overflow-wrap: anywhere; }
.demo-card h2 { margin-top: 12px; }
.demo-card.selected { border-color: #9fc3ea; box-shadow: 0 0 0 1px #e3effc; }
.demo-card-actions { margin-top: auto; padding-top: 6px; width: 100%; }
.demo-card-actions .button { width: 100%; }
.policy-meta { color: #6a8096; font-size: 13px; margin: 0 0 18px; }
.research-mapping { font-size: 13px; line-height: 1.85; color: #4f7091; background: #f4f8fc; border-radius: 8px; padding: 11px 13px; margin-bottom: 18px; width: 100%; }
.research-card .card-actions { justify-content: space-between; }
.research-card .card-actions .text-button { color: #3276b8; font-size: 13px; }
.research-card .chips { gap: 5px; margin-bottom: 14px; }
.research-card .chip { font-size: 12px; padding: 3px 7px; }
.card-actions .row-action { margin-left: auto; }
.panel-body > .timeline { margin-bottom: 24px; }
.timeline > article { position: relative; padding: 0 0 24px 24px; margin-left: 5px; border-left: 1px solid #d7e5f3; }
.timeline > article::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #5991c9; border: 2px solid #fff; box-shadow: 0 0 0 1px #cddff0; }
.timeline > article:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline > article > strong { display: block; font-size: 15px; font-weight: 550; color: #395c7b; line-height: 1.7; }
.timeline > article > p { font-size: 14px; color: #71879d; line-height: 1.8; margin: 6px 0 0; }
.trace-result { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.trace-result h2 { font-size: 25px; color: inherit; margin: 0 0 7px; }
.trace-result .eyebrow { color: inherit; opacity: .8; font-size: 12px; margin-bottom: 8px; }
.trace-result p { font-size: 14px; line-height: 1.85; margin: 0; }
.trace-result > div:last-child { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.trace-result > div:last-child small { color: inherit; font-size: 12px; }
.trace-result.decision-observe { color: #836735; background: #fff9ed; border: 1px solid #ecdcb5; border-radius: 11px; padding: 18px 20px; }
.trace-timeline { margin: 20px 0 24px; }
.trace-timeline .trace-step { display: flex; align-items: flex-start; gap: 14px; padding: 17px 18px; border-color: #e5eaf2; background: #f9fbfd; }
.trace-step-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; color: #8ca4be; border: 1px solid #e0e9f2; border-radius: 9px; background: #f0f5fa; margin-top: 1px; }
#modal .trace-step-icon svg { width: 18px; height: 18px; }
.trace-timeline .trace-step > div { flex: 1; min-width: 0; }
.trace-timeline .trace-step > .badge { flex-shrink: 0; margin-top: 1px; }
.trace-step small { color: #7b91a7; font-size: 12px; display: block; margin-top: 7px; }
.trace-step.revealed { background: #fff; border-color: #d7e4f1; }
.trace-step.revealed[data-status="pass"] .trace-step-icon { color: #34886f; border-color: #d2e8df; background: #f0f9f4; }
.trace-step.revealed[data-status="blocked"] { background: #fff8fa; border-color: #efd0d8; }
.trace-step.revealed[data-status="blocked"] .trace-step-icon { color: #bb5869; background: #fff0f3; border-color: #eed2da; }
.trace-step.revealed[data-status="masked"], .trace-step.revealed[data-status="observed"] { border-color: #ecdeb9; background: #fffdf7; }
.trace-step[data-status="waiting"] { opacity: .65; }
.finding-list { margin-bottom: 23px; }
.finding > div { display: flex; align-items: center; gap: 10px; }
.finding > div strong { display: inline; margin-bottom: 0; font-size: 14px; }
.finding p { margin: 10px 0; font-size: 14px; line-height: 1.85; }
.finding pre { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; background: rgba(255,255,255,.6); border: 1px solid rgba(191,164,170,.18); padding: 10px 12px; border-radius: 5px; font-size: 13px; }
.finding small { font-size: 12px; }
.comparison-grid > section { min-width: 0; }
.comparison-grid > section h3 { color: #496780; font-size: 15px; margin-bottom: 8px; }
.comparison-grid .code-block { margin-top: 0; min-height: 100px; }
.rule-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0 22px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #dfe8f1; border-radius: 8px; background: #f8fbfe; }
.check-label > input { flex: 0 0 16px; margin: 5px 0 0; width: 16px; height: 16px; }
.check-label > span { flex: 1; min-width: 0; }
.check-label strong { display: block; font-size: 14px; font-weight: 550; color: #456581; }
.check-label small { display: block; font-size: 12px; color: #71869a; margin-top: 3px; }
.evaluation-input { min-width: 240px; max-width: 410px; overflow-wrap: anywhere; }
.evaluation-input + td { white-space: nowrap; }
.table-wrap td > small { display: block; color: #758a9f; margin-top: 6px; font-size: 12px; }
.cell-title.row-action { display: block; white-space: normal; text-align: left; font-weight: 550; color: #376895; max-width: 370px; line-height: 1.7; }
.provenance-note { font-size: 13px; margin-top: 22px; color: #74889c; }
details { border: 1px solid #e0e8f1; border-radius: 8px; margin-top: 20px; background: #fbfcfe; }
details > summary { padding: 14px 17px; cursor: pointer; font-size: 14px; color: #557795; }
details > .code-block { margin: 0 17px 17px; }
.chip.selected { border-color: #a0c5ea; background: #edf5ff; color: #246aa9; }
.toolbar .search-field { flex: 1 1 320px; min-width: 0; }
.toolbar .search-field input { height: 40px; font-size: 14px; }
@media (max-width: 1320px) {
  .guard-pipeline { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .hero-shield { width: 190px; flex-basis: 190px; }
  .metric-grid.three .metric-card > strong { font-size: 21px; }
}
@media (max-width: 1080px) {
  .hero-shield { display: none; }
  .guard-pipeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pipeline-step:last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .metric-grid.three { grid-template-columns: minmax(0,1fr); }
  .metric-grid.three .metric-card { min-height: 0; }
  .trace-result { flex-direction: column; align-items: flex-start; gap: 13px; }
  .trace-result > div:last-child { align-items: flex-start; }
  .trace-timeline .trace-step { gap: 11px; padding: 15px; flex-wrap: wrap; }
  .trace-timeline .trace-step > .badge { margin-left: 44px; }
  .trace-timeline .trace-step > div { flex-basis: calc(100% - 50px); }
  .rule-checks { grid-template-columns: minmax(0,1fr); }
  .case-tag .badge { font-size: 12px; }
  .comparison-grid { gap: 14px; }
  .toolbar .search-field { flex-basis: 100%; }
}

/* 双向串联代理架构：先显示真实调用关系，再显示本地快判与未知语义判定分支，不把安全模型画成业务模型。 */
.proxy-architecture { position: relative; width: 100%; border: 1px solid #dce7f3; border-radius: 14px; overflow: hidden; background: #f9fbff; margin: 8px 0 22px; }
.proxy-architecture-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 19px 23px; background: #fff; border-bottom: 1px solid #e4edf6; }
.proxy-architecture-header h2 { margin: 0; color: #2d4e6e; font-size: 19px; }
.proxy-architecture-body { padding: 26px 24px; }
.proxy-main-row { display: grid; grid-template-columns: minmax(145px,.8fr) minmax(65px,.3fr) minmax(290px,1.7fr) minmax(65px,.3fr) minmax(160px,.85fr); align-items: stretch; gap: 10px; }
.proxy-source-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 19px; }
.proxy-source-card { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 15px 17px; background: #fff; border: 1px solid #dfe8f3; border-radius: 10px; color: #51728f; min-width: 0; }
.proxy-source-card > svg { width: 21px !important; height: 21px !important; color: #6194c9; }
.proxy-source-card strong { display: block; color: #3d607f; font-size: 14px; line-height: 1.6; }
.proxy-source-card small { display: block; color: #718aa2; font-size: 12px; }
.proxy-hop { position: relative; display: flex; align-items: stretch; justify-content: center; flex-direction: column; gap: 10px; min-width: 0; }
.proxy-hop > article, .proxy-hop > .source-card { padding: 13px 14px; border: 1px solid #dce7f3; background: #fff; border-radius: 9px; color: #5a7a97; }
.proxy-hop strong { display: block; font-size: 14px; color: #385b7d; }
.proxy-hop small { display: block; font-size: 12px; color: #7890a8; line-height: 1.7; margin-top: 4px; }
.proxy-core { position: relative; min-width: 0; padding: 20px; background: #fff; border: 1px solid #94bce5; border-radius: 12px; box-shadow: 0 0 0 4px rgba(23,111,193,.04); }
.proxy-core > header, .proxy-core-header { display: flex; align-items: center; gap: 9px; padding-bottom: 15px; border-bottom: 1px solid #e7edf5; margin-bottom: 16px; }
.proxy-core h3 { font-size: 19px; color: #285f94; margin: 0; }
.proxy-core > p { font-size: 13px; color: #6885a1; }
.proxy-core .badge { font-size: 12px; }
.proxy-link { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; min-width: 0; color: #4d84bd; font-size: 12px; text-align: center; }
.proxy-link::after { content: ""; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg,rgba(57,127,198,.15),rgba(57,127,198,.75)); clip-path: polygon(0 35%,80% 35%,80% 0,100% 50%,80% 100%,80% 65%,0 65%); }
.proxy-link.reverse { color: #2d9275; }
.proxy-link.reverse::after { background: linear-gradient(90deg,rgba(39,151,117,.7),rgba(39,151,117,.15)); transform: scaleX(-1); }
.proxy-direction-labels { display: flex; justify-content: space-between; align-items: center; gap: 13px; flex-wrap: wrap; padding: 10px 1px 19px; color: #537dA3; font-size: 13px; }
.proxy-direction-labels span { display: inline-flex; gap: 8px; align-items: center; }
.proxy-direction-labels i { display: inline-block; width: 25px; height: 3px; border-radius: 2px; background: #4b91d6; }
.proxy-direction-labels .response i { background: #3f9e82; }
.decision-fork { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.decision-branch { padding: 13px; min-width: 0; border: 1px solid #dfe9f4; border-radius: 9px; background: #f5f9fe; }
.decision-branch strong { display: block; color: #3d6a95; font-size: 14px; margin-bottom: 5px; }
.decision-branch p { font-size: 12px; color: #6c88a2; line-height: 1.8; margin: 0; }
.decision-branch.deny, .decision-branch.block { border-color: #f0d1d9; background: #fff6f8; }
.decision-branch.deny strong, .decision-branch.block strong { color: #b25266; }
.decision-branch.allow { border-color: #cbe6db; background: #f0f9f4; }
.decision-branch.allow strong { color: #2b876c; }
.decision-branch.unknown, .decision-branch.semantic { border-color: #e6d8b5; background: #fffbf0; }
.decision-branch.unknown strong, .decision-branch.semantic strong { color: #987438; }
.safety-model-branch { position: relative; margin-top: 18px; padding: 15px 17px; border: 1px dashed #c7b8db; border-radius: 9px; background: #f9f7fc; color: #74628f; }
.safety-model-branch::before { content: ""; position: absolute; left: 50%; top: -18px; height: 17px; width: 1px; background: #cab9de; }
.safety-model-branch strong { display: block; font-size: 15px; color: #71548e; margin-bottom: 5px; }
.safety-model-branch p { font-size: 13px; color: #877296; line-height: 1.8; margin: 0; }
.business-models { display: flex; flex-direction: column; justify-content: center; gap: 11px; min-width: 0; }
.model-route { padding: 15px; background: #eef5ff; border: 1px solid #cfdfef; border-radius: 9px; min-width: 0; }
.model-route strong { display: block; color: #41698d; font-size: 14px; }
.model-route small { display: block; color: #708aa3; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.model-route .badge { margin-top: 8px; font-size: 11px; }
.proxy-architecture-footer { padding: 14px 22px; border-top: 1px solid #e1eaf4; background: #f1f6fc; color: #63839f; font-size: 13px; line-height: 1.85; }

/* 双向业务场景与效率证据：用流向、步骤、业务结论解释每一次实际检测，不使用编造的QPS或成本节省数字。 */
.scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.scenario-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 23px; border: 1px solid #e0e9f3; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.scenario-card:hover { border-color: #abc9e9; box-shadow: 0 6px 24px rgba(28,76,121,.06); }
.scenario-card h2, .scenario-card h3 { color: #2c4e6b; font-size: 18px; margin: 15px 0 9px; line-height: 1.65; }
.scenario-card p { color: #698098; font-size: 14px; line-height: 1.85; margin-bottom: 18px; }
.scenario-card .card-actions { margin-top: auto; }
.scenario-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: #70889e; font-size: 12px; margin-bottom: 17px; }
.scenario-actors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.scenario-actors span { border: 1px solid #e0e9f3; background: #f5f9fd; color: #657f99; border-radius: 5px; padding: 3px 7px; font-size: 12px; }
.scenario-business-value { color: #4e7191; background: #f2f7fd; border-left: 3px solid #7ca9d5; border-radius: 4px; padding: 11px 14px; font-size: 14px; line-height: 1.85; margin-bottom: 18px; }
.duplex-timeline { display: flex; flex-direction: column; gap: 15px; margin: 20px 0 25px; }
.duplex-event { position: relative; display: grid; grid-template-columns: 39px minmax(0,1fr); align-items: start; gap: 14px; min-width: 0; }
.duplex-event::before { content: ""; position: absolute; width: 1px; left: 19px; top: 39px; bottom: -16px; background: #d8e6f3; }
.duplex-event:last-child::before { display: none; }
.duplex-event-icon { position: relative; width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; border: 1px solid #cfe0f4; border-radius: 11px; color: #508bc5; background: #f1f6ff; }
.duplex-event-icon svg { width: 19px !important; height: 19px !important; }
.duplex-event[data-direction="response"] .duplex-event-icon { background: #eef8f3; border-color: #cde7dc; color: #3a9276; }
.duplex-event-body { min-width: 0; background: #fff; border: 1px solid #dce7f3; border-radius: 11px; padding: 18px 20px; }
.duplex-event[data-direction="response"] .duplex-event-body { border-color: #d9e9e2; background: #fcfffd; }
.duplex-event-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.duplex-event-head strong { font-size: 16px; color: #3b6081; line-height: 1.7; }
.duplex-event-head small { display: block; margin-top: 5px; font-size: 12px; color: #7790a7; }
.duplex-event p { color: #648098; font-size: 14px; line-height: 1.85; margin: 12px 0; }
.duplex-event pre { margin-bottom: 0; }
.duplex-event.waiting { opacity: .45; }
.duplex-event.active .duplex-event-body { border-color: #9dbfe4; box-shadow: 0 0 0 3px #f0f6ff; }
.duplex-event.blocked .duplex-event-body, .duplex-event[data-decision="block"] .duplex-event-body { background: #fff9fa; border-color: #efcbd4; }
.duplex-event.review .duplex-event-body, .duplex-event[data-decision="review"] .duplex-event-body { background: #fffdf7; border-color: #edddb3; }
.efficiency-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.efficiency-card { min-width: 0; padding: 20px; border: 1px solid #e1e9f3; border-radius: 12px; background: #fff; }
.efficiency-card > span { display: block; color: #6b839b; font-size: 14px; margin-bottom: 12px; }
.efficiency-card > strong { display: block; font-size: 29px; line-height: 1.4; color: #2a597f; font-variant-numeric: tabular-nums; }
.efficiency-card > small { display: block; margin-top: 10px; font-size: 12px; color: #72899e; line-height: 1.8; }
.efficiency-card.semantic { border-color: #e5daed; background: #fdfbff; }
.efficiency-card.semantic > strong { color: #7c6196; }
.efficiency-card.fast { border-color: #d1e8dc; background: #fafffc; }
.efficiency-card.fast > strong { color: #31866c; }
.route-label { display: inline-flex; gap: 7px; align-items: center; border: 1px solid #d8e6f4; border-radius: 5px; padding: 3px 8px; background: #f1f7fe; color: #5683ad; font-size: 12px; }
.route-label.semantic { border-color: #e4d6ed; background: #f9f3fe; color: #8764a0; }
.route-label.response { border-color: #d0e8dd; background: #eff9f4; color: #438b73; }
@media (max-width: 1320px) {
  .proxy-main-row { grid-template-columns: minmax(115px,.75fr) 45px minmax(260px,1.8fr) 45px minmax(125px,.8fr); gap: 8px; }
  .proxy-architecture-body { padding: 23px 18px; }
  .proxy-core { padding: 17px; }
  .decision-fork { grid-template-columns: minmax(0,1fr); }
  .decision-branch { padding: 11px 13px; }
  .scenario-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .efficiency-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  .proxy-main-row { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .proxy-hop { flex-direction: row; flex-wrap: wrap; }
  .proxy-hop > * { flex: 1 1 100px; }
  .proxy-link { min-height: 24px; }
  .proxy-link::after { width: 70px; }
  .proxy-source-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .business-models { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .decision-fork { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .proxy-architecture-header { padding: 18px; }
  .proxy-architecture-body { padding: 18px; }
  .proxy-architecture-footer { padding: 14px 18px; font-size: 12px; }
  .proxy-source-row { gap: 10px; }
  .proxy-source-card { padding: 13px; flex-direction: column; align-items: flex-start; }
  .proxy-source-card strong { font-size: 13px; }
  .decision-fork { grid-template-columns: minmax(0,1fr); }
  .business-models { grid-template-columns: minmax(0,1fr); }
  .scenario-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .scenario-card { padding: 20px; }
  .efficiency-card { padding: 17px; }
  .efficiency-card > span { font-size: 13px; }
  .efficiency-card > strong { font-size: 25px; }
  .duplex-event { grid-template-columns: 29px minmax(0,1fr); gap: 10px; }
  .duplex-event::before { left: 14px; top: 31px; }
  .duplex-event-icon { width: 29px; height: 31px; border-radius: 8px; flex-basis: 29px; }
  .duplex-event-icon svg { width: 15px !important; height: 15px !important; }
  .duplex-event-body { padding: 15px; }
  .duplex-event-head { flex-wrap: wrap; gap: 9px; }
  .duplex-event-head strong { font-size: 15px; }
}

/* protection-ui.js真实模板适配：左侧四类接入、中间两级甄别、右侧业务模型；请求与回复分别用蓝/青色方向线。 */
.proxy-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 0; border: 1px solid #214b76; border-radius: 14px; background: linear-gradient(110deg,#113254,#163e66); padding: 30px; margin-bottom: 24px; }
.proxy-intro > div:first-child { flex: 1; min-width: 0; max-width: 760px; }
.proxy-intro h2 { color: #eff6ff; font-size: 29px; line-height: 1.5; font-weight: 550; letter-spacing: -.5px; margin-bottom: 14px; }
.proxy-intro p { color: #aac4df; font-size: 15px; line-height: 1.95; margin-bottom: 0; }
.proxy-intro .eyebrow { color: #92bce4; font-size: 12px; }
.proxy-status-box { min-width: 240px; max-width: 310px; flex: 0 0 275px; padding: 21px; border: 1px solid #4d6f93; border-radius: 11px; background: rgba(14,40,68,.35); }
.proxy-status-box > span { display: block; font-size: 13px; color: #91b1d0; margin-bottom: 10px; }
.proxy-status-box > strong { display: block; font-size: 18px; font-weight: 550; color: #e6f2ff; line-height: 1.6; overflow-wrap: anywhere; }
.proxy-status-box > p { font-size: 13px; color: #9dbbda; margin: 9px 0 17px; }
.proxy-status-box .button.secondary { color: #d6e8fb; border-color: #587a9f; background: #1f466f; font-size: 13px; }
.proxy-topology { display: grid; grid-template-columns: minmax(135px,.7fr) minmax(86px,.4fr) minmax(310px,1.65fr) minmax(86px,.4fr) minmax(145px,.8fr); align-items: stretch; column-gap: 12px; width: 100%; min-width: 0; padding: 10px 0; }
.proxy-topology > * { min-width: 0; }
.proxy-side { display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.proxy-column-label { font-size: 13px; color: #68849e; font-weight: 550; line-height: 1.6; margin-bottom: 1px; }
.proxy-source { display: flex; align-items: center; gap: 10px; padding: 13px 14px; min-height: 51px; border: 1px solid #d5e3f3; border-radius: 9px; color: #3b6b98; background: #f5f9ff; text-align: left; font-size: 14px; }
.proxy-source:hover { background: #edf5ff; border-color: #a4c5e5; color: #235e98; }
#main .proxy-source > svg { width: 18px; height: 18px; color: #6294c4; }
.proxy-direction { display: flex; align-items: stretch; justify-content: center; flex-direction: column; gap: 75px; min-width: 0; padding-top: 18px; }
.proxy-request-flow, .proxy-response-flow { display: block; position: relative; padding: 0 0 16px; color: #497fb4; font-size: 12px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
.proxy-request-flow::before, .proxy-response-flow::before { content: ""; position: absolute; left: -13px; right: -13px; bottom: 3px; border-top: 1.5px solid #6b9fce; }
.proxy-request-flow::after, .proxy-response-flow::after { content: ""; position: absolute; right: -13px; bottom: -1px; width: 8px; height: 8px; border-top: 1.5px solid #6b9fce; border-right: 1.5px solid #6b9fce; transform: rotate(45deg); border-radius: 0 1px 0 0; }
.proxy-response-flow { color: #338d83; }
.proxy-response-flow::before { border-color: #64a99e; }
.proxy-response-flow::after { left: -13px; right: auto; transform: rotate(-135deg); border-color: #64a99e; }
.proxy-topology .proxy-core { padding: 18px; border-color: #9bbfe5; border-radius: 12px; box-shadow: 0 0 0 4px #f2f7fd; }
.proxy-core-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid #e0eaf5; }
#main .proxy-core-heading > svg { width: 28px; height: 28px; color: #4d89c0; }
.proxy-core-heading > div { min-width: 0; }
.proxy-core-heading strong { display: block; color: #2a5d8d; font-size: 19px; font-weight: 600; }
.proxy-core-heading small { display: block; color: #6e89a3; font-size: 12px; margin-top: 3px; line-height: 1.8; }
.proxy-fast, .proxy-semantic { padding: 15px 16px; border: 1px solid #d2e3f5; border-radius: 9px; background: #f2f7fe; }
.proxy-fast > span, .proxy-semantic > span { display: block; font-size: 12px; margin-bottom: 6px; color: #7293b3; }
.proxy-fast > strong, .proxy-semantic > strong { display: block; font-size: 16px; font-weight: 550; line-height: 1.6; color: #396e9e; }
.proxy-fast > p, .proxy-semantic > p { font-size: 13px; color: #6889a8; line-height: 1.85; margin: 8px 0 0; }
.proxy-semantic { background: #faf7fe; border-color: #ded0ec; }
.proxy-semantic > span { color: #9a81b1; }
.proxy-semantic > strong { color: #7c5b99; }
.proxy-semantic > p { color: #907ba3; }
.proxy-semantic > small { display: block; font-size: 12px; color: #9b83b0; margin-top: 10px; border-top: 1px solid #e9e0f1; padding-top: 9px; }
.proxy-unknown { position: relative; display: flex; justify-content: center; align-items: center; height: 44px; color: #8d7a9b; font-size: 12px; gap: 10px; }
.proxy-unknown i { position: relative; display: block; height: 26px; width: 1px; background: #c9b9d8; }
.proxy-unknown i::after { content: ""; position: absolute; bottom: 1px; left: -3px; width: 5px; height: 5px; border-bottom: 1px solid #aa93bd; border-right: 1px solid #aa93bd; transform: rotate(45deg); }
.proxy-decisions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.proxy-decisions .badge { font-size: 12px; }
.proxy-target { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid #d7e5f3; border-radius: 9px; background: #f6faff; color: #44749f; font-size: 14px; overflow-wrap: anywhere; }
#main .proxy-target > svg { width: 20px; height: 20px; margin-bottom: 2px; color: #6a96bc; }
.proxy-target small { font-size: 12px; color: #6e8da9; line-height: 1.75; }
.proxy-target.secondary { font-size: 12px; background: #fbfcfe; border-style: dashed; border-color: #dbe5ef; color: #6d8ba4; }
.proxy-target.secondary small { font-size: 12px; }
.scenario-risk { display: flex; flex-direction: column; gap: 5px; width: 100%; border-top: 1px solid #ebf0f6; padding-top: 15px; margin: 0 0 15px; }
.scenario-risk > span, .scenario-value > span { display: block; font-size: 12px; color: #7790a7; margin-bottom: 4px; }
.scenario-risk > strong { color: #496d8b; font-size: 14px; font-weight: 550; }
.scenario-value { width: 100%; padding: 13px 14px; border: 1px solid #e2ebf5; border-radius: 8px; background: #f5f9fe; margin-bottom: 17px; }
.scenario-value > p { font-size: 13px; line-height: 1.9; color: #5b7c9b; margin: 0; }
.scenario-card > .chips { gap: 5px; margin-bottom: 18px; }
.scenario-card > .chips .chip { font-size: 12px; padding: 3px 7px; }
.scenario-business { padding: 18px 20px; border: 1px solid #dfe8f2; border-radius: 10px; background: #f7fafe; margin-bottom: 22px; }
.scenario-business > span { display: block; color: #7290aa; font-size: 13px; margin-bottom: 7px; }
.scenario-business p { color: #506f8b; font-size: 15px; line-height: 1.85; }
.scenario-story { position: relative; display: flex; flex-direction: column; gap: 17px; margin: 23px 0; }
.scenario-story-step { position: relative; padding: 18px 20px; border: 1px solid #dbe7f3; border-left: 3px solid #6b9ece; border-radius: 9px; background: #fcfdff; min-width: 0; }
.scenario-story-step.response { border-left-color: #68a98e; background: #fcfffd; border-color: #deebe4; }
.scenario-story-step > h3 { font-size: 16px; color: #466c8d; margin: 12px 0 10px; }
.scenario-story-step.response > h3 { color: #487f6c; }
.scenario-story-step > .code-block { margin: 0; font-size: 13px; }
.scenario-event-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 21px 0; }
.scenario-event-tab { display: flex; align-items: center; justify-content: space-between; gap: 13px; background: #f7fafd; border: 1px solid #dfe8f2; border-radius: 8px; padding: 11px 13px; color: #67829a; font-size: 14px; }
.scenario-event-tab.selected { background: #edf5ff; border-color: #9fc2e7; color: #326da3; box-shadow: 0 0 0 2px #f2f7fe; }
.proxy-inspection-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 20px; margin: 22px 0; }
.proxy-plaintext, .proxy-inspection-result { min-width: 0; padding: 21px; background: #f9fbfe; border: 1px solid #e0e9f3; border-radius: 11px; }
.proxy-plaintext h3, .proxy-inspection-result h3 { color: #4a6c8d; font-size: 17px; line-height: 1.75; margin-bottom: 17px; }
.proxy-plaintext > .code-block { font-size: 14px; min-height: 150px; }
.proxy-plaintext > .muted { display: block; font-size: 12px; color: #8095a8; }
.proxy-route-step { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #e1e9f2; border-radius: 9px; background: #fdfefe; padding: 14px; margin-bottom: 13px; }
#modal .proxy-route-step > svg { width: 20px; height: 20px; margin-top: 3px; color: #84a2be; }
.proxy-route-step > div { min-width: 0; }
.proxy-route-step strong { display: block; font-size: 14px; color: #607e9b; font-weight: 550; }
.proxy-route-step p { font-size: 13px; line-height: 1.8; color: #7b91a6; margin: 7px 0 0; }
.proxy-route-step.selected { border-color: #aac9e8; background: #f1f7ff; }
.proxy-route-step.selected strong { color: #3e74a4; }
.proxy-final-decision { display: flex; align-items: center; gap: 11px; font-size: 13px; color: #6e8ba5; margin: 17px 0 12px; }
/* 规则明确区分请求/返回方向，防止界面编辑把单向规则静默扩张为双向；六列随窄屏重排。 */
.proxy-rule-row { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(100px,.65fr) minmax(110px,.75fr) minmax(160px,1.5fr) 75px 40px; gap: 9px; align-items: center; padding: 13px; border: 1px solid #e0e9f2; border-radius: 9px; margin-bottom: 10px; background: #f8fafd; }
.proxy-rule-row > * { min-width: 0; }
.proxy-rule-row select, .proxy-rule-row input { width: 100%; font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
.proxy-rule-row .check-label { display: flex; align-items: center; padding: 8px; gap: 7px; font-size: 13px; background: none; border: 0; }
.proxy-rule-row .check-label input { margin: 0; }
.proxy-rule-row .text-button { font-size: 13px; color: #a66573; }
.proxy-trace-inspection { margin: 24px 0; }
.proxy-trace-inspection > h3 { margin-bottom: 16px; font-size: 17px; color: #426685; }
.proxy-evidence-summary { background: #f6f9fd; border: 1px solid #dfe8f2; border-radius: 9px; padding: 16px 18px; margin-bottom: 12px; }
.proxy-evidence-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proxy-evidence-summary strong { font-size: 15px; color: #496c8b; }
.proxy-evidence-summary p { font-size: 13px; color: #728ba0; line-height: 1.8; margin: 10px 0 0; }
@media (max-width: 1450px) {
  .proxy-topology { grid-template-columns: minmax(115px,.7fr) 76px minmax(270px,1.6fr) 76px minmax(135px,.8fr); gap: 9px; }
  .proxy-topology .proxy-core { padding: 15px; }
  .proxy-fast, .proxy-semantic { padding: 13px 14px; }
  .proxy-target { padding: 13px; }
  .proxy-core-heading strong { font-size: 17px; }
}
@media (max-width: 1200px) {
  .proxy-topology { grid-template-columns: minmax(110px,.7fr) 56px minmax(250px,1.6fr) 56px minmax(125px,.8fr); gap: 8px; }
  .proxy-request-flow, .proxy-response-flow { font-size: 11px; }
  .proxy-source { padding: 11px; gap: 8px; font-size: 13px; }
  .proxy-target { padding: 11px; font-size: 13px; }
  .proxy-core-heading small, .proxy-target small { font-size: 11px; }
  .proxy-intro { gap: 22px; padding: 25px; }
  .proxy-status-box { flex-basis: 250px; min-width: 0; }
}
@media (max-width: 1080px) {
  .proxy-topology { grid-template-columns: minmax(0,1fr); row-gap: 20px; }
  .proxy-side { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
  .proxy-side:last-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proxy-column-label { grid-column: 1/-1; font-size: 13px; }
  .proxy-source { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; padding: 13px; }
  .proxy-direction { flex-direction: row; gap: 25px; padding: 0; width: 100%; }
  .proxy-request-flow, .proxy-response-flow { flex: 1; padding-bottom: 15px; font-size: 13px; }
  .proxy-request-flow::before, .proxy-response-flow::before { left: 0; right: 0; }
  .proxy-request-flow::after { right: 0; }
  .proxy-response-flow::after { left: 0; }
  .proxy-topology .proxy-core { padding: 20px; }
  .proxy-fast, .proxy-semantic { padding: 15px 17px; }
  .proxy-core-heading strong { font-size: 19px; }
  .proxy-core-heading small, .proxy-target small { font-size: 12px; }
  .proxy-rule-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proxy-rule-row > input { grid-column: 1/-1; }
  .proxy-rule-row .check-label { padding-left: 0; }
  .proxy-rule-row > .text-button { text-align: right; }
}
@media (max-width: 760px) {
  .proxy-intro { flex-direction: column; align-items: stretch; gap: 21px; padding: 23px 20px; }
  .proxy-intro h2 { font-size: 25px; line-height: 1.55; }
  .proxy-intro p { font-size: 14px; }
  .proxy-status-box { flex-basis: auto; max-width: none; padding: 17px; }
  .proxy-status-box > strong { font-size: 17px; }
  .proxy-side { gap: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proxy-source { flex-direction: row; align-items: center; padding: 13px; font-size: 14px; }
  .proxy-direction { gap: 25px; }
  .proxy-request-flow, .proxy-response-flow { font-size: 12px; padding-bottom: 15px; }
  .proxy-topology .proxy-core { padding: 16px; }
  .proxy-core-heading { gap: 9px; }
  .proxy-core-heading strong { font-size: 18px; }
  .proxy-core-heading small { font-size: 11px; }
  .proxy-fast > strong, .proxy-semantic > strong { font-size: 16px; }
  .proxy-fast > p, .proxy-semantic > p { font-size: 13px; }
  .proxy-target { padding: 13px; font-size: 14px; }
  .proxy-side:last-child { grid-template-columns: minmax(0,1fr); }
  .proxy-inspection-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .proxy-plaintext, .proxy-inspection-result { padding: 17px; }
  .scenario-event-tab { flex: 1 1 140px; font-size: 13px; padding: 10px; }
  .scenario-business { padding: 16px; }
  .scenario-story-step { padding: 16px; }
  .scenario-story-step > .code-block { font-size: 12px; }
  .proxy-route-step p { font-size: 13px; }
  .proxy-rule-row { gap: 9px; padding: 12px; }
  .proxy-rule-row select { padding-left: 10px; font-size: 13px; }
  .proxy-evidence-summary { padding: 15px; }
}

/* 手机消息最多由app.js保留两条，放在底部安全区，避免遮住导航、账户和弹窗关闭入口。 */
@media (max-width: 760px) {
  .toasts { top: auto; right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); left: 16px; width: auto; max-width: none; transform: none; gap: 8px; }
  .toasts .toast { width: 100%; padding: 12px 15px; font-size: 14px; overflow-wrap: anywhere; }
}

/* 手机拓扑中的业务说明承担讲解功能，保持至少14px；12px仅保留版本/模式等次要元信息。 */
@media (max-width: 760px) {
  .proxy-fast > p, .proxy-semantic > p { font-size: 14px; }
  .proxy-request-flow, .proxy-response-flow { font-size: 13px; }
  .proxy-column-label { font-size: 14px; }
}
