

/* ============================================================
   pinpai_list 专有：分类品牌榜（10 大品牌排行榜）
   ============================================================ */

/* 主体两栏布局 */
.main-layout {
  padding: 16px 0 24px;
}
.main-layout__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

/* ============================================================
   列表部分（list-header + brands-grid + brand-row）
   ============================================================ */

/* 主区头部 */
.list-header {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 16px;
  text-align: center;
}
.list-header__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 8px;
  line-height: 1.2;
}
.list-header__title span { color: var(--portal-blue); }
.list-header__subtitle {
  font-size: 13px;
  color: var(--portal-text-light);
  margin: 0 0 10px;
}
.list-header__stat {
  display: inline-flex;
  gap: 24px;
  font-size: 12px;
  color: var(--portal-text-light);
  flex-wrap: wrap;
  justify-content: center;
}
.list-header__stat strong {
  color: var(--portal-blue);
  font-size: 16px;
  font-weight: 700;
  margin: 0 2px;
}

/* 品牌网格（纵向） */
.brands-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* 品牌卡 */
.brand-row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px 20px;
  transition: all .25s ease;
}
.brand-row:hover {
  border-color: var(--portal-blue);
  box-shadow: 0 6px 14px rgba(30,109,216,.08);
  transform: translateY(-1px);
}

/* Rank：右上角大数字（NO.X，金/银/铜） */
.brand-row__rank {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 12px 4px 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border-radius: 0 0 0 8px;
  user-select: none;
  font-size: 26px;
  font-weight: 900;
  color: #d8d8d8;
  background: #fafafa;
  letter-spacing: -1px;
  line-height: 1;
}
.brand-row__rank::before {
  content: 'NO.';
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: inherit;
  opacity: 0.55;
  align-self: flex-start;
  padding-top: 6px;
}
/* 1-3 名：金银铜 */
.brand-row__rank.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(184,115,51,.4);
}
.brand-row__rank.silver {
  background: linear-gradient(135deg, #d8d8d8 0%, #b8b8b8 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120,120,120,.4);
}
.brand-row__rank.bronze {
  background: linear-gradient(135deg, #d4915a 0%, #b87333 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120,80,30,.4);
}

/* Logo */
.brand-row__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(30,109,216,.2);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.brand-row:hover .brand-row__logo { transform: scale(1.05); }

/* 信息区 */
.brand-row__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
  padding-right: 110px;
}
.brand-row__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.brand-row__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-row__name:hover { color: var(--portal-blue); }
.brand-row__keyword {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--portal-blue);
  background: #f0f6fd;
  border: 1px solid rgba(30,109,216,.25);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .2s ease;
}
.brand-row__keyword:hover {
  background: var(--portal-blue);
  color: #fff;
  border-color: var(--portal-blue);
}
.brand-row__score {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}
.brand-row__score-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--portal-blue);
  line-height: 1;
}
.brand-row__score-label {
  font-size: 11px;
  color: var(--portal-text-light);
}

.brand-row__company {
  font-size: 12px;
  color: var(--portal-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-row__intro {
  font-size: 12px;
  color: var(--portal-text-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 0;
}

/* 榜单说明 */
.list-notice {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--portal-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.list-notice strong { color: var(--portal-text); }
.list-notice h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}

/* 相关榜单 */
.list-related {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.list-related h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.list-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.list-related__item {
  display: block;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid var(--portal-border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--portal-text);
  text-decoration: none;
  text-align: center;
  transition: all .2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-related__item:hover {
  background: #f0f6fd;
  color: var(--portal-blue);
  border-color: var(--portal-blue);
}

/* 空状态 */
.list-empty {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 80px 20px;
  text-align: center;
  color: var(--portal-text-light);
  font-size: 14px;
}
.list-empty svg {
  display: block;
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* ----- 侧栏 ----- */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 侧栏品牌 logo 区域 */
.sidebar-logos {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px;
}
.sidebar-logos h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.sidebar-logos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sidebar-logos__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border: 1px solid var(--portal-border);
  border-radius: 4px;
  padding: 10px 6px;
  text-decoration: none;
  transition: all .2s ease;
  text-align: center;
  overflow: hidden;
}
.sidebar-logos__char {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  box-shadow: 0 2px 4px rgba(30,109,216,.2);
  flex-shrink: 0;
}
.sidebar-logos__name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--portal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
  transition: color .2s ease;
}
.sidebar-logos__item:hover {
  border-color: var(--portal-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30,109,216,.1);
}
.sidebar-logos__item:hover .sidebar-logos__name {
  color: var(--portal-blue);
}

/* 词云 */
.sidebar-cloud {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px;
}
.sidebar-cloud h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.sidebar-cloud__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-cloud__item {
  font-size: 12px;
  color: var(--portal-text-mid);
  text-decoration: none;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 3px;
  transition: all .2s ease;
}
.sidebar-cloud__item:hover {
  background: var(--portal-blue);
  color: #fff;
}

/* 简易排行榜 */
.sidebar-mini-rank {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px;
}
.sidebar-mini-rank h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.sidebar-mini-rank ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-mini-rank li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--portal-border);
  font-size: 13px;
}
.sidebar-mini-rank li:last-child { border-bottom: none; }
.sidebar-mini-rank .rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--portal-text-light);
  background: transparent;
  border-radius: 2px;
  flex-shrink: 0;
}
.sidebar-mini-rank .rank-num.top {
  color: #fff;
  background: var(--portal-blue);
}
.sidebar-mini-rank a {
  flex: 1;
  min-width: 0;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-mini-rank a:hover { color: var(--portal-blue); }

.sidebar-mini-rank .mini-chip {
  display: inline-block;
  flex-shrink: 0;
  max-width: 80px;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--portal-bg);
  color: var(--portal-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .2s ease;
}
.sidebar-mini-rank li:hover .mini-chip {
  background: #f0f6fd;
  color: var(--portal-blue);
}

/* ----- 响应式 ----- */
@media (max-width: 991px) {
  .main-layout__inner { grid-template-columns: 1fr; }
  .list-header__title { font-size: 26px; }
  .list-related__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .brand-row { grid-template-columns: 56px 1fr; }
  .brand-row__logo { width: 56px; height: 56px; font-size: 22px; }
  .brand-row__info { padding-right: 80px; }
  .brand-row__rank { font-size: 22px; padding: 3px 10px 3px 12px; }
  .brand-row__name { font-size: 18px; }
  .brand-row__keyword { font-size: 11px; padding: 1px 6px; max-width: 100px; }
  .brand-row__score-num { font-size: 18px; }
  .brand-row__score-label { font-size: 10px; }
}
@media (max-width: 575px) {
  .brand-row { grid-template-columns: 50px 1fr; }
  .brand-row__logo { width: 50px; height: 50px; font-size: 20px; }
  .brand-row__info { padding-right: 60px; }
  .brand-row__rank { font-size: 18px; padding: 3px 8px 3px 10px; }
  .brand-row__rank::before { font-size: 9px; padding-top: 4px; }
  .brand-row__name { font-size: 16px; }
  .brand-row__keyword { font-size: 10px; padding: 1px 5px; max-width: 80px; }
  .brand-row__score { display: none; }
  .list-related__grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar-logos__grid { grid-template-columns: repeat(4, 1fr); }
  .list-header__title { font-size: 20px; }
}
