:root {
  --brand: #14607a;
  --brand-dark: #0e4a5f;
  --brand-light: #e8f2f6;
  --ink: #1b2530;
  --ink-2: #465566;
  --ink-3: #7a8798;
  --line: #dfe5ec;
  --line-soft: #eef2f6;
  --bg: #f4f7fa;
  --white: #fff;
  --ok: #1f8a5b;
  --warn: #b8791a;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(24, 43, 60, .06), 0 6px 20px rgba(24, 43, 60, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 40px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 940px; margin: 0 auto; }
.wrap-wide { max-width: 1320px; margin: 0 auto; }

/* ---------- 顶部 ---------- */
.site-head {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 22px 22px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -16px 22px;
  box-shadow: var(--shadow);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-head h1 { margin: 0; font-size: 19px; letter-spacing: .5px; font-weight: 600; }
.site-head .sub { margin: 3px 0 0; font-size: 12.5px; opacity: .82; }
.site-head .head-links { font-size: 13px; }
.site-head .head-links a { color: #fff; opacity: .88; border-bottom: 1px dashed rgba(255,255,255,.45); padding-bottom: 1px; }
.site-head .head-links a:hover { opacity: 1; text-decoration: none; }

.site-foot { max-width: 940px; margin: 30px auto 0; text-align: center; color: var(--ink-3); font-size: 12px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.card > h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.3;
}
.card > h2 .hint { font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-left: 8px; }

/* ---------- 培训信息 ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 22px;
  margin: 0;
}
.meta-grid div { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.meta-grid dt { color: var(--ink-3); flex: none; }
.meta-grid dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field input[type=text],
.field input[type=date],
.field input[type=number],
.field input[type=password],
.field input[type=email],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 96, 122, .12);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.field input.bad, .field textarea.bad { border-color: #d9a49b; background: #fdfaf9; }
.field-err, .fb-err { font-size: 12px; color: var(--danger); min-height: 0; line-height: 1.5; }
.field-err:not(.on) { display: none; }
.field-err.on { margin-top: 4px; }
.fb-err.on { display: block; }
.fb-err:not(.on) { display: none; }

/* ---------- 第五项：开放性反馈 ---------- */
.lead-note { margin: -4px 0 16px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.fb { border-top: 1px solid var(--line-soft); padding: 16px 0 4px; }
.fb:first-of-type { border-top: none; padding-top: 0; }
.fb-q { display: flex; gap: 7px; align-items: baseline; font-size: 14px; color: var(--ink); line-height: 1.6; font-weight: 500; }
.fb-no {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%; background: var(--brand-light);
  color: var(--brand-dark); font-size: 11.5px; font-weight: 600;
  transform: translateY(1px);
}
.fb-q .req { color: var(--danger); font-weight: 600; }
.fb-tip { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 8px 26px; line-height: 1.55; }
.fb textarea { display: block; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); resize: vertical; line-height: 1.6;
  transition: border-color .15s, box-shadow .15s; }
.fb textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 96, 122, .12); }
.fb textarea.bad { border-color: #d9a49b; background: #fdfaf9; }
.fb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 5px; }
.fb-count { font-size: 11.5px; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }

.nps-opts { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; margin: 0 0 4px; }
.nps-opts label { position: relative; cursor: pointer; }
.nps-opts input { position: absolute; opacity: 0; pointer-events: none; }
.nps-opts span {
  display: block; text-align: center; padding: 8px 0; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2);
  font-variant-numeric: tabular-nums; transition: all .12s;
}
.nps-opts label:hover span { border-color: var(--brand); color: var(--brand); }
.nps-opts label.checked span { background: var(--brand); border-color: var(--brand); color: #fff; }
.nps-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.fb-review { margin: 0; display: grid; gap: 14px; }
.fb-review > div { border-left: 3px solid var(--brand-light); padding-left: 12px; }
.fb-review dt { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 3px; }
.fb-review dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }

