/* ==========================================================================
   厂商智力 /vendor-intelligence：复用 rankings.css 的 hero/rank-content/
   rank-empty/rank-footer，这里只补汇总条、口径说明与厂商卡片网格。
   配色沿用站点暗色变量（#0a0a0f 底 / #111118 卡 / #23233a 边 / #8b8b9e 次要字）。
   ========================================================================== */

/* 全平台汇总：左边一个大数字，右边四项明细，窄屏自动换行 */
.vi-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px 48px;
  margin-bottom: 20px; padding: 24px 28px; border-radius: 14px;
  border: 1px solid #23233a;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(167,139,250,0.05));
}
.vi-sum-main { display: flex; flex-direction: column; gap: 4px; }
.vi-sum-label { font-size: 13px; font-weight: 600; color: #a78bfa; text-transform: uppercase; letter-spacing: 0.5px; }
.vi-sum-value { font-size: 44px; font-weight: 800; line-height: 1.1; color: #e8e8ed; }
.vi-sum-side { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.vi-sum-item { display: flex; flex-direction: column; gap: 4px; }
.vi-sum-k { font-size: 12px; color: #5c5c72; }
.vi-sum-v { font-size: 18px; font-weight: 700; color: #e8e8ed; }

/* 口径说明：公开页必须有，否则百分比很容易被读反 */
.vi-note {
  margin-bottom: 28px; padding: 20px 24px;
  border-radius: 12px; border: 1px solid #1c1c28; background: #0d0d14;
}
.vi-note-title { font-size: 14px; font-weight: 700; color: #8b8b9e; margin: 0 0 12px; }
.vi-note-list { margin: 0; padding-left: 20px; }
.vi-note-list li { font-size: 13px; line-height: 1.85; color: #8b8b9e; }

.vi-grid-title { font-size: 18px; font-weight: 700; color: #e8e8ed; margin: 0 0 14px; }

/* 厂商卡片网格 */
.vi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; min-height: 200px; }
.vi-grid .rank-empty { grid-column: 1 / -1; }

.vi-card {
  padding: 18px 20px; border-radius: 12px;
  border: 1px solid #23233a; background: #111118; transition: border-color 0.2s;
}
.vi-card:hover { border-color: #313150; }

.vi-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vi-icon { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #1c1c28; flex-shrink: 0; }
.vi-icon-fallback {
  width: 26px; height: 26px; border-radius: 6px; background: #1c1c28; color: #8b8b9e;
  font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; flex-shrink: 0;
}
.vi-name { font-size: 15px; font-weight: 600; color: #e8e8ed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-code { font-size: 12px; color: #5c5c72; margin-left: auto; flex-shrink: 0; }

.vi-score { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.vi-score-num { font-size: 30px; font-weight: 800; line-height: 1; }
.vi-score-pct { font-size: 15px; font-weight: 600; }

.vi-bar { height: 6px; border-radius: 3px; background: #1c1c28; overflow: hidden; margin-bottom: 12px; }
.vi-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }

.vi-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #5c5c72; }
.vi-unjudged { margin-top: 10px; font-size: 12px; line-height: 1.6; color: #5c5c72; }

@media (max-width: 640px) {
  .vi-summary { padding: 20px; gap: 16px 28px; }
  .vi-sum-value { font-size: 34px; }
  .vi-sum-side { gap: 12px 24px; }
  .vi-grid { grid-template-columns: 1fr; }
}
