/* ---------- 首页「上次体检」加载动画：克制暗色 · 横向墨线测量（六维刻度依次微亮） ---------- */
.hli { display: flex; flex-direction: column; gap: 9px; padding: 1px 2px 2px; }
.hli-track {
  position: relative; height: 22px; overflow: hidden;
  background: linear-gradient(var(--rule-dark), var(--rule-dark)) 0 100%/100% 1px no-repeat;
}
.hli-notch {
  position: absolute; bottom: 1px; width: 1px; height: 7px; margin-left: -.5px;
  border-radius: 1px; background: var(--ink-soft); opacity: .18;
  animation: hliNotch 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.34s);
}
@keyframes hliNotch {
  0%, 100% { opacity: .15; }
  18%, 34% { opacity: .6; }
}
.hli-brush {
  position: absolute; left: 0; bottom: 1px; width: 26%; height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 35, 45, 0) 0%, rgba(23, 35, 45, .07) 32%, rgba(23, 35, 45, .3) 70%, rgba(23, 35, 45, .5) 100%);
  animation: hliSweep 2.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes hliSweep {
  0% { transform: translateX(-190%); opacity: 0; }
  12% { opacity: .8; }
  82% { opacity: .8; }
  92% { opacity: 0; }
  100% { transform: translateX(410%); opacity: 0; }
}
.hli-text {
  font-family: var(--serif); font-size: 12px; letter-spacing: .14em; color: var(--faint);
  animation: hliText 2.2s ease-in-out infinite;
}
@keyframes hliText { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }

.practice-picker {
  width: min(700px, 100%);
  max-width: 700px;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 22px;
}
.practice-picker-head { position: relative; }
.practice-picker-head .resume-info { padding-bottom: 12px; }
.practice-picker-body {
  min-height: 0;
  overflow: visible;
  overscroll-behavior: contain;
}
.practice-picker-rec {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.practice-picker-featured {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.practice-picker-all {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px 15px;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  background: var(--gold-soft);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.practice-picker-all b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}
.practice-picker-all > span:last-child {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.practice-picker-all:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.practice-picker-all:focus-visible,
.practice-picker-dim:focus-visible,
.practice-picker-wrongs:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.practice-picker-section { margin-top: 20px; }
.practice-picker-sec-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 8px;
}
.practice-picker-dims {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}
.practice-picker-dim {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.practice-picker-dim b { font-size: 13.5px; font-weight: 600; }
.practice-picker-dim span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}
.practice-picker-dim:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.practice-picker-wrongs {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--paper);
  border: 1px dashed var(--rule-dark);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s, background .15s, opacity .15s;
}
.practice-picker-wrongs:hover:not(:disabled) {
  border-style: solid;
  border-color: var(--ink);
}
.practice-picker-wrongs:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--faint);
  border-color: var(--rule);
  background: transparent;
}
.practice-picker-wrong-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .practice-picker-all,
  .practice-picker-dim,
  .practice-picker-wrongs { transition: none; }
}

