/* 移动端优先，适配微信内置浏览器；浅色主题 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #1a1a1a; line-height: 1.5;
  font-size: 15px;
}
.app { max-width: 480px; margin: 0 auto; padding: 16px 14px 40px; }

header h1 { font-size: 20px; margin: 4px 0 2px; }
header .tag { color: #888; font-size: 13px; margin: 0 0 12px; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs label {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 8px;
  background: #fff; border: 1px solid #e3e6ea; font-size: 14px; cursor: pointer;
}
.tabs input { display: none; }
.tabs label:has(input:checked) { border-color: #07c160; color: #07c160; font-weight: 600; }

.panel { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.field input, .field select, textarea {
  width: 100%; padding: 10px 10px; border: 1px solid #dfe3e8; border-radius: 8px;
  font-size: 15px; background: #fafbfc; color: #1a1a1a;
}
textarea { min-height: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

button {
  font-size: 15px; border: none; border-radius: 8px; padding: 11px 14px; cursor: pointer;
}
.primary { width: 100%; background: #07c160; color: #fff; font-weight: 600; margin-bottom: 14px; }
.primary:active { background: #06ad56; }
#btn_sample { background: #eef1f4; color: #333; font-size: 13px; padding: 8px 12px; margin-top: 8px; }

/* 快捷栏:链接输入 */
.quickbar { display: flex; gap: 8px; margin-bottom: 10px; }