.stat-inline { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.stat-inline b { font-size: 20px; color: var(--brand-dark); margin: 0 4px; font-variant-numeric: tabular-nums; }

/* ---------- 后台：反馈汇总 ---------- */
.fb-list { display: grid; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.fb-item > summary {
  cursor: pointer; padding: 10px 14px; font-size: 13.5px; background: #f8fbfc;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none;
}
.fb-item > summary::-webkit-details-marker { display: none; }
.fb-item > summary::before { content: "▸"; color: var(--ink-3); font-size: 11px; transition: transform .15s; }
.fb-item[open] > summary::before { transform: rotate(90deg); }
.fb-item > summary:hover { background: #f2f8fa; }
.fb-item .who { font-weight: 600; color: var(--ink); }
.fb-item .meta { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fb-item .body { padding: 4px 16px 14px; }
.fb-item .qa { margin-top: 10px; }
.fb-item .qa .q { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.fb-item .qa .a { font-size: 13.5px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.fb-item .qa .a.empty-a { color: var(--ink-3); font-style: normal; }
.nps-chip { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; border: 1px solid; font-variant-numeric: tabular-nums; }
.nps-p { color: var(--ok); border-color: #bfe0cf; background: #f2faf6; }
.nps-n { color: var(--warn); border-color: #eeddba; background: #fdf8ed; }
.nps-d { color: var(--danger); border-color: #eccbc6; background: #fdf2f0; }


/* ---------- 评分说明 ---------- */
.scale-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.scale-table th, .scale-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.scale-table th { background: #f7fafc; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.scale-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--brand); }
.scale-5 th:nth-child(1), .scale-5 td:nth-child(1) { width: 86px; }
.scale-5 th:nth-child(2), .scale-5 td:nth-child(2) { width: 190px; }
details.disclosure > summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 13.5px;
  padding: 4px 0;
  list-style: none;
  user-select: none;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "▸ "; }
details.disclosure[open] > summary::before { content: "▾ "; }
details.disclosure > .body { padding-top: 10px; }

/* ---------- 维度分块 ---------- */
.dim { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.dim-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px;
  background: var(--brand-light);
  border-bottom: 1px solid #d5e5ec;
  flex-wrap: wrap;
}
.dim-head .name { font-weight: 600; font-size: 14.5px; color: var(--brand-dark); }
.dim-head .name .idx { display: inline-block; min-width: 20px; color: var(--brand); margin-right: 6px; }
.dim-head .range { font-size: 12.5px; color: var(--ink-2); }
.dim-head .dim-sum { font-size: 12.5px; color: var(--ink-2); }
.dim-head .dim-sum b { color: var(--brand); font-size: 15px; }

.item {
  display: grid;
  grid-template-columns: 34px 1fr 330px;
  gap: 6px 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.item:first-of-type { border-top: none; }
.item .no { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.item .text { font-size: 14px; color: var(--ink); padding-top: 2px; }
.item .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.item .opts label {
  flex: 1 1 0;
  min-width: 58px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 2px 5px;
  cursor: pointer;
  background: #fbfcfd;
  transition: all .12s;
  user-select: none;
}
.item .opts label:hover { border-color: #b7cdd8; background: #f4f9fb; }
.item .opts input { position: absolute; opacity: 0; pointer-events: none; }
.item .opts .num { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item .opts .lbl { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.2; margin-top: 1px; }
.item .opts input:checked + .num,
.item .opts input:checked ~ .lbl { color: #fff; }
.item .opts label:has(input:checked) { background: var(--brand); border-color: var(--brand); }
.item .opts label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(20,96,122,.18); }

/* ---------- 底部提交条 ---------- */
.submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 0 -16px -40px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(24,43,60,.07);
}
.submit-bar .inner {
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.submit-bar .progress { font-size: 13.5px; color: var(--ink-2); }
.submit-bar .progress b { color: var(--brand); font-size: 17px; font-variant-numeric: tabular-nums; }
.submit-bar .progress .warn { color: var(--warn); }

.btn {
  display: inline-block;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, opacity .15s;
  text-align: center;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-sm { padding: 6px 13px; font-size: 13px; font-weight: 500; }
.btn-danger { background: #fff; border-color: #e3b7b1; color: var(--danger); }
.btn-danger:hover { background: #fdf0ee; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 提示 ---------- */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; border: 1px solid; }
.alert-info { background: #f0f7fa; border-color: #cfe4ec; color: #17566b; }
.alert-warn { background: #fdf8ed; border-color: #f0e0bd; color: #8a6116; }
.alert-err  { background: #fdf1ef; border-color: #f0cdc7; color: #9c3325; }
.alert-ok   { background: #f0f8f3; border-color: #cbe6d7; color: #1a6c47; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}
.stat .k { font-size: 12.5px; color: var(--ink-3); }
.stat .v { font-size: 26px; font-weight: 600; color: var(--brand-dark); font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.stat .t { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
table.data th, table.data td { padding: 9px 11px; border-bottom: 1px solid var(--line-soft); text-align: left; }
table.data thead th {
  background: #f6f9fb; color: var(--ink-2); font-weight: 600; font-size: 12.5px;
  position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line);
}
table.data tbody tr:hover { background: #fafcfd; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.c { text-align: center; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .txt { white-space: normal; min-width: 260px; }
table.data tfoot td { background: #f6f9fb; font-weight: 600; }

.bar {
  position: relative;
  height: 8px;
  background: var(--line-soft);
  border-radius: 4px;
  min-width: 70px;
  overflow: hidden;
}
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 4px; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; border: 1px solid; }
.tag-ok { color: var(--ok); border-color: #bfe0cf; background: #f2faf6; }
.tag-off { color: var(--ink-3); border-color: var(--line); background: #f7f9fb; }
.tag-warn { color: var(--warn); border-color: #eeddba; background: #fdf8ed; }
.tag-danger { color: var(--danger); border-color: #eccbc6; background: #fdf2f0; }

/* ---------- 场次卡片 ---------- */
.session-list { display: grid; gap: 12px; }
.session-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  background: #fff; flex-wrap: wrap;
}
.session-item .t { font-weight: 600; font-size: 15px; }
.session-item .m { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.session-item .m span { margin-right: 12px; }
.session-item .act { display: flex; gap: 8px; align-items: center; }

/* ---------- 结果页 ---------- */
.result-hero { text-align: center; padding: 30px 20px 10px; }
.result-hero .big { font-size: 52px; font-weight: 600; color: var(--brand-dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-hero .big small { font-size: 18px; color: var(--ink-3); font-weight: 400; }
.result-hero .cap { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.result-hero .grade { display: inline-block; margin-top: 12px; font-size: 15px; padding: 4px 16px; border-radius: 20px; background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

.empty { text-align: center; color: var(--ink-3); padding: 36px 10px; font-size: 14px; }

@media (max-width: 760px) {
  body { padding: 0 12px 32px; font-size: 14.5px; overflow-x: hidden; }
  .site-head { margin: 0 -12px 18px; padding: 18px 16px; }
  .site-head h1 { font-size: 17px; }
  .item { grid-template-columns: 24px minmax(0, 1fr); }
  .item .text { min-width: 0; overflow-wrap: anywhere; }
  .item .opts {
    grid-column: 1 / -1;
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .item .opts label { min-width: 0; padding: 8px 1px; }
  .item .opts .lbl { font-size: 9px; letter-spacing: -.2px; }
  .scale-5 { table-layout: fixed; width: 100%; font-size: 12px; }
  .scale-5 th, .scale-5 td { padding: 6px 7px; word-break: break-word; }
  .scale-5 th:nth-child(1), .scale-5 td:nth-child(1) { width: 46px; }
  .scale-5 th:nth-child(2), .scale-5 td:nth-child(2) { width: 92px; }
  .submit-bar { margin: 0 -12px -32px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .submit-bar .btn { flex: 1 1 auto; }
  .submit-bar .progress { font-size: 12.5px; }
  .card { padding: 16px; }
  .stat .v { font-size: 22px; }
  .meta-grid { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; }
  .fb-tip { margin-left: 0; }
  .fb-q { font-size: 13.5px; }
  .nps-opts { gap: 3px; }
  .nps-opts span { padding: 7px 0; font-size: 12.5px; border-radius: 6px; }
  .fb-item > summary { gap: 8px; padding: 9px 12px; }
  .fb-item .body { padding: 4px 12px 12px; }
}

/* JS 兜底：不支持 :has() 的浏览器 */
.item .opts label.checked { background: var(--brand); border-color: var(--brand); }
.item .opts label.checked .num,
.item .opts label.checked .lbl { color: #fff; }
