/* =========================================================
   合作品牌页 - 样式
   ========================================================= */

/* ---------- 1. Hero ---------- */
.products-hero {
  position: relative;
  padding: 48px 0 32px;  /* v3.2 2026-07-03: 96/64→48/32，1920x1080 完整展示 */
  overflow: hidden;
  text-align: center;
}
.products-hero-inner { max-width: 880px; margin: 0 auto; }
.products-hero .hero-eyebrow { font-size: 11px; letter-spacing: 2.5px; margin-bottom: 12px; }  /* v3.2: 缩 hero 头部 */
.products-hero .hero-title { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 14px; }  /* v3.2: 36~60 → 28~44 */
.products-hero .hero-subtitle { margin: 0 auto 20px; max-width: 720px; font-size: 14px; line-height: 1.7; }  /* v3.2: 16→14 */

.products-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;  /* v3.2: 18→14 */
  margin-top: 28px;  /* v3.2: 56→28 */
  padding: 18px 24px;  /* v3.2: 28/32→18/24 */
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.products-hero-stats::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,.06) 0%, transparent 50%);
  pointer-events: none;
}
.ph-stat { text-align: center; position: relative; }
.ph-stat .num {
  font-size: 24px;  /* v3.2: 32→24 */
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.ph-stat .num sup { font-size: 14px; margin-left: 1px; }  /* v3.2: 18→14 */
.ph-stat .lbl {
  font-size: 12px;  /* v3.2: 13→12 */
  color: var(--t-tertiary);
  margin-top: 4px;  /* v3.2: 6→4 */
  letter-spacing: 1px;
}

/* ---------- 2. 主体两栏 ---------- */
.products-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-top: 24px;  /* v3.2: 48→24 */
  padding-bottom: 64px;  /* v3.2: 96→64 */
}

/* ---------- 3. 左侧 sticky 导航 ---------- */
.products-side { position: relative; }
.side-sticky {
  position: sticky;
  top: 96px;
  padding: 24px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.side-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--t-muted);
  margin-bottom: 14px;
  padding-left: 12px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--t-secondary);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.side-link .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--t-muted);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.side-link:hover { color: var(--t-primary); background: rgba(0,229,255,.06); }
.side-link.active {
  color: var(--c-primary);
  background: rgba(0,229,255,.10);
  border-color: var(--border-soft);
}
.side-link.active .dot {
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(0,229,255,.15);
}
.side-cta { padding: 0 4px; }
.side-cta .btn { width: 100%; }

/* ---------- 4. 分区 ---------- */
.cat-section { margin-bottom: 96px; }
.cat-section:last-of-type { margin-bottom: 0; }
.cat-head { margin-bottom: 32px; }
.cat-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--c-primary);
  font-weight: 700;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: rgba(0,229,255,.08);
  border-radius: var(--r-pill);
}
.cat-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--t-primary);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.cat-desc {
  font-size: 16px;
  color: var(--t-tertiary);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 20px;
}
.cat-points {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-bottom: 8px;
}
.cat-points li {
  font-size: 13px;
  color: var(--t-secondary);
  padding: 5px 12px;
  background: rgba(0,229,255,.06);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
}

/* ---------- 5. 品牌卡片网格 ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.brand-grid:has(.brand-card:nth-child(4)) {
  /* 第 4 个品牌独占一行（机房有 4 个），让最后 1 张居中 */
  grid-template-columns: repeat(4, 1fr);
}

.brand-card {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
  color: var(--t-secondary);
  text-decoration: none;
}
.brand-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,229,255,.06) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity var(--t-med);
  opacity: .5;
}
.brand-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0,229,255,.18);
  color: var(--t-secondary);
}
.brand-card:hover::before { opacity: 1; }

.brand-logo-wrap {
  width: 100%;
  height: 80px;
  display: grid; place-items: center;
  background: #ffffff;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 8px;
}
.brand-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.brand-meta { flex: 1; display: flex; flex-direction: column; }
.brand-level {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #001022;
  background: var(--grad-brand);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--t-primary);
  margin-bottom: 6px;
}
.brand-tagline {
  font-size: 13px;
  color: var(--t-tertiary);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}
.brand-services {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
}
.brand-services li {
  font-size: 12px;
  color: var(--t-secondary);
  padding: 2px 8px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-sm);
}

/* ---------- 6. 分区 CTA ---------- */
.cat-cta {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-soft);
}

