/* =========================================================
   综合评分分析 · 独立样式（配合 style.css 基础变量）
   纯 CSS · 移动优先 · 无框架
   ========================================================= */

.score-header { padding-bottom: 14px; }
.score-header .brand h1 { font-size: 1.5rem; }

/* ---- 版本信息 ---- */
.score-meta-card h2 { margin-bottom: 10px; }
.score-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .86rem;
  color: var(--muted);
}
.score-meta strong { color: var(--accent-deep); font-weight: 700; }

/* ---- 期数切换按钮（联动评分） ---- */
.period-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.period-switch button {
  flex: 1;
  min-width: 72px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  touch-action: manipulation;
}
.period-switch button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-deep);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(109, 40, 217, .35);
  transform: scale(1.03);
}
.period-switch button:active { transform: scale(.97); }

/* ---- 评分卡列表（卡片流，避免横向表格） ---- */
.score-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.score-card:active { transform: scale(.99); }
.score-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank {
  width: 22px;
  font-size: .85rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.score-card .ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.12);
}
.ball.f { background: var(--front); }
.ball.b { background: var(--back); }
.score-total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-deep);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.score-total::before { content: "总分 "; font-size: .72rem; color: var(--muted); font-weight: 600; }

/* ---- 冷热标签 ---- */
.tag {
  font-size: .74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.hot { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tag.mid { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.tag.cold { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

.expand-hint { font-size: .74rem; color: #9aa1ad; }

/* ---- 评分分解（展开） ---- */
.score-parts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
}
.score-parts.hidden { display: none; }
.part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.part-lbl { color: var(--muted); }
.part-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.part-val.plus { color: var(--accent); }

/* ---- 图例 / 页脚 ---- */
.trend-legend {
  font-size: .8rem;
  color: var(--muted);
  margin: 10px 0 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.legend-note { margin-left: auto; font-size: .72rem; color: #9aa1ad; }
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ---- 小屏微调 ---- */
@media (max-width: 400px) {
  .period-switch button { min-width: 58px; font-size: .78rem; padding: 10px 2px; }
  .score-card-head { gap: 8px; }
  .score-total { font-size: 1.2rem; }
  .score-parts { grid-template-columns: 1fr; gap: 4px; }
}
