/* ==========================================================================
   sections.css — 各分区专属样式（随分区模块逐步补充）
   ========================================================================== */

/* ==========================================================================
   总览页
   ========================================================================== */

/* ---------- 头部信息带 ---------- */
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(37, 87, 214, 0.055), rgba(18, 181, 165, 0.06) 65%, rgba(124, 58, 237, 0.05)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 16px;
}

.hero-band__main h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-band__main p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 780px;
}

.hero-band__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-band__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.hero-stat__num {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-stat__num .unit {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.hero-stat__label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ---------- 七分区导览卡 ---------- */
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  color: var(--text-1);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--tint, var(--primary));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tint, var(--primary));
  color: var(--text-1);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tint, var(--primary));
  background: var(--tint-soft, var(--primary-soft));
}

.guide-card__no {
  font-size: 13px;
  font-weight: 800;
  color: var(--tint, var(--primary));
  opacity: 0.55;
  letter-spacing: 0.05em;
}

.guide-card__title {
  font-size: 16px;
  font-weight: 700;
}

.guide-card__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.guide-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 5px;
}

.guide-stat:last-child {
  border-bottom: none;
}

.guide-stat b {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--text-1);
  font-weight: 700;
}

.guide-card__desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 2px;
}

.guide-card__arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--tint, var(--primary));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.guide-card:hover .guide-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 色系（--tint / --tint-soft） */
.tint-primary { --tint: #2557d6; --tint-soft: #e8efff; }
.tint-teal    { --tint: #0f9d8f; --tint-soft: #e2f6f3; }
.tint-violet  { --tint: #7c3aed; --tint-soft: #f1eafd; }
.tint-amber   { --tint: #d97706; --tint-soft: #fdf1e0; }
.tint-cyan    { --tint: #0891b2; --tint-soft: #e0f5fa; }
.tint-green   { --tint: #16a34a; --tint-soft: #e6f7ec; }
.tint-rose    { --tint: #e11d48; --tint-soft: #fdeaf0; }

/* ---------- 亮点条 ---------- */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}

.highlight-item__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--h1, #2b5cff), var(--h2, #12b5a5));
}

.highlight-item__text b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.4;
}

.highlight-item__text span {
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 1160px) {
  .hero-band { grid-template-columns: 1fr; }
  .highlight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .highlight-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   02 培养目标
   ========================================================================== */

/* 目标卡片（4 个子目标） */
.target-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.target-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.target-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.target-card::after {
  content: attr(data-no);
  position: absolute;
  right: 8px;
  top: -6px;
  font-family: var(--font-num);
  font-size: 52px;
  font-weight: 800;
  color: var(--tint, var(--primary));
  opacity: 0.08;
  line-height: 1;
}

.target-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tint, var(--primary));
  background: var(--tint-soft, var(--primary-soft));
  padding: 3px 10px;
  border-radius: 999px;
}

.target-card__name {
  font-size: 15.5px;
  font-weight: 750;
  margin-top: 12px;
}

.target-card__desc {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.75;
}

@media (max-width: 1160px) {
  .target-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .target-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   03 毕业要求
   ========================================================================== */

/* 12 项毕业要求卡片 */
.req-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 14px 15px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.req-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.req-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.req-card__no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2b5cff, #12b5a5);
}

.req-card__name {
  font-size: 14px;
  font-weight: 700;
}

.req-card__brief {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 8px;
  line-height: 1.65;
}

@media (max-width: 1160px) {
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .req-grid { grid-template-columns: 1fr; }
}

/* 矩阵可视化 */
.matrix-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

.matrix {
  display: grid;
  gap: 4px;
}

.matrix__colhead {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  font-weight: 700;
  align-self: end;
  padding-bottom: 3px;
  white-space: nowrap;
}

.matrix__rowhead {
  font-size: 11px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-right: 8px;
  font-weight: 600;
}

.matrix__cell {
  height: 24px;
  border-radius: 6px;
  background: var(--surface-3);
}

.matrix__cell.on {
  background: linear-gradient(135deg, #4a7dff, #12b5a5);
  box-shadow: 0 2px 6px rgba(37, 87, 214, 0.22);
}

.matrix__cell.on::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  height: 100%;
}

.matrix-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
  align-items: center;
}

.matrix-legend .swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -2px;
}

.matrix-legend .swatch--on {
  background: linear-gradient(135deg, #4a7dff, #12b5a5);
}

.matrix-legend .swatch--off {
  background: var(--surface-3);
  border: 1px solid var(--border);
}

/* ==========================================================================
   04 持续改进
   ========================================================================== */

/* 三级达成度评价链 */
.flow-chain {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.flow-step {
  flex: 1;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px 14px;
  overflow: hidden;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tint, var(--primary));
}

.flow-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-step__no {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--tint, var(--primary));
}

.flow-step__name {
  font-size: 15px;
  font-weight: 750;
}

.flow-step__desc {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
}

.flow-arrow {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--primary-2);
  opacity: 0.75;
}

/* 改进闭环卡片 */
.improve-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.improve-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.improve-card__title {
  font-size: 14.5px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
}

.improve-card__title .step-no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2b5cff, #12b5a5);
}

