/* ============================================
   品牌库页面专用样式 - brand.css
   合作品牌库 / 产品中心 页面独有样式
   注意: 使用 .bp- 前缀避免与 style.css 的 .brand-card 冲突
   ============================================ */

:root {
  --gold: #c9a050;
}

/* ---------- 品牌Hero ---------- */
.brand-hero {
  background: linear-gradient(135deg, #0a1430 0%, #0b2a5e 60%, #0b5fd8 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.brand-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}
.brand-hero h1 em {
  font-style: normal;
  color: #7df0f2;
  font-weight: 700;
}
.brand-hero p {
  font-size: 16px;
  color: rgba(255,255,255,.88);
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.8;
}
.hero-stat {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-stat div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 16px 24px;
  min-width: 140px;
}
.hero-stat b {
  font-size: 30px;
  color: #7df0f2;
  font-weight: 800;
  display: block;
}
.hero-stat small {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  display: block;
  margin-top: 2px;
}

/* ---------- 分类导航条 ---------- */
.cat-nav {
  background: #f5f8fc;
  border-top: 1px solid #e3eaf4;
  border-bottom: 1px solid #e3eaf4;
  position: sticky;
  top: 75px;
  z-index: 50;
}
.cat-nav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #12213a;
  background: #fff;
  border: 1px solid #e3eaf4;
  transition: .2s;
  white-space: nowrap;
  text-decoration: none;
}
.cat-nav a:hover {
  color: #0b5fd8;
  border-color: #0b5fd8;
}

/* ---------- 授权等级表 ---------- */
.tier-table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e3eaf4;
  margin: 30px 0 50px;
}
.tier-row {
  display: grid;
  grid-template-columns: 140px 1fr 110px;
  padding: 14px 20px;
  border-bottom: 1px solid #e3eaf4;
  align-items: center;
  gap: 18px;
}
.tier-row:last-child { border-bottom: none; }
.tier-row.head {
  background: #0a1430;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.tier-row .lvl { font-weight: 700; color: #12213a; }
.tier-row .lvl.gold { color: #a07a14; }
.tier-row .lvl.silver { color: #60728c; }
.tier-row .desc { font-size: 13.5px; color: #5b6b85; }
.tier-row .num { text-align: center; font-weight: 800; color: #0b5fd8; }
.tier-row.head .num, .tier-row.head .desc { color: #fff; }
@media (max-width: 760px) {
  .tier-row { grid-template-columns: 1fr; gap: 4px; }
  .tier-row .num { text-align: left; }
}

/* ---------- 分类区块 ---------- */
.cat-block {
  margin-bottom: 48px;
  scroll-margin-top: 140px;
  background: #fff;
  border: 1px solid #e3eaf4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18,33,58,.05);
}
.cat-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cat-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5));
}
.cat-banner .badge {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  letter-spacing: .5px;
  z-index: 1;
}
.cat-banner .badge b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}
.cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 24px 28px 16px;
  border-bottom: 2px solid #e3eaf4;
}
.cat-head .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.cat-head h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #12213a;
}
.cat-head .count {
  font-size: 13px;
  color: #5b6b85;
  margin-top: 2px;
}

