/* ============================================================
 * 企业互联网 + AI 成熟度诊断系统 —— 样式层
 * 设计基调：浅色 / 商务 / 高信息密度 / 打印友好
 * ============================================================ */

:root {
  --bg: #F4F6FB;
  --bg-soft: #EEF2F9;
  --card: #FFFFFF;
  --text: #131A2E;
  --text-2: #3D4761;
  --muted: #6B7590;
  --faint: #9AA3B8;
  --border: #E4E9F2;
  --border-strong: #D3DAE8;
  --primary: #2B5CFF;
  --primary-dark: #1B44D6;
  --primary-soft: #EEF3FF;
  --purple: #7C3AED;
  --teal: #0EA5A4;
  --red: #E5484D;
  --red-soft: #FEF1F1;
  --amber: #F5A623;
  --amber-soft: #FFF8EC;
  --green: #16A34A;
  --green-soft: #EEFAF2;
  --shadow-sm: 0 1px 2px rgba(19, 26, 46, .06);
  --shadow: 0 2px 8px rgba(19, 26, 46, .06), 0 1px 3px rgba(19, 26, 46, .04);
  --shadow-lg: 0 12px 32px rgba(19, 26, 46, .12), 0 2px 8px rgba(19, 26, 46, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-w: 236px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 显式允许复制正文：保证在预览 iframe / 移动端也能选中文字 */
body, .app, .main, section, .card, .report, .pane, .field, .grid3, .modal-body, p, li, td, th, h1, h2, h3, h4, span, div {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
/* 控件与导航保持不可选，避免点按时误选 */
button, .nav-item, .score-pill, input, select, textarea { -webkit-user-select: none; user-select: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }

/* ============ 布局骨架 ============ */
.app { display: flex; min-height: 100vh; }

/* ---------- 左侧导航 ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: -.2px;
}
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; flex: 0 0 26px;
}
.brand-sub { font-size: 11px; color: var(--faint); margin-top: 6px; letter-spacing: .3px; }

.nav { padding: 12px 10px; flex: 1; }
.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  color: var(--faint); text-transform: uppercase;
  padding: 10px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: all .16s ease; width: 100%; text-align: left;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); }
.nav-item.active {
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
/* 报告区已进入某个子分节时，父项降为文字高亮 */
.nav-item.open { color: var(--primary); font-weight: 600; background: transparent; }
.nav-item .n-count {
  margin-left: auto; font-size: 11px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.nav-item.done .n-count { color: var(--green); font-weight: 600; }
.nav-item .n-ico { font-size: 14px; width: 16px; text-align: center; }

/* ---------- 报告子导航（诊断报告下的分节锚点） ---------- */
.subnav {
  margin: 2px 0 4px 8px; padding-left: 10px;
  border-left: 1px solid var(--border);
}
.subnav-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 12.5px; font-weight: 500;
  transition: all .16s ease; margin-bottom: 1px;
}
.subnav-item:hover { background: var(--bg-soft); color: var(--text); }
.subnav-item.active {
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.subnav-item .sn-idx {
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--faint); letter-spacing: .3px;
}
.subnav-item.active .sn-idx { color: var(--primary); }

.sidebar-foot {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: stretch; gap: 8px;
}
.btn-reset {
  flex: 1; min-width: 0; padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); color: var(--muted);
  font-size: 12.5px; font-weight: 500; transition: all .16s;
}
.btn-reset:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
/* 服务定价后台入口（仅入口，不放任何价格信息） */
.btn-admin {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: all .16s; user-select: none;
}
.btn-admin .ba-ico { font-size: 14px; }
.btn-admin:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- 主内容区 ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 246, 251, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 34px;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  height: 58px; display: flex; align-items: center; gap: 18px;
}
.tb-title { font-weight: 650; font-size: 14.5px; letter-spacing: -.2px; }
.tb-progress { flex: 1; display: flex; align-items: center; gap: 11px; }
.pbar {
  flex: 1; height: 6px; border-radius: 99px; background: var(--border);
  overflow: hidden; max-width: 320px;
}
.pbar-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.tb-pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 74px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 34px 34px 140px; width: 100%; }

/* ---------- 首屏 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #16225C 0%, #22307A 45%, #2B3A96 100%);
  border-radius: 18px; padding: 34px 36px; color: #fff;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .5), transparent 68%);
}
.hero::before {
  content: ''; position: absolute; right: 130px; bottom: -110px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 92, 255, .45), transparent 68%);
}
.hero-inner { position: relative; z-index: 2; max-width: 660px; }
.hero-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .6px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  padding: 4px 11px; border-radius: 99px; margin-bottom: 14px;
}
.hero h1 { font-size: 25px; line-height: 1.35; font-weight: 700; letter-spacing: -.4px; margin-bottom: 11px; }
.hero p { font-size: 13.5px; color: rgba(255, 255, 255, .74); line-height: 1.75; }
.hero-meta {
  display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 17px;
}
.hero-meta div { font-size: 12px; color: rgba(255, 255, 255, .62); }
.hero-meta b { display: block; font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* ---------- 区块 ---------- */
.section { margin-bottom: 26px; scroll-margin-top: 74px; }