.improve-block__label {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.improve-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.improve-block li {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
  display: flex;
  gap: 8px;
}

.improve-block li::before {
  content: "·";
  color: var(--text-3);
  flex: none;
}

.improve-card__effect {
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  color: #15803d;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.6;
}

@media (max-width: 1160px) {
  .improve-grid { grid-template-columns: 1fr; }
  .flow-chain { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); justify-content: center; }
}

/* 页面内块标题 */
.block-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 2px 12px;
}

.block-title h3 {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.block-title span {
  font-size: 12px;
  color: var(--text-3);
}

/* ==========================================================================
   05 课程体系
   ========================================================================== */

/* 筛选工具条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.chip .cnt {
  opacity: 0.7;
  margin-left: 4px;
  font-size: 11px;
  font-family: var(--font-num);
}

.search-input {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  width: 220px;
  outline: none;
  background: var(--surface);
  color: var(--text-1);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 87, 214, 0.12);
}

.search-input::placeholder {
  color: var(--text-3);
}

/* 可滚动表格 */
.table-scroll {
  max-height: 460px;
  overflow-y: auto;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* 通用进度条行（师资学历结构等） */
.bar-row {
  display: grid;
  grid-template-columns: 118px 1fr 56px;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 6px 0;
}

.bar-row__track {
  height: 8px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.bar-row__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4a7dff, #12b5a5);
  transition: width 0.6s ease;
}

.bar-row__val {
  text-align: right;
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--text-1);
}

/* ==========================================================================
   模拟测算（动态调节页）
   ========================================================================== */

/* 顶部 CTA 链接 */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b5cff, #12b5a5);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 87, 214, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 87, 214, 0.32);
}

/* ---------- 工具 A：学分结构模拟 ---------- */
.sim-slider-row {
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}

.sim-slider-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.sim-slider-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}

.sim-slider-row__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.sim-slider-row__name .std {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 6px;
}

.sim-slider-row__val {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--primary);
  font-size: 14.5px;
  white-space: nowrap;
}

.sim-slider-row__val .unit {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 2px;
}

input[type="range"].sim-range {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 22px;
}

/* 合规性检查行 */
.sim-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.sim-check {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sim-check.ok {
  background: var(--green-soft);
  border-color: rgba(22, 163, 74, 0.3);
}

.sim-check.fail {
  background: var(--red-soft);
  border-color: rgba(220, 38, 38, 0.3);
}

.sim-check__name {
  color: var(--text-1);
  font-weight: 600;
}

.sim-check__pct {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--text-1);
}

.sim-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.sim-badge.ok {
  color: #15803d;
  background: #d3f2de;
}

.sim-badge.fail {
  color: #b91c1c;
  background: #fbdada;
}

/* 结果卡 */
.sim-total {
  text-align: center;
  padding: 4px 0 8px;
}

.sim-total__num {
  font-family: var(--font-num);
  font-size: 46px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sim-total__num .unit {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 6px;
}

.sim-total__label {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.conclusion-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.6;
}

.conclusion-banner.ok {
  background: var(--green-soft);
  color: #15803d;
}

.conclusion-banner.fail {
  background: var(--red-soft);
  color: #b91c1c;
}

.conclusion-banner svg {
  flex: none;
  margin-top: 1px;
}

.sim-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.sim-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sim-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- 工具 B：达成度测算 ---------- */
.req-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.point-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.point-row:last-child {
  border-bottom: none;
}

.point-row__name {
  font-size: 12.5px;
  color: var(--text-1);
  line-height: 1.5;
}

.point-row__name .code {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--primary);
  margin-right: 6px;
}

.point-row__name .measured {
  display: inline-block;
  font-size: 10px;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 1px 7px;
  margin-top: 3px;
}

.point-ctrl {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
}

.point-ctrl__val {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--text-1);
  font-size: 12.5px;
  text-align: right;
}

/* 达成度结果 */
.att-result {
  text-align: center;
  padding: 6px 0 2px;
}

.att-result__num {
  font-family: var(--font-num);
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.att-result__num.ok {
  color: var(--green);
}

.att-result__num.fail {
  color: var(--red);
}

.att-result__label {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}

.att-bar {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: var(--surface-3);
  margin: 26px 6px 8px;
}

.att-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #4a7dff, #12b5a5);
  transition: width 0.3s ease;
}

.att-bar__fill.fail {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.att-bar__mark {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: #e11d48;
  border-radius: 2px;
}

.att-bar__mark::after {
  content: "达标 0.72";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #e11d48;
  font-weight: 700;
  white-space: nowrap;
}

.att-bar__scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-3);
  padding: 0 6px;
}

@media (max-width: 860px) {
  .point-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==========================================================================
   通用小组件
   ========================================================================== */

/* 迷你统计块（卡片内的小数据点） */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.mini-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.mini-stat__label {
  font-size: 12px;
  color: var(--text-3);
}

.mini-stat__value {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  margin-top: 2px;
}

.mini-stat__value .unit {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 2px;
}

/* 带色点的图例行 */
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  padding: 5px 0;
}

.legend-row .val {
  margin-left: auto;
  font-family: var(--font-num);
  font-weight: 650;
  color: var(--text-1);
}

/* 标签组 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
