/* ═══════════════════════════════════════════
   业务职务套转自评 · 视觉样式
   ═══════════════════════════════════════════ */
:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fe;
  --line: #e8edf7;
  --line-strong: #dbe3f2;
  --text: #18233f;
  --text-mid: #52617d;
  --text-soft: #8b98b2;
  --primary: #4263eb;
  --primary-dark: #3144c9;
  --primary-soft: #edf1ff;
  --accent: #12b886;
  --warn: #f08c00;
  --warn-soft: #fff6e5;
  --danger: #e0574d;
  --shadow: 0 14px 40px rgba(30, 56, 104, .08), 0 2px 8px rgba(30, 56, 104, .04);
  --shadow-sm: 0 4px 16px rgba(30, 56, 104, .06);
  --shadow-lg: 0 24px 60px rgba(28, 44, 92, .16);
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 400px at 90% -80px, rgba(66, 99, 235, .08), transparent 70%),
    radial-gradient(700px 400px at 0% 10%, rgba(18, 184, 134, .05), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.app { max-width: 1120px; margin: 0 auto; padding: 0 24px 44px; }

/* ── 顶部主视觉 ── */
.hero {
  position: relative;
  margin: 0 -24px 0;
  padding: 26px 0 78px;
  background: linear-gradient(118deg, #1d2f66 0%, #2f4bb0 48%, #4263eb 100%);
  overflow: hidden;
  border-radius: 0 0 30px 30px;
}
.hero-decor { position: absolute; inset: 0; }
.hero-decor svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.4; color: #fff; }
.brand-text strong { font-size: 18px; letter-spacing: .5px; }
.brand-text span { font-size: 12px; color: rgba(255, 255, 255, .72); }
.hero-stats { display: flex; gap: 34px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; color: #fff; line-height: 1.3; }
.hero-stat strong { font-size: 24px; font-weight: 700; }
.hero-stat span { font-size: 11px; color: rgba(255, 255, 255, .72); letter-spacing: .5px; }

/* ── 步骤条 ── */
.stepper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -46px auto 30px;
  padding: 14px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 600px;
}
.step { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.step-dot {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #edf1f8;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: all .3s ease;
}
.step-dot .step-tick {
  position: absolute;
  width: 17px; height: 17px;
  fill: none; stroke: #fff; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
  transform: scale(.5);
  transition: all .25s ease;
}
.step-label { font-size: 13px; color: var(--text-soft); white-space: nowrap; transition: color .25s ease; }
.step.is-current .step-dot { background: var(--primary); color: #fff; box-shadow: 0 5px 14px rgba(66, 99, 235, .4); }
.step.is-current .step-label { color: var(--text); font-weight: 700; }
.step.is-done .step-dot { background: var(--accent); box-shadow: none; }
.step.is-done .step-num { opacity: 0; }
.step.is-done .step-tick { opacity: 1; transform: scale(1); }
.step.is-done .step-label { color: var(--text-mid); }
.step-line { flex: 1 1 60px; height: 3px; background: #edf1f8; border-radius: 3px; overflow: hidden; }
.step-line-fill { display: block; width: 0; height: 100%; background: var(--accent); transition: width .45s ease; }
.step-line.is-done .step-line-fill { width: 100%; }

/* ── 视图切换 ── */
.view { display: none; animation: rise .4s cubic-bezier(.22,.8,.3,1) both; }
.view.is-active { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── 身份信息：双栏 ── */
.entry-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 20px; align-items: stretch; }
.entry-card { padding: 34px 36px 28px; }
.entry-head { margin-bottom: 26px; }
.entry-kicker, .section-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.entry-head h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: .5px; }
.entry-head p { margin: 0; color: var(--text-mid); font-size: 13.5px; line-height: 1.75; }

.entry-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.field-label em { color: var(--danger); font-style: normal; }
.input-wrap { position: relative; display: block; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  fill: none; stroke: #9aa9c4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s;
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 43px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(66, 99, 235, .1);
}
.field input:focus ~ .input-icon { stroke: var(--primary); }
.field input::placeholder { color: #aeb9cc; }
.field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(224, 87, 77, .1); }
.field-error { min-height: 16px; font-size: 12px; color: var(--danger); }
.privacy-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--text-soft); font-size: 11.5px;
}
.privacy-note svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* 说明卡 */
.intro-card {
  padding: 30px 32px;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9ff 100%);
}
.intro-card h2 { margin: 0 0 4px; font-size: 19px; }
.intro-lead { margin: 0 0 20px; font-size: 12.5px; color: var(--text-soft); }
.intro-dims { display: flex; flex-direction: column; gap: 10px; }
.intro-dim {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.intro-dim:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.intro-icon {
  width: 36px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--i-soft); color: var(--i);
}
.intro-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.intro-dim > div { flex: 1; display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.intro-dim strong { font-size: 13px; }
.intro-dim span { font-size: 11px; color: var(--text-soft); }
.intro-dim > b { font-size: 19px; color: var(--i); font-variant-numeric: tabular-nums; }
.intro-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(100deg, #eef2ff, #e9fbf5);
  font-size: 13px; color: var(--text-mid);
}
.intro-total strong { font-size: 17px; color: var(--primary-dark); }
.intro-tip { margin-top: 14px; font-size: 11.5px; color: var(--text-soft); line-height: 1.7; }
.intro-tip span {
  display: inline-block; margin-right: 5px;
  padding: 1px 7px; border-radius: 5px;
  background: var(--warn-soft); color: var(--warn); font-weight: 700;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 11px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(120deg, #4263eb, #3450d6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(66, 99, 235, .3);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(66, 99, 235, .4); filter: brightness(1.04); }
.btn-lg { height: 50px; font-size: 15px; margin-top: 6px; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--text-mid); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ── 填报页 ── */
.assess-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.assess-head .section-kicker { margin-bottom: 8px; }
.assess-head h2 { margin: 0 0 3px; font-size: 22px; }
.assess-head p { margin: 0; color: var(--text-mid); font-size: 13px; }

.progress-card { padding: 14px 20px; margin-bottom: 18px; }
.progress-top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-mid); margin-bottom: 9px; }
.progress-top strong { color: var(--primary); font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; border-radius: 7px; background: #edf1f8; overflow: hidden; }
.progress-fill {
  display: block; width: 0; height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #4263eb, #12b886);
  transition: width .4s cubic-bezier(.22,.8,.3,1);
}

.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.dim-card { padding: 22px 24px 18px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.dim-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dim-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--dim-color), var(--dim-color) 55%, transparent);
}
.dim-card::after {
  content: ""; position: absolute;
  top: 30px; right: -30px; width: 100px; height: 100px; border-radius: 50%;
  background: var(--dim-soft); opacity: .45; pointer-events: none;
}
.dim-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; position: relative; z-index: 1; }
.dim-icon {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--dim-soft); color: var(--dim-color);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.dim-icon svg { width: 22px; height: 22px; }
.dim-title { flex: 1; min-width: 0; }
.dim-title h3 { margin: 0; font-size: 15.5px; }
.dim-title p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-soft); }
.dim-cap {
  flex: 0 0 auto; padding: 5px 11px; border-radius: 999px;
  background: var(--dim-soft); color: var(--dim-color);
  font-size: 12px; font-weight: 700;
}
.dim-fields { display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 1; }
.field-row { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field-row .row-label { position: relative; padding-right: 74px; font-size: 12px; font-weight: 600; color: var(--text-mid); }
.field-row select {
  width: 100%; height: 42px;
  padding: 0 36px 0 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b98b2' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  appearance: none; outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field-row select:focus { border-color: var(--dim-color); background-color: #fff; box-shadow: 0 0 0 4px var(--dim-soft); }
.field-row select:not([value=""]) { color: var(--text); }
.field-note { font-size: 11px; color: var(--text-soft); line-height: 1.55; }
.field-note.warn { color: var(--warn); }
.sub-note {
  margin-top: 2px; padding: 9px 12px;
  border-radius: 9px; background: var(--dim-soft); color: var(--dim-color);
  font-size: 12px; font-weight: 600;
}
.dim-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--text-soft);
  position: relative; z-index: 1;
}
.dim-score strong { font-size: 20px; color: var(--dim-color); margin-left: 5px; font-variant-numeric: tabular-nums; }
.dim-score strong.negative { color: var(--danger); }
.pick-line { font-size: 11px; color: var(--text-soft); max-width: 62%; text-align: right; line-height: 1.5; }

