/* ------------------------------------------------------------------
   智作人 · 问卷 / 后台统计
   风格：简约 · 清新 · 互联网 toC
   ------------------------------------------------------------------ */
:root {
  --bg: #f5f9fb;
  --card: #ffffff;
  --ink: #0f1f2e;
  --ink-2: #3b4b5c;
  --muted: #8496a8;
  --line: #e8f0f5;
  --line-strong: #d9e5ee;
  --accent: #0e9f9a;
  --accent-dark: #0b847f;
  --accent-soft: #e7f8f6;
  --accent-2: #0ea5e9;
  --sky-soft: #e9f6fe;
  --danger: #e5484d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 31, 46, .03), 0 12px 32px -20px rgba(15, 31, 46, .18);
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 105% -8%, #e2f6f4 0%, transparent 58%),
    radial-gradient(820px 460px at -8% 2%, #e6f3fd 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 240, 245, .9);
}
.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #0e9f9a, #27c4b4);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 16px -8px rgba(14, 159, 154, .75);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15px; letter-spacing: .01em; }
.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-meta { display: flex; align-items: center; gap: 10px; flex: none; }
.pill-soft {
  font-size: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #cdeeea;
  padding: 3px 10px;
  border-radius: 999px;
}
.step-indicator { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-track { height: 3px; background: #e9f1f5; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------- 布局 ---------------- */
.survey-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 130px;
}
.step { display: none; }
.step.is-active { display: block; animation: rise .32s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step-head { margin-bottom: 24px; }
.step-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 500;
  color: #0284c7;
  background: var(--sky-soft);
  border: 1px solid #d3edfc;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.step-head h1 {
  font-size: clamp(25px, 4.2vw, 34px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.step-head > p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 64ch;
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-soft {
  background: rgba(255, 255, 255, .66);
  box-shadow: none;
  border-style: dashed;
  border-color: var(--line-strong);
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-title-row h3 { font-size: 15px; font-weight: 600; }
.tag-muted { font-size: 12px; color: var(--muted); font-weight: 400; }
.tag-accent {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #cdeeea;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 500;
  vertical-align: middle;
}

.q-head { display: flex; gap: 13px; margin-bottom: 18px; }
.q-no {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 650;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.q-title { min-width: 0; }
.q-title h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.q-hint { margin-top: 5px; font-size: 13px; color: var(--muted); }

/* ---------------- 表单 ---------------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.grid > .field { margin-top: 0; }
.card > .field:first-of-type { margin-top: 0; }
.flabel { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.flabel em { color: var(--accent); font-style: normal; }
.flabel i { color: var(--muted); font-style: normal; font-weight: 400; font-size: 12px; }

input[type="text"], input[type="number"], input[type="password"], input[type="search"], textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-size: 14px;
}
textarea { resize: vertical; min-height: 44px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #aebbc7; }
input:hover, textarea:hover { border-color: #c3d4e0; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 159, 154, .12);
}
input.is-invalid, textarea.is-invalid, .chips.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .1);
}
input[type="number"] { font-variant-numeric: tabular-nums; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* 选项 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; user-select: none; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  transition: all .15s;
  line-height: 1.4;
}
.chip:hover span { border-color: #b9dbe4; background: #f7fcfc; }
.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(14, 159, 154, .8);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 工具卡 */
.tool-grid { gap: 16px; }
.tool-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
  padding: 16px 18px 18px;
  margin: 0;
  min-width: 0;
}
.tool-card legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-card .field:first-of-type { margin-top: 4px; }

/* 优先级 */
.priority-grid { align-items: stretch; }
.priority-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.priority-card .field:first-of-type { margin-top: 10px; }
.priority-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  background: var(--sky-soft);
  border: 1px solid #d3edfc;
  border-radius: 999px;
  padding: 2px 10px;
}
.priority-card:first-child { border-color: #c9ece8; background: #f4fcfb; }
.priority-card:first-child .priority-badge { color: var(--accent-dark); background: var(--accent-soft); border-color: #cdeeea; }

/* 第四页分组 */
.group-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.group-option { cursor: pointer; position: relative; }
.group-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.group-option-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  height: 100%;
  transition: all .15s;
}
.group-option-inner > strong {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: #eef5f8;
  color: var(--ink-2);
  font-size: 14px;
}
.group-option-inner > span { display: flex; flex-direction: column; min-width: 0; }
.group-option-inner b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.group-option-inner i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.group-option:hover .group-option-inner { border-color: #b9dbe4; background: #f9fdfd; }
.group-option input:checked + .group-option-inner {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.group-option input:checked + .group-option-inner > strong { background: var(--accent); color: #fff; }
.group-option input:focus-visible + .group-option-inner { outline: 2px solid var(--accent); outline-offset: 2px; }

.group-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
  animation: rise .3s ease both;
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.panel-head h3 { font-size: 15px; font-weight: 600; }

.submit-note {
  margin: 4px 0 0;
  padding: 14px 18px;
  border-radius: 13px;
  background: var(--sky-soft);
  border: 1px solid #d3edfc;
  font-size: 13px;
  color: #075985;
}

/* ---------------- 导航按钮 ---------------- */
.step-nav {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 25;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
}
.step-nav::before {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 104px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 249, 251, 0), rgba(245, 249, 251, .97) 45%);
}
.nav-spacer { flex: 1; }
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, #0e9f9a, #16b8a8);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(14, 159, 154, .9);
}
.btn-primary:hover:not(:disabled) { filter: brightness(.96); }
.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover:not(:disabled) { background: #f8fbfd; border-color: #b9dbe4; }
.form-error {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 35;
  background: #fff5f5;
  color: var(--danger);
  border: 1px solid #f5c6c8;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: min(90vw, 560px);
}

/* ---------------- 成功页 ---------------- */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 31, 46, .32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.success-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -30px rgba(15, 31, 46, .4);
}
.success-icon { color: var(--accent); margin-bottom: 16px; display: flex; justify-content: center; }
.success-card h2 { font-size: 22px; margin-bottom: 10px; }
.success-card p { color: var(--muted); font-size: 14px; }
.success-card p strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.success-sub { margin-top: 6px; font-size: 12.5px; }
.success-card .btn { margin-top: 24px; }

/* ==================================================================
   后台
   ================================================================== */
.admin-body { background: var(--bg); }
.admin-topbar {
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.admin-topbar .brand-mark { background: linear-gradient(135deg, #0f1f2e, #2b415a); box-shadow: none; }
.admin-topbar .brand-text em { color: var(--muted); }
.admin-topbar .topbar-inner { max-width: 1180px; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 7px 15px; font-size: 13px; border-radius: 999px; }
.btn-invert {
  background: var(--accent-soft);
  border: 1px solid #cdeeea;
  color: var(--accent-dark);
}
.btn-invert:hover { background: #dcf4f0; }
.btn-light { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-light:hover { background: var(--accent-dark); }

.admin-shell { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }

/* 登录 */
.login-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 20px; }
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 21px; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.login-card .field { margin-top: 0; }
.login-card .btn { width: 100%; margin-top: 18px; }
.login-error {
  margin-top: 14px;
  color: var(--danger);
  background: #fff5f5;
  border: 1px solid #f5c6c8;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.kpi-card .kpi-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-card .kpi-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  line-height: 1.1;
}
.kpi-card .kpi-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi-card .kpi-foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi-card.accent {
  background: linear-gradient(140deg, #0e9f9a, #1fc8b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 30px -20px rgba(14, 159, 154, .9);
}
.kpi-card.accent .kpi-label, .kpi-card.accent .kpi-foot { color: #d6f5f0; }
.kpi-card.accent .kpi-value small { color: #d6f5f0; }

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.panel-head-row h2 { font-size: 15px; font-weight: 600; }
.panel-head-row span { font-size: 12px; color: var(--muted); }
.panel-wide { grid-column: 1 / -1; }

/* 横向条形图 */
.bar-list { display: flex; flex-direction: column; gap: 11px; }
.bar-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.bar-item .bar-name {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-item .bar-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 7px; background: #eef5f8; border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #38bdf8, #0e9f9a);
  min-width: 2px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.bar-item.zero .bar-fill { background: #e8f0f5; }
.empty-hint { color: var(--muted); font-size: 13px; padding: 14px 0; text-align: center; }

/* 趋势 */
.trend {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding-top: 10px;
}
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.trend-bar {
  width: 100%;
  max-width: 34px;
  background: linear-gradient(180deg, #38bdf8, #0e9f9a);
  border-radius: 5px 5px 2px 2px;
  min-height: 3px;
  position: relative;
  transition: height .5s ease;
}
.trend-col .trend-val { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; height: 14px; }
.trend-col .trend-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.trend-col.is-zero .trend-bar { background: #e8f0f5; }

/* 优先事项列表 */
.priority-list { display: flex; flex-direction: column; gap: 0; }
.priority-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.priority-row:last-child { border-bottom: none; }
.priority-row .p-index {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--sky-soft);
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 600;
  display: grid; place-items: center;
  margin-top: 1px;
}
.priority-row .p-body { min-width: 0; }
.priority-row .p-text { font-size: 13.5px; color: var(--ink-2); word-break: break-word; }
.priority-row .p-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* 答卷表 */
.table-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-input {
  width: min(280px, 100%);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}
.table-wrap { overflow-x: auto; margin-top: 4px; }
table.responses {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
table.responses th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
table.responses td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.responses tbody tr { cursor: pointer; transition: background .12s; }
table.responses tbody tr:hover { background: #f7fbfd; }
table.responses td.cell-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.responses td.cell-id { color: var(--muted); font-variant-numeric: tabular-nums; }
table.responses td.cell-company { font-weight: 500; }
.cell-group {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #cdeeea;
  white-space: nowrap;
}
.cell-group.none { background: #eef5f8; color: var(--muted); border-color: var(--line); }
.cell-arrow { color: #b3c4d2; text-align: right; }

/* 详情弹层 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 31, 46, .32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn .18s ease both;
}
.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -30px rgba(15, 31, 46, .45);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.modal-close {
  border: 1px solid var(--line-strong);
  background: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  flex: none;
}
.modal-close:hover { background: #f7fbfd; color: var(--ink); }
.modal-body { overflow-y: auto; padding: 8px 24px 24px; }
.detail-section { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.detail-section:last-child { border-bottom: none; }
.detail-section > h3 {
  font-size: 12px;
  letter-spacing: .06em;
  color: #0284c7;
  margin-bottom: 10px;
}
.detail-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 5px 0; font-size: 13.5px; }
.detail-row dt { color: var(--muted); font-size: 12.5px; }
.detail-row dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
.detail-row dd.empty { color: #b8c6d2; }
.detail-sub {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: #f2f8fb;
  border-radius: 7px;
  padding: 3px 9px;
  display: inline-block;
}

/* 加载 */
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); font-size: 14px; }
.spinner {
  width: 26px; height: 26px;
  border: 3px solid #e2edf3;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .tool-grid, .priority-grid { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-picker { grid-template-columns: 1fr; }
  .survey-shell { padding: 26px 16px 130px; }
  .card { padding: 20px 18px; }
  .topbar-inner { padding: 12px 16px; }
  .brand-text em { max-width: 46vw; }
  .pill-soft { display: none; }
  .step-head h1 { font-size: 25px; }
  .detail-row { grid-template-columns: 1fr; gap: 2px; }
  .admin-shell { padding: 20px 16px 60px; }
  .admin-grid { gap: 14px; }
  .kpi-value { font-size: 26px; }
  .trend { height: 120px; }
  .trend-col .trend-label { font-size: 9px; }
}
@media (max-width: 460px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .step-nav { padding-left: 16px; padding-right: 16px; }
  .btn { padding: 11px 20px; }
  .topbar-meta { gap: 6px; }
  .success-card { padding: 32px 22px; }
}
