/* ==================================================================
   双色球选号分析 · 深色仪表盘
   配色：主色 #0B3868（深海军蓝）· 辅助色 #B89076（暖褐）
   - 层级靠明度差：背景 → 卡片 → 嵌套，逐级提亮
   - 圆角锁：卡片 14px / 按钮输入 10px / 号码球全圆
   - 字体：系统中文字体 + 数字 tabular-nums
   - 状态全覆盖：loading 骨架 / 空态 / 错误态 / :active 位移
   ================================================================== */

:root {
  /* 主色阶：以 #0B3868 为基准向两侧展开 */
  --navy-900: #051E3A;  /* 最深：内嵌区域、输入框底 */
  --navy-800: #082B51;  /* 次级内嵌 */
  --navy-700: #0B3868;  /* 主色 = 页面背景 */
  --navy-600: #114880;  /* 卡片 */
  --navy-500: #16538F;  /* 嵌套卡片 / hover */
  --navy-400: #1D5FA2;  /* 描边高亮 */

  /* 辅助色阶：暖褐 #B89076 */
  --taupe-200: #E3C7B4;  /* 亮：hover 态 */
  --taupe-300: #D0A88C;
  --taupe-400: #B89076;  /* 辅助色本体 */
  --taupe-500: #9C7660;  /* 深：描边 */

  /* 语义映射：三层靠明度差拉开，卡片/背景 ≈1.50，内嵌/卡片 ≈1.59 */
  --bg: var(--navy-700);
  --bg-raised: var(--navy-900);
  --panel: var(--navy-500);
  --panel-2: var(--navy-800);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .21);

  /* 文字（三级 #93ABC9 在卡片上只有 3.34，用提亮版保证 AA） */
  --text: #F1F6FD;
  --text-2: #C2D3E8;
  --text-3: #B8C9DF;

  /* 强调 = 辅助色。
     #B89076 在卡片上仅 2.73，只用于页面背景层；
     卡片内的强调一律用提亮版 --accent-on-panel */
  --accent: var(--taupe-400);
  --accent-bright: var(--taupe-200);
  --accent-on-panel: #D8B49E;
  --accent-on-panel-bright: #EBD3C1;
  --accent-soft: rgba(184, 144, 118, .16);
  --accent-line: rgba(184, 144, 118, .42);

  /* 语义色（在深蓝底上重新校准过亮度） */
  --red: #F04E62;
  --red-deep: #B81632;
  --blue: #60A9F5;
  --blue-deep: #1B62B8;
  --ok: #45D6A4;
  --warn: #E8B85C;
  --bad: #F58A8A;

  /* 圆角锁 */
  --r-card: 14px;
  --r-ctl: 10px;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

/* hidden 属性必须能压过 display:flex，否则空区块会漏出来 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  background-image:
    radial-gradient(900px 420px at 15% -8%, rgba(184, 144, 118, .11), transparent 62%),
    radial-gradient(720px 380px at 88% 2%, rgba(29, 95, 162, .30), transparent 60%);
  background-repeat: no-repeat;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 43, 81, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--red), var(--red-deep));
  box-shadow: 0 0 0 3px rgba(240, 69, 90, .13);
  flex: none;
}

.brand-text {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-disclaimer {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-on-panel-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}

.btn-logout:active { transform: translateY(1px); }
.btn-logout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- 页面容器 ---------------- */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------------- 通用面板 ---------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.panel-sub {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.foot-note {
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------------- 数据状态 ---------------- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  background: var(--panel-2);
  padding: 14px 16px;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 21px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.stat-value-sm { font-size: 14px; font-weight: 550; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .16s ease, transform .1s ease, border-color .16s ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) { background: var(--navy-500); border-color: rgba(255,255,255,.2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04203D;
  font-weight: 700;
  padding: 11px 26px;
  font-size: 14.5px;
}
.btn-primary:hover:not(:disabled) { background: var(--taupe-300); border-color: var(--taupe-300); }

.btn-retry {
  padding: 6px 12px;
  font-size: 12.5px;
  border-color: var(--accent-line);
  color: var(--accent-on-panel);
  background: var(--accent-soft);
}
.btn-retry:hover:not(:disabled) { background: var(--accent-soft); }

.ico { width: 15px; height: 15px; flex: none; }

/* ---------------- 表单 ---------------- */
.control-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 22px;
  align-items: start;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--text-2);
  letter-spacing: .01em;
}

.field-row { display: flex; align-items: center; gap: 9px; }

.field input[type="number"] {
  width: 96px;
  padding: 9px 12px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 144, 118, .20);
}

.field input.invalid {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(245, 138, 138, .18);
}

.field-unit { font-size: 13px; color: var(--text-3); }

.field-hint { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.field-hint.err { color: var(--bad); }

.field-action { align-self: start; align-items: flex-start; }

/* ---------------- 进度条 ---------------- */
.progress { margin-top: 14px; display: flex; align-items: center; gap: 12px; }

.progress-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width .3s ease;
}

.progress-text { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }

/* ---------------- 三模型结果 ---------------- */
.results { display: flex; flex-direction: column; gap: 14px; }

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.results-meta { font-size: 12.5px; color: var(--text-3); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.model-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.model-head {
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-name {
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-status {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 560;
  white-space: nowrap;
  flex: none;
}

.st-pending { background: rgba(255,255,255,.06); color: var(--text-3); }
.st-running { background: rgba(184, 144, 118, .18); color: var(--accent-on-panel); }
.st-ok { background: rgba(69, 214, 164, .16); color: var(--ok); }
.st-error { background: rgba(245, 138, 138, .16); color: var(--bad); }

.model-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 15px; flex: 1; }

.sec-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .07em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sec-label .score-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
}

/* 号码球 */
.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  flex: none;
  user-select: none;
}

