

/* ============================================================
   pinpai_view 专有：品牌详情页
   （顶/底/导航 走 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 ----- */
.brand-hero {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  gap: 20px;
  position: relative;
  margin-bottom: 16px;
}
.brand-hero-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px 6px 0 0;
}
.brand-hero-badge img {
  width: 48px;
  height: 48px;
}
.brand-hero-content { flex: 1; min-width: 0; }
.brand-header-main {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--portal-border);
}
.brand-pic {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(30,109,216,.2);
}
.brand-info { flex: 1; min-width: 0; }
.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.brand-title-row h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0;
}
.brand-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.brand-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--portal-blue);
  padding: 2px 8px;
  border-radius: 2px;
}
.brand-tag.brand-tag--gray {
  background: #999;
}
.brand-products {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--portal-text-light);
}
.products-label { margin-right: 4px; }
.product-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--portal-text-mid);
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: all .2s ease;
}
.product-tag:hover {
  background: #f0f6fd;
  color: var(--portal-blue);
}
.brand-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.brand-meta-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.brand-meta-item-wide { grid-column: 1 / -1; }
.brand-meta-label {
  color: var(--portal-text-light);
  flex-shrink: 0;
}
.brand-meta-value {
  color: var(--portal-text);
  word-break: break-all;
}
.brand-meta-value a {
  color: var(--portal-blue);
  text-decoration: none;
}
.brand-meta-value a:hover { text-decoration: underline; }

/* ----- 通用卡片 ----- */
.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);
}

/* ----- 品牌介绍 ----- */
.intro-card-header {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--portal-border);
}
.intro-right { flex: 1; min-width: 0; }
.intro-right .card-header {
  padding: 0 0 8px;
  background: none;
  border-bottom: none;
  margin-bottom: 8px;
}
.intro-summary {
  font-size: 14px;
  color: var(--portal-text-mid);
  line-height: 1.7;
}
.intro-text {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--portal-text);
  line-height: 1.85;
}
.intro-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);
}
.intro-footer .source { color: var(--portal-text-light); }
.intro-footer .actions { display: flex; align-items: center; gap: 12px; }
.action-btn {
  color: var(--portal-blue);
  cursor: pointer;
  text-decoration: none;
}
.action-btn:hover { text-decoration: underline; }
.update-time { color: var(--portal-text-light); }

/* ----- 企业信息表 ----- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.company-table th,
.company-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--portal-border);
  text-align: left;
  vertical-align: top;
}
.company-table th {
  background: #fafafa;
  color: var(--portal-text-light);
  font-weight: 500;
  width: 120px;
  flex-shrink: 0;
}
.company-table td {
  color: var(--portal-text);
}
.company-table td a {
  color: var(--portal-blue);
  text-decoration: none;
  word-break: break-all;
}
.company-table td a:hover { text-decoration: underline; }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

/* ----- 上榜行业 ----- */
.industry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px 20px;
}
.industry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--portal-border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}
.industry-item:hover {
  background: #f0f6fd;
  border-color: var(--portal-blue);
}
.char-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.industry-item .name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.industry-item .ranking {
  font-size: 12px;
  color: var(--portal-blue);
  font-weight: 600;
  flex-shrink: 0;
}

/* ----- 资讯列表（聚集 / 品牌相关）----- */
.news-list {
  padding: 8px 0;
}
.news-item {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px dotted var(--portal-border);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(30,109,216,.02); }
.news-item .content { min-width: 0; }
.news-item .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--portal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.news-item:hover .title { color: var(--portal-blue); }
.news-item .desc {
  font-size: 12px;
  color: var(--portal-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.news-card {
  display: block;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--portal-border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}
.news-card:hover {
  background: #f0f6fd;
  border-color: var(--portal-blue);
}
.news-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-text);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-title { color: var(--portal-blue); }
.news-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;
}

/* ----- 侧栏 ----- */
.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);
}

/* 认证信息卡 */
.qrcode-section {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--portal-border);
}
.qrcode-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--portal-text);
}
.auth-info {
  text-align: center;
}
.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-dark) 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.auth-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.auth-title h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-text);
  margin: 0;
}
.auth-claim {
  font-size: 11px;
  color: #fff;
  background: var(--portal-blue);
  padding: 1px 6px;
  border-radius: 2px;
  cursor: pointer;
}
.auth-tags {
  font-size: 12px;
  color: var(--portal-text-light);
  margin-bottom: 12px;
  line-height: 1.6;
  word-break: break-all;
}
.auth-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.auth-stat {
  text-align: center;
  padding: 8px 4px;
  background: #fafafa;
  border-radius: 3px;
}
.auth-stat .n {
  font-size: 16px;
  font-weight: 700;
  color: var(--portal-blue);
  line-height: 1;
}
.auth-stat .label {
  font-size: 11px;
  color: var(--portal-text-light);
  margin-top: 4px;
}
.auth-btn {
  width: 100%;
  padding: 10px;
  background: var(--portal-blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
}
.auth-btn:hover { background: var(--portal-blue-dark); }

/* tab 切换 */
.tab-header {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--portal-border);
}
.tab-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--portal-text-mid);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--portal-blue); }
.tab-btn.active {
  color: var(--portal-blue);
  border-bottom-color: var(--portal-blue);
  font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* 排名项 */
.rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--portal-border);
  font-size: 13px;
}
.rank-item:last-child { border-bottom: none; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  background: transparent;
  border-radius: 2px;
  flex-shrink: 0;
}
.rank-badge.top1 { background: linear-gradient(135deg, #ffd700, #ffb700); color: #fff; box-shadow: 0 1px 2px rgba(255,183,0,.3); }
.rank-badge.top2 { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); color: #fff; box-shadow: 0 1px 2px rgba(168,168,168,.3); }
.rank-badge.top3 { background: linear-gradient(135deg, #cd7f32, #b87333); color: #fff; box-shadow: 0 1px 2px rgba(184,115,51,.3); }
.rank-name {
  flex: 1;
  min-width: 0;
  color: var(--portal-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-name:hover { color: var(--portal-blue); }
.rank-score {
  font-size: 11px;
  color: var(--portal-blue);
  flex-shrink: 0;
}

/* ----- 响应式 ----- */
@media (max-width: 991px) {
  .content-wrapper__inner { grid-template-columns: 1fr; }
  .brand-meta-grid { grid-template-columns: 1fr; }
  .brand-meta-item-wide { grid-column: 1; }
  .industry-list { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .auth-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .brand-hero { flex-direction: column; padding: 16px; }
  .brand-header-main { flex-direction: column; align-items: flex-start; text-align: left; }
  .brand-title-row h1 { font-size: 20px; }
  .brand-pic { width: 64px; height: 64px; font-size: 26px; }
  .company-table th, .company-table td { padding: 8px 12px; font-size: 13px; }
  .company-table th { width: 90px; }
  .industry-list { grid-template-columns: 1fr; }
}