/* ---------- 7. 通用 CTA ---------- */
.products-cta {
  margin-top: 80px;
  padding: 56px 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.products-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,.10) 0%, rgba(99,102,241,.06) 100%);
  pointer-events: none;
}
.products-cta h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--t-primary);
  margin-bottom: 12px;
  position: relative;
}
.products-cta p {
  font-size: 15px;
  color: var(--t-tertiary);
  margin-bottom: 28px;
  position: relative;
}
.products-cta .hero-actions { position: relative; }

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1024px) {
  .products-main { grid-template-columns: 1fr; gap: 0; }
  .products-side { position: static; }
  .side-sticky {
    position: static;
    margin-bottom: 32px;
    padding: 16px;
  }
  .side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
  }
  .side-link { padding: 8px 12px; font-size: 13px; }
  .side-cta { display: none; }
  .brand-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 720px) {
  .products-hero-stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .ph-stat .num { font-size: 26px; }
  .brand-grid { grid-template-columns: 1fr !important; }
  .cat-section { margin-bottom: 64px; }
}

/* ---------- 9. 主推产品 SKU（嵌在 brand-card 内） ---------- */
.brand-sku {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
}
.brand-sku-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.brand-sku-eyebrow::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--c-primary);
}
.brand-sku-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.brand-sku-item {
  position: relative;
  padding: 8px 10px 8px 28px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.brand-sku-item::before {
  content: '';
  position: absolute;
  left: 10px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 2px rgba(0,229,255,.15);
}
.brand-sku-item:hover {
  background: rgba(0,229,255,.04);
  border-color: var(--border-medium);
  transform: translateX(2px);
}
.brand-sku-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.brand-sku-model {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-primary);
  font-family: var(--font-mono, "SF Mono", "Consolas", monospace);
  letter-spacing: -.2px;
}
.brand-sku-cat {
  font-size: 10px;
  color: var(--c-primary);
  background: rgba(0,229,255,.10);
  border: 1px solid rgba(0,229,255,.25);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  font-weight: 600;
}
.brand-sku-spec {
  font-size: 11px;
  color: var(--t-tertiary);
  line-height: 1.5;
}
.brand-sku-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}
.brand-sku-hint {
  font-size: 11px;
  color: var(--t-muted);
}
.brand-sku-link {
  font-size: 12px;
  color: var(--c-primary);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
  transition: gap var(--t-fast);
}
.brand-sku-link:hover { gap: 6px; }

/* 响应式 */
@media (max-width: 720px) {
  .brand-sku-item { padding: 8px 10px 8px 26px; }
  .brand-sku-item::before { left: 9px; top: 13px; }
}

/* =========================================================
   10. 品牌独立版面 (brand-block) —— v2 2026-07-03
   ========================================================= */
.brand-block {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all var(--t-med);
}

/* 单页路由：未选中的品牌隐藏 —— v3 2026-07-03 */
.brand-block:not(.is-active) { display: none; }
.brand-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-primary) 0%, transparent 60%);
  opacity: .6;
}
.brand-block::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,229,255,.05) 0%, transparent 50%);
  pointer-events: none;
  opacity: .4;
  transition: opacity var(--t-med);
}
.brand-block:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.4), 0 0 0 1px rgba(0,229,255,.18);
}
.brand-block:hover::after { opacity: 1; }

/* 顶部 header：Logo + 徽章 + 名称 + 链接 */
.brand-block-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}
.brand-block-logo {
  flex-shrink: 0;
  width: 280px;
  background: #ffffff;
  border-radius: var(--r-md);
  padding: 10px;
  display: grid; place-items: center;
}
.brand-block-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.brand-block-info { flex: 1; min-width: 0; }
.brand-block-level {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #001022;
  background: var(--grad-brand);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.brand-block-level::before {
  content: '★';
  font-size: 12px;
  color: #001022;
}
.brand-block-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--t-primary);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.brand-block-tagline {
  font-size: 14px;
  color: var(--t-tertiary);
  margin: 0 0 12px;
  line-height: 1.6;
}
.brand-block-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px;
  color: var(--c-primary);
  text-decoration: none;
  transition: gap var(--t-fast);
}
.brand-block-link:hover { gap: 7px; }

/* 品牌介绍正文 */
.brand-block-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--t-secondary);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}
.brand-block-intro p {
  margin: 0 0 12px;
  text-indent: 2em;
}
.brand-block-intro p:last-child { margin-bottom: 0; }
.brand-block-intro strong {
  color: var(--c-primary);
  font-weight: 600;
}

/* 能力标签 */
.brand-block-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}
.brand-block-tags li {
  font-size: 13px;
  color: var(--c-primary-soft);
  padding: 5px 12px;
  background: rgba(0,229,255,.08);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* 金牌代理强调条 */
.brand-block-agency {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, rgba(0,229,255,.10) 0%, rgba(99,102,241,.10) 100%);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14px;
  color: var(--t-primary);
  line-height: 1.5;
}
.brand-block-agency-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #001022;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}
.brand-block-agency strong {
  color: var(--c-primary);
  font-weight: 700;
}

