:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #17262f;
  --ink-2: #4c5f6b;
  --faint: #8a9aa5;
  --line: #dde5ec;
  --brand: #1b4f72;
  --brand-2: #2b7aab;
  --brand-soft: #eaf2f8;
  --good: #0e7a5f;
  --warn: #c58a2b;
  --bad: #b04a4a;
  --gold: #c8a24a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23, 38, 47, .04), 0 8px 24px rgba(23, 38, 47, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px 56px; }

header.topbar {
  background: linear-gradient(135deg, #123a56, #1b4f72 45%, #2b7aab);
  color: #fff;
  padding: 26px 0 34px;
}
header.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 0; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); font-weight: 700; letter-spacing: 1px; font-size: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
}
.brand h1 { margin: 0; font-size: 21px; letter-spacing: .5px; font-weight: 650; }
.brand p { margin: 2px 0 0; font-size: 13px; opacity: .78; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: #fff; border: 1px solid rgba(255, 255, 255, .35); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; background: rgba(255, 255, 255, .08);
}
.nav-links a.active { background: #fff; color: var(--brand); border-color: #fff; font-weight: 600; }

h2.section { margin: 28px 0 14px; font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
h2.section .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--brand-2); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .label { font-size: 12.5px; color: var(--faint); letter-spacing: .5px; }
.kpi .value { font-size: 30px; font-weight: 700; line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }

.grid-2 { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; align-items: start; }
.grid-2.small { grid-template-columns: 1fr 1fr; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 6px; }

input[type=text], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: #fdfefe; font: inherit; color: var(--ink); outline: none;
}
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(43, 122, 171, .12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; letter-spacing: .3px;
}
.btn:hover { background: #163f5c; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.lg { width: 100%; padding: 14px 20px; font-size: 16px; border-radius: 13px; }

.scenario-list { display: grid; gap: 10px; }
.scenario {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start; background: #fdfefe; transition: .15s;
}
.scenario:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.scenario.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43, 122, 171, .1); }
.scenario .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; margin-top: 3px; }
.scenario.sel .radio { border-color: var(--brand); background: radial-gradient(circle at center, var(--brand) 0 5px, transparent 5px); }
.scenario .t { font-weight: 650; }
.scenario .m { font-size: 12.5px; color: var(--faint); margin-top: 3px; }

.dropzone {
  border: 2px dashed #cbd8e4; border-radius: 14px; padding: 26px 18px; text-align: center;
  background: #fbfdff; cursor: pointer; transition: .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand-2); background: var(--brand-soft); }
.dropzone .big { font-size: 15px; font-weight: 650; }
.dropzone .sub { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

.progress { margin-top: 16px; }
.bar { height: 9px; border-radius: 999px; background: #e8eef4; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .25s; }
.progress .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 7px; }

.steps { display: grid; gap: 8px; margin-top: 18px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--faint); }
.step .bul { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.step.done { color: var(--good); }
.step.done .bul { border-color: var(--good); color: var(--good); }
.step.now { color: var(--brand); font-weight: 600; }
.step.now .bul { border-color: var(--brand); background: var(--brand); color: #fff; }

.result-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.score-ring {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: conic-gradient(var(--brand) var(--deg, 0deg), #e6edf3 0); position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.score-ring .inner { position: relative; z-index: 1; text-align: center; }
.score-ring .num { font-size: 40px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.score-ring .of { font-size: 12px; color: var(--faint); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid; }
.chip.S { color: #0e7a5f; border-color: #b6e0d3; background: #eef8f4; }
.chip.A { color: #2f8f6b; border-color: #c3e3d4; background: #f0f8f4; }
.chip.B { color: #a97a1f; border-color: #efdcb4; background: #fdf6e7; }
.chip.C { color: #a35f2f; border-color: #eed3c1; background: #fdf1e9; }
.chip.D { color: #a94b4b; border-color: #f0c9c9; background: #fdeeee; }

.dims { display: grid; gap: 12px; margin-top: 8px; }
.dim .hd { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.dim .hd b { font-variant-numeric: tabular-nums; }
.dim .bar { height: 8px; }

.advice { display: grid; gap: 10px; margin-top: 4px; }
.advice .item { border-left: 3px solid var(--brand-2); padding: 8px 0 8px 12px; }
.advice .item .t { font-weight: 650; font-size: 14px; }
.advice .item .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; }

.note { background: #fbfdff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); }
.note b { color: var(--ink); }

.transcript { font-size: 13px; color: var(--ink-2); line-height: 1.75; max-height: 260px; overflow: auto; padding: 12px; background: #f8fafc; border-radius: 10px; border: 1px solid var(--line); }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; font-weight: 600; color: var(--faint); font-size: 12px; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid #f0f4f8; }
table.list tr:hover td { background: #fafcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 26px; text-align: center; color: var(--faint); font-size: 13.5px; }

.bars { display: grid; gap: 10px; }
.bars .r { display: grid; grid-template-columns: 92px 1fr 52px; gap: 10px; align-items: center; font-size: 13px; }
.bars .r .n { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .r .track { display:block; height: 10px; background: #eef3f7; border-radius: 999px; overflow: hidden; }
.bars .r .fill { display:block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9fc4dc, var(--brand)); }
.bars .r .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 16px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; font-weight: 600; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

.modal-mask { position: fixed; inset: 0; background: rgba(15, 28, 38, .45); display: grid; place-items: center; padding: 18px; z-index: 40; }
.modal { background: #fff; border-radius: 18px; max-width: 720px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.modal .hd { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal .hd b { font-size: 16px; }
.modal .bd { padding: 18px 22px 24px; }
.x { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--faint); line-height: 1; }

.toast {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%) translateY(-16px);
  background: #17262f; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.toast.err { background: #8f3535; }

.hidden { display: none !important; }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: .18s; }
.entry:hover { transform: translateY(-2px); border-color: #c3d6e5; }
.entry .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 20px; }
.entry b { font-size: 17px; }
.entry p { margin: 0; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.entry .go { font-size: 13px; font-weight: 650; color: var(--brand); }

.foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 34px; line-height: 1.9; }

@media (max-width: 860px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.small, .entry-grid { grid-template-columns: 1fr; }
  header.topbar { padding: 18px 0 24px; }
  .brand h1 { font-size: 18px; }
  .score-ring { width: 112px; height: 112px; }
  .score-ring .num { font-size: 34px; }
  table.list { font-size: 12.5px; }
  table.list th:nth-child(3), table.list td:nth-child(3) { display: none; }
}