/* ---------- 品牌卡片网格 ---------- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 24px 28px 28px;
}
.bp-card {
  background: #fff;
  border: 1px solid #e3eaf4;
  border-radius: 12px;
  padding: 18px 16px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.bp-card:hover {
  border-color: #0b5fd8;
  box-shadow: 0 10px 24px rgba(11,95,216,.12);
  transform: translateY(-3px);
}
.bp-card .b-name {
  font-size: 16px;
  font-weight: 700;
  color: #12213a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.bp-card .b-en {
  font-size: 11.5px;
  color: #5b6b85;
  margin-bottom: 10px;
  letter-spacing: .3px;
}
.bp-card .b-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bp-card .b-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f5ff;
  color: #0b5fd8;
  font-weight: 600;
}
.bp-card .b-tag.gold { background: #fdf6e3; color: #a07a14; }
.bp-card .b-tag.gray { background: #eef2f7; color: #5b6b85; }
.bp-card .b-tag.red { background: #ffebe6; color: #c9302c; }
.bp-card.featured {
  background: linear-gradient(135deg, #fffdf6, #fff5dc);
  border-color: #f1d77a;
}
.bp-card .anchor-link {
  color: #0b5fd8;
  font-size: 13px;
  font-weight: 600;
  position: absolute;
  top: 14px;
  right: 14px;
  background: #eaf2ff;
  padding: 3px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: .2s;
  text-decoration: none;
}
.bp-card:hover .anchor-link { opacity: 1; }

/* ---------- 热销机型展示带 ---------- */
.model-strip {
  padding: 8px 28px 32px;
  background: linear-gradient(180deg, transparent, rgba(11,95,216,.04));
  border-top: 1px dashed #e4ecf6;
  margin-top: 6px;
}
.model-strip .ms-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #0a4bb0;
  letter-spacing: .5px;
}
.model-strip .ms-h .ico { font-size: 18px; }
.model-strip .ms-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #c3d4ec, transparent);
}
.model-strip .ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.model-strip .ms-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4ecf6;
  box-shadow: 0 6px 18px rgba(13,79,176,.06);
  transition: .25s;
  display: flex;
  flex-direction: column;
}
.model-strip .ms-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13,79,176,.16);
  border-color: #b8cdec;
}
.model-strip .ms-img {
  aspect-ratio: 4/3;
  background: #f0f5fa;
  overflow: hidden;
  position: relative;
}
.model-strip .ms-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .4s;
}
.model-strip .ms-card:hover .ms-img img { transform: scale(1.05); }
.model-strip .ms-img .ms-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(11,95,216,.92);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  letter-spacing: .5px;
  box-shadow: 0 4px 10px rgba(11,95,216,.3);
}
.model-strip .ms-img .ms-tag.gold { background: linear-gradient(135deg, #ff9d00, #ffb74d); }
.model-strip .ms-img .ms-tag.green { background: linear-gradient(135deg, #00a040, #2bbf6c); }
.model-strip .ms-img .ms-tag.purple { background: linear-gradient(135deg, #5e35b1, #7e57c2); }
.model-strip .ms-img .ms-tag.orange { background: linear-gradient(135deg, #d84315, #ff7a18); }
.model-strip .ms-bd {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.model-strip .ms-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0d1f3c;
  margin-bottom: 6px;
  line-height: 1.4;
}
.model-strip .ms-spec {
  font-size: 12.5px;
  color: #5a6b84;
  line-height: 1.6;
  margin-bottom: 10px;
  flex: 1;
}
.model-strip .ms-spec b { color: #0d1f3c; font-weight: 700; }
.model-strip .ms-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #e4ecf6;
  font-size: 12px;
  margin-top: auto;
}
.model-strip .ms-apply { color: #5a6b84; font-weight: 600; }
.model-strip .ms-price { font-weight: 800; color: #d84315; font-size: 13px; }
.model-strip .ms-price i { font-style: normal; font-weight: 600; color: #9aa9bf; font-size: 11.5px; margin-right: 3px; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(135deg, #0a1430, #0b5fd8);
  color: #fff;
  padding: 50px 0;
  text-align: center;
  border-radius: 18px;
  margin: 40px auto;
}
.cta-band h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255,255,255,.85);
  margin-bottom: 22px;
}
.cta-band .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn {
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .2s;
  text-decoration: none;
}
.cta-band .btn-w {
  background: linear-gradient(135deg, #ff3030, #ff7a18);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,48,48,.3);
}
.cta-band .btn-w:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,48,48,.45); }
.cta-band .btn-o {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.cta-band .btn-o:hover { background: rgba(255,255,255,.2); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .brand-hero h1 { font-size: 30px; }
  .hero-stat { gap: 16px; }
  .hero-stat div { min-width: 100px; padding: 12px 18px; }
  .cat-head { padding: 18px 20px 12px; gap: 10px; }
  .cat-head h3 { font-size: 18px; }
  .cat-head .ico { width: 42px; height: 42px; font-size: 22px; }
  .bp-grid { padding: 18px 20px 22px; }
}
@media (max-width: 480px) {
  .brand-hero h1 { font-size: 26px; }
  .hero-stat { flex-direction: column; align-items: center; }
}

/* cat-banner 内嵌二级跳转链接（点击 banner 进入选型详情聚合页） */
a.cat-banner,
.cat-banner { cursor: pointer; }
.cat-banner { transition: transform .25s, box-shadow .25s; }
.cat-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,35,70,.18); }
a.cat-banner { display: block; text-decoration: none; color: inherit; }
.cat-banner::after {
  content: '查看选型清单 →';
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 6px 14px;
  background: rgba(255,255,255,.95);
  color: #1a237e;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .25s;
  z-index: 3;
  height: auto;
  inset: auto;
  background-image: none;
}
.cat-banner:hover::after { opacity: 1; }
.cat-banner .badge { z-index: 2; }
