/* 设计令牌：参照 shadcn/ui（New York 风格，Slate 中性色 + Blue 主色），全部尺寸用 rem，随右上角字号缩放 */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #93c5fd;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --accent: #eff6ff;
  --destructive: #dc2626;
  --destructive-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --radius: 0.625rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--foreground); background: #f8fafc; }
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(0.75rem, 2vw, 2rem); }
.hidden { display: none !important; }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.857rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.857rem; }
.mt { margin-top: 0.857rem; }
.text-destructive { color: var(--destructive); }
code { background: var(--muted); padding: 0 0.3rem; border-radius: 0.25rem; font-size: 0.9em; }

/* ---------- 顶栏 */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.logo { color: var(--primary); width: 2.4rem; height: 2.4rem; flex: none; }
.logo svg { width: 100%; height: 100%; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { color: var(--muted-foreground); font-size: 0.857rem; }
.header-right { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.safe-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.857rem; color: var(--success); background: var(--success-bg); border: 1px solid #bbf7d0; padding: 0.15rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.safe-pill i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--success); }
.tabs-list { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: var(--muted); border-radius: var(--radius); margin-bottom: 0.65rem; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs-list::-webkit-scrollbar { display: none; }
.tab-trigger { border: 0; background: transparent; color: var(--muted-foreground); font: inherit; font-weight: 500; padding: 0.4rem 1.1rem; border-radius: calc(var(--radius) - 0.2rem); cursor: pointer; white-space: nowrap; }
.tab-trigger:hover { color: var(--foreground); }
.tab-trigger.on { background: var(--background); color: var(--foreground); box-shadow: var(--shadow); }
.main { padding-top: 1.15rem; padding-bottom: 2rem; }

/* ---------- 分段控件 */
.seg { display: inline-flex; align-items: center; background: var(--muted); border-radius: calc(var(--radius) - 0.1rem); padding: 0.2rem; gap: 0.15rem; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 0.857rem; color: var(--muted-foreground); padding: 0.2rem 0.65rem; border-radius: calc(var(--radius) - 0.3rem); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.seg button.on { background: var(--background); color: var(--foreground); box-shadow: var(--shadow); font-weight: 600; }
.seg-label { font-size: 0.786rem; color: var(--muted-foreground); padding: 0 0.35rem; }

/* ---------- 卡片 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 0.15rem); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; margin-bottom: 1rem; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.9rem; }
.card-head.wrap { flex-wrap: wrap; }
.card-title { font-size: 1.1rem; font-weight: 650; margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; letter-spacing: -.005em; }
.card-desc { margin: 0.2rem 0 0; color: var(--muted-foreground); font-size: 0.893rem; }
.step { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 700; }
.sub { font-size: 0.97rem; font-weight: 650; margin: 0.4rem 0 0.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap { gap: 1rem; }
.grid-2 > .card, .grid-4 > .card { margin-bottom: 0; }
.grid-2.gap + .card, .grid-4.gap + .card, .grid-2.gap + .actionbar { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ---------- 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-size: 0.929rem; font-weight: 500; height: 2.5rem; padding: 0 1rem; border-radius: calc(var(--radius) - 0.1rem); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-outline { background: var(--background); border-color: var(--input); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { height: 2.15rem; padding: 0 0.8rem; font-size: 0.857rem; }
.btn-lg { height: 2.85rem; padding: 0 1.8rem; font-size: 1rem; font-weight: 600; }
.btn-icon { width: 2.15rem; padding: 0; }
.btn-icon.btn-sm { width: 1.9rem; height: 1.9rem; }

/* ---------- 表单 */
.input, .select { font: inherit; font-size: 0.929rem; height: 2.4rem; padding: 0 0.7rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 0.15rem); background: var(--background); color: var(--foreground); width: 100%; min-width: 0; }
textarea.input { height: auto; padding: 0.55rem 0.7rem; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.input-sm { height: 2rem; font-size: 0.857rem; padding: 0 0.5rem; }
.w-auto { width: auto; }
.w-num { width: 5.2rem; }
.fld { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.857rem; color: var(--muted-foreground); font-weight: 500; min-width: 0; }
.param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem; align-items: end; }
.span-3 { grid-column: span 3; margin: 0; }
details summary { cursor: pointer; color: var(--primary); font-size: 0.893rem; font-weight: 500; }
input[type=checkbox] { accent-color: var(--primary); width: 1rem; height: 1rem; }

/* ---------- 上传 */
.uploader { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; background: #fcfdfe; }
.uploader.ready { border-color: #bfdbfe; background: #f8fbff; }
.uploader-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.6rem; }
.uploader-head h4 { margin: 0; font-size: 0.97rem; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; border: 1.5px dashed #cbd5e1; border-radius: var(--radius); padding: 1.1rem; text-align: center; cursor: pointer; color: var(--muted-foreground); background: var(--background); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--accent); color: var(--primary); }
.drop input { display: none; }
.drop b { color: var(--primary); }
.file-info { margin: 0.6rem 0; word-break: break-all; }
.file-ok { display: flex; flex-direction: column; gap: 0.1rem; }
.file-ok b { color: var(--foreground); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.75rem; }

/* ---------- 操作条与进度 */
.actionbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 1.2rem; margin: 0 0 1rem; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 0.15rem); box-shadow: var(--shadow); position: sticky; bottom: 0.75rem; z-index: 10; }
.actionbar .muted { flex: 1 1 18rem; }
.progress { width: 12rem; height: 0.45rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--primary); transition: width .2s; }

/* ---------- 徽章 */
.badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; line-height: 1; padding: 0.3rem 0.55rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge-default { background: var(--primary); color: #fff; }
.badge-secondary { background: var(--secondary); color: #334155; border-color: var(--border); }
.badge-destructive { background: var(--destructive-bg); color: var(--destructive); border-color: #fecaca; }
.badge-warning { background: var(--warning-bg); color: #b45309; border-color: #fde68a; }
.badge-success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; }
.badge-outline { background: transparent; color: var(--primary); border-color: #bfdbfe; }

/* ---------- KPI 与评分 */
.kpis { display: grid; gap: 0.75rem; }
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.9rem; background: var(--background); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); }
.kpi-destructive::before { background: var(--destructive); }
.kpi-warning::before { background: var(--warning); }
.kpi-success::before { background: var(--success); }
.kpi-muted::before { background: #64748b; }
.kpi-label { color: var(--muted-foreground); font-size: 0.82rem; }
.kpi-value { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi-destructive .kpi-value { color: var(--destructive); }
.kpi-warning .kpi-value { color: #b45309; }
.kpi-sub { color: var(--muted-foreground); font-size: 0.786rem; }
.summary-grid { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 17rem; gap: 1.25rem; align-items: center; }
.summary-grid .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.score { position: relative; width: 8.5rem; height: 8.5rem; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--muted); stroke-width: 9; }
.ring { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s; }
.score-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-txt b { font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.score-txt span { color: var(--muted-foreground); font-size: 0.786rem; margin-top: 0.25rem; }
.cat-bars { display: flex; flex-direction: column; gap: 0.45rem; }
.cat { display: grid; grid-template-columns: 4.6rem 1fr 3.4rem; align-items: center; gap: 0.5rem; font-size: 0.857rem; }
.bar { display: flex; height: 0.55rem; background: var(--muted); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; }
.b-err { background: var(--destructive); }
.b-warn { background: #f59e0b; }
.b-info { background: #94a3b8; }
.cat-n { text-align: right; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
ol.concl { margin: 0; padding-left: 1.25rem; }
ol.concl li { margin: 0.3rem 0; }

/* ---------- 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.893rem; }
.tbl th, .tbl td { padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tbl th { background: #f8fafc; color: var(--muted-foreground); font-weight: 600; white-space: nowrap; font-size: 0.82rem; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f8fafc; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover { background: var(--accent); }
.tbl tr.active, .tbl tr.active:hover { background: #dbeafe; box-shadow: inset 3px 0 0 var(--primary); }
.tbl td.up { color: var(--success); font-weight: 600; }
.tbl td.down { color: var(--destructive); font-weight: 600; }
.tbl td.ok { color: var(--success); }
.tbl td.bad { color: var(--destructive); }
.tbl-matrix th, .tbl-matrix td { text-align: center; white-space: nowrap; }
.tbl-matrix td.diag { background: #dbeafe; }
.tbl-matrix td.offdiag { background: #fee2e2; font-weight: 600; }
.tbl-sug td:first-child { width: 3.6rem; }
.tbl-edit td { padding: 0.3rem 0.4rem; vertical-align: middle; }
.tbl-block { margin-bottom: 1.1rem; min-width: 0; }
.rules-wrap { max-height: 17rem; overflow: auto; }
.dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 0.2rem; margin-right: 0.35rem; vertical-align: -0.05rem; }

/* ---------- 地图 + 列表 分屏 */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; height: min(72vh, 46rem); min-height: 28rem; }
.split-map, .split-list { min-height: 0; display: flex; flex-direction: column; }
.split-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; padding: 0.6rem; border-bottom: 1px solid var(--border); background: #f8fafc; }
.filters .input { flex: 1 1 8rem; width: auto; }
.list-scroll { flex: 1; overflow: auto; }
.list-scroll .table-wrap { border: 0; border-radius: 0; overflow: visible; }
.tbl-sticky thead th { position: sticky; top: 0; z-index: 1; }
.map-box { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-tools { display: flex; gap: 0.4rem 0.9rem; flex-wrap: wrap; align-items: center; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); background: #f8fafc; font-size: 0.857rem; }
.chk { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; user-select: none; }
.sw { width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; display: inline-block; }
.sw-line { width: 1.2rem; border-top: 2px solid #2563eb; display: inline-block; }
.sw-line.ml-oa { border-top-style: dashed; border-color: #2563eb; }
.sw-line.ml-ob { border-color: #ea580c; }
.map-stage { position: relative; flex: 1; min-height: 0; background: linear-gradient(#f8fafc 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, #f8fafc 1px, #fff 1px) 0 0 / 24px 24px; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.map-svg:active { cursor: grabbing; }
.map-svg path { vector-effect: non-scaling-stroke; }
.ml-base path, .ml-piece path { stroke: #fff; stroke-width: 1; opacity: .9; }
.ml-base path:hover, .ml-piece path:hover { opacity: 1; stroke: #0f172a; }
.ml-topo path { stroke: #5b21b6; stroke-width: 1.5; opacity: .85; }
.ml-oa path { fill: none; stroke: #2563eb; stroke-width: 1.2; stroke-dasharray: 5 3; pointer-events: none; }
.ml-ob path { fill: none; stroke: #ea580c; stroke-width: 1.2; pointer-events: none; }
.map-svg path.sel { stroke: #0f172a !important; stroke-width: 3 !important; opacity: 1 !important; }
.map-ctrl { position: absolute; right: 0.6rem; top: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.map-ctrl .btn { background: rgba(255, 255, 255, .95); }
.map-foot { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.5rem; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; font-size: 0.786rem; color: #334155; }
.scalebar { display: inline-flex; flex-direction: column; background: rgba(255, 255, 255, .85); padding: 0.15rem 0.4rem; border-radius: 0.3rem; }
.scalebar i { display: block; height: 0.35rem; border: 1.5px solid #334155; border-top: 0; }
.coord { background: rgba(255, 255, 255, .85); padding: 0.1rem 0.4rem; border-radius: 0.3rem; font-variant-numeric: tabular-nums; }

/* ---------- 提示 */
.alert { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin-bottom: 0.75rem; font-size: 0.893rem; }
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: #92400e; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--foreground); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; font-size: 0.893rem; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-success { background: #166534; }
.toast-error { background: #991b1b; }
.dialog { border: 1px solid var(--border); border-radius: calc(var(--radius) + 0.2rem); padding: 1.25rem; width: min(52rem, 94vw); box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.dialog::backdrop { background: rgba(15, 23, 42, .45); }
.dialog-head h3 { margin: 0 0 0.25rem; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.9rem; }

/* ---------- 能力与合作 */
.hero-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%); color: #e2e8f0; border: 0; padding: 2rem; }
.hero-card h2 { color: #fff; font-size: 1.65rem; line-height: 1.35; margin: 0.75rem 0; letter-spacing: -.01em; }
.hero-card p { color: #cbd5e1; margin: 0 0 1.25rem; }
.hero-card .badge-outline { color: #bfdbfe; border-color: rgba(191, 219, 254, .4); }
.hero-card .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero-card .btn-outline:hover { background: rgba(255, 255, 255, .1); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-content: center; }
.hero-stats div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 0.9rem; }
.hero-stats b { display: block; font-size: 1.4rem; color: #fff; }
.hero-stats span { font-size: 0.82rem; color: #cbd5e1; }
.feat .card-title { margin-bottom: 0.4rem; }
.feat p { margin: 0; font-size: 0.929rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; border-bottom: 1px dashed var(--border); }
.check-list li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--primary); font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding: 0.4rem 0 0.4rem 2.4rem; position: relative; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0.45rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; }
.steps span { color: var(--muted-foreground); font-size: 0.893rem; }
.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.6rem; margin-top: 0.9rem; padding: 0.8rem; background: var(--muted); border-radius: var(--radius); }
.contact div { display: flex; flex-direction: column; }

.site-footer { border-top: 1px solid var(--border); background: var(--background); color: var(--muted-foreground); font-size: 0.82rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }

/* ---------- 自适应 */
@media (max-width: 1280px) {
  .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .summary-grid .cat-bars { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .split-map { height: 62vh; min-height: 22rem; }
  .split-list { max-height: 60vh; }
  .hero-card { grid-template-columns: minmax(0, 1fr); padding: 1.4rem; }
  .span-3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .safe-pill, .brand-sub { display: none; }
  .brand-name { font-size: 1rem; }
  .card { padding: 1rem; border-radius: var(--radius); }
  .kpis-6, .summary-grid .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .score { margin: 0 auto; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .actionbar { bottom: 0.4rem; padding: 0.7rem; }
  .actionbar .btn-lg { width: 100%; }
  .hero-card h2 { font-size: 1.3rem; }
  .seg-label { display: none; }
}

/* ---------- 打印 */
@media print {
  .site-header nav, .header-right, .no-print, .actionbar, .site-footer, .map-tools, .map-ctrl, .filters { display: none !important; }
  .site-header { position: static; border: 0; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid-page; }
  .split { grid-template-columns: 1fr; height: auto; }
  .split-map { height: 14cm; }
  .list-scroll { overflow: visible; }
}
