

/* ============================================================
   news_list 专有：资讯列表页（主题色 portal-blue，跟新站 token 一致）
   ============================================================ */

.news-list-compact {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.news-list-compact li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px dotted var(--portal-border-light);
  transition: background .2s ease;
}
.news-list-compact li:last-child { border-bottom: none; }
.news-list-compact li:hover { background: rgba(30,109,216,.02); }
.news-date {
  font-size: 12px;
  color: var(--portal-text-light);
  flex-shrink: 0;
  font-family: Consolas, Monaco, monospace;
  width: 48px;
}
.news-list-compact li a {
  flex: 1;
  color: var(--portal-text);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.news-list-compact li a:hover { color: var(--portal-blue); }

@media (max-width: 480px) {
  .news-list-compact li {
    padding: 8px 12px;
    gap: 8px;
  }
  .news-date { width: 36px; font-size: 11px; }
  .news-list-compact li a { font-size: 13px; }
}/* ============================================================
   资讯列表页专有：分类 tab（侧栏内，竖排）
   ============================================================ */
.news-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.news-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  width: 100%;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  color: var(--portal-text);
  border-radius: 4px;
  text-decoration: none;
  text-align: left;
  transition: all .2s ease;
  position: relative;
  cursor: pointer;
}
.news-tab__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.news-tab__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke-width: 2;
}
.news-tab:hover {
  background: rgba(30,109,216,.04);
  color: var(--portal-blue);
}
.news-tab:hover .news-tab__icon svg {
  color: var(--portal-blue);
}
.news-tab.active {
  background: var(--portal-blue);
  color: #fff;
  font-weight: 600;
}
.news-tab.active .news-tab__icon svg {
  color: #fff;
}
.news-tab.active::before {
  display: none;
}

/* ============================================================
   资讯列表页专有：主区 + 侧栏 grid 布局
   ============================================================ */
.news-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin-bottom: 24px;
}

/* ============================================================
   资讯列表页专有：资讯卡片（每条新闻，截图纵向卡片风）
   ============================================================ */
.news-list-container {
  background: #fff;
  border: 1px solid var(--portal-border-light);
  border-radius: 6px;
  overflow: hidden;
}
.news-list-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--portal-border-light);
  background: linear-gradient(to right, rgba(30,109,216,.04), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-list-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
}
.news-list-header span {
  font-size: 13px;
  color: var(--portal-text-light);
}

.news-item {
  padding: 22px 24px;
  border-bottom: 1px solid var(--portal-border-light);
  transition: all .2s ease;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover {
  background: rgba(30,109,216,.02);
}
.news-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.news-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.news-item__title a:hover { color: var(--portal-blue); }
.news-item__excerpt {
  font-size: 14px;
  color: var(--portal-text-mid);
  line-height: 1.75;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--portal-text-light);
}
.news-item__views,
.news-item__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-item__views svg,
.news-item__date svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--portal-text-light);
}

/* ============================================================
   资讯列表页专有：侧栏
   ============================================================ */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--portal-border-light);
  border-radius: 6px;
  padding: 16px;
}
.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 12px;
  padding-left: 8px;
  border-left: 3px solid var(--portal-blue);
}

/* 合作品牌 logo 网格 */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: #fafafa;
  border: 1px solid var(--portal-border-light);
  border-radius: 4px;
  text-decoration: none;
  transition: all .2s ease;
}
.logo-item:hover {
  background: #fff;
  border-color: var(--portal-blue);
  transform: translateY(-2px);
}
.char-logo {
  width: 40px;
  height: 40px;
  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-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.logo-name {
  font-size: 12.5px;
  color: var(--portal-text);
  text-align: center;
  /*white-space: nowrap;*/
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.logo-item:hover .logo-name { color: var(--portal-blue); }

/* 品牌简易榜 */
.simple-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}
.simple-rank li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dotted var(--portal-border-light);
}
.simple-rank li:last-child { border-bottom: none; }
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #f0f0f0;
  color: var(--portal-text-light);
  border-radius: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}
