/* ============================================================
   OurXTV Product Family Layer — 统一高科技家族外壳
   由 img / live / video / marketing.ourxtv.com 四个产品站引用，
   源文件只存在于主站 www.ourxtv.com/family/，升级只改一处。
   ============================================================ */

/* ---- 主题变量（仅覆盖存在同名变量的站点，实现品牌色统一）---- */
html.oxt {
  --oxt-cyan: #00e5ff;
  --oxt-violet: #6c5ce7;
  --oxt-ink: #0a0f1e;
  --oxt-bar: rgba(8, 12, 24, .92);
  --oxt-line: rgba(0, 229, 255, .18);
  /* 命中各站既有 accent 变量则统一为品牌青靛 */
  --grad: linear-gradient(135deg, #00e5ff, #6c5ce7);
  --brand: #00c8e0;
  --blue: #0ab6ff;
}

/* ---- 顶部家族导航条 ---- */
#oxt-fam {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147483000;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #c8d6f0;
  background: linear-gradient(180deg, rgba(7, 11, 22, .96), rgba(7, 11, 22, .82));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--oxt-line);
  box-shadow: 0 1px 0 rgba(0, 229, 255, .06), 0 6px 24px rgba(0, 0, 0, .35);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}
#oxt-fam::-webkit-scrollbar { display: none; }

/* 顶边霓虹呼吸线 */
#oxt-fam::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0, 229, 255, .55) 18%,
    rgba(108, 92, 231, .55) 50%,
    rgba(0, 229, 255, .55) 82%, transparent 100%);
  pointer-events: none;
}

#oxt-fam .oxt-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 8px;
  text-decoration: none;
  color: #eef4ff;
  font-weight: 700;
  letter-spacing: .08em;
}
#oxt-fam .oxt-mark .oxt-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7ef9ff, #00b7d4 60%, #0891b2);
  box-shadow: 0 0 8px rgba(0, 229, 255, .8), 0 0 18px rgba(0, 229, 255, .35);
  animation: oxt-pulse 2.6s ease-in-out infinite;
}
@keyframes oxt-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0,229,255,.7), 0 0 14px rgba(0,229,255,.28); }
  50%      { box-shadow: 0 0 10px rgba(0,229,255,1), 0 0 26px rgba(0,229,255,.5); }
}
#oxt-fam .oxt-mark small {
  font-weight: 500;
  font-size: 10px;
  color: #7d8db5;
  letter-spacing: .18em;
}

#oxt-fam a.oxt-l {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: #aab8dd;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
#oxt-fam a.oxt-l:hover {
  color: #ffffff;
  background: rgba(0, 229, 255, .08);
}
#oxt-fam a.oxt-l.on {
  color: #04121c;
  font-weight: 700;
  background: linear-gradient(135deg, #00e5ff, #38bdf8 55%, #6c5ce7);
  box-shadow: 0 0 12px rgba(0, 229, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
#oxt-fam .oxt-sep {
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, .35), transparent);
}
#oxt-fam .oxt-cta {
  margin-left: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #01131d;
  background: linear-gradient(135deg, #00e5ff, #6ee7f9);
  box-shadow: 0 0 14px rgba(0, 229, 255, .5);
  transition: transform .18s ease, box-shadow .18s ease;
}
#oxt-fam .oxt-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 229, 255, .75);
}

/* 给页面让出 42px（img 站 h-screen 布局同样适用：border-box 下内容区收窄） */
html.oxt body { padding-top: 42px !important; }

/* img 站专属：Tailwind fixed 左侧栏（top-0 h-screen）下移避让顶条 */
html.oxt-img .fixed.left-0.top-0 {
  top: 42px !important;
  height: calc(100vh - 42px) !important;
}

/* 小屏：隐藏英文小注，压缩间距 */
@media (max-width: 640px) {
  #oxt-fam { padding: 0 8px; font-size: 12px; }
  #oxt-fam .oxt-mark small { display: none; }
  #oxt-fam .oxt-sep { margin: 0 3px; }
}