.drill-summary {
  background: var(--card);
  border: 1px solid var(--rule-dark);
  box-shadow: 8px 8px 0 var(--paper-deep);
  padding: 36px 40px 32px;
  max-width: 560px;
  margin: 0 auto;
}
.drill-summary h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin-top: 8px;
}
.drill-summary p {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.7;
}
.drill-summary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hist-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hist-toolbar button {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.hist-toolbar button.active {
  background: var(--ink);
  color: var(--paper);
}
.hist-del {
  flex: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  cursor: pointer;
  color: var(--faint);
}
.hist-del:hover, .hist-del[data-confirm="1"] { color: var(--accent); border-color: var(--accent); }

/* 历史综合评估：沿用体检报告的纸张、细线与克制强调色，和单次记录形成两个层级。 */
.history-aggregate {
  margin-bottom: 46px; padding: 28px 30px 30px;
  border: 1px solid var(--rule-dark); background: var(--card);
  box-shadow: 6px 6px 0 var(--paper-deep);
}
.aggregate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.aggregate-head h3 { font-family: var(--serif); font-size: 27px; margin-top: 8px; }
.aggregate-toolbar { display: flex; flex-wrap: wrap; gap: 7px; flex: none; }
.aggregate-toolbar button {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; padding: 7px 13px;
  border: 1px solid var(--rule-dark); background: transparent; color: var(--ink); cursor: pointer;
}
.aggregate-toolbar button.active { background: var(--green); border-color: var(--green); color: #fff; }
.aggregate-intro { max-width: 62em; margin: 17px 0 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
.aggregate-intro strong { color: var(--ink); }
.aggregate-empty { padding: 19px 21px; border: 0; border-radius: var(--radius-surface); background: var(--panel); }
.aggregate-empty b { font-size: 16px; }
.aggregate-empty p { margin-top: 7px; font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.aggregate-summary { display: flex; align-items: center; gap: 22px; padding: 17px 0 20px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.aggregate-score { min-width: 145px; padding-right: 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.aggregate-score > span, .aggregate-score em { font-family: var(--sans); font-size: 12px; color: var(--faint); font-style: normal; }
.aggregate-score b { font-family: var(--serif); font-size: 44px; line-height: 1.05; color: var(--ink); }
.aggregate-score small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--faint); }
.aggregate-score em { margin-top: 3px; color: var(--ink-soft); }
.aggregate-sample { font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.aggregate-sample b { color: var(--ink); }
.aggregate-exclusions { display: inline; margin-left: 7px; color: var(--faint); }
.aggregate-grid { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(240px, 1.1fr); gap: 28px; padding: 27px 0; border-bottom: 1px solid var(--rule); }
.aggregate-radar { padding-right: 28px; border-right: 1px solid var(--rule); }
.aggregate-radar .radar { max-width: 300px; margin-top: 3px; }
.aggregate-dims .dim-rows { margin: 10px 0 0; }
.aggregate-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 25px; }
.aggregate-abilities { margin-top: 12px; }
.aggregate-rx-head { margin-top: 23px; }
.aggregate-rx { margin-top: 9px; padding: 10px 12px; border-left: 2px solid var(--gold); background: var(--paper); display: grid; gap: 3px; }
.aggregate-rx b { font-size: 13px; }
.aggregate-rx span, .aggregate-good { font-family: var(--sans); font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.aggregate-good { margin-top: 10px; color: var(--green); }
.aggregate-rx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.aggregate-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding-top: 25px; margin-top: 25px; border-top: 1px solid var(--rule); }
.aggregate-action-note, .aggregate-wrong-actions > span { font-family: var(--sans); font-size: 12px; color: var(--faint); line-height: 1.55; }
.aggregate-wrong-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.aggregate-wrong-review { margin-top: 12px; padding: 22px 0 0; border-top: 1px solid var(--rule); }
.aggregate-wrong-review .wr-card { background: var(--paper); }
.history-list-head { padding-top: 3px; margin-bottom: 14px; }
.history-list-head p { margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }

.report-next { justify-content: center; }
.report-next-wrong { margin-top: 14px; }

.sample-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  margin-top: 8px;
  max-width: 28em;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .practice-picker { padding: 24px 20px 22px; }
  .practice-picker-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drill-summary { padding: 26px 20px 22px; }
  .resume-actions { flex-wrap: wrap; }
  .history-aggregate { padding: 22px 18px; }
  .aggregate-head { flex-direction: column; gap: 14px; }
  .aggregate-grid, .aggregate-bottom { grid-template-columns: 1fr; gap: 22px; }
  .aggregate-radar { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .aggregate-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .practice-picker-wrong-actions { grid-template-columns: 1fr; }
  .aggregate-summary { align-items: flex-start; flex-direction: column; gap: 13px; }
  .aggregate-score { min-width: 0; padding: 0 0 13px; border-right: 0; border-bottom: 1px solid var(--rule); width: 100%; }
}
@media (max-width: 360px) {
  .practice-picker-dims { grid-template-columns: 1fr; }
}
@media (max-height: 500px) {
  .practice-picker {
    max-height: calc(100dvh - 24px);
    overflow: hidden;
  }
  .practice-picker-body {
    overflow-y: auto;
    padding-right: 6px;
  }
}

/* ---------- 题库选择浮窗 v4：弹窗内轻扇形牌组 ---------- */
.bank-picker {
  overflow: hidden;
  max-height: 96vh;
  max-height: 96dvh;
}
.bp-stage {
  width: 100%;
  height: 366px;
  margin: 12px 0 0;
  padding-top: 0;
  transform: none;
  overflow: hidden;
  border-top: 1px dotted var(--rule);
  perspective: 1200px;
}
.bp-stage::before,
.bp-stage::after { display: none; }
.bp-fan {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  height: 340px;
  margin: 0;
  padding: 58px 34px 24px 54px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  mask-image: none;
  -webkit-mask-image: none;
}
.bp-fan::-webkit-scrollbar { display: none; }
.bp-fan::before,
.bp-fan::after { display: none; }
.bp-fan.dragging { cursor: grabbing; }
.bp-fan.dragging .bp-card { pointer-events: none; }
.bp-card {
  margin: 0 -9px !important;
  scroll-snap-align: none;
  transform-origin: 50% 92%;
}
.bp-card.wish-card {
  border-style: dashed;
  border-color: var(--green);
  background:
    radial-gradient(circle at 50% 32%, rgba(31,107,103,.10), transparent 38%),
    linear-gradient(180deg, #fbfdfd 0%, #f1f7f6 100%);
  color: var(--green-deep);
}
.bp-card.wish-card .bc-ico {
  border: 1px dashed var(--green);
  background: transparent;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 300;
}
.bp-card.wish-card .bc-meta { color: var(--green); }
.bp-card.wish-card:hover {
  border-style: solid;
  box-shadow: 0 0 0 1px var(--green), 0 18px 32px rgba(23,35,45,.15), 0 6px 14px rgba(23,35,45,.09);
}
.bp-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 12;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  color: var(--faint);
  font: 10.5px/1.4 var(--sans);
  letter-spacing: .06em;
  white-space: nowrap;
}
.bp-drag-hint .hint-arrow { color: var(--green); }
/* 桌面端提示：按住 Shift 滚动滚轮；移动端保留拖动提示（两套文案媒体查询切换） */
.bp-drag-hint .hint-shift { color: var(--faint); }
.bp-drag-hint .hint-shift { display: none; }
.bp-drag-hint .hint-drag { display: flex; align-items: center; gap: 7px; }
@media (min-width: 641px) {
  .bp-drag-hint .hint-shift { display: inline; }
  .bp-drag-hint .hint-drag { display: none; }
}
@media (max-width: 640px) {
  .bank-picker { width: calc(100vw - 24px); padding: 22px 18px 18px; }
  .bp-stage { width: 100%; height: auto; margin-top: 8px; }
  .bp-fan {
    height: 344px;
    padding: 58px 26px 16px 44px;
    touch-action: pan-x;
    scroll-snap-type: none;
  }
  .bp-card { margin: 0 -8px !important; }
  .bp-drag-hint { font-size: 12px; }
}
/* 非触屏横滚区（桌面/平板）：显式横向手势声明，键盘与触控板水平轻扫/触屏拖拽都能滚动 */
@media (min-width: 641px) {
  .bp-fan { touch-action: pan-x; }
}