.sec-head {
  display: flex; align-items: flex-start; gap: 13px;
  margin-bottom: 15px; padding: 0 2px;
}
.sec-badge {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--primary-soft);
}
.sec-titles { flex: 1; }
.sec-titles h2 { font-size: 16.5px; font-weight: 680; letter-spacing: -.25px; }
.sec-titles p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sec-score {
  margin-left: auto; text-align: right; flex: 0 0 auto;
}
.sec-score b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sec-score span { font-size: 11.5px; color: var(--faint); display: block; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ---------- 题目 ---------- */
.q { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.q:last-child { border-bottom: none; }
.q-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.q-name { font-size: 14.5px; font-weight: 640; letter-spacing: -.15px; }
.q-flag {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  letter-spacing: .3px; flex: 0 0 auto;
}
.q-flag.must { background: var(--red-soft); color: var(--red); }
.q-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 13px; line-height: 1.6; }

.opts { display: flex; flex-direction: column; gap: 7px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 13px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff;
  transition: all .14s ease; text-align: left; width: 100%;
  font-size: 13.5px; color: var(--text-2); line-height: 1.55;
}
.opt:hover { border-color: #B9C6E8; background: #FAFBFF; }
.opt.sel {
  border-color: var(--primary); background: var(--primary-soft);
  color: var(--primary-dark); font-weight: 550;
  box-shadow: 0 0 0 3px rgba(43, 92, 255, .09);
}
.opt-dot {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px;
  border: 1.5px solid var(--border-strong); margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all .14s;
}
.opt.sel .opt-dot { border-color: var(--primary); background: var(--primary); }
.opt.sel .opt-dot::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff;
}
.opt-lv {
  font-size: 10px; font-family: var(--mono); color: var(--faint);
  margin-left: auto; flex: 0 0 auto; padding-top: 2px; letter-spacing: .5px;
}
.opt.sel .opt-lv { color: var(--primary); font-weight: 700; }

/* ---------- 企业信息表单 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field label em { font-style: normal; color: var(--faint); font-weight: 400; }
.field input, .field select {
  padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: #fff; outline: none;
  transition: all .15s;
}
.field input:focus, .field select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43, 92, 255, .1);
}
.form-body { padding: 22px; }

/* ---------- 悬浮总分 ---------- */
.floater {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.floater:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(19,26,46,.16); }
.ring-wrap { position: relative; width: 62px; height: 62px; flex: 0 0 62px; }
.ring-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-val b { font-size: 17px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-val span { font-size: 9px; color: var(--faint); letter-spacing: .5px; margin-top: 1px; }
.float-info { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.float-info b { display: block; font-size: 13px; color: var(--text); margin-bottom: 1px; }

/* ---------- 提交区 ---------- */
.submit-bar {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-sm); margin-top: 6px;
}
.submit-note { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.submit-note b { color: var(--red); }

.btn {
  padding: 11px 24px; border-radius: 10px; font-size: 14px;
  font-weight: 600; transition: all .16s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3D6BFF);
  color: #fff; box-shadow: 0 4px 14px rgba(43, 92, 255, .3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(43, 92, 255, .42); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  border: 1px solid var(--border-strong); color: var(--text-2); background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }

/* ================= 报告 ================= */
#report { display: none; }
#report.show { display: block; animation: fadeUp .5s cubic-bezier(.4,0,.2,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.report-hero {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px 32px; box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.rh-top { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.rh-ring { position: relative; width: 148px; height: 148px; flex: 0 0 148px; }
.rh-ring-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.rh-ring-val b { font-size: 40px; font-weight: 750; line-height: 1; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.rh-ring-val .u { font-size: 12px; color: var(--faint); margin-top: 3px; }
.rh-ring-val .lv {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  margin-top: 7px; letter-spacing: .4px;
}
.rh-body { flex: 1; min-width: 280px; }
.rh-co { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.rh-title { font-size: 22px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 9px; }
.rh-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

.mod-bars { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 15px; }
.mb-row { display: flex; align-items: center; gap: 13px; }
.mb-name { width: 104px; flex: 0 0 104px; font-size: 13px; font-weight: 600; }
.mb-track { flex: 1; height: 26px; background: var(--bg-soft); border-radius: 7px; overflow: hidden; position: relative; }
.mb-fill {
  height: 100%; border-radius: 7px; transition: width .8s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; font-size: 11px; font-weight: 700; color: #fff;
  min-width: 34px;
}
.mb-score { width: 68px; flex: 0 0 68px; text-align: right; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mb-score span { color: var(--faint); font-weight: 400; font-size: 11.5px; }

/* 报告通用板块 */
.rsec {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.rsec-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.rsec-h h3 { font-size: 16px; font-weight: 680; letter-spacing: -.25px; }
.rsec-h .idx {
  font-size: 10.5px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 3px 8px; border-radius: 6px;
  letter-spacing: .5px;
}
.rsec-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }

/* 痛点卡片 */
.pain-item {
  border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  background: #fff;
}
.pain-item.amber { border-left-color: var(--amber); }
.pi-h { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.pi-h .sev {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  background: var(--red-soft); color: var(--red); letter-spacing: .3px;
}
.pain-item.amber .pi-h .sev { background: var(--amber-soft); color: #B87700; }
.pi-h .nm { font-size: 14px; font-weight: 650; }
.pi-h .sc { margin-left: auto; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pi-txt { font-size: 13px; color: var(--text-2); line-height: 1.78; }
.pi-need {
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--border);
  font-size: 12.5px; color: var(--primary-dark); line-height: 1.7;
}
.pi-need b { font-weight: 700; }

/* 优势 */
.good-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 10px; background: var(--green-soft);
  margin-bottom: 7px; font-size: 13px;
}
.good-item .g-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: 0 0 7px; }
.good-item b { font-weight: 650; }
.good-item span { color: var(--text-2); }

/* 方案卡 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  transition: all .2s; position: relative;
}
.plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan.reco { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,92,255,.08); }
.plan-tag {
  position: absolute; top: 0; right: 0; font-size: 10px; font-weight: 700;
  background: var(--primary); color: #fff; padding: 4px 11px;
  border-bottom-left-radius: 9px; letter-spacing: .5px;
}
.plan-top { padding: 20px 19px 17px; border-bottom: 1px solid var(--border); }
.plan-t1 { font-size: 11px; font-weight: 700; letter-spacing: .9px; margin-bottom: 7px; }
.plan-name { font-size: 17px; font-weight: 700; letter-spacing: -.35px; margin-bottom: 5px; }
.plan-slogan { font-size: 12.5px; color: var(--muted); line-height: 1.6; min-height: 40px; }
.plan-price {
  display: flex; align-items: baseline; gap: 4px; margin-top: 15px;
}
.plan-price .cur { font-size: 14px; font-weight: 600; }
.plan-price b { font-size: 27px; font-weight: 750; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.plan-price .unit { font-size: 11.5px; color: var(--faint); }
.plan-cycle { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

.plan-body { padding: 16px 19px; flex: 1; }
.plan-lbl {
  font-size: 10.5px; font-weight: 700; color: var(--faint);
  letter-spacing: .7px; margin-bottom: 9px;
}
.plan-svc {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; line-height: 1.55;
}
.plan-svc .ck {
  width: 14px; height: 14px; flex: 0 0 14px; border-radius: 4px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-top: 2px;
}
.plan-svc .sp { margin-left: auto; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.plan-svc .svc-main { flex: 1; min-width: 0; }
.plan-svc .svc-nm { display: block; }
.svc-new {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 9.5px; font-weight: 700; font-style: normal; vertical-align: 1px;
}
.plan-svc .svc-fix {
  display: block; margin-top: 2px; font-size: 11px; color: #B45309; line-height: 1.5;
}
.plan-svc .svc-fix-u { color: var(--faint); }
.plan-empty {
  background: var(--bg); border: 1px dashed var(--border); border-radius: 9px;
  padding: 14px 13px; font-size: 12px; color: var(--muted); line-height: 1.7;
}
.btn-plan:disabled {
  border-color: var(--border); color: var(--faint); background: var(--bg); cursor: not-allowed;
}
.btn-plan:disabled:hover { background: var(--bg); color: var(--faint); }

.plan-foot { padding: 13px 19px 18px; }
.plan-gain {
  background: var(--green-soft); border-radius: 9px; padding: 11px 12px;
  font-size: 12px; color: #0E7A3C; line-height: 1.62; margin-bottom: 11px;
}
.plan-gain b { font-weight: 700; }
.btn-plan {
  width: 100%; padding: 10px; border-radius: 9px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--primary); color: var(--primary); background: #fff;
  transition: all .15s;
}
.btn-plan:hover { background: var(--primary); color: #fff; }
.plan.reco .btn-plan { background: var(--primary); color: #fff; }
.plan.reco .btn-plan:hover { background: var(--primary-dark); }

/* 成本表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 700; color: var(--faint);
  letter-spacing: .6px; padding: 9px 12px; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.tbl th:first-child { border-radius: 8px 0 0 0; }
.tbl th:last-child { border-radius: 0 8px 0 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.total td { background: var(--bg-soft); font-weight: 700; font-size: 14px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .item-n { font-weight: 600; color: var(--text); }
.tbl .item-d { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.plan-pill {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 5px; margin-right: 7px; vertical-align: 1px;
}
.pill-basic { background: #EAF0FF; color: #2B5CFF; }
.pill-mid { background: #F3EDFF; color: #7C3AED; }
.pill-pro { background: #E6F8F8; color: #0B8280; }

/* 价值 / ROI */
.roi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.roi-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px;
  background: #fff;
}
.roi-card .rc-l { font-size: 11.5px; color: var(--muted); margin-bottom: 7px; line-height: 1.4; }
.roi-card .rc-v { font-size: 23px; font-weight: 750; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.roi-card .rc-v small { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.roi-card .rc-s { font-size: 11px; color: var(--faint); margin-top: 4px; }
.roi-card.hl { background: linear-gradient(135deg, #F0F6FF, #F7F4FF); border-color: #C9D8FF; }

.note {
  background: var(--bg-soft); border-radius: 10px; padding: 13px 15px;
  font-size: 12px; color: var(--muted); line-height: 1.75;
}
.note b { color: var(--text-2); }

/* 行动路线 */
.roadmap { display: grid; gap: 0; }
.rm-step { display: flex; gap: 15px; }
.rm-line { display: flex; flex-direction: column; align-items: center; flex: 0 0 26px; }
.rm-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.rm-bar { width: 2px; flex: 1; background: var(--border); min-height: 16px; }
.rm-body { padding-bottom: 20px; flex: 1; }
.rm-t { font-size: 14px; font-weight: 650; margin-bottom: 3px; }
.rm-d { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.rm-when { font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: .3px; }

/* 报告操作条 */
.report-actions {
  display: flex; gap: 11px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px;
  align-items: center;
}
.report-actions .ra-note { flex: 1; font-size: 12px; color: var(--muted); min-width: 200px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(19, 26, 46, .45);
  backdrop-filter: blur(3px); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 760px;
  max-height: 86vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(19, 26, 46, .28);
  animation: fadeUp .28s cubic-bezier(.4,0,.2,1);
}
.modal-h {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.modal-h h3 { font-size: 16px; font-weight: 680; }
.modal-h p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.modal-x {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px;
  color: var(--faint); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: var(--bg-soft); color: var(--text); }
.modal-b { padding: 20px 24px; overflow-y: auto; }
.modal-f { padding: 15px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #131A2E; color: #fff; padding: 11px 20px; border-radius: 10px;
  font-size: 13px; z-index: 200; opacity: 0; pointer-events: none;
  transition: all .26s cubic-bezier(.4,0,.2,1); box-shadow: 0 10px 30px rgba(19,26,46,.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 60px 20px; color: var(--faint);
}
.empty .e-ico { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty p { font-size: 13.5px; }

/* ---------- 响应式 ---------- */
/* ---------- 线索留资（仅部署到服务器时出现） ---------- */
.lead-sec { background: linear-gradient(135deg, #F7F9FF 0%, #FFFFFF 60%); }
.lead-form { padding: 2px; }
.lead-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.lead-tip { font-size: 12.5px; color: var(--faint); }
.lead-tip.ok { color: #0E9F6E; font-weight: 600; }

@media (max-width: 1080px) {
  .sidebar { display: none; }
  .wrap { padding: 24px 20px 130px; }
  .topbar { padding: 0 20px; }
  .plans { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 20px; }
  .rh-ring { width: 120px; height: 120px; flex: 0 0 120px; }
  .rh-ring-val b { font-size: 32px; }
  .roi-grid { grid-template-columns: 1fr; }
  .floater { right: 14px; bottom: 14px; padding: 10px 13px; }
  .float-info { display: none; }
  .mb-name { width: 76px; flex: 0 0 76px; font-size: 12px; }
}

/* ---------- 打印 ---------- */
@media print {
  .sidebar, .topbar, .floater, .submit-bar, .report-actions, .modal-mask, .toast, .no-print { display: none !important; }
  body { background: #fff; font-size: 11.5px; }
  .wrap { padding: 0; max-width: 100%; }
  .hero { display: none; }
  .rsec, .report-hero, .plan { break-inside: avoid; box-shadow: none; page-break-inside: avoid; }
  .plans { grid-template-columns: 1fr; }
  .section { display: none; }
  #report { display: block !important; }
  .plan:hover { transform: none; }
}