/* 底部操作条 */
.action-bar {
  position: sticky; bottom: 18px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 22px; padding: 14px 18px 14px 24px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 16px 44px rgba(28, 44, 92, .16);
}
.live-score { display: flex; align-items: baseline; gap: 8px; color: var(--text-mid); font-size: 13px; }
.live-score strong {
  font-size: 34px; line-height: 1; font-weight: 700;
  background: linear-gradient(120deg, #4263eb, #12b886);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.live-score strong.negative { background: none; color: var(--danger); }
.live-score small { font-size: 13px; }
.action-buttons { display: flex; gap: 10px; }

/* ── 结果页 ── */
.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 30px 36px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(120deg, #1b2b5e 0%, #2f49a8 52%, #4263eb 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(31, 55, 130, .28);
}
.result-glow {
  position: absolute; right: 8%; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);
}
.result-headline { position: relative; z-index: 1; }
.result-headline .section-kicker { background: rgba(255,255,255,.15); color: #fff; }
.result-headline h2 { margin: 0 0 18px; font-size: 23px; }
.result-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.result-avatar {
  width: 52px; height: 52px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 22px; font-weight: 700;
}
.result-name { font-size: 18px; font-weight: 700; word-break: break-all; }
.result-empno { font-size: 12px; color: rgba(255,255,255,.7); word-break: break-all; }

.score-gauge { position: relative; width: 132px; height: 132px; z-index: 1; }
.score-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 10; }
.gauge-fill {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 351.86; stroke-dashoffset: 351.86;
  filter: drop-shadow(0 2px 6px rgba(122,162,255,.7));
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,.8,.3,1);
}
.gauge-fill.is-negative { stroke: #ff8787; filter: none; }
.gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-text strong { font-size: 38px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauge-text span { font-size: 12px; color: rgba(255,255,255,.72); }

.level-panel { text-align: center; z-index: 1; }
.level-caption { font-size: 12px; color: rgba(255,255,255,.72); }
.level-badge {
  display: block; margin: 8px 0 6px;
  padding: 8px 0;
  border-radius: 16px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  font-size: 28px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.level-range { font-size: 12px; color: rgba(255,255,255,.78); }

/* 等级标尺 */
.ruler-card { padding: 18px 24px 22px; margin-bottom: 18px; }
.ruler-title { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.ruler-title span { font-size: 11.5px; color: var(--text-soft); font-weight: 400; }
.level-ruler { display: flex; gap: 4px; }
.ruler-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ruler-bar { width: 100%; height: 8px; border-radius: 5px; background: #e9eef8; transition: background .3s, box-shadow .3s; }
.ruler-label { font-size: 10px; color: var(--text-soft); white-space: nowrap; }
.ruler-item.is-low .ruler-bar { background: #d3def2; }
.ruler-item.is-mid .ruler-bar { background: #8fa8f5; }
.ruler-item.is-high .ruler-bar { background: #5b7cf0; }
.ruler-item.is-hit .ruler-bar {
  background: linear-gradient(90deg, #4263eb, #12b886);
  box-shadow: 0 3px 12px rgba(66,99,235,.4);
  height: 12px;
}
.ruler-item.is-hit .ruler-label { color: var(--primary); font-weight: 700; font-size: 11px; }

/* 结果网格 */
.result-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 18px; }
.result-grid .card { padding: 22px 24px; }
.card-title { margin: 0 0 16px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }

/* 四维条形图 */
.breakdown { display: flex; flex-direction: column; gap: 11px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.bar-row { display: grid; grid-template-columns: 84px 1fr 46px; align-items: center; gap: 10px; font-size: 12px; }
.bar-name { color: var(--text-mid); white-space: nowrap; }
.bar-track { height: 8px; border-radius: 6px; background: #edf1f8; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--bar-color); width: 0; transition: width .9s cubic-bezier(.22,.8,.3,1); }
.bar-fill.is-neg { background: var(--danger); }
.bar-value { text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.bar-value.is-neg { color: var(--danger); }

.detail-table-wrap { overflow-x: auto; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th, .detail-table td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.detail-table th { color: var(--text-soft); font-weight: 500; font-size: 12px; }
.detail-table td:last-child, .detail-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-table td:nth-child(2) { color: var(--text-mid); }
.detail-table .score-pos { color: var(--primary); font-weight: 700; }
.detail-table .score-neg { color: var(--danger); font-weight: 700; }
.detail-total {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 5px;
  margin-top: 14px; padding-top: 14px;
  border-top: 2px solid var(--line);
  color: var(--text-mid); font-size: 13px;
}
.detail-total strong { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }

.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice {
  display: flex; gap: 10px;
  padding: 12px 13px;
  border-radius: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-mid); line-height: 1.6;
}
.notice .notice-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.notice.is-info { background: var(--primary-soft); border-color: #dae3ff; color: #2a4ba8; }
.notice.is-warn { background: var(--warn-soft); border-color: #fbe4b4; color: #95600a; }
.notice.is-ok { background: #e7faf3; border-color: #c5eddf; color: #0b7d67; }

.rules-card { padding: 0; margin-bottom: 18px; overflow: hidden; }
.rules-card summary {
  padding: 16px 24px; cursor: pointer;
  font-size: 14px; font-weight: 600;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.rules-card summary::-webkit-details-marker { display: none; }
.rules-card summary::after { content: "+"; color: var(--text-soft); font-size: 19px; }
.rules-card[open] summary::after { content: "−"; }
.rules-card[open] summary { border-bottom: 1px solid var(--line); }
.rules-body { padding: 18px 24px 22px; font-size: 13px; color: var(--text-mid); }
.rules-body h4 { margin: 0 0 10px; font-size: 13px; color: var(--text); }
.rules-body h4:not(:first-child) { margin-top: 18px; }
.rules-body ul { margin: 0; padding-left: 20px; }
.rules-body li { margin-bottom: 6px; }
.level-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.level-chip {
  padding: 8px 10px; border-radius: 9px;
  background: var(--surface-soft); border: 1px solid var(--line);
  font-size: 12px; color: var(--text-mid); text-align: center;
}
.level-chip.is-hit { background: var(--primary-soft); border-color: #bed0ff; color: var(--primary-dark); font-weight: 700; }
.level-chip b { color: var(--text); margin-right: 5px; }
.level-chip.is-hit b { color: var(--primary-dark); }

.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer { margin-top: 30px; text-align: center; font-size: 11.5px; color: var(--text-soft); }

/* ── 打印 ── */
@media print {
  body { background: #fff; }
  .hero, .stepper, .action-bar, .result-actions, .footer, .rules-card, .progress-card { display: none !important; }
  .view { display: none !important; }
  .view.is-active { display: block !important; }
  .card { box-shadow: none; border-color: #ccc; }
  .result-hero { background: #1b2b5e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .result-grid { break-inside: avoid; }
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .entry-layout { grid-template-columns: 1fr; }
  .cards-grid, .result-grid { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr auto; row-gap: 18px; }
  .level-panel { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
}
@media (max-width: 600px) {
  .app { padding: 0 14px 28px; }
  .hero { margin: 0 -14px; padding: 18px 0 74px; border-radius: 0 0 24px 24px; }
  .hero-inner { padding: 0 18px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 19px; }
  .hero-stat span { font-size: 10px; }
  .stepper { padding: 11px 14px; gap: 4px; margin-bottom: 22px; }
  .step-label { font-size: 11px; }
  .step-dot { width: 27px; height: 27px; font-size: 12px; }
  .entry-card { padding: 26px 20px 22px; }
  .intro-card { padding: 24px 20px; }
  .entry-head h1 { font-size: 23px; }
  .assess-head { align-items: flex-start; }
  .assess-head h2 { font-size: 19px; }
  .dim-card { padding: 18px 18px 16px; }
  .action-bar { flex-direction: column; align-items: stretch; gap: 12px; bottom: 10px; padding: 14px 16px; }
  .live-score { justify-content: center; }
  .action-buttons { display: grid; grid-template-columns: 1fr 1.6fr; }
  .result-hero { padding: 22px 18px; grid-template-columns: auto auto; gap: 14px; border-radius: 20px; }
  .score-gauge { width: 104px; height: 104px; }
  .gauge-text strong { font-size: 30px; }
  .result-name { font-size: 16px; }
  .result-grid .card { padding: 18px 16px; }
  .level-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn { padding: 0 14px; }
  .ruler-card { padding: 16px 14px 18px; }
  .ruler-label { font-size: 9px; }
  .bar-row { grid-template-columns: 70px 1fr 40px; gap: 7px; }
}

/* ═══════════════════════════════════════════
   扩展：人员类别 / 专项情形判定
   ═══════════════════════════════════════════ */
[hidden] { display: none !important; }

/* 人员类别选择 */
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cat-option {
  position: relative;
  display: flex; align-items: flex-start; gap: 9px;
  min-height: 62px; padding: 11px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.cat-option:hover { border-color: #a9bdf7; background: #fff; transform: translateY(-1px); }
.cat-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-check {
  flex: 0 0 auto;
  width: 19px; height: 19px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid #c3cee2;
  background: #fff;
  color: transparent;
  font-size: 11px; font-weight: 800;
  transition: all .2s;
}
.cat-body { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.cat-body strong { font-size: 12.5px; color: var(--text); }
.cat-body small { font-size: 10.5px; color: var(--text-soft); margin-top: 2px; }
.cat-option.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(66, 99, 235, .09);
}
.cat-option.is-active .cat-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-option.is-active .cat-body strong { color: var(--primary-dark); }
.cat-wide { grid-column: 1 / -1; }

/* 专项填报卡 */
.special-form { padding: 26px 28px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.special-form::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, #7950f2, #4263eb 55%, #12b886);
}
.special-form-head { margin-bottom: 20px; }
.special-tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 11px;
  border-radius: 999px; background: #f3edff; color: #7048d8;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.special-form-head h3 { margin: 0 0 7px; font-size: 19px; }
.special-form-head p { margin: 0; color: var(--text-mid); font-size: 13px; line-height: 1.7; }
.special-form-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.special-field .field-row > span { color: var(--text); }
.special-field select:focus { border-color: #7950f2; box-shadow: 0 0 0 4px #f3edff; }
.special-form-note {
  margin-top: 18px; padding: 11px 14px;
  border-radius: 10px; background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  color: var(--text-mid); font-size: 12px; line-height: 1.65;
}
.live-score strong.is-text {
  font-size: 19px; background: none; color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

/* 专项结果主视觉 */
.special-result {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 28px;
  padding: 32px 38px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(120deg, #221a52 0%, #4b3aa8 52%, #7950f2 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(70, 45, 160, .3);
}
.special-result-glow {
  position: absolute; left: 40%; top: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 68%);
}
.special-result-head { position: relative; z-index: 1; min-width: 0; }
.section-kicker.is-light { background: rgba(255,255,255,.16); color: #fff; }
.special-result-head h2 { margin: 0 0 16px; font-size: 23px; }
.special-result-identity {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.85);
}
.special-result-identity i { width: 1px; height: 12px; background: rgba(255,255,255,.3); }
.special-result-avatar {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 9px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 14px; font-weight: 700;
}
.special-result-verdict {
  position: relative; z-index: 1; text-align: center;
  min-width: 240px; max-width: 320px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
}
.verdict-caption { font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.75); }
.verdict-badge {
  margin: 9px 0 11px; padding: 10px 14px;
  border-radius: 13px;
  background: rgba(255,255,255,.18);
  font-size: 23px; font-weight: 700; line-height: 1.3;
  word-break: break-all;
}
.verdict-reason { margin: 0; font-size: 12px; color: rgba(255,255,255,.82); line-height: 1.65; }
.special-result-meta {
  grid-column: 1 / -1; position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18);
}
.meta-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 12px; border-radius: 9px;
  background: rgba(255,255,255,.1);
  font-size: 12px;
}
.meta-item span { color: rgba(255,255,255,.68); }
.meta-item b { color: #fff; font-weight: 700; }

/* 专项判定表格 / 规则脚注 */
.detail-table .verdict-cell { color: #7048d8; font-weight: 700; text-align: right; white-space: normal; }
.rules-body .rule-note { color: var(--text-soft); font-style: normal; font-size: 12px; }
.rules-footnote { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-soft); color: var(--text-soft); font-size: 11.5px; line-height: 1.7; }

/* 打印：专项结果同样保留 */
@media print {
  .special-result { background: #3b2b86 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .special-form { display: none !important; }
}

/* 响应式补充 */
@media (max-width: 900px) {
  .special-result { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .special-result-verdict { max-width: none; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
  .cat-option { min-height: 54px; padding: 9px 11px; }
  .special-form { padding: 22px 18px 18px; }
  .special-form-fields { grid-template-columns: 1fr; gap: 14px; }
  .special-result { padding: 22px 18px; border-radius: 20px; }
  .special-result-head h2 { font-size: 19px; }
  .verdict-badge { font-size: 20px; }
  .meta-item { font-size: 11px; padding: 6px 10px; }
  .field-row .row-label { padding-right: 0; }
  .ok-slot { position: static; margin-top: -4px; }
}

/* ═══════════════════════════════════════════
   动效：填写确认 / 过场加载 / 结果渐入
   ═══════════════════════════════════════════ */
/* 顶部过场条 */
.page-loader {
  position: fixed; left: 0; right: 0; top: 0;
  height: 3px; z-index: 9999; pointer-events: none; opacity: 0;
}
.page-loader span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #4263eb, #7950f2 48%, #12b886);
  box-shadow: 0 0 12px rgba(66, 99, 235, .7);
}
.page-loader.is-running { opacity: 1; }
.page-loader.is-running span { animation: loaderRun .5s cubic-bezier(.22,.8,.3,1) forwards; }
@keyframes loaderRun {
  0%   { width: 0; opacity: 1; }
  72%  { width: 92%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* 单条填报：扫光 + 已记录 */
.ok-slot { position: absolute; right: 2px; top: -3px; pointer-events: none; }
.row-ok {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #e7faf3; color: #0b8a6f;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  animation: okPop .32s cubic-bezier(.22,.8,.3,1) both;
}
@keyframes okPop {
  from { opacity: 0; transform: scale(.7) translateY(3px); }
  to   { opacity: 1; transform: none; }
}
.select-wrap { position: relative; display: block; }
.select-wrap select { display: block; }
.sweep {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; opacity: 0;
  border-radius: 10px; pointer-events: none;
  background: linear-gradient(90deg, rgba(66,99,235,.04), rgba(66,99,235,.24), rgba(18,184,134,.3), rgba(18,184,134,.03));
}
.field-row.is-filled .sweep { animation: sweepRun .72s cubic-bezier(.22,.8,.3,1); }
@keyframes sweepRun {
  0%   { width: 0; opacity: 0; }
  18%  { opacity: 1; }
  75%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}
.field-row.is-filled .select-wrap select { animation: rowPulse .5s ease-out; }
@keyframes rowPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.012); }
  100% { transform: scale(1); }
}

/* 数字变化弹跳 */
.bump { display: inline-block; animation: numBump .45s cubic-bezier(.22,.8,.3,1); }
@keyframes numBump {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* 结果区渐入 */
.ruler-card, .result-grid .card { animation: softIn .5s both; }
.ruler-card { animation-delay: .03s; }
.result-grid .card:nth-child(1) { animation-delay: .09s; }
.result-grid .card:nth-child(2) { animation-delay: .17s; }
.notice-list .notice { animation: softIn .4s both; }
.notice-list .notice:nth-child(1) { animation-delay: .05s; }
.notice-list .notice:nth-child(2) { animation-delay: .1s; }
.notice-list .notice:nth-child(3) { animation-delay: .15s; }
.notice-list .notice:nth-child(4) { animation-delay: .2s; }
.notice-list .notice:nth-child(n+5) { animation-delay: .25s; }
@keyframes softIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
