/* ============ 清新透亮 · 浅色科技风主题 ============ */
:root {
  --page: #f2f7ff;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --surface-3: #eef5ff;
  --border: #e3ecfa;
  --border-2: #d5e3f7;
  --txt-0: #10233f;
  --txt-1: #56698a;
  --txt-2: #8fa2bd;
  --blue: #2f7bff;
  --blue-d: #1f5fe0;
  --cyan: #04b4d4;
  --green: #0fb08a;
  --orange: #f59e0b;
  --red: #ef4444;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --shadow-sm: 0 2px 8px rgba(31, 79, 176, .06);
  --shadow: 0 6px 22px rgba(31, 79, 176, .08);
  --shadow-lg: 0 16px 44px rgba(31, 79, 176, .13);
  --radius: 16px;

  /* ---------- 字体体系 ---------- */
  /* 中文字体优先：Windows 会依次命中 微软雅黑 UI / 微软雅黑，macOS 命中 苹方，
     避免落到 system-ui(Segoe UI) 后再让浏览器逐字回退，导致中英文粗细、基线不一致 */
  --font-sans: "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans SC",
               "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
               system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* 数字/指标：等宽数字，保证 KPI、表格数字列上下对齐 */
  --font-num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--txt-0);
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.62;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* 表单控件默认不继承字体，必须显式声明，否则按钮/输入框会退回浏览器默认 UI 字体，
   这是中英文混排最容易「看着不是一个字体」的原因 */
button, input, select, textarea, optgroup, option { font-family: inherit; font-size: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: .015em; line-height: 1.4; }
b, strong { font-weight: 600; }
.hidden { display: none !important; }
a { color: var(--blue); }