.rank-name {
  flex: 1;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.rank-name:hover { color: var(--portal-blue); }
.rank-score {
  font-size: 11px;
  color: var(--portal-text-light);
  flex-shrink: 0;
}

/* 热门标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud a {
  font-size: 14px;
  color: var(--portal-text-mid);
  text-decoration: none;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 3px;
  transition: all .2s ease;
}
.tag-cloud a:hover {
  background: var(--portal-blue);
  color: #fff;
}

/* ============================================================
   资讯列表页响应式
   ============================================================ */
@media (max-width: 991px) {
  .news-main { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .news-card {
    flex-wrap: wrap;
    gap: 8px;
  }
  .news-card__date { width: 100%; }
  .news-card__title { width: 100%; font-size: 13px; }
  .news-card__arrow { display: none; }
}

/* ============ 通用分页（兜底：news_list 自身也有 .pagination，index.css 没加载时也生效）============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--portal-border);
  color: var(--portal-text);
  text-decoration: none;
  transition: all .2s ease;
}
.pagination a:hover {
  border-color: var(--portal-blue);
  color: var(--portal-blue);
}
.pagination .active {
  background: var(--portal-blue);
  border-color: var(--portal-blue);
  color: #fff;
}
.pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}
.news-tab-panel[hidden] { display: none !important; }
.news-tab-pagination { margin: 22px 0 26px; padding-top: 17px; border-top: 1px solid var(--portal-border-light); }

/* Topbang 新闻列表：左侧阅读流 + 右侧企业/品牌信息栏 */
.tb-list-page { padding-top: 24px; padding-bottom: 54px; }
.tb-list-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: #9aa3ad; font-size: 12px; }
.tb-list-breadcrumb a { color: #758190; }
.tb-list-breadcrumb a:hover { color: var(--portal-blue); text-decoration: none; }
.tb-list-tabs { flex-direction: row; gap: 8px; margin: 0 0 25px; padding-bottom: 12px; border-bottom: 1px solid var(--portal-border); }
.tb-list-tabs .news-tab { min-width: 108px; justify-content: center; padding: 10px 18px; border-radius: 2px; color: #4b5663; }
.tb-list-tabs .news-tab:hover { background: #edf4fc; color: var(--portal-blue); }
.tb-list-tabs .news-tab.active { background: var(--portal-blue); color: #fff; }
.tb-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 0 0 13px; border-bottom: 2px solid var(--portal-blue); }
.tb-list-heading>div { display: flex; align-items: center; gap: 11px; }
.tb-list-heading__mark { width: 4px; height: 23px; background: var(--portal-blue); }
.tb-list-heading h1 { margin: 0; color: #252d36; font-size: 22px; line-height: 1.3; }
.tb-list-heading p { flex: none; margin: 0; color: var(--portal-text-light); font-size: 13px; }
.tb-list-heading p strong { color: var(--portal-blue); font-size: 15px; }
.tb-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; align-items: start; }
.tb-list-feed { min-width: 0; background: #fff; border-top: 1px solid var(--portal-border-light); }
.tb-list-story { display: flex; align-items: center; gap: 18px; min-height: 150px; padding: 22px 20px; border-bottom: 1px solid #e9edf1; }
.tb-list-story:hover { background: #fbfcfe; }
.tb-list-story__body { min-width: 0; flex: 1; }
.tb-list-story h2 { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.tb-list-story h2 a { color: #26313c; text-decoration: none; }
.tb-list-story h2 a:hover { color: var(--portal-blue); }
.tb-list-story__summary { display: -webkit-box; margin: 0 0 12px; overflow: hidden; color: #687482; font-size: 14px; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tb-list-story__meta { display: flex; flex-wrap: wrap; gap: 14px; color: #9aa3ad; font-size: 12px; }
.tb-list-story__read { flex: none; padding: 7px 12px; border: 1px solid #dce4ec; color: #607080; font-size: 12px; text-decoration: none; }
.tb-list-story__read:hover { border-color: var(--portal-blue); color: var(--portal-blue); text-decoration: none; }
.tb-list-empty { padding: 58px 20px; color: #6c7784; text-align: center; }
.tb-list-empty strong { display: block; margin-bottom: 8px; color: #303b47; font-size: 17px; }
.tb-list-empty p { margin: 0 0 16px; font-size: 13px; }
.tb-list-empty>a { color: var(--portal-blue); font-size: 13px; }
.tb-list-pagination { margin: 25px 0 0; }
.tb-list-aside { display: flex; min-width: 0; flex-direction: column; gap: 15px; }
.tb-list-panel { padding: 16px; background: #fff; border: 1px solid #e8edf2; }
.tb-list-panel>header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; padding: 0 0 10px; border-bottom: 1px solid #e9edf1; }
.tb-list-panel>header h2 { margin: 0; color: #2d3742; font-size: 16px; }
.tb-list-panel>header>a { color: #8994a0; font-size: 12px; text-decoration: none; }
.tb-list-panel>header>a:hover { color: var(--portal-blue); }
.tb-list-companies { margin: 0; padding: 0; list-style: none; }
.tb-list-companies li+li { border-top: 1px solid #f0f2f5; }
.tb-list-companies li>a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; }
.tb-list-company__initial,.tb-list-brand-grid a>span { display: grid; width: 34px; height: 34px; flex: none; place-items: center; background: #edf3fa; color: var(--portal-blue); font-size: 15px; font-weight: 700; }
.tb-list-company__text { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.tb-list-company__text strong { overflow: hidden; color: #35404b; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tb-list-company__text small { color: #98a1ac; font-size: 11px; }
.tb-list-companies li>a:hover .tb-list-company__text strong { color: var(--portal-blue); }
.tb-list-brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.tb-list-brand-grid a { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 6px; padding: 10px 5px; border: 1px solid #edf0f3; color: #4a5663; text-decoration: none; }
.tb-list-brand-grid a:hover { border-color: #b9d2ed; color: var(--portal-blue); }
.tb-list-brand-grid a>span { width: 36px; height: 36px; border-radius: 50%; }
.tb-list-brand-grid a strong { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tb-list-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tb-list-tags a { padding: 5px 9px; background: #f3f6f9; color: #647181; font-size: 12px; text-decoration: none; }
.tb-list-tags a:hover { background: #e5eff9; color: var(--portal-blue); }
.tb-list-aside-empty { margin: 0; color: #9aa3ad; font-size: 12px; }
.tb-list-ad { margin: 0; }

@media (max-width: 900px) {
  .tb-list-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 16px; }
  .tb-list-story { padding: 19px 16px; }
}
@media (max-width: 680px) {
  .tb-list-page { padding-top: 16px; padding-bottom: 34px; }
  .tb-list-tabs { overflow-x: auto; flex-wrap: nowrap; margin-bottom: 20px; scrollbar-width: none; }
  .tb-list-tabs::-webkit-scrollbar { display: none; }
  .tb-list-tabs .news-tab { min-width: max-content; padding: 9px 14px; }
  .tb-list-heading { align-items: center; }
  .tb-list-heading h1 { font-size: 19px; }
  .tb-list-layout { grid-template-columns: minmax(0,1fr); }
  .tb-list-aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .tb-list-ad { grid-column: 1 / -1; }
  .tb-list-story { min-height: 0; padding: 17px 13px; }
  .tb-list-story h2 { font-size: 16px; }
  .tb-list-story__summary { font-size: 13px; }
  .tb-list-story__read { display: none; }
}
@media (max-width: 420px) {
  .tb-list-aside { grid-template-columns: minmax(0,1fr); }
}
