/* ============================================================
   九天 · 第三方平台 / 模型厂商徽标（厂商官方 Logo，单色内联 SVG）
   前后台共用；仅依赖品牌色令牌，不引入任何外部图片或字体。
   ============================================================ */

.bx-logo {
  --bx-size: 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bx-size);
  height: var(--bx-size);
  flex: none;
  border-radius: 9px;
  line-height: 0;
  vertical-align: middle;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration: none;
}
.bx-logo .bx-svg { display: block; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .32); }
.bx-logo-link { cursor: pointer; }
.bx-logo:hover { transform: translateY(-2px) scale(1.08); z-index: 30; filter: saturate(1.15); }
.bx-logo-link:hover { box-shadow: 0 6px 20px rgba(0, 229, 176, .22); }
.bx-logo.active { outline: 2px solid var(--brand-mint, #00E5B0); outline-offset: 3px; }

/* ---- hover 说明卡（Logo 墙 / 详情区使用；表格内改用原生 title 避免被裁切） ---- */
.bx-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 6px);
  width: 234px;
  padding: 12px 14px;
  background: #0B1A2A;
  border: 1px solid rgba(0, 229, 176, .32);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  text-align: left;
  line-height: 1.55;
  z-index: 120;
}
.bx-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 229, 176, .32);
}
.bx-logo:hover .bx-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.bx-tip b { display: block; color: #FFFFFF; font-size: 13px; font-weight: 700; }
.bx-tip small { display: block; color: #00E5B0; font-size: 11.5px; margin: 3px 0 7px; }
.bx-tip em { display: block; color: #9FB0BE; font-size: 11.5px; font-style: normal; }
.bx-wall-item:first-child .bx-tip,
.bx-wall-item:nth-child(2) .bx-tip { left: 0; transform: translate(0, 6px); }
.bx-wall-item:first-child:hover .bx-tip,
.bx-wall-item:nth-child(2):hover .bx-tip { transform: translate(0, 0); }
.bx-wall-item:first-child .bx-tip::after,
.bx-wall-item:nth-child(2) .bx-tip::after { left: 20px; }

/* ---- 表格 / 卡片内联 ---- */
.bx-inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bx-inline > span:last-child { font-size: 12.5px; color: var(--text, #E6EDF3); font-weight: 600; }
.bx-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bx-cell .bx-logo { flex: none; }
.bx-cell b { color: var(--text-strong, #FFFFFF); font-weight: 600; }
.bx-mini { opacity: .82; }
.bx-mini:hover { opacity: 1; }

/* ---- Logo 墙 ---- */
.bx-wall {
  --bx-cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--bx-cols), minmax(0, 1fr));
  gap: 12px;
}
.bx-wall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 8px 14px;
  background: var(--dark, #08131F);
  border: 1px solid var(--line, rgba(255, 255, 255, .09));
  border-radius: 7px;
  transition: border-color .18s, background .18s, transform .18s;
  min-width: 0;
}
.bx-wall-item:hover { border-color: rgba(0, 229, 176, .42); background: var(--dark-2, #0B1A2A); transform: translateY(-3px); }
.bx-wall-item:has(.bx-logo.active) { border-color: var(--brand-mint, #00E5B0); background: rgba(0, 229, 176, .07); }
.bx-wall-name { color: var(--text-strong, #FFFFFF); font-size: 12.5px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.bx-wall-cat { color: var(--muted, #8697A6); font-size: 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; width: 100%; white-space: nowrap; }

/* ---- 横向紧凑条（首页 / 套餐页 / 控制台） ---- */
.bx-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bx-strip .bx-logo { opacity: .88; }
.bx-strip .bx-logo:hover { opacity: 1; }
.bx-strip-label { color: var(--muted, #8697A6); font-size: 12px; margin-right: 4px; }
.bx-strip-more { color: var(--brand-mint, #00E5B0); font-size: 12px; text-decoration: none; white-space: nowrap; margin-left: 2px; }
.bx-strip-more:hover { text-decoration: underline; }

/* ---- 分类筛选芯片 ---- */
.bx-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.bx-chip {
  padding: 7px 16px;
  border-radius: 3px;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, .16));
  color: var(--text, #E6EDF3);
  font-size: 12.5px;
  text-decoration: none;
  background: var(--dark, #08131F);
  transition: .15s;
}
.bx-chip:hover { border-color: var(--brand-mint, #00E5B0); color: var(--brand-mint, #00E5B0); }
.bx-chip.active { background: var(--brand-mint, #00E5B0); color: #04140F; border-color: var(--brand-mint, #00E5B0); font-weight: 700; }

/* ---- 生态详情卡 ---- */
.bx-detail { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.bx-detail h2 { margin: 0 0 6px; color: var(--text-strong, #FFFFFF); font-size: 22px; }
.bx-detail .bx-desc { color: var(--muted, #8697A6); font-size: 13.5px; line-height: 1.85; margin: 0 0 14px; }
.bx-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bx-detail-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bx-detail-kv div { background: var(--dark-2, #0B1A2A); border: 1px solid var(--line, rgba(255,255,255,.09)); border-radius: 5px; padding: 12px; }
.bx-detail-kv span { display: block; color: var(--muted, #8697A6); font-size: 11.5px; }
.bx-detail-kv b { display: block; color: var(--text-strong, #FFFFFF); font-size: 15px; margin-top: 4px; }
.bx-note { color: var(--muted-2, #5A6C7D); font-size: 11.5px; margin-top: 12px; }

/* ---- 生态页统计条 ---- */
.bx-eco-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.bx-eco-stat { background: var(--dark, #08131F); border: 1px solid var(--line, rgba(255,255,255,.09)); border-radius: 6px; padding: 16px; text-align: center; }
.bx-eco-stat b { display: block; color: var(--brand-mint, #00E5B0); font-size: 23px; }
.bx-eco-stat span { color: var(--muted, #8697A6); font-size: 12px; }

@media (max-width: 1080px) {
  .bx-wall { --bx-cols: 4 !important; }
  .bx-eco-stats, .bx-detail-kv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bx-wall { --bx-cols: 3 !important; }
  .bx-eco-stats, .bx-detail-kv { grid-template-columns: repeat(2, 1fr); }
  .bx-detail { grid-template-columns: 64px 1fr; gap: 14px; }
  .bx-tip { width: 200px; }
}
