/* 宝盒概率页 · 悠悠江湖（T413 / T443 绿色主题）
   复用 rates.css 的面板 / 工具条 / 表格 / 分页；这里只加宝盒汇总卡片。 */

.boxes-summary-head { margin: 4px 2px 10px; }
.boxes-summary-head h2 {
  font-family: "STKaiti", "KaiTi", "SimSun", serif;
  font-size: 21px; letter-spacing: 2px; color: var(--brand); margin: 0;
}

.boxes-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-bottom: 18px;
}

.box-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.box-card:hover { border-color: var(--line-strong); background: var(--brand-soft); }
.box-card:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.box-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(63, 95, 71, .55);
}
.box-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.box-card-head strong { color: var(--brand); font-size: 16px; letter-spacing: 1px; }
.box-card-head span { color: var(--ink-3); font-size: 12.5px; }
.box-card-stats { display: grid; gap: 3px; }
.box-card-stats span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  color: var(--ink-3); font-size: 13.5px;
}
.box-card-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.box-card-stats em { font-style: normal; font-weight: 700; }
.box-card-stats em.ok { color: var(--brand); }
.box-card-stats em.bad { color: var(--neg); }

.boxes-table-panel { overflow: hidden; }
.boxes-table-note { margin: 0; border-radius: 0; border-left: 0; border-top: 1px solid var(--line); }
.boxes-reset {
  appearance: none; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer;
}
.boxes-reset:hover { border-color: var(--line-strong); color: var(--brand); }
.boxes-reset:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.boxes-table-wrap { max-height: 70vh; }
.boxes-table { min-width: 760px; }
.boxes-table td:nth-child(2) { white-space: normal; min-width: 180px; }
.box-name-note { color: var(--accent); font-weight: 700; cursor: help; }

@media (max-width: 900px) {
  .boxes-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .boxes-summary { grid-template-columns: 1fr; }
  .boxes-table { min-width: 700px; }
}