/* 报告操作栏:转发方案按钮 */
.report-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.btn-share {
  background: #07c160; color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(7,193,96,.25); transition: all .15s;
}
.btn-share:active { background: #06ad56; transform: scale(.97); }

/* Toast 提示 */
.toast {
  position: fixed; bottom: 30%; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.8); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: 14px; z-index: 9999; opacity: 0; transition: all .3s; pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 分享链接弹窗 */
.share-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5);
  z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.share-box {
  background: #fff; border-radius: 14px; padding: 24px 20px; max-width: 360px; width: 100%; text-align: center;
}
.share-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.share-url {
  width: 100%; padding: 10px; border: 1px solid #dfe3e8; border-radius: 8px;
  font-size: 12px; background: #f7f9fb; margin-bottom: 12px; font-family: monospace;
}
.share-tip { font-size: 13px; color: #888; margin: 0 0 16px; }
.share-close {
  width: 100%; padding: 10px; border: none; border-radius: 8px; background: #07c160; color: #fff; font-size: 15px; font-weight: 600;
}

/* 结果卡片 */
.card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ptitle { font-size: 16px; font-weight: 700; }
.psub { font-size: 12px; color: #888; margin-top: 2px; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.badge.ok { background: #e7f8ee; color: #07c160; }
.badge.no { background: #fdeaea; color: #e54545; }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.metric { background: #f7f9fb; border-radius: 10px; padding: 12px; text-align: center; }
.m-val { font-size: 19px; font-weight: 700; color: #07c160; word-break: break-all; }
.m-lab { font-size: 12px; color: #888; margin-top: 2px; }

.row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f2f4; font-size: 14px; }
.row span { color: #666; }
.row b { color: #1a1a1a; }

.basis, .reasons, .warn { margin-top: 12px; font-size: 13px; color: #444; }
.basis b, .reasons b, .warn b { display: block; margin-bottom: 4px; color: #333; }
.basis ul, .reasons ul, .warn ul { margin: 4px 0 0; padding-left: 18px; }
.basis li, .reasons li, .warn li { margin-bottom: 3px; }

.disclaimer { margin-top: 14px; font-size: 11px; color: #aaa; line-height: 1.4; }

#export_bar { display: flex; gap: 10px; margin: 14px 0; }
#export_bar button { flex: 1; background: #fff; color: #07c160; border: 1px solid #07c160; }

footer { margin-top: 24px; font-size: 12px; color: #999; text-align: center; }
footer code { background: #eef1f4; padding: 1px 5px; border-radius: 4px; }

/* ===== 结果卡片(与 app.js 输出对齐) ===== */
.result-card { background:#fff; border-radius:14px; padding:16px; margin-bottom:12px; box-shadow:0 2px 10px rgba(0,0,0,.06); }
.rc-title { font-size:18px; font-weight:700; }
.rc-meta { font-size:12px; color:#888; margin-top:4px; }
.rc-stat { display:flex; gap:8px; margin-top:12px; }
.rc-stat div { flex:1; background:#f7f9fb; border-radius:10px; padding:10px 6px; text-align:center; }
.rc-stat span { display:block; font-size:11px; color:#888; }
.rc-stat b { display:block; font-size:15px; color:#07c160; margin-top:2px; word-break:break-all; }
.rc-top { margin-top:12px; background:#e7f8ee; color:#07a050; border-radius:10px; padding:10px; font-size:14px; font-weight:600; }
.rc-top.warn { background:#fdf3e7; color:#c47f1a; }

.region-banner { background:#eef4ff; border:1px solid #cfe0ff; border-radius:12px; padding:10px 12px; margin-bottom:12px; font-size:13px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.region-banner b { color:#1a5fd0; }
.rb-pin { font-weight:600; color:#1a5fd0; }
.rb-ind { color:#666; }
.rb-badge { background:#1a5fd0; color:#fff; border-radius:20px; padding:3px 10px; font-size:12px; }

.products { display:flex; flex-direction:column; gap:12px; }
/* 梯队分组 */
.tier { display:flex; flex-direction:column; gap:10px; }
.tier-head { display:flex; align-items:baseline; gap:8px; margin:4px 2px 2px; }
.tier-badge { font-size:13px; font-weight:800; padding:3px 12px; border-radius:20px; color:#fff; letter-spacing:.5px; }
.tier-badge.t1 { background:linear-gradient(135deg,#07c160,#06a050); }
.tier-badge.t2 { background:linear-gradient(135deg,#3a9bff,#2f7fe0); }
.tier-badge.t3 { background:linear-gradient(135deg,#9b7bff,#7d5ce0); }
.tier-badge.muted { background:#b9c0c7; }
.tier-desc { font-size:12px; color:#888; }
.tier-tagflag { font-size:12px; font-weight:800; color:#fff; background:linear-gradient(135deg,#ff8f1f,#f5600f); padding:2px 9px; border-radius:20px; }
.tier.tag-tier { border:1px solid #ffe0c2; background:linear-gradient(180deg,#fffaf3,#ffffff); box-shadow:0 4px 14px rgba(245,96,15,.08); }
.tier-body { display:flex; flex-direction:column; gap:12px; }
.tag-hint { margin:2px 2px 8px; padding:10px 12px; background:#eef4ff; border:1px solid #cfe0ff; border-radius:10px; font-size:12.5px; color:#234; line-height:1.6; }

/* 匹配摘要(资质命中一览 + 银税授权次数,统一收口,卡片不再重复) */
/* 匹配银行(简称)汇总行:结果最开头 */
.matched-banks { background:linear-gradient(90deg,#1a5fd0,#3a9bff); color:#fff; border-radius:12px; padding:10px 14px; margin-bottom:12px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; box-shadow:0 2px 10px rgba(26,95,208,.18); }
.matched-banks .mb-label { font-size:13px; font-weight:700; letter-spacing:.5px; }
.matched-banks .mb-list { font-size:14px; font-weight:600; letter-spacing:1px; }
.matched-banks.empty { background:linear-gradient(90deg,#f0a23a,#f6c260); color:#5a3a00; }

/* 已批款银行:前置勾选面板 */
.approved-panel { background:#fff; border-radius:14px; padding:14px 16px; margin-bottom:12px; box-shadow:0 2px 10px rgba(0,0,0,.06); border:1px solid #eef1f4; }
.ap-title { font-size:13px; font-weight:700; color:#1a1a1a; margin-bottom:10px; }
.ap-sub { font-size:11.5px; color:#8a929c; margin:-4px 0 10px; line-height:1.5; }
.ap-sub b { color:#5a6470; }
.ap-chips { display:flex; flex-wrap:wrap; gap:8px; }
.bank-chip { cursor:pointer; border:1.5px solid #d7dee6; background:#f6f8fb; color:#445; font-size:13px; font-weight:600; padding:7px 12px; border-radius:20px; transition:all .15s; }
.bank-chip:hover { border-color:#1a5fd0; color:#1a5fd0; }
.bank-chip.on { background:#1a8f4c; border-color:#1a8f4c; color:#fff; box-shadow:0 2px 8px rgba(26,143,76,.25); }
.bank-chip.on::before { content:"✓ "; }
.bank-chip.fail { background:#d64545; border-color:#d64545; color:#fff; box-shadow:0 2px 8px rgba(214,69,69,.25); }
.bank-chip.fail::before { content:"✗ "; }
.ap-note { font-size:12px; color:#8a929c; margin-top:10px; }
.ap-note b { color:#1a8f4c; }
/* 只读(他人查看分享方案):已批款银行面板不可修改 */
.approved-panel.readonly { border:1px solid #ffe2b8; background:#fffdf8; }
.approved-panel.readonly .bank-chip { cursor:default; opacity:.92; }
.approved-panel.readonly .bank-chip:hover { border-color:#d7dee6; color:#445; }
.approved-panel.readonly .bank-chip.on:hover { color:#fff; }
.approved-panel.readonly .bank-chip.fail:hover { color:#fff; }
.ap-lock { font-size:11.5px; color:#b9740d; background:#fff4e2; border:1px solid #ffd9a3; border-radius:8px; padding:7px 10px; margin:-2px 0 10px; line-height:1.5; }
.ap-lock b { color:#9a5a00; }

/* 负债感知横幅 */
.debt-banner { background:#fff4e5; border:1px solid #ffd29a; color:#9a5b00; border-radius:12px; padding:10px 14px; margin-bottom:12px; font-size:13px; font-weight:600; }
.debt-banner b { color:#c77700; }

/* 卡片:对公贷款笔数友好徽标 */
.pc-friendly { display:inline-block; background:#e7f7ee; color:#1a8f4c; font-size:11px; font-weight:700; padding:2px 8px; border-radius:8px; border:1px solid #b6e6c8; }

/* 空状态 */
.empty-state { background:#fff; border-radius:14px; padding:36px 20px; text-align:center; color:#5a6472; box-shadow:0 2px 8px rgba(0,0,0,.05); border:1px dashed #d7dee6; line-height:1.8; font-size:15px; }
.empty-state span { font-size:13px; color:#98a; }

.summary-card { background:#fff; border-radius:14px; padding:14px 16px; margin-bottom:12px; box-shadow:0 2px 10px rgba(0,0,0,.06); border:1px solid #eef1f4; }
.sc-title { font-size:15px; font-weight:700; color:#1a1a1a; margin-bottom:10px; }
.sc-row { padding:8px 0; border-bottom:1px dashed #f0f2f4; }
.sc-row:last-child { border-bottom:none; padding-bottom:0; }
.sc-h { font-size:12px; color:#888; margin-bottom:6px; }
.sc-chips { display:flex; flex-wrap:wrap; gap:8px; }
.qchip { font-size:13px; padding:5px 10px; border-radius:8px; background:#f2f5f8; color:#445; border:1px solid #e6ebf0; }
.qchip i { font-style:normal; font-size:11px; margin-left:2px; }
.qchip.hit { background:#e7f8ee; border-color:#bce8cf; color:#07a050; }
.qchip.hit i { color:#07a050; }
.qchip.miss { background:#f3f4f6; border-color:#e6ebf0; color:#9aa2ab; }
.qchip.miss i { color:#c0c6cd; }
.sc-note { font-size:12px; color:#666; margin-top:8px; line-height:1.6; }
.sc-note b { color:#1a1a1a; }
.sc-kv { font-size:14px; color:#1a1a1a; }
.sc-kv b { color:#07c160; font-size:16px; }
.sc-warn { color:#c47f1a; font-weight:600; }

.product-card { background:#fff; border-radius:14px; padding:14px; box-shadow:0 2px 8px rgba(0,0,0,.05); border-left:4px solid #ddd; }
.product-card.best { border-left-color:#07c160; }
.product-card.ok { border-left-color:#3a9bff; }
.product-card.fail { border-left-color:#e54545; opacity:.92; }
.pc-head { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.pc-tag { background:#eef1f4; color:#555; font-size:12px; padding:3px 8px; border-radius:6px; }
.pc-name { font-size:15px; font-weight:700; }
.pc-fit { font-size:12px; color:#888; margin:4px 0 8px; }
/* 按银行聚合卡片 */
.bank-card .pc-bank { font-size:16px; font-weight:700; color:#1a1a1a; }
.pc-short { display:inline-block; background:#1a5fd0; color:#fff; font-size:11px; font-weight:700; padding:2px 8px; border-radius:8px; letter-spacing:.5px; }
.pc-rank { display:inline-block; background:#fff3e0; color:#c77700; font-size:11px; font-weight:700; padding:2px 7px; border-radius:8px; border:1px solid #ffd699; }
.matched-banks .mb-count { margin-left:auto; font-size:12px; background:rgba(255,255,255,.22); padding:2px 8px; border-radius:10px; }

/* 已选批款银行区 */
.selected-panel { background:#eafaf0; border:1px solid #b7e6c8; border-radius:14px; padding:12px 14px; margin-bottom:12px; }
.selected-panel .sp-title { font-size:14px; font-weight:700; color:#0a8a3e; margin-bottom:8px; }
.selected-panel .sp-body { display:flex; flex-wrap:wrap; gap:10px; }
.selected-panel .product-card { margin:0; flex:1 1 280px; }

/* 批款选择按钮 */
.pc-actions { margin-top:10px; }
.sel-btn { border:none; cursor:pointer; font-size:13px; font-weight:700; padding:8px 14px; border-radius:10px; background:#07c160; color:#fff; transition:background .15s; }
.sel-btn:hover { background:#06ad56; }
.sel-btn.deselect { background:#fff; color:#e54545; border:1px solid #f2b5b5; }
.sel-btn.deselect:hover { background:#fff1f1; }
.pc-multi { font-size:11px; background:#e8f3ff; color:#1769c0; border-radius:10px; padding:2px 8px; font-weight:600; }
.avail { margin-top:8px; font-size:12px; color:#666; line-height:1.8; }
.avail .chip { display:inline-block; background:#f2f5f8; border:1px solid #e2e8ee; border-radius:10px; padding:2px 8px; margin:2px 4px 2px 0; color:#445; }

.industry-badge { background:#7b3ff2; color:#fff; font-size:11px; padding:3px 8px; border-radius:6px; }

.kv { display:flex; justify-content:space-between; padding:7px 0; border-bottom:1px solid #f0f2f4; font-size:14px; }
.kv span { color:#666; }
.kv b { color:#1a1a1a; }
.basis { margin-top:10px; font-size:13px; color:#444; background:#f9fafb; border-radius:8px; padding:8px 10px; }
.tag-match { margin:8px 0 2px; font-size:13px; color:#8a5a00; background:#fff7e6; border:1px solid #ffe0a3; border-radius:8px; padding:7px 10px; font-weight:600; }
.reject { margin-top:8px; font-size:13px; color:#e54545; background:#fdeaea; border-radius:8px; padding:8px 10px; }
.warn { margin-top:8px; font-size:12px; color:#c47f1a; background:#fdf3e7; border-radius:8px; padding:7px 9px; }

.region-verdict { margin-top:10px; font-size:12px; padding:8px 10px; border-radius:8px; }
.region-verdict.high { background:#e7f8ee; color:#07a050; }
.region-verdict.medium { background:#eef4ff; color:#1a5fd0; }
.region-verdict.low { background:#fdf3e7; color:#c47f1a; }

.bank { margin-top:10px; background:#f7f9fb; border-radius:8px; padding:9px 10px; display:flex; flex-direction:column; gap:4px; font-size:12px; }
.bank.online { background:#eef4ff; }
.bk-name { font-weight:600; color:#333; }
.bk-addr { color:#555; }
.bk-tel { color:#07c160; font-weight:700; text-decoration:none; background:#e7f8ee; border-radius:6px; padding:4px 8px; align-self:flex-start; }
.bk-tel:active { background:#d4f3e0; }
.bk-note { color:#888; }

/* 更多网点折叠列表 */
.nearby-wrap { margin-top:6px; }
.nearby-summary { cursor:pointer; color:#2b6cb0; font-size:12px; font-weight:600; user-select:none; padding:4px 0; }
.nearby-summary::-webkit-details-marker { display:none; }
.nearby-list { display:flex; flex-direction:column; gap:5px; margin-top:4px; }
.nearby-item { background:#fff; border-radius:6px; padding:6px 8px; display:flex; flex-direction:column; gap:2px; border:1px solid #e8edf2; }
.nearby-item .ni-name { font-weight:600; color:#444; font-size:12px; }
.nearby-item .ni-addr { color:#777; font-size:11px; }
.nearby-item .ni-tel { color:#07c160; font-weight:700; text-decoration:none; font-size:12px; align-self:flex-start; }

.err { background:#fdeaea; color:#e54545; padding:12px; border-radius:10px; }

/* 区域过滤说明 */
.region-note { font-size: 12px; color: #8a6d3b; background: #fff8e8; border: 1px solid #f0d9a8; border-radius: 8px; padding: 8px 12px; margin: 10px 0; line-height: 1.6; }
.region-note b { color: #b8860b; }

/* 展开全部按钮 */
.expand-row { text-align: center; margin: 14px 0 4px; }
.expand-btn { background: #fff; border: 1px solid #c9d2dd; color: #2b6cb0; border-radius: 999px; padding: 8px 20px; font-size: 13px; cursor: pointer; }
.expand-btn:hover { background: #f0f6ff; }

/* 打印（导出 PDF）时只保留结果卡片 */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .app { padding: 0; }
}

/* 维度筛选栏 */
.dim-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.dim-chip {
  background: #fff; border: 1px solid #e3e6ea; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; color: #444; cursor: pointer; line-height: 1;
}
.dim-chip i { font-style: normal; color: #07c160; font-weight: 600; margin-left: 4px; }
.dim-chip.on { background: #07c160; border-color: #07c160; color: #fff; }
.dim-chip.on i { color: #eafff2; }

/* 维度徽章(卡头) */
.pc-dim {
  font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600; color: #fff;
  background: #8a94a6;
}
.pc-dim-税 { background: #2f7ce0; }
.pc-dim-营收 { background: #f0883e; }

/* 匹配依据(贷款子类)徽标:标签资质 / 营收规模 / 供应链 / 纳税 */
.pc-basis {
  font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 700; color: #fff;
  background: #8a94a6;
}
.pc-basis-tag   { background: #7b5cff; }  /* 标签资质型 */
.pc-basis-rev   { background: #f0883e; }  /* 营收规模型 */
.pc-basis-chain { background: #1aa3a3; }  /* 供应链(上下游)型 */
.pc-basis-tax   { background: #2f7ce0; }  /* 纳税型 */
.pc-basis-std   { background: #8a94a6; }  /* 标准型 */

/* 营收佐证(开票额=营业额) */
.rev-basis {
  background: #eef7ff; color: #1f5fa8; font-size: 12.5px;
  padding: 6px 10px; border-radius: 8px; margin: 2px 0 8px;
}

/* 报告导入:文件按钮 + 提示 + 字段识别预览 */
.import-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.file-btn {
  display: inline-block; padding: 7px 14px; background: #2f7ce0; color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.file-btn:hover { background: #2868bd; }
.import-hint { font-size: 12px; color: #8a94a6; }
.map-preview {
  background: #f6f8fb; border: 1px solid #e3e8ef; border-radius: 8px;
  padding: 10px 12px; margin: 8px 0; font-size: 12px; line-height: 1.9;
}
.mp-head { font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.mp-body { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.mp-ok { background: #e8f6ee; color: #1a8f4c; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.mp-miss { width: 100%; color: #b06a00; background: #fff6e6; padding: 4px 8px; border-radius: 6px; margin-top: 4px; }

/* 多维度增信建议卡片 */
.suggest-card { background: #fffdf6; border: 1px solid #ffe2a8; border-radius: 12px; padding: 14px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.sg-head { font-weight: 700; font-size: 15px; color: #9a6b00; margin-bottom: 10px; }
.sgg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sgg-item { background: #fff; border: 1px solid #eceff3; border-left-width: 4px; border-radius: 8px; padding: 8px 10px; }
.sgg-item.sgg-good { border-left-color: #1a8f4c; }
.sgg-item.sgg-ok { border-left-color: #d9b400; }
.sgg-item.sgg-warning { border-left-color: #ef8c1f; }
.sgg-item.sgg-critical { border-left-color: #e04848; }
.sgg-item.sgg-unknown { border-left-color: #b6bcc6; }
.sgg-name { font-size: 13px; font-weight: 700; color: #1a1a1a; display: flex; justify-content: space-between; align-items: baseline; }
.sgg-flag { font-size: 11px; font-weight: 600; color: #8a94a6; }
.sgg-val { font-size: 16px; font-weight: 800; color: #1a1a1a; margin: 2px 0; }
.sgg-bench { font-size: 11px; color: #9aa2ad; margin-bottom: 4px; }
.sgg-advice { font-size: 12px; color: #555; line-height: 1.6; }
.sg-sub { font-size: 12.5px; color: #9a6b00; font-weight: 600; margin: 12px 0 6px; }
.scn-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.scn-item { background: #fff; border: 1px solid #eceff3; border-radius: 8px; padding: 8px 10px; }
.scn-title { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.scn-meta { font-size: 12.5px; color: #555; margin: 2px 0; }
.scn-meta .up { color: #1a8f4c; font-weight: 800; }
.scn-meta .flat { color: #8a94a6; }
.scn-banks { font-size: 12px; color: #2f7ce0; line-height: 1.6; }
.scn-empty { font-size: 13px; color: #8a94a6; padding: 10px; text-align: center; }
.sg-priority { margin-top: 12px; background: #fff; border: 1px solid #ffe2a8; border-radius: 8px; padding: 8px 10px; }
.sg-p-sub { font-size: 13px; font-weight: 700; color: #9a6b00; margin-bottom: 4px; }
.sg-priority ul { margin: 0; padding-left: 18px; }
.sg-priority li { font-size: 12.5px; color: #444; line-height: 1.7; margin-bottom: 2px; }
.pri-high { color: #c0392b; }
.pri-high i, .pri-mid i { color: #1a8f4c; font-style: normal; font-weight: 700; }

/* 未匹配银行简写区块 */
.unmatched-compact { margin: 14px 0 4px; background: #fafbfc; border: 1px solid #eceff3; border-radius: 10px; padding: 10px 12px; }
.uc-title { font-size: 13px; font-weight: 800; color: #5a6472; margin-bottom: 6px; }
.uc-group { padding: 6px 0; border-top: 1px dashed #e6e9ee; }
.uc-group:first-of-type { border-top: none; }
.uc-reason { font-size: 12.5px; color: #8a3324; font-weight: 700; margin-bottom: 4px; }
.uc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.uc-chip { font-size: 11.5px; color: #45505f; background: #eef1f5; border-radius: 6px; padding: 2px 7px; }

/* 剩余可推荐银行(简单列表,不逐家做卡片) */
.remaining-banks { margin: 12px 0 4px; background: #f7f9fb; border: 1px solid #e4e9ef; border-radius: 10px; padding: 10px 14px; }
.rb-title { font-size: 13px; font-weight: 800; color: #5a6472; margin-bottom: 8px; }
.rb-list { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.rb-item { font-size: 12.5px; color: #3a4554; background: #eef2f7; border-radius: 6px; padding: 3px 9px; line-height: 1.5; }
.rb-item b { color: #1a2533; }

/* 建议银行卡片(未匹配但补入梯队) */
.suggest-card { border: 1px dashed #c8ccd4; background: #fafbfc; opacity: 0.92; }
.pc-suggest { font-size: 11px; font-weight: 700; color: #fff; background: #b08d57; border-radius: 4px; padding: 1px 7px; margin-right: 5px; }
.suggest-box { padding: 6px 0; }
.suggest-title { font-size: 13px; font-weight: 700; color: #b08d57; margin-bottom: 4px; }
.suggest-item { font-size: 12.5px; color: #5a6472; line-height: 1.6; padding-left: 4px; }

/* ============================================================ */
/* 顶部导航栏 */
.top-nav { display: flex; gap: 0; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.top-nav a {
  flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: #5a6472;
  text-decoration: none; border-bottom: 2px solid transparent; transition: all .15s;
}
.top-nav a.active { color: #07c160; border-bottom-color: #07c160; font-weight: 600; }
.top-nav a:active { background: #f5f6f8; }

/* 链接输入区域 */
.link-input-area { display: flex; gap: 8px; }
.link-input {
  flex: 1; padding: 12px 14px; border: 1px solid #dfe3e8; border-radius: 10px;
  font-size: 15px; background: #fafbfc; color: #1a1a1a;
}
.link-input:focus { border-color: #07c160; background: #fff; outline: none; }
.link-input-area .primary { width: auto; flex-shrink: 0; margin-bottom: 0; padding: 11px 18px; font-size: 14px; }
.link-status { margin-top: 8px; }
.input-tip { margin-top: 8px; font-size: 12px; color: #8a94a6; line-height: 1.6; }
.link-loading { color: #2f7ce0; font-size: 14px; padding: 8px 0; }
.link-success { color: #1a8f4c; font-size: 14px; padding: 8px 12px; background: #e8f6ee; border-radius: 8px; }
.link-error { color: #c0392b; font-size: 14px; padding: 8px 12px; background: #fdeaea; border-radius: 8px; }

/* ============================================================ */
/* 加载过渡页 */
.loading-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96); z-index: 9999;
  justify-content: center; align-items: center;
}
.loading-overlay.show { display: flex; }
/* 深链首屏防闪(?id= / ?data=):首屏绘制前隐藏首页、显示方案视图与加载动画,避免"先闪首页再跳方案" */
html.deep-link #input-view { display: none !important; }
html.deep-link #result-view { display: block !important; }
html.deep-link .loading-overlay { display: flex !important; }
.loading-box { text-align: center; }
.loading-spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid #e8ecf0; border-top-color: #07c160; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; color: #5a6472; font-weight: 500; }

/* 返回导航按钮 */
.nav-back { color: #07c160 !important; font-weight: 600; }

/* 导入折叠区 */
.import-collapse { margin-top: 10px; }
.import-collapse summary {
  font-size: 14px; color: #5a6472; cursor: pointer; padding: 6px 0;
  user-select: none;
}
.import-collapse summary::-webkit-details-marker { color: #8a94a6; }
.import-collapse[open] summary { margin-bottom: 8px; }

/* ============================================================ */
/* 历史报告页面 */
.history-search { margin-bottom: 8px; }
.history-search input {
  width: 100%; padding: 11px 14px; border: 1px solid #dfe3e8; border-radius: 8px;
  font-size: 15px; background: #fafbfc; color: #1a1a1a;
}
.history-search input:focus { border-color: #07c160; background: #fff; outline: none; }
.history-stats { font-size: 13px; color: #8a94a6; }
.report-list { margin-top: 4px; }
.report-card {
  background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); cursor: pointer; transition: box-shadow .15s, transform .1s;
}
.report-card:active { transform: scale(0.98); }
.rc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.rc-name { font-size: 16px; font-weight: 700; color: #1a1a1a; flex: 1; margin-right: 8px; }
.rc-date { font-size: 12px; color: #9aa2ad; white-space: nowrap; }
.rc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.rb { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.rb-credit { background: #e8f6ee; color: #1a8f4c; }
.rb-industry { background: #eef7ff; color: #1f5fa8; }
.rb-region { background: #fff6e6; color: #b06a00; }
.rc-action { font-size: 13px; color: #07c160; font-weight: 600; }
.history-loading { text-align: center; color: #8a94a6; padding: 30px 0; font-size: 14px; }
.history-empty { text-align: center; color: #8a94a6; padding: 40px 20px; font-size: 14px; line-height: 1.8; }
.history-error { text-align: center; color: #c0392b; padding: 20px; font-size: 14px; }

/* ============================================================ */
/* 首页历史报告面板(合并后的样式) */
.history-panel { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.history-header h2 { font-size: 16px; margin: 0; }
.history-count { font-size: 12px; color: #07c160; background: #e8f6ee; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.history-tabs { display: flex; gap: 8px; margin-bottom: 10px; border-bottom: 1px solid #eef1f4; padding-bottom: 10px; }
.history-tab {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; background: #f5f6f8;
  border: none; font-size: 13px; color: #5a6472; cursor: pointer; transition: all .15s;
}
.history-tab.active { background: #e8f6ee; color: #07c160; font-weight: 600; }
.history-tab:active { transform: scale(0.98); }
.history-search { margin-bottom: 10px; }
.history-search input {
  width: 100%; padding: 10px 12px; border: 1px solid #dfe3e8; border-radius: 10px;
  font-size: 14px; background: #fafbfc; color: #1a1a1a;
}
.history-search input:focus { border-color: #07c160; background: #fff; outline: none; }
.report-list { margin-top: 4px; }
.report-card {
  background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); cursor: pointer; transition: box-shadow .15s, transform .1s;
  border: 1px solid #f0f2f5;
}
.report-card:active { transform: scale(0.98); }
.rc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.rc-name { font-size: 15px; font-weight: 700; color: #1a1a1a; flex: 1; margin-right: 8px; line-height: 1.4; }
.rc-status { font-size: 11px; padding: 2px 7px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.rc-status-success { background: #e8f6ee; color: #1a8f4c; }
.rc-status-failed { background: #fdeaea; color: #c0392b; }
.rc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.rb { font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.rb-credit { background: #e8f6ee; color: #1a8f4c; }
.rb-industry { background: #eef7ff; color: #1f5fa8; }
.rb-region { background: #fff6e6; color: #b06a00; }
.rc-meta { display: flex; justify-content: space-between; align-items: center; }
.rc-date { font-size: 12px; color: #9aa2ad; }
.rc-action { font-size: 12px; color: #07c160; font-weight: 600; }

/* 结果视图导航简化为仅返回 */
.result-nav { justify-content: flex-start; background: transparent; box-shadow: none; }
.result-nav a { flex: 0 0 auto; padding: 10px 14px; border-bottom: none; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