/* 产品占位区 */
.brand-block-products {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.brand-block-products-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-block-products-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--c-primary);
  text-transform: uppercase;
}
.brand-block-products-title::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--c-primary);
}
.brand-block-products-hint {
  font-size: 12px;
  color: var(--t-muted);
}
.brand-block-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.brand-product-slot {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,.025);
  border: 1px dashed var(--border-soft);
  border-radius: var(--r-md);
  color: var(--t-muted);
  font-size: 12px;
  text-align: center;
  padding: 10px;
  transition: all var(--t-fast);
  cursor: pointer;
}
.brand-product-slot::before {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--t-muted);
  line-height: 1;
  transition: all var(--t-fast);
}
.brand-product-slot:hover {
  border-color: var(--c-primary);
  border-style: solid;
  color: var(--c-primary);
  background: rgba(0,229,255,.05);
  transform: translateY(-2px);
}
.brand-product-slot:hover::before {
  color: var(--c-primary);
  transform: scale(1.2);
}

/* 响应式 */
@media (max-width: 1024px) {
  .brand-block { padding: 24px; }
  .brand-block-head { gap: 20px; }
  .brand-block-logo { width: 220px; }
  .brand-block-name { font-size: 20px; }
}
@media (max-width: 720px) {
  .brand-block { padding: 20px; margin-bottom: 20px; }
  .brand-block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .brand-block-logo { width: 100%; max-width: 240px; }
  .brand-block-intro { font-size: 14px; }
  .brand-block-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v3：左侧分类+二级菜单 / 右侧 13 品牌平铺切换
   ============================================================ */

/* ----- 左侧 side-nav-v2 ----- */
.side-nav-v2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-cat {
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}

.side-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--t-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
  font-family: inherit;
}
.side-cat-toggle .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--t-muted);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.side-cat-toggle .cat-name {
  flex: 1;
}
.side-cat-toggle .caret {
  font-size: 12px;
  color: var(--t-muted);
  transition: transform var(--t-fast);
}

.side-cat:hover .side-cat-toggle {
  background: rgba(0,229,255,.06);
  color: var(--t-primary);
  border-color: rgba(0,229,255,.18);
}
.side-cat:hover .side-cat-toggle .dot { background: var(--c-primary); }

.side-cat.is-open .side-cat-toggle {
  background: rgba(0,229,255,.10);
  color: var(--c-primary);
  border-color: rgba(0,229,255,.25);
}
.side-cat.is-open .side-cat-toggle .dot {
  background: var(--c-primary);
  box-shadow: 0 0 8px var(--c-primary);
}
.side-cat.is-open .side-cat-toggle .caret {
  transform: rotate(180deg);
  color: var(--c-primary);
}

/* 二级菜单（品牌列表） */
.side-sub {
  list-style: none;
  margin: 4px 0 6px 0;
  padding: 0 0 0 26px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  border-left: 1px dashed rgba(0,229,255,.18);
  margin-left: 18px;
}
.side-cat.is-open .side-sub {
  max-height: 500px;
  padding: 6px 0 8px 18px;
}

.side-brand {
  display: block;
  padding: 7px 12px;
  margin: 2px 0;
  font-size: 13.5px;
  color: var(--t-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--t-fast);
  position: relative;
  line-height: 1.4;
}
.side-brand::before {
  content: '';
  position: absolute;
  left: -7px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--t-muted);
  opacity: .4;
  transition: all var(--t-fast);
}
.side-brand:hover {
  color: var(--t-primary);
  background: rgba(0,229,255,.05);
  padding-left: 16px;
}
.side-brand:hover::before { opacity: 1; background: var(--c-primary); }

.side-brand.is-active {
  color: var(--c-primary);
  background: rgba(0,229,255,.10);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--c-primary);
}
.side-brand.is-active::before {
  background: var(--c-primary);
  opacity: 1;
  box-shadow: 0 0 6px var(--c-primary);
}

/* ----- 右侧 brand-stage 容器 ----- */
.brand-stage {
  display: block;
}

/* 默认隐藏所有 brand-block；is-active 显示 */
.products-content .brand-block {
  display: none;
  animation: brandFadeIn .35s ease;
}
.products-content .brand-block.is-active {
  display: block;
}

@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 响应式：移动端折叠左侧分类菜单 */
@media (max-width: 1024px) {
  .side-cat-toggle { padding: 10px 12px; font-size: 14px; }
  .side-brand { font-size: 13px; padding: 6px 10px; }
}
@media (max-width: 720px) {
  .side-cat.is-open .side-sub { max-height: 400px; }
  .side-cat-toggle .cat-name { font-size: 14px; }
}