/* ---------- 登录页 ---------- */
.login-page { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 480px at 12% 14%, rgba(47,123,255,.16), transparent 62%),
    radial-gradient(680px 460px at 88% 80%, rgba(4,180,212,.16), transparent 62%),
    radial-gradient(520px 420px at 72% 6%, rgba(139,92,246,.10), transparent 60%),
    linear-gradient(160deg, #f7fbff 0%, #eef5ff 45%, #e9f6ff 100%);
}
.login-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(47,123,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(47,123,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(760px 520px at 50% 45%, #000 25%, transparent 76%);
  -webkit-mask-image: radial-gradient(760px 520px at 50% 45%, #000 25%, transparent 76%);
}
.glass {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.login-card { position: relative; width: 400px; padding: 44px 40px 32px; z-index: 1; }
.login-logo { text-align: center; margin-bottom: 28px; }
.logo-mark {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, #4d97ff, #04b4d4);
  box-shadow: 0 10px 24px rgba(47,123,255,.28);
}
.logo-mark.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; margin: 0; flex: none; box-shadow: 0 6px 14px rgba(47,123,255,.24); }
.brand-logo { width: 70px; height: 70px; display: block; margin: 0 auto 14px; border-radius: 19px; box-shadow: 0 12px 26px rgba(47,123,255,.22); }
.brand-logo.sm { width: 38px; height: 38px; border-radius: 11px; margin: 0; flex: none; box-shadow: 0 6px 14px rgba(47,123,255,.2); }
.login-logo h1 { font-size: 22px; margin-bottom: 6px; color: var(--txt-0); }
.login-logo p { font-size: 12px; color: var(--txt-1); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--txt-1); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 11px 14px; border-radius: 11px; font-size: 14px; color: var(--txt-0);
  background: #fff; border: 1px solid var(--border-2); outline: none; transition: .18s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.1); }
.login-err { font-size: 12px; color: var(--red); margin: -6px 0 12px; }
.login-tip { margin-top: 18px; font-size: 11px; color: var(--txt-2); text-align: center; line-height: 1.7; }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 232px; flex: none; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
}
.side-logo { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.side-logo-text b { display: block; font-size: 14px; color: var(--txt-0); }
.side-logo-text span { font-size: 10px; color: var(--txt-2); letter-spacing: .5px; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.nav-group-title { font-size: 10px; color: var(--txt-2); letter-spacing: 1.2px; padding: 14px 12px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; margin-bottom: 3px;
  border-radius: 10px; font-size: 13px; color: var(--txt-1); cursor: pointer; transition: .16s;
  border: 1px solid transparent;
}
.nav-item:hover { color: var(--blue); background: var(--surface-3); }
.nav-item.active { color: var(--blue-d); background: linear-gradient(90deg, #e8f1ff, #f0f9ff); border-color: #cfe1ff; font-weight: 600; }
.nav-item .ico { width: 17px; text-align: center; flex: none; font-size: 14px; }
.side-foot { padding: 14px; border-top: 1px solid var(--border); }
.side-user { font-size: 12px; color: var(--txt-1); margin-bottom: 10px; }
.side-user b { color: var(--txt-0); display: block; font-size: 13px; }

.main {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: radial-gradient(900px 420px at 82% -12%, rgba(47,123,255,.08), transparent 62%), var(--page);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 26px; border-bottom: 1px solid var(--border); flex: none; background: rgba(255,255,255,.72); backdrop-filter: blur(8px);
}
.topbar h2 { font-size: 17px; color: var(--txt-0); }
.topbar-right { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--txt-1); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(15,176,138,.16); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.brand-chip { display: inline-block; padding: 4px 12px; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--blue-d); font-weight: 500; letter-spacing: .02em; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.client-pick { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--txt-0); background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 20px; padding: 5px 12px; cursor: pointer; outline: none; max-width: 170px; text-overflow: ellipsis; transition: .16s; }
.client-pick:hover, .client-pick:focus { border-color: #9cc3ff; background: #eaf2ff; color: var(--blue-d); }
.page-content { flex: 1; overflow-y: auto; padding: 22px 26px 34px; }
.page-content::-webkit-scrollbar { width: 7px; }
.page-content::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* ---------- 通用组件 ---------- */
.btn-primary {
  padding: 11px 22px; border: none; border-radius: 11px; cursor: pointer; font-size: 14px; color: #fff; font-weight: 500;
  background: linear-gradient(135deg, #4d97ff, #2f7bff); box-shadow: 0 8px 18px rgba(47,123,255,.24); transition: .18s;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-ghost {
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 12px;
  color: var(--txt-1); background: #fff; border: 1px solid var(--border-2); transition: .16s;
}
.btn-ghost:hover { color: var(--blue); border-color: #b9d3fb; background: var(--surface-3); }
.btn-danger { padding: 6px 9px; border-radius: 9px; cursor: pointer; font-size: 12px; color: var(--red); background: #fff; border: 1px solid #fbd5d5; transition: .16s; }
.btn-danger:hover { background: #fff1f1; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 9px; font-size: 12px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #4d97ff, #04b4d4, transparent); opacity: .85;
}
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.card-title h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--txt-0); }
.card-title h3::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, #4d97ff, #04b4d4); }
.card-sub { font-size: 11px; color: var(--txt-2); letter-spacing: .02em; }
.chart { width: 100%; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-23 { grid-template-columns: 2fr 3fr; }
.grid-32 { grid-template-columns: 3fr 2fr; }
.mb16 { margin-bottom: 16px; }

/* KPI */
.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px; }
.kpi .k-label { font-size: 11px; color: var(--txt-1); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; letter-spacing: .02em; }
.kpi .k-value { font-size: 26px; font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: .5px; }
.kpi .k-delta { font-size: 11px; margin-top: 6px; }
.up { color: var(--green); } .down { color: var(--red); } .flat { color: var(--txt-2); }
.k-cyan { color: var(--cyan); } .k-blue { color: var(--blue); } .k-green { color: var(--green); }
.k-orange { color: var(--orange); } .k-violet { color: var(--violet); } .k-pink { color: var(--pink); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; color: var(--txt-2); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--border-2); background: var(--surface-2); letter-spacing: .03em; white-space: nowrap; }
.tbl th:first-child { border-radius: 8px 0 0 0; } .tbl th:last-child { border-radius: 0 8px 0 0; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--txt-1); vertical-align: top; }
/* 表格里的企业全称容易把列撑爆 / 挤成竖排：统一截断，完整内容放 title */
.tbl .cell-ellip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tbody tr:hover td { background: var(--surface-3); color: var(--txt-0); }
.tbl .self-row td { background: #eefaff; color: var(--txt-0); font-weight: 600; }
.rank-badge {
  display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--blue);
}
.rank-badge.r1 { background: linear-gradient(135deg, #ffd66b, #f7a825); color: #5a3400; }
.rank-badge.r2 { background: linear-gradient(135deg, #e8eef7, #b9c8dc); color: #35455c; }
.rank-badge.r3 { background: linear-gradient(135deg, #f0bb92, #d18a55); color: #4a2408; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; white-space: nowrap; letter-spacing: .02em; }
.tag.ok { background: #e7f8f2; color: #0a8f70; border: 1px solid #bfeddf; }
.tag.warn { background: #fff5e5; color: #b57a06; border: 1px solid #ffe3b8; }
.tag.pend { background: #fdeeee; color: #cf3636; border: 1px solid #f9d4d4; }
.tag.danger { background: #fdeeee; color: #cf3636; border: 1px solid #f9d4d4; }
.tag.blue { background: #eaf2ff; color: #2664d6; border: 1px solid #cfe1ff; }

/* 甘特图 */
.gantt { overflow-x: auto; }
.gantt-grid { min-width: 760px; }
.gantt-head { display: grid; grid-template-columns: 200px 1fr; margin-bottom: 4px; }
.gantt-quarters { display: grid; grid-template-columns: repeat(4, 1fr); }
.gantt-quarters span { text-align: center; font-size: 12px; color: var(--blue); font-weight: 600; padding: 6px 0; border-left: 1px dashed var(--border-2); }
.gantt-ticks { display: grid; }
.gantt-ticks span { text-align: center; font-size: 11px; color: var(--blue); font-weight: 600; padding: 6px 0; border-left: 1px dashed var(--border-2); }
.card-title .seg { flex: none; }
.gantt-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; min-height: 40px; border-top: 1px solid var(--border); }
.gantt-row:hover { background: var(--surface-2); }
.gantt-name { font-size: 12px; color: var(--txt-1); padding: 8px 10px 8px 0; }
.gantt-track { position: relative; height: 40px; background: repeating-linear-gradient(90deg, transparent 0 24.9%, var(--border) 24.9% 25%); }
.gantt-bar {
  position: absolute; top: 50%; transform: translateY(-50%); height: 16px; border-radius: 8px;
  background: linear-gradient(90deg, #4d97ff, #04b4d4); box-shadow: 0 3px 8px rgba(47,123,255,.25);
  font-size: 10px; color: #fff; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden;
}
.gantt-bar.co { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 3px 8px rgba(245,158,11,.28); }
.gantt-ms { position: absolute; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg); background: #f7c948; box-shadow: 0 0 0 3px rgba(247,201,72,.28); }
.gantt-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 11px; color: var(--txt-2); align-items: center; flex-wrap: wrap; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 文章 */
.article-card { display: flex; gap: 16px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 12px; transition: .16s; cursor: pointer; background: #fff; }
.article-card:hover { border-color: #b9d3fb; background: var(--surface-3); box-shadow: var(--shadow-sm); }
.art-platform { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--surface-3); border: 1px solid var(--border-2); }
.art-body { flex: 1; min-width: 0; }
.art-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--txt-0); }
.art-path { font-size: 11px; color: var(--cyan); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.art-summary { font-size: 12px; color: var(--txt-1); line-height: 1.7; }
.art-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-item label { display: block; font-size: 12px; color: var(--txt-1); margin-bottom: 6px; font-weight: 500; }
.form-item label .req { color: var(--red); margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--txt-0);
  background: #fff; border: 1px solid var(--border-2); outline: none; transition: .18s; font-family: inherit;
}
.form-item textarea { resize: vertical; min-height: 70px; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.09); }
.upload-zone {
  border: 1.5px dashed var(--border-2); border-radius: 12px; padding: 26px; text-align: center;
  color: var(--txt-1); font-size: 12px; cursor: pointer; transition: .18s; background: var(--surface-2);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--blue); background: #eef6ff; }
.upload-zone .up-ico { font-size: 26px; margin-bottom: 6px; }
.file-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--blue-d); }
.file-chip .x { cursor: pointer; color: var(--red); font-weight: 700; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(16,35,63,.28); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal { width: 660px; max-width: 92vw; max-height: 84vh; overflow-y: auto; padding: 24px 26px; }
.modal h3 { font-size: 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--txt-0); }
.modal-close { cursor: pointer; color: var(--txt-2); font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--txt-0); }
.modal-content p { font-size: 13px; color: var(--txt-1); line-height: 1.9; margin-bottom: 12px; }
.modal-content .sec-title { font-size: 12px; color: var(--cyan); margin: 14px 0 8px; letter-spacing: 1px; font-weight: 600; }

/* Toast & 场景 */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 99; padding: 11px 22px; border-radius: 11px; font-size: 13px; background: #fff; border: 1px solid #bfeddf; color: #0a8f70; box-shadow: var(--shadow-lg); }
.toast.err { border-color: #f9d4d4; color: #cf3636; }
.scenario-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 8px; background: #fff; }
.scenario-item:hover { border-color: #cfe1ff; background: var(--surface-2); }
.sc-idx { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--surface-3); color: var(--blue); font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sc-q { flex: 1; font-size: 13px; color: var(--txt-0); }
.sc-rank { font-size: 11px; color: var(--cyan); min-width: 74px; text-align: right; }
.eeat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eeat-row .e-label { width: 130px; font-size: 12px; color: var(--txt-1); flex: none; }
.eeat-row .e-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.eeat-row .e-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4d97ff, #04b4d4); }
.eeat-row .e-val { width: 40px; text-align: right; font-size: 13px; font-weight: 700; color: var(--cyan); flex: none; }
.note-list { font-size: 11px; color: var(--txt-2); line-height: 2; }
.note-list li { margin-left: 16px; }

/* ============ 后台管理（admin）专用 ============ */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.inp, .sel {
  padding: 9px 12px; border-radius: 10px; font-size: 13px; color: var(--txt-0);
  background: #fff; border: 1px solid var(--border-2); outline: none; transition: .18s; font-family: inherit;
}
.inp:focus, .sel:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.09); }
.inp-sm { padding: 6px 9px; font-size: 12px; border-radius: 8px; border: 1px solid var(--border-2); background: #fff; color: var(--txt-0); outline: none; font-family: inherit; }
.inp-sm:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.1); }

/* ---------- 后台：顶部客户切换器 ---------- */
.client-pick { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-2); border-radius: 10px; padding: 4px 6px 4px 12px; box-shadow: var(--shadow-sm); max-width: 240px; min-width: 0; }
.client-pick .cp-label { font-size: 11.5px; color: var(--txt-2); white-space: nowrap; }
.client-pick select { border: none; background: transparent; font-size: 12.5px; color: var(--txt-0); font-family: inherit; max-width: 150px; min-width: 0; outline: none; cursor: pointer; padding: 5px 4px; text-overflow: ellipsis; }
.dt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.dt-table th { text-align: left; font-size: 11px; color: var(--txt-2); font-weight: 600; padding: 9px 8px; border-bottom: 1px solid var(--border-2); background: var(--surface-2); white-space: nowrap; letter-spacing: .03em; }
.dt-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.dt-table tbody tr:hover td { background: var(--surface-2); }
.dt-table .cell-inp { width: 100%; padding: 7px 9px; border-radius: 8px; font-size: 12.5px; color: var(--txt-0); background: #fff; border: 1px solid var(--border-2); outline: none; font-family: inherit; }
.dt-table .cell-inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.09); }
.dt-table .cell-inp.num { text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { padding: 7px 14px; border: none; background: transparent; border-radius: 8px; font-size: 12.5px; color: var(--txt-1); cursor: pointer; transition: .16s; font-family: inherit; }
.seg button.on { background: #fff; color: var(--blue-d); font-weight: 600; box-shadow: var(--shadow-sm); }
.stat { padding: 16px 18px; }
.stat .s-label { font-size: 11px; color: var(--txt-1); margin-bottom: 8px; letter-spacing: .02em; }
.stat .s-value { font-size: 24px; font-weight: 700; color: var(--txt-0); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.empty { text-align: center; color: var(--txt-2); font-size: 13px; padding: 34px 0; }
.code-box { font-family: var(--font-mono); font-size: 12px; line-height: 1.9; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--txt-1); overflow-x: auto; white-space: pre; }
.hint { font-size: 11px; color: var(--txt-2); line-height: 1.75; letter-spacing: .01em; }
.hint code { background: var(--surface-3); padding: 1px 5px; border-radius: 4px; color: var(--blue-d); font-size: 11px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--txt-0); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #4d97ff, #04b4d4); }
.chk { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
/* 复选框整行（label 包 input）：label 本身不能套 .chk 的 16px 尺寸，否则文字会被挤成竖排 */
.chk-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt-1); cursor: pointer; }
.chk-row > input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: var(--blue); cursor: pointer; }
.ds-pick { max-height: 460px; overflow-y: auto; }
.ds-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; background: #fff; transition: .16s; }
.ds-item:hover { border-color: #cfe1ff; background: var(--surface-2); }
.ds-item.active { border-color: #9cc3ff; background: #eaf2ff; }
.ds-item .ds-name { flex: 1; font-size: 13px; color: var(--txt-0); }
.ds-item .ds-count { font-size: 11px; color: var(--txt-2); }
.preview-box { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.step-line { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--txt-2); margin-bottom: 12px; flex-wrap: wrap; }
.step-line b { color: var(--blue); }

/* ---------- 文章原文链接 / 下载 ---------- */
.art-url { font-size: 11.5px; color: var(--txt-2); margin-top: 5px; word-break: break-all; }
.art-url a { color: var(--blue); text-decoration: none; }
.art-url a:hover { text-decoration: underline; }
.art-dl { flex: none; align-self: center; }

/* ---------- GEO 优化流程 ---------- */
.flow { margin-top: 6px; }
.flow-item { display: flex; gap: 16px; }
.flow-rail { flex: none; width: 30px; display: flex; flex-direction: column; align-items: center; }
.flow-dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #fff; background: #b9cbe6; box-shadow: 0 3px 10px rgba(31,79,176,.16);
}
.flow-dot.ok { background: linear-gradient(135deg, #22c9a0, #0fa07e); }
.flow-dot.warn { background: linear-gradient(135deg, #4d97ff, #2f7bff); }
.flow-dot.pend { background: #c3d3e8; color: #6b7f9c; }
.flow-line { flex: 1; width: 2px; background: linear-gradient(180deg, var(--border-2), var(--border)); margin: 4px 0; border-radius: 2px; }
.flow-body { flex: 1; padding-bottom: 22px; min-width: 0; }
.flow-item.active .flow-body { }
.flow-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.flow-head b { font-size: 14px; color: var(--txt-0); }
.flow-desc { font-size: 12.5px; color: var(--txt-1); line-height: 1.85; margin-bottom: 8px; }
.flow-bar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 12px; max-width: 420px; }
.flow-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4d97ff, #04b4d4); transition: width .5s; }
.flow-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.flow-sub { font-size: 11px; color: var(--txt-2); margin-bottom: 6px; font-weight: 600; }
.flow-todo { font-size: 12px; color: var(--txt-1); line-height: 1.7; background: #fff9ec; border: 1px solid #fde9bd; border-radius: 9px; padding: 8px 11px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; color: var(--blue-d); background: #eaf2ff; border: 1px solid #d5e6ff; border-radius: 7px; padding: 4px 9px; }

/* ---------- 客户资料提交状态提示条 ---------- */
.info-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border-2); background: var(--surface-2); }
.info-banner .ib-ico { font-size: 18px; flex: none; }
.info-banner .ib-txt { flex: 1; min-width: 0; }
.info-banner .ib-txt b { display: block; font-size: 13px; color: var(--txt-0); margin-bottom: 2px; }
.info-banner .ib-txt span { font-size: 12px; color: var(--txt-1); line-height: 1.6; }
.info-banner.ib-blue { background: #eaf2ff; border-color: #cfe1ff; }
.info-banner.ib-blue .ib-txt b { color: #2664d6; }
.info-banner.ib-red { background: #fdeeee; border-color: #f9d4d4; }
.info-banner.ib-red .ib-txt b { color: #cf3636; }

@media (max-width: 1200px) { .kpi-row { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-2, .grid-23, .grid-32, .grid-4 { grid-template-columns: 1fr; } .sidebar { width: 64px; } .side-logo-text, .side-user { display: none; } }

/* ============================================================
 * 精简版看板：KPI 四列 / 概览进度 / 时间节点面板
 * ============================================================ */
.kpi-row.kpi-4 { grid-template-columns: repeat(4, 1fr); }

/* 概览页「年度服务进度」 */
.ov-steps { margin-top: 2px; }
.ov-step { margin-bottom: 13px; }
.ov-step:last-child { margin-bottom: 0; }
.ov-step .os-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ov-step .os-head b { font-size: 12px; font-weight: 600; color: var(--txt-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-step .os-head span { flex: none; font-size: 10.5px; color: var(--txt-2); }
.ov-step .os-bar { height: 7px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.ov-step .os-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4d97ff, #04b4d4); }
.ov-step.done .os-bar i { background: linear-gradient(90deg, #22c9a0, #0fa07e); }
.ov-step.todo .os-bar i { background: #d3e2f7; }
.ov-step.doing .os-head b { color: var(--cyan); }

/* 通用洞察条 */
.insight-box { margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: rgba(47, 216, 164, .07); border: 1px solid rgba(47, 216, 164, .24); font-size: 12px; color: #1c8f6b; line-height: 1.8; }

/* 场景问题滚动列表 */
.sc-list { max-height: 384px; overflow-y: auto; padding-right: 4px; }
.sc-list .scenario-item:last-child { margin-bottom: 0; }

/* ---------- 年度服务时间节点面板 ---------- */
.tl-card { padding: 18px 20px 16px; }
.tl-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.tl-title h3 { font-size: 15px; font-weight: 600; color: var(--txt-0); display: flex; align-items: center; gap: 8px; }
.tl-title h3::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, #4d97ff, #04b4d4); }
.tl-title .card-sub { display: block; margin-top: 5px; }
.tl-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--txt-2); }
.tl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tl-legend .lg-bar { display: inline-block; width: 16px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #4d97ff, #04b4d4); }
.tl-legend .lg-bar.co { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.tl-legend .lg-dot-done, .tl-legend .lg-dot-doing, .tl-legend .lg-dot-todo { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tl-legend .lg-dot-done { background: linear-gradient(135deg, #4d97ff, #04b4d4); }
.tl-legend .lg-dot-doing { background: #04b4d4; box-shadow: 0 0 0 3px rgba(4, 180, 212, .18); }
.tl-legend .lg-dot-todo { background: #fff; border: 1.5px dashed rgba(77, 151, 255, .5); }

.tl-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.tl-stats > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 9px 13px; }
.tl-stats span { display: block; font-size: 11px; color: var(--txt-2); margin-bottom: 4px; }
.tl-stats b { font-size: 17px; font-weight: 700; color: var(--txt-0); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.tl-stats b i { font-size: 12px; font-style: normal; font-weight: 500; color: var(--txt-2); }
.tl-stats .c-cyan { color: #04a9c9; }
.tl-stats .c-orange { color: #e8901a; }

.tl-board { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.tl-head { display: grid; grid-template-columns: 156px 1fr; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.tl-head-label { padding: 8px 14px; font-size: 11.5px; font-weight: 600; color: var(--txt-1); border-right: 1px solid var(--border); }
.tl-head-ticks { display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.tl-head-ticks span { text-align: center; font-size: 10.5px; color: var(--txt-2); padding: 8px 0; border-right: 1px dashed var(--border); }
.tl-head-ticks span:last-child { border-right: 0; }
.tl-row { display: grid; grid-template-columns: 156px 1fr; border-bottom: 1px solid var(--border); }
.tl-row:last-child { border-bottom: 0; }
.tl-row:hover .tl-track { background: rgba(47, 123, 255, .022); }
.tl-item { padding: 10px 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.tl-item b { font-size: 12px; font-weight: 600; color: var(--txt-0); line-height: 1.5; }
.tl-item span { font-size: 10.5px; color: var(--txt-2); margin-top: 3px; }
.tl-track { position: relative; height: 56px; }
.tl-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.tl-cells i { border-right: 1px dashed var(--border); }
.tl-cells i:last-child { border-right: 0; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(4, 180, 212, .35); z-index: 1; }
.tl-bar { position: absolute; top: 50%; transform: translateY(-50%); height: 19px; border-radius: 6px; z-index: 2; transition: .2s; }
.tl-bar.st-done { background: linear-gradient(90deg, #4d97ff, #04b4d4); box-shadow: 0 3px 9px rgba(4, 180, 212, .22); }
.tl-bar.st-doing { background: linear-gradient(90deg, #4d97ff, #04b4d4); box-shadow: 0 0 0 3px rgba(4, 180, 212, .16), 0 4px 12px rgba(4, 180, 212, .3); }
.tl-bar.st-todo { background: rgba(77, 151, 255, .1); border: 1px dashed rgba(77, 151, 255, .45); }
.tl-bar.co.st-done { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 3px 9px rgba(245, 158, 11, .22); }
.tl-bar.co.st-doing { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16), 0 4px 12px rgba(245, 158, 11, .3); }
.tl-bar.co.st-todo { background: rgba(245, 158, 11, .1); border: 1px dashed rgba(245, 158, 11, .45); }
.tl-range { position: absolute; bottom: calc(100% + 3px); font-size: 9.5px; color: var(--txt-2); white-space: nowrap; }
.tl-ms { position: absolute; top: calc(100% + 3px); font-size: 9.5px; font-weight: 500; color: #c98a12; white-space: nowrap; }
.tl-bar.st-todo .tl-ms { color: var(--txt-2); }

@media (max-width: 1200px) { .kpi-row.kpi-4 { grid-template-columns: 1fr 1fr; } .tl-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .tl-stats { grid-template-columns: 1fr 1fr; }
  .tl-board { overflow-x: auto; }
  .tl-head, .tl-row { min-width: 700px; }
  .tl-item { border-right: 1px solid var(--border); }
}

/* ============================================================
 * 资料提交链接面板 + 发放流程
 * ============================================================ */
.iv-result {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #f2f8ff, #fbfdff); border: 1px solid #cfe2ff;
}
.iv-result-head { font-size: 13px; font-weight: 600; color: var(--blue-d); margin-bottom: 10px; }
.iv-result-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iv-result-input {
  flex: 1 1 320px; min-width: 0; padding: 9px 12px; border-radius: 9px; font-size: 12.5px;
  color: var(--txt-0); background: #fff; border: 1px solid var(--border-2); outline: none;
  font-family: var(--font-mono);
}
.iv-result-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.09); }

.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.flow-step {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 15px; display: flex; flex-direction: column; gap: 7px;
}
.flow-step b { font-size: 12.5px; color: var(--txt-0); }
.flow-step span { font-size: 11.8px; color: var(--txt-1); line-height: 1.85; }

/* 列较多的表格：容器内横向滚动，避免被 .card 的 overflow:hidden 裁掉右侧操作列 */
.tbl-wrap { width: 100%; overflow-x: auto; padding-bottom: 2px; }
.tbl-wrap::-webkit-scrollbar { height: 7px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.tbl .cell-ellip.sm { max-width: 132px; }
/* 附件名较长时截断，避免把「操作」列挤出可视区 */
.att-chip { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* ============================================================
 * GEO 诊断报告（引擎实测报告 + 客户端报告页）
 * 报告是看板指标的真数据来源，样式上统一用「蓝紫=报告 / 青绿=正面 / 红橙=负面」语义
 * ============================================================ */
.rp-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px;
}
.rp-meta > div {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
}
.rp-meta span { font-size: 11px; color: var(--txt-2); }
.rp-meta b { font-size: 15px; color: var(--txt-0); font-family: var(--font-num); }
.rp-meta b i { font-size: 11px; color: var(--txt-2); font-style: normal; margin-left: 2px; }

.rp-plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 9px; margin-top: 12px; }
.rp-plat {
  border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px;
  background: linear-gradient(180deg, rgba(47,123,255,.06), rgba(47,123,255,.01));
  display: flex; flex-direction: column; gap: 3px;
}
.rp-plat b { font-size: 12px; color: var(--txt-1); font-weight: 600; }
.rp-plat .rp-rate { font-size: 17px; font-weight: 700; color: var(--blue); font-family: var(--font-num); }
.rp-plat em { font-size: 10.5px; color: var(--txt-2); font-style: normal; }

/* 报告头：品牌 + 得分环 + 关键指标 */
.rp-hero {
  display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 20px; align-items: center;
}
.rp-hero-l h3 { font-size: 19px; margin-bottom: 6px; }
.rp-hero-l .rp-sub { font-size: 12.5px; color: var(--txt-1); line-height: 1.9; }
.rp-hero-l .rp-sub b { color: var(--txt-0); }
.rp-ring-box { display: flex; align-items: center; gap: 18px; }
.rp-ring { position: relative; width: 132px; height: 132px; flex: none; }
.rp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rp-ring-c { fill: none; stroke-width: 10; stroke-linecap: round; }
.rp-ring-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.rp-ring-txt b { font-size: 30px; font-family: var(--font-num); line-height: 1.1; color: var(--txt-0); }
.rp-ring-txt span { font-size: 11px; color: var(--txt-2); }
.rp-ring-side { display: flex; flex-direction: column; gap: 9px; }
.rp-ring-side .rp-tag {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--txt-1);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px;
}
.rp-ring-side .rp-tag b { font-family: var(--font-num); color: var(--txt-0); font-size: 15px; }

/* 平台矩阵（正/负双值） */
.rp-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 11px; }
.rp-mx {
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 8px;
}
.rp-mx-head { display: flex; align-items: center; justify-content: space-between; }
.rp-mx-head b { font-size: 13px; color: var(--txt-0); }
.rp-mx-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--txt-1); }
.rp-mx-row .rp-mx-l { width: 34px; flex: none; }
.rp-mx-row .rp-mx-bar { flex: 1; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rp-mx-row .rp-mx-bar i { display: block; height: 100%; border-radius: 4px; }
.rp-mx-row .rp-mx-v { width: 42px; text-align: right; font-family: var(--font-num); font-weight: 600; }
.rp-mx.pos .rp-mx-row .rp-mx-bar i { background: linear-gradient(90deg, #21d6a8, #0fb08a); }
.rp-mx.pos .rp-mx-row .rp-mx-v { color: var(--green); }
.rp-mx.neg .rp-mx-row .rp-mx-bar i { background: linear-gradient(90deg, #ffb04a, #ef4444); }
.rp-mx.neg .rp-mx-row .rp-mx-v { color: var(--red); }

/* 信源 / 竞品排行榜（CSS 条形，避免过多图表） */
.rp-src { display: flex; flex-direction: column; gap: 9px; }
.rp-src-row { display: flex; align-items: center; gap: 10px; }
.rp-src-row .rp-src-rank {
  width: 20px; height: 20px; flex: none; border-radius: 6px; background: var(--surface-3);
  color: var(--txt-1); font-size: 11px; font-family: var(--font-num); display: flex; align-items: center; justify-content: center;
}
.rp-src-row.top .rp-src-rank { background: linear-gradient(135deg, #2f7bff, #7c5cff); color: #fff; }
.rp-src-row .rp-src-name {
  width: 132px; flex: none; font-size: 12px; color: var(--txt-0);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rp-src-row .rp-src-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.rp-src-row .rp-src-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4f9eff, #2f7bff); }
.rp-src-row.neg .rp-src-bar i { background: linear-gradient(90deg, #ffb04a, #ef4444); }
.rp-src-row .rp-src-v { width: 54px; text-align: right; font-size: 12px; font-family: var(--font-num); color: var(--txt-1); }

/* 平台明细 Tab */
.rp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rp-tab {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--txt-1);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; transition: all .2s;
}
.rp-tab:hover { border-color: var(--blue); color: var(--blue); }
.rp-tab.on { background: linear-gradient(135deg, var(--blue), #7c5cff); border-color: transparent; color: #fff; font-weight: 600; }

/* 诊断建议 */
.rp-title-list { display: flex; flex-direction: column; gap: 8px; }
.rp-title-item {
  display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2);
  border: 1px solid var(--border); border-left: 3px solid #0fb08a; border-radius: 9px; padding: 9px 12px;
}
.rp-title-item .rp-ti-no {
  font-size: 11px; font-family: var(--font-num); color: #fff; background: #0fb08a;
  border-radius: 5px; padding: 1px 6px; flex: none; margin-top: 2px;
}
.rp-title-item .rp-ti-txt { font-size: 12.5px; color: var(--txt-0); line-height: 1.75; }
.rp-priority { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rp-priority .flow-step { border-left: 3px solid #2f7bff; }
.rp-disclaim { font-size: 11.5px; color: var(--txt-2); text-align: center; margin-top: 6px; line-height: 1.9; }

/* ---- 报告：其他被提及实体（渠道 / 上游 / 无关）---- */
.rp-others > summary {
  cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--txt-0);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.rp-others > summary::-webkit-details-marker { display: none; }
.rp-others > summary::before {
  content: '▸'; color: var(--txt-2); font-size: 11px; transition: transform .18s; display: inline-block;
}
.rp-others[open] > summary::before { transform: rotate(90deg); }
.rp-others > summary .card-sub { font-weight: 400; font-size: 11.5px; color: var(--txt-2); }
.rp-kind-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.rp-kind-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.rp-kind-t {
  flex: none; width: 56px; font-size: 11.5px; font-weight: 600; color: var(--txt-2);
  line-height: 26px; text-align: right;
}
.rp-kind-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; line-height: 20px;
}
.rp-kind-chip b { font-weight: 600; color: var(--txt-0); }
.rp-kind-chip i { font-style: normal; font-family: var(--font-num); color: var(--txt-1); }
.rp-kind-chip em { font-style: normal; font-size: 10.5px; color: var(--txt-2); }
.rp-kind-chip.k-channel { border-color: #cfe0ff; background: #f4f8ff; }
.rp-kind-chip.k-channel em { color: var(--blue); }
.rp-kind-chip.k-upstream { border-color: #ffe3c2; background: #fff8ef; }
.rp-kind-chip.k-upstream em { color: #b06a12; }
.rp-kind-chip.k-other em { color: var(--txt-2); }

@media (max-width: 1080px) {
  .rp-hero { grid-template-columns: 1fr; }
  .rp-src-row .rp-src-name { width: 96px; }
}

/* 总览页顶部「诊断报告」横幅：把真数据来源显性化 */
.rp-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-left: 4px solid var(--blue);
  background: linear-gradient(100deg, rgba(47,123,255,.07), rgba(124,92,255,.04) 55%, var(--surface) 100%);
}
.rp-banner-empty { border-left-color: var(--border-2); background: var(--surface); }
.rp-banner .rp-ring { margin: 0; }
.rp-banner-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .04em; color: var(--blue);
  background: rgba(47,123,255,.1); border-radius: 5px; padding: 2px 8px; margin-bottom: 7px;
}
.rp-banner-title { font-size: 15.5px; color: var(--txt-0); font-weight: 600; line-height: 1.5; }
.rp-banner-title b { font-family: var(--font-num); color: var(--blue); font-size: 19px; }
.rp-banner-sub { font-size: 11.8px; color: var(--txt-2); margin-top: 6px; line-height: 1.8; }
.rp-banner-sub b { color: var(--txt-1); }
.rp-banner-ico { font-size: 30px; opacity: .55; }
.rp-banner-act { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 900px) { .rp-banner-act { margin-left: 0; } }

/* ============ 原生诊断引擎：后台配置页 + 报告页 ============ */
/* 引擎就绪状态条 */
.rp-ready {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.2px; color: var(--txt-1); line-height: 1.7;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: 10px; padding: 9px 12px;
}
.rp-ready.warn { border-left-color: var(--orange); color: var(--txt-1); }
.rp-ready b { color: var(--txt-0); font-weight: 600; }
.rp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rp-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(15,176,138,.15); }
.rp-dot.bad { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,.16); }

/* 口径核验卡（发起诊断前）：行业不一致 = 阻断，必须一眼看出来 */
.rp-check {
  margin: 12px 0 14px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: 10px;
  font-size: 12.2px; line-height: 1.75; color: var(--txt-1);
}
.rp-check.warn { border-left-color: var(--orange); }
.rp-check.bad { border-left-color: var(--red); background: rgba(217,83,79,.05); }
.rp-check-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-check-h > b { color: var(--txt-0); font-size: 12.5px; font-weight: 600; }
.rp-check-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--green); }
.rp-check.warn .rp-check-dot { background: var(--orange); }
.rp-check.bad .rp-check-dot { background: var(--red); }
.rp-check-sub { font-size: 11.5px; color: var(--txt-2); }
.rp-check-sub b { color: var(--txt-0); }
.rp-check-li { margin-top: 4px; font-size: 11.8px; }
.rp-check-li.bad { color: var(--red); }
.rp-check-li.warn { color: var(--orange); }
.rp-check-li.muted { color: var(--txt-2); }
.rp-check .tag { margin-right: 4px; }

/* 诊断参数三宫格 */
.rp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 12px; }
.rp-facts > div {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.rp-facts span { display: block; font-size: 11px; color: var(--txt-2); margin-bottom: 5px; }
.rp-facts b { font-size: 17px; font-family: var(--font-num); color: var(--txt-0); font-weight: 700; }
.rp-facts b i { font-size: 11px; font-style: normal; color: var(--txt-2); font-weight: 400; margin-left: 1px; }
@media (max-width: 1200px) { .rp-facts { grid-template-columns: repeat(3, 1fr); } }

/* 平台胶囊 */
.rp-plat-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--txt-1); background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 11px;
}
.rp-chip i { font-style: normal; font-size: 10px; color: var(--txt-2); font-family: var(--font-mono); }

/* 诊断进度 */
.rp-prog { margin-top: 16px; }
.rp-prog.hidden { display: none; }
.rp-prog-bar { height: 7px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.rp-prog-bar > i {
  display: block; height: 100%; width: 6%; border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.rp-prog-txt { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 11.5px; }
.rp-prog-txt b { color: var(--blue); font-weight: 600; }
.rp-prog-txt span { color: var(--txt-2); text-align: right; }

/* 任务记录里的迷你进度条 */
.rp-mini { height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 4px; }
.rp-mini > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .4s; }

/* 引擎「如何工作」步骤 */
.rp-steps { display: flex; flex-direction: column; gap: 12px; }
.rp-steps > div { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: center; }
.rp-steps i {
  grid-row: span 2; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(47,123,255,.1); color: var(--blue);
  font-size: 11.5px; font-style: normal; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rp-steps b { font-size: 12.5px; color: var(--txt-0); font-weight: 600; }
.rp-steps span { grid-column: 2; font-size: 11.5px; color: var(--txt-2); line-height: 1.75; }

/* 引擎配置页：监测平台行 */
.eg-plat { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eg-plat .eg-del {
  flex: none; width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--txt-2);
  font-size: 15px; line-height: 1; transition: .16s;
}
.eg-plat .eg-del:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,.06); }

/* 开关列表 */
.chk-row.eg-switch {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.chk-row.eg-switch:last-of-type { border-bottom: 0; }
.chk-row.eg-switch > span { font-size: 12.5px; color: var(--txt-0); display: flex; flex-direction: column; gap: 3px; }
.chk.eg-switch em { font-style: normal; font-size: 11px; color: var(--txt-2); }

/* 后台「服务进度」页：自动推导 + 人工覆盖 */
.pg-table td { vertical-align: top; }
.pg-desc { font-size: 11px; color: var(--txt-2); line-height: 1.7; margin-top: 3px; }
.pg-why { font-size: 11.5px; color: var(--txt-1); margin-top: 5px; line-height: 1.7; }
.pg-pct { font-size: 12.5px; margin-left: 6px; font-family: var(--font-num); }
.pg-ov { display: grid; grid-template-columns: 116px 88px; gap: 7px; align-items: center; }
.pg-ov .pg-sel { width: 100%; }
.pg-ov .pg-num { width: 100%; }
.pg-ov .pg-note { grid-column: 1 / -1; width: 100%; }
/* 操作列：按钮与「当前生效」上下排，避免挤成一团 */
.pg-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pg-acts .pg-cur { font-size: 11.5px; color: var(--txt-1); line-height: 1.6; }
.pg-acts .pg-cur b { font-family: var(--font-num); margin-left: 4px; }
.pg-adm-stage .card-title { align-items: flex-start; }

/* 前台服务进度页：执行步骤的「当前进展」证据行 */
.flow-ev { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 8px; }
.flow-ev-txt { font-size: 12px; color: var(--txt-1); }

/* ============ 报告引擎页（简化版：三步式） ============ */
.eg-wrap { max-width: 1020px; }
.eg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.eg-grid.eg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.eg-grid.eg-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .eg-grid { grid-template-columns: 1fr; } .eg-grid.eg-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.eg-grid .form-item { margin: 0; }
.eg-grid .inp { width: 100%; }

.eg-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.eg-actions .hint { flex: 1; min-width: 220px; margin: 0; }

/* 监测平台行 */
.eg-row { display: grid; grid-template-columns: 30px 190px 1fr 16px 28px; gap: 10px; align-items: center; margin-bottom: 8px; }
.eg-row .inp { width: 100%; }
.eg-row .eg-model { font-family: var(--font-mono); font-size: 11.8px; }
.eg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); justify-self: center; }
.eg-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(15, 176, 138, .16); }
.eg-dot.bad { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .16); }
/* warn：需要人看一眼，但**不属于**「可一键移除」的不匹配平台（如自带网关读不到列表） */
.eg-dot.warn { background: var(--orange); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16); }
/* 平台启停：取消勾选＝保留配置但不参与诊断调用 */
.eg-row .eg-on { width: 15px; height: 15px; margin: 0; cursor: pointer; justify-self: center; accent-color: var(--blue); }
.eg-row.eg-off { opacity: .55; }
.eg-row.eg-off .eg-dot { background: var(--txt-2); box-shadow: none; }
.eg-del {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; line-height: 1;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--txt-2); font-size: 15px; transition: .16s;
}
.eg-del:hover { border-color: var(--red); color: var(--red); background: rgba(239, 68, 68, .06); }
.eg-add { display: flex; gap: 10px; margin-top: 12px; }
.eg-add .inp { flex: 1; }

/* 提示等级 */
.hint.warn { color: var(--orange); }
.hint.ok { color: var(--green); }

/* 预计调用 */
.eg-cost { font-family: var(--font-num); font-size: 19px; font-weight: 700; color: var(--blue); line-height: 1.5; }
.eg-cost i { font-size: 11px; font-style: normal; font-weight: 400; color: var(--txt-2); margin-left: 2px; }
.eg-cost .eg-costsub { display: block; font-family: var(--font-sans); font-size: 11px; color: var(--txt-2); font-weight: 400; }

/* 开关区 */
.eg-switches { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 4px; }
.eg-switches .chk-row.eg-switch:last-of-type { border-bottom: 0; }

/* 高级设置折叠 */
.eg-adv { margin-top: 12px; }
.eg-adv > summary {
  cursor: pointer; list-style: none; font-size: 12px; color: var(--txt-1);
  padding: 9px 12px; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 10px; transition: .18s;
}
.eg-adv > summary::-webkit-details-marker { display: none; }
.eg-adv > summary::before { content: "▸ "; color: var(--blue); }
.eg-adv[open] > summary::before { content: "▾ "; }
.eg-adv > summary:hover { border-color: var(--blue); color: var(--blue); }

/* 底部操作条 */
.eg-bar {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 -6px 18px rgba(15, 30, 60, .06);
}
.eg-bar .hint { margin: 0; }

/* 连通测试结果 */
.eg-testhead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 14px 0 10px; font-size: 12.5px; color: var(--txt-0); }
.eg-testhead b { font-weight: 600; }
.eg-testhead em { font-style: normal; font-size: 11.5px; color: var(--orange); }
.eg-testhead.warn b { color: var(--orange); }

/* 报告页顶部：客户选择条 */
.rp-clientbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--blue);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.rp-clientbar > b { font-size: 12.5px; color: var(--txt-0); font-weight: 600; }
.rp-clientbar .sel { min-width: 240px; }
.rp-clientbar .rp-cb-meta { font-size: 11.5px; color: var(--txt-2); }

/* ============ 前台数据溯源标注 ============ */
.k-label.k-label-src { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.k-src {
  flex: none; font-size: 9.5px; font-style: normal; font-weight: 600; letter-spacing: .04em;
  padding: 1.5px 6px; border-radius: 5px; border: 1px solid;
}
.k-src.rep { color: var(--blue); border-color: rgba(47, 123, 255, .35); background: rgba(47, 123, 255, .08); }
.k-src.base { color: var(--txt-2); border-color: var(--border-2); background: var(--surface-3); }
.kpi-src-note {
  font-size: 11.5px; color: var(--txt-2); line-height: 1.85;
  margin: -4px 0 16px; padding-left: 2px;
}
.kpi-src-note b { color: var(--txt-1); font-weight: 600; }
.kpi-src-note a { color: var(--blue); text-decoration: none; }
.kpi-src-note a:hover { text-decoration: underline; }

/* ============ 报告引擎：模型绑定校验 ============ */
.eg-row.eg-unmatched {
  background: rgba(239, 68, 68, .05);
  border-radius: 8px;
  box-shadow: inset 3px 0 0 var(--red);
  padding-left: 8px;
}
.eg-row.eg-unmatched .eg-model { border-color: rgba(239, 68, 68, .5); color: var(--red); }
.eg-neg { color: var(--red); font-weight: 600; }
.eg-pos { color: var(--green); font-weight: 600; }
#eg-gw-note b { color: var(--txt-0); }
#eg-plat-fix { margin-top: 8px; }
#eg-plat-fix:empty { display: none; }

/* ============ 客户弹窗：登录账号管理 ============ */
.cm-acct {
  margin-top: 16px; padding: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
}
.cm-acct-h { font-size: 12.5px; font-weight: 600; color: var(--txt-0); margin-bottom: 10px; }
.cm-acct-h em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--txt-2); margin-top: 4px; line-height: 1.7; }
.cm-acct .tbl { background: var(--surface-1); border-radius: 8px; }
.cm-acct-new { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.cm-acct-new .inp { width: 190px; }
.cm-acct .hint { margin-top: 8px; margin-bottom: 0; }

/* ============ 诊断报告：本次诊断口径（品牌词 / 行业词 / 建议开关） ============ */
.rp-params {
  margin: 14px 0 4px; padding: 14px 15px 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
}
.rp-params-h {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.rp-params-h > b { font-size: 12.5px; color: var(--txt-0); font-weight: 600; }
.rp-params-h > span { font-size: 11.5px; color: var(--txt-2); }
.rp-link {
  margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 11.5px; color: var(--blue); font-family: inherit;
}
.rp-link:hover { text-decoration: underline; }
.rp-params .form-item { margin-bottom: 12px; }
.rp-params .form-item > label {
  display: block; font-size: 12px; color: var(--txt-1); margin-bottom: 6px; font-weight: 500;
}
.rp-params .form-item > label .req { color: var(--red); }
.rp-params .hint { margin: 6px 0 0; }
.rp-seg { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 3px; }
.rp-seg button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12px; color: var(--txt-1); padding: 6px 14px; border-radius: 7px;
  transition: background .16s, color .16s;
}
.rp-seg button:hover { color: var(--txt-0); }
.rp-seg button.on { background: var(--surface); color: var(--blue); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ============ 报告引擎：8 家平台接入体检 ============ */
/* 平台行扩成 6 列：名称 | 模型 | 网关地址 | 密钥 | 状态 | 删除 */
.eg-row { grid-template-columns: 30px 158px minmax(0,1.05fr) minmax(0,1fr) 152px 16px 28px; }
.eg-row .eg-base, .eg-row .eg-key { font-family: var(--font-mono); font-size: 11.2px; }
.eg-tablehead {
  display: grid; grid-template-columns: 30px 158px minmax(0,1.05fr) minmax(0,1fr) 152px 16px 28px;
  gap: 10px; margin: 0 0 7px; padding: 0 0 6px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px; color: var(--txt-2); letter-spacing: .3px;
}
@media (max-width: 1280px) {
  .eg-row, .eg-tablehead { grid-template-columns: 28px 132px minmax(0,1fr) minmax(0,1fr) 128px 14px 26px; }
}

.eg-plan-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 13px 15px; margin-bottom: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border); border-radius: 12px;
}
.eg-plan-stat { display: flex; align-items: baseline; gap: 4px; flex: none; }
.eg-plan-stat b { font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1; }
.eg-plan-stat span { font-size: 12.5px; color: var(--txt-1); }
.eg-plan-stat em { display: block; font-style: normal; font-size: 11px; color: var(--txt-2); margin-left: 2px; }
.eg-plan-txt { flex: 1; min-width: 260px; font-size: 12px; color: var(--txt-1); line-height: 1.75; }
.eg-plan-txt .hint { display: block; margin: 2px 0 0; }

/* 自带网关的平台之间「密钥重复」告警：不同官方网关不可能共用同一把 Key */
.eg-dup-warn {
  margin: -4px 0 12px; padding: 11px 14px;
  font-size: 12px; line-height: 1.75; color: var(--txt-1);
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .38);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
}
.eg-dup-warn b { color: var(--red); }
.eg-dup-warn code {
  padding: 1px 5px; font-size: 11px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--txt-0);
}
.eg-dup-warn b:last-of-type { color: var(--orange); }

/* 聚合网关共用密钥：正常用法，用中性的「信息条」而不是告警，避免误报吓人 */
.eg-share-note {
  margin: -4px 0 12px; padding: 10px 14px;
  font-size: 12px; line-height: 1.75; color: var(--txt-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--txt-2);
  border-radius: 10px;
}
.eg-share-note.ok {
  background: rgba(34, 197, 94, .07);
  border-color: rgba(34, 197, 94, .34);
  border-left-color: var(--green);
}
.eg-share-note.ok b { color: var(--green); }
.eg-share-note.info b { color: var(--txt-0); }
.eg-share-note code {
  padding: 1px 5px; font-size: 11px; border-radius: 4px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--txt-0);
}

.eg-plan-det { margin-top: 4px; }
.eg-plan-det > summary {
  cursor: pointer; font-size: 12px; color: var(--txt-1); padding: 9px 0;
  border-bottom: 1px solid var(--border); list-style: none;
}
.eg-plan-det > summary::-webkit-details-marker { display: none; }
.eg-plan-det > summary::before { content: '▸ '; color: var(--txt-2); }
.eg-plan-det[open] > summary::before { content: '▾ '; }
.eg-plan-det > summary:hover { color: var(--blue); }
.eg-plan-tbl { margin-top: 10px; }
.eg-plan-tbl td { vertical-align: top; font-size: 12px; }
.eg-plan-host {
  font-family: var(--font-mono); font-size: 11px; color: var(--txt-1);
  margin-top: 3px; word-break: break-all;
}
.eg-plan-note { font-size: 10.8px; color: var(--txt-2); line-height: 1.65; margin-top: 4px; }
.eg-plan-model { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-0); }
.eg-plan-link { display: inline-block; margin-top: 5px; font-size: 11.5px; color: var(--blue); text-decoration: none; }
.eg-plan-link:hover { text-decoration: underline; }

/* ============================================================
 * 服务进度 2.0（预置步骤 + 阶段分组 + 加深进度条）
 * 说明：进度条统一用「深色实心渐变」，前后都有对比色，浅底上也能一眼看清。
 * ============================================================ */
.pg2-hero { padding: 18px 20px 16px; }
.pg2-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pg2-hero-top h3 { font-size: 17px; font-weight: 700; color: var(--txt-0); margin: 0 0 6px; }
.pg2-hero-sub { font-size: 12.5px; color: var(--txt-1); }
.pg2-overall { text-align: right; line-height: 1; }
.pg2-overall b {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 34px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, #1f5fe0, #04a9c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg2-overall b i { font-style: normal; font-size: 15px; margin-left: 2px; }
.pg2-overall span { display: block; font-size: 11.5px; color: var(--txt-2); margin-top: 6px; }
.pg2-overall-bar {
  height: 12px; border-radius: 8px; background: #dfeaf8; overflow: hidden;
  margin: 16px 0 12px; box-shadow: inset 0 1px 3px rgba(16, 35, 63, .12);
}
.pg2-overall-bar > i {
  display: block; height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, #1f5fe0 0%, #2f7bff 45%, #04b4d4 100%);
  box-shadow: 0 0 0 1px rgba(31, 95, 224, .18) inset, 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: width .6s cubic-bezier(.3, .8, .3, 1);
}
.pg2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg2-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--txt-1); background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: 20px; padding: 4px 11px 4px 12px;
}
.pg2-chip b { font-family: var(--font-num); font-size: 12.5px; color: var(--txt-1); }
.pg2-chip.doing { background: #eaf2ff; border-color: #b9d3ff; color: #1f5fe0; }
.pg2-chip.doing b { color: #1f5fe0; }
.pg2-chip.done { background: #e7f8f2; border-color: #a9e5d1; color: #0a7f60; }
.pg2-chip.done b { color: #0a7f60; }

.pg2-stage { padding: 16px 20px 6px; }
.pg2-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pg2-stage-title h3 { font-size: 15px; font-weight: 700; color: var(--txt-0); margin: 0 0 5px; }
.pg2-stage-title h3::before {
  content: ''; display: inline-block; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #2f7bff, #04b4d4); margin-right: 8px; vertical-align: -2px;
}
.pg2-stage-meta { text-align: right; }
.pg2-stage-pct { font-family: var(--font-num); font-size: 21px; font-weight: 800; color: var(--txt-1); }
.pg2-stage-pct i { font-style: normal; font-size: 12px; margin-left: 1px; }
.pg2-stage-pct.done { color: #0a8566; }
.pg2-stage-pct.doing { color: #1f5fe0; }
.pg2-stage-meta span { display: block; font-size: 11.5px; color: var(--txt-2); margin-top: 3px; }
.pg2-stage-bar {
  height: 10px; border-radius: 6px; background: #e3ecf8; overflow: hidden;
  margin: 12px 0 18px; box-shadow: inset 0 1px 2px rgba(16, 35, 63, .1);
}
.pg2-stage-bar > i { display: block; height: 100%; border-radius: 6px; transition: width .55s ease; }
.pg2-stage-bar > i.done { background: linear-gradient(90deg, #0a7f60, #10b98c); }
.pg2-stage-bar > i.doing { background: linear-gradient(90deg, #1f5fe0, #04a9c9); }
.pg2-stage-bar > i.todo { background: #c3d3e7; }

/* 步骤条：加深 + 加粗，浅色底上也有明确对比 */
.flow-bar.lg { height: 10px; max-width: 100%; margin: 2px 0 12px; background: #dbe6f5; box-shadow: inset 0 1px 2px rgba(16, 35, 63, .12); }
.flow-fill.done { background: linear-gradient(90deg, #0a7f60, #10b98c); }
.flow-fill.doing { background: linear-gradient(90deg, #1f5fe0, #04a9c9); }
.flow-fill.todo { background: #c9d8ea; }
.flow-owner {
  font-size: 11px; color: var(--txt-1); background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px;
}
.flow-pct {
  margin-left: auto; font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 700; color: var(--txt-1);
}
.flow-pct.done { color: #0a8566; }
.flow-pct.doing { color: #1f5fe0; }
.flow-item + .flow-item { margin-top: 6px; }
.flow-desc { font-size: 12.4px; color: var(--txt-1); line-height: 1.72; margin-bottom: 10px; }

@media (max-width: 720px) {
  .pg2-hero-top { flex-direction: column; }
  .pg2-overall { text-align: left; }
  .pg2-stage-head { flex-direction: column; }
  .pg2-stage-meta { text-align: left; }
}
.pg-acts .pg-acts-row { display: flex; gap: 4px; }
