/* ============================================================
 * score.css — 站点评分列表（内联展开，对齐 chaoshun）
 * ============================================================ */

.score-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.score-toolbar input,
.score-toolbar select {
  padding: 8px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--txt);
  font-size: 12.5px;
  outline: none;
}
.score-toolbar input { width: 220px; }
.score-toolbar input:focus { border-color: var(--acc); }

/* ---------------- 列表容器 ---------------- */
.score-list {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.score-row {
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.score-row:last-child { border-bottom: none; }
.score-row.open { background: rgba(59, 130, 246, .03); }

/* ---------------- 折叠状态的一行 ---------------- */
.score-head {
  display: grid;
  grid-template-columns: 200px 130px 44px 1fr 300px 26px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background .15s;
}
.score-head:hover { background: var(--bg-3); }

.score-domain-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-domain-meta {
  font-size: 11px;
  color: var(--txt-3);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mini-btn {
  padding: 1px 7px;
  font-size: 10px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--txt-3);
  cursor: pointer;
  transition: .15s;
}
.mini-btn:hover { color: var(--acc); border-color: var(--acc); }

/* 分数 + 进度条 */
.score-meter { display: flex; align-items: center; gap: 9px; }
.score-num {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.4px;
  min-width: 38px;
}
.score-bar {
  flex: 1;
  height: 5px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  min-width: 56px;
}
.score-bar i { display: block; height: 100%; border-radius: 3px; transition: width .4s; }

/* 等级 */
.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.grade-pill.ok { background: rgba(16, 185, 129, .16); color: var(--green); }
.grade-pill.warn { background: rgba(245, 158, 11, .16); color: var(--amber); }
.grade-pill.bad { background: rgba(239, 68, 68, .16); color: var(--red); }

/* 六维分数横排 */
.score-dims {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}
.dim-cell {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 46px;
}

/* 问题摘要 */
.score-summary {
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.score-caret { color: var(--txt-3); font-size: 11px; text-align: center; }

/* ---------------- 展开的详情 ---------------- */
.score-detail {
  padding: 0 18px 20px;
  border-top: 1px dashed var(--line);
  background: var(--bg);
}

/* 主体基线 */
.baseline-line {
  padding: 13px 15px;
  margin: 14px 0;
  background: var(--bg-2);
  border-left: 3px solid var(--acc);
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--txt-2);
}
.baseline-line b { color: var(--txt); font-weight: 600; }
.baseline-line .miss { color: var(--red); }

/* 六维卡片 */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.dim-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
}
.dim-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.dim-title { font-size: 12px; font-weight: 650; }
.dim-score { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dim-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  padding: 3px 0;
  color: var(--txt-3);
}
.dim-val { font-variant-numeric: tabular-nums; flex-shrink: 0; font-weight: 500; }

/* 问题列表 */
.issue-list { margin-bottom: 14px; }
.issue-item {
  padding: 9px 14px;
  margin-bottom: 6px;
  background: rgba(239, 68, 68, .07);
  border: 1px solid rgba(239, 68, 68, .22);
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--red);
}

/* 插件体检 */
.pcheck-block { margin-bottom: 14px; }
.pcheck-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcheck-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 13px;
  margin-bottom: 5px;
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1.6;
}
.pcheck-item.pass { background: rgba(16, 185, 129, .07); border: 1px solid rgba(16, 185, 129, .2); }
.pcheck-item.fail-must { background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .24); }
.pcheck-item.fail-suggest { background: rgba(245, 158, 11, .07); border: 1px solid rgba(245, 158, 11, .22); }
.pcheck-level { flex-shrink: 0; font-weight: 600; }
.pcheck-item.pass .pcheck-level { color: var(--green); }
.pcheck-item.fail-must .pcheck-level { color: var(--red); }
.pcheck-item.fail-suggest .pcheck-level { color: var(--amber); }
.pcheck-code {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--txt-3);
  min-width: 108px;
}
.pcheck-text { flex: 1; color: var(--txt-2); }

/* 截图 */
.shot-block { margin-bottom: 6px; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 9px;
}
.shot-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.shot-item:hover { border-color: var(--acc); transform: translateY(-1px); }
.shot-item img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--bg-3);
}
.shot-item.missing {
  border-style: dashed;
  border-color: rgba(245, 158, 11, .45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 143px;
}
.shot-missing-txt {
  font-size: 11.5px;
  color: var(--amber);
  text-align: center;
  line-height: 1.7;
}
.shot-cap {
  padding: 5px 9px;
  font-size: 10.5px;
  color: var(--txt-3);
  border-top: 1px solid var(--line);
}

/* 浅色微调 */
[data-theme="light"] .score-row.open { background: rgba(37, 99, 235, .03); }
[data-theme="light"] .baseline-line { background: #f8fafd; }