.ball-red { background: radial-gradient(circle at 34% 28%, #FF6E80, var(--red-deep)); box-shadow: inset 0 -1px 3px rgba(0,0,0,.3); }
.ball-blue { background: radial-gradient(circle at 34% 28%, #6FB4FF, var(--blue-deep)); box-shadow: inset 0 -1px 3px rgba(0,0,0,.3); }
.ball-sm { width: 26px; height: 26px; font-size: 11px; }

/* 注列表 */
.ticket-list { display: flex; flex-direction: column; gap: 9px; }

.ticket {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid transparent;
  transition: border-color .16s ease;
  flex-wrap: wrap;
}

.ticket:hover { border-color: var(--line-strong); }

.ticket-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  min-width: 20px;
  flex: none;
}

.ticket-balls { display: flex; gap: 5px; flex-wrap: wrap; }

.ticket-score {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: 6px;
  flex: none;
}

.sc-high { background: rgba(69, 214, 164, .16); color: var(--ok); }
.sc-mid { background: rgba(232, 184, 92, .16); color: var(--warn); }
.sc-low { background: rgba(245, 138, 138, .16); color: var(--bad); }

/* 思路 */
.reasoning { font-size: 12.5px; color: var(--text-2); line-height: 1.65; margin: 0; }
.reasoning.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.reasoning-toggle {
  background: none; border: none; color: var(--accent-on-panel); font-size: 11.5px;
  cursor: pointer; padding: 4px 0 0; font-family: inherit;
}
.reasoning-toggle:hover { text-decoration: underline; }

/* 加载骨架 */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-balls { height: 32px; width: 100%; }
.sk-line { height: 13px; width: 100%; margin-top: 7px; }
.sk-line.short { width: 62%; }

/* 模型列尾注 */
.model-foot {
  margin-top: auto;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

.model-error {
  font-size: 12.5px;
  color: var(--bad);
  background: rgba(245, 138, 138, .10);
  border: 1px solid rgba(245, 138, 138, .26);
  border-radius: 9px;
  padding: 10px 12px;
  line-height: 1.55;
  word-break: break-word;
}

.results-disclaimer {
  margin: 0;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #E6D3C4;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------------- 图表 ---------------- */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-box { margin: 0; min-width: 0; }

.chart-box figcaption {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.chart-unit { font-size: 11px; color: var(--text-3); }

.chart { width: 100%; height: 200px; }

/* ---------------- 历史 ---------------- */
.history-list { display: flex; flex-direction: column; gap: 10px; }

.empty-state {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.empty-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty-desc { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

.hist-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  align-items: center;
}

.hist-time {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.hist-params { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.hist-models { display: flex; gap: 10px; flex-wrap: wrap; }

.hist-model {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-raised);
  font-size: 12px;
  border: 1px solid var(--line);
}

.hist-model-name { color: var(--text-2); font-weight: 560; }

.hist-hit {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text);
}

.hist-hit.hit-good { color: var(--ok); }
.hist-hit.hit-mid { color: var(--warn); }
.hist-hit.hit-none { color: var(--text-3); }

.hist-pending { font-size: 11.5px; color: var(--text-3); font-style: normal; }

.hist-target {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-left: 4px;
}

/* ---------------- 页脚 ---------------- */
.page-foot {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

.page-foot p { margin: 0 0 5px; }
.foot-tech { color: #8FA6C4; }

/* ---------------- 改密码弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 20, 38, .72);
  backdrop-filter: blur(6px);
  animation: maskIn .18s ease;
}

@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: 0 24px 64px rgba(2, 12, 26, .6);
  animation: modalIn .22s cubic-bezier(.2, .8, .3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  flex: none;
}

.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.modal-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mfield { display: flex; flex-direction: column; gap: 7px; }

.mfield label {
  font-size: 12.5px;
  font-weight: 560;
  color: var(--text-2);
}

.mfield input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.mfield input::placeholder { color: #7E96B4; }

.mfield input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 144, 118, .20);
}

.mfield input.invalid {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(245, 138, 138, .18);
}

.modal-err {
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(245, 138, 138, .10);
  border: 1px solid rgba(245, 138, 138, .30);
  color: #F7B4B4;
  font-size: 12.5px;
  line-height: 1.55;
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.modal-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(12px);
  background: var(--navy-500);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
  max-width: min(520px, calc(100vw - 40px));
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(245, 138, 138, .5); color: #F7B4B4; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1279px) {
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ball { width: 28px; height: 28px; font-size: 11.5px; }
  .ticket { padding: 8px; gap: 7px; }
  .model-body { padding: 13px 12px; }
  .model-head { padding: 13px 12px 11px; }
}

@media (max-width: 1023px) {
  .control-form { grid-template-columns: 1fr 1fr; }
  .field-action { grid-column: 1 / -1; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .page { padding: 16px 14px 56px; gap: 16px; }
  .panel { padding: 16px; }
  .topbar-inner { padding: 0 14px; height: 56px; }
  .brand-text { font-size: 14px; }
  .badge-disclaimer { padding: 4px 9px; font-size: 11px; }

  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: 18px; }

  .control-form { grid-template-columns: 1fr; gap: 16px; }
  .field-input input[type="number"] { width: 100%; }
  .field input[type="number"] { width: 100%; }
  .btn-primary { width: 100%; }

  .model-grid { grid-template-columns: 1fr; gap: 12px; }

  .hist-row { grid-template-columns: 1fr; gap: 9px; }
  .hist-models { gap: 7px; }
  .hist-model { font-size: 11.5px; padding: 4px 8px; }

  .chart { height: 176px; }
  .ball { width: 30px; height: 30px; font-size: 12px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}