
@import url('brand.css?v=20261028-topic-parity');

/* ============================================================
   topic 专有：品牌专题详情页
   （顶/底/导航 走 public/head.php 公共头）
   ============================================================ */

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

/* ----- 专题 Hero ----- */
.topic-hero {
  background: linear-gradient(135deg, #f0f6fd 0%, #e3eef9 100%);
  border: 1px solid var(--portal-border);
  border-left: 4px solid var(--portal-blue);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.topic-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,109,216,.08) 0%, transparent 70%);
}
.topic-hero__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--portal-blue);
  border-radius: 2px;
  margin-bottom: 12px;
  position: relative;
}
.topic-hero__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 12px;
  line-height: 1.35;
  position: relative;
}
.topic-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--portal-text-light);
  flex-wrap: wrap;
  position: relative;
}
.topic-hero__meta strong {
  color: var(--portal-blue);
  font-weight: 700;
  margin: 0 2px;
}

/* ----- 通用卡片 ----- */
.card {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--portal-border);
  background: linear-gradient(to right, rgba(30,109,216,.04), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.topic-brands__count {
  font-size: 12px;
  color: var(--portal-text-light);
}

/* ----- 专题正文 ----- */
.topic-body__content {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--portal-text);
  line-height: 1.85;
}
.topic-body__content p {
  margin: 0 0 14px;
}
.topic-body__content h2,
.topic-body__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.topic-body__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 4px;
}
.topic-body__content a {
  color: var(--portal-blue);
  text-decoration: none;
}
.topic-body__content a:hover {
  text-decoration: underline;
}
.topic-body__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--portal-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #fafafa;
  font-size: 12px;
  color: var(--portal-text-light);
}
.topic-body__footer .source { color: var(--portal-text-light); }
.topic-body__footer .actions { display: flex; align-items: center; gap: 14px; }
.action-btn {
  color: var(--portal-blue);
  cursor: pointer;
  text-decoration: none;
}
.action-btn:hover { text-decoration: underline; }

/* ----- 参与品牌 ----- */
.topic-brands__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.topic-brand-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #fafafa;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
}
.topic-brand-card:hover {
  background: #f0f6fd;
  border-color: var(--portal-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30,109,216,.1);
}
.topic-brand-card__logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(30,109,216,.2);
}
.topic-brand-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.topic-brand-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.topic-brand-card:hover .topic-brand-card__name { color: var(--portal-blue); }
.topic-brand-card__cat {
  font-size: 11px;
  color: var(--portal-blue);
  background: #f0f6fd;
  display: inline-block;
  padding: 1px 7px;
  border-radius: 2px;
  align-self: flex-start;
}
.topic-brand-card__desc {
  font-size: 12px;
  color: var(--portal-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ----- 相关专题 ----- */
.related-topics {
  padding: 8px 0;
}
.related-topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px dotted var(--portal-border);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.related-topic-item:last-child { border-bottom: none; }
.related-topic-item:hover { background: rgba(30,109,216,.02); }
.related-topic-item__date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--portal-text-light);
  font-family: Consolas, Monaco, monospace;
  width: 40px;
}
.related-topic-item__title {
  flex: 1;
  font-size: 14px;
  color: var(--portal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.related-topic-item:hover .related-topic-item__title { color: var(--portal-blue); }

/* ----- 侧栏 ----- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 16px;
}
.sidebar-card-header {
  margin: -16px -16px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--portal-border);
  background: linear-gradient(to right, rgba(30,109,216,.04), transparent);
}
.sidebar-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}

/* 热门专题 */
.sidebar-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-topics li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--portal-border);
  font-size: 13px;
}
.sidebar-topics li:last-child { border-bottom: none; }
.sidebar-topics__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-topics__num.top {
  color: #fff;
  background: var(--portal-blue);
}
.sidebar-topics__title {
  flex: 1;
  min-width: 0;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.sidebar-topics__title:hover { color: var(--portal-blue); }

/* 侧栏广告 */
.sidebar-ad {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 8px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-text-light);
  font-size: 12px;
}

/* 相关行业（词云） */
.sidebar-cloud {
  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;
}

/* CTA 卡 */
.sidebar-cta {
  text-align: center;
}
.sidebar-cta h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0 0 8px;
}
.sidebar-cta p {
  font-size: 12px;
  color: var(--portal-text-light);
  margin: 0 0 12px;
  line-height: 1.6;
}
.sidebar-cta__btn {
  display: inline-block;
  padding: 8px 24px;
  background: var(--portal-blue);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  transition: background .2s ease;
}
.sidebar-cta__btn:hover { background: var(--portal-blue-dark); color: #fff; }

/* ----- 专题列表页（无 tid 模式）— 直接复用 brand.css 的 .brand-hot 完整样式 ----- */
/* 列表页用 brand.css 里的 .brand-hot__big / .brand-hot__sm / .brand-hot__list / .brand-hot__widget 等 */
/* 这里只加 topic 特有的小调整 */

/* 大卡的 "品质保证" → "品牌专题" cap 不用改样式（直接复用）*/
/* 但大卡 stats 我们用"参与品牌数 + 发布日期"代替"关注 + 评分"，原样式照样用 */

.brand-hot__widget-banner-fake {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #f0f6fd 0%, #e3eef9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-text-light);
  font-size: 13px;
  border-radius: 0 0 4px 4px;
}

/* ============ 列表页：顶部热门推荐标签（仿 brand.php brand-banner 横排） ============ */
/* 直接复用 brand.css 里的 .brand-banner__hot / .brand-banner__tag / .brand-banner__tag--hot 样式 */
/* 这里只加个外层 section 容器样式（提供上下 margin） */
.brand-banner__hot-wrap {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 14px 20px;
}

/* ============ 列表页：底部专题新闻 2 列 ============ */
.topic-news {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 16px 0;
}
.topic-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--portal-border);
}
.topic-news__head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--portal-blue);
}
.topic-news__more {
  font-size: 13px;
  color: var(--portal-text-light);
  text-decoration: none;
  transition: color .2s ease;
}
.topic-news__more:hover { color: var(--portal-blue); }

.topic-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-list-compact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list-compact li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--portal-border);
  font-size: 14px;
  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-list-compact .news-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--portal-text-light);
  font-family: Consolas, Monaco, monospace;
  width: 40px;
}
.news-list-compact li a {
  flex: 1;
  min-width: 0;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.news-list-compact li a:hover { color: var(--portal-blue); }

/* ----- 响应式（brand-hot 自带响应式在 brand.css，topic.css 只覆盖 topic 详情页部分）----- */
@media (max-width: 991px) {
  .content-wrapper__inner { grid-template-columns: 1fr; }
  .topic-brands__grid { grid-template-columns: 1fr; }
  .topic-news__grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .topic-hero { padding: 16px 20px; }
  .topic-hero__title { font-size: 20px; }
  .topic-body__content { padding: 16px 18px; font-size: 14px; }
  .related-topic-item { padding: 8px 16px; }
  .related-topic-item__date { width: 36px; font-size: 11px; }
  .topic-tags { padding: 14px 16px; }
  .topic-tags__head h2 { font-size: 16px; }
  .topic-news { padding: 14px 16px; }
  .topic-news__head h2 { font-size: 16px; }
  .news-list-compact .news-date { width: 32px; font-size: 11px; }
  .news-list-compact li a { font-size: 13px; }
}
