/* ==========================================================================
   北斗榜 · 首页「主播排行榜」栏目（2026-11-30 用户定稿）

   设计要求（用户原话）：
     「这个栏目的排版和特效必须是完全不一样的，而且必须有一定的主播平台氛围。」

   所以这里不复用任何 sections.css / sections_v2.css 的版式：
     · 容器 = 深色「后台导播台」面板，嵌在浅色首页里形成强烈反差
     · 左侧 = 平台频道竖排（抖音红 / 快手橙 / 视频号绿 …，各带主色光条）
     · 中间 = 3 张「在播卡」，头像有呼吸光环 + 音浪条 + LIVE 角标
     · 右侧 = 人气螺旋榜（名次环 + 相对刻度条），跑马灯横向滚动
     · 底座 = 光晕地平线 + 扫描线，模拟演播厅地屏
   命名空间统一 ax-home-*，与分类页的 ax-* 互不干扰。
   ========================================================================== */

.axhome {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px 22px 18px;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(254, 44, 85, .30), transparent 68%),
    radial-gradient(760px 380px at 100% 8%, rgba(124, 58, 237, .26), transparent 70%),
    linear-gradient(165deg, #0b0e15 0%, #12151f 58%, #0b0e15 100%);
  box-shadow: 0 30px 70px -46px rgba(10, 12, 20, .9);
  color: #eef1f6;
  isolation: isolate;
}
.axhome::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 108px;
  pointer-events: none; opacity: .30;
  background-image:
    linear-gradient(rgba(254, 44, 85, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 44, 85, .45) 1px, transparent 1px);
  background-size: 100% 22px, 70px 100%;
  transform: perspective(320px) rotateX(64deg);
  transform-origin: bottom;
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.axhome-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------- 栏目标题 ---------- */
.axhome-head {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.axhome-title { display: flex; align-items: center; gap: 12px; }
.axhome-live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: 6px;
  background: linear-gradient(120deg, #fe2c55, #ff7a45);
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: #fff;
}
.axhome-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: axhome-blink 1.2s steps(1, end) infinite;
}
@keyframes axhome-blink { 50% { opacity: .25; } }
.axhome-h {
  font-size: 24px; font-weight: 800; color: #fff; margin: 0;
  letter-spacing: -.01em;
}
.axhome-h em {
  font-style: normal;
  background: linear-gradient(100deg, #fe2c55, #ffb04a 70%, #fff 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.axhome-sub {
  margin: 6px 0 0; font-size: 12px; color: #99a1b3; line-height: 1.7; max-width: 640px;
}
.axhome-more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; text-decoration: none;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.axhome-more:hover { background: linear-gradient(120deg, #fe2c55, #ff7a45); border-color: transparent; }

/* ---------- 三栏布局 ---------- */
.axhome-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 168px 1fr 296px; gap: 16px;
}
@media (max-width: 1080px) { .axhome-grid { grid-template-columns: 150px 1fr; } .axhome-side { display: none; } }
@media (max-width: 780px) { .axhome-grid { grid-template-columns: 1fr; } .axhome-rail { order: 2; } }

/* ---- 左：平台频道（竖排「频道键」） ---- */
.axhome-rail { display: grid; gap: 7px; align-content: start; }
.axhome-ch {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 9px; text-decoration: none;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #cfd5e2; font-size: 12.5px; font-weight: 600;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.axhome-ch::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--ch, #fe2c55);
  box-shadow: 0 0 12px var(--ch, #fe2c55);
}
.axhome-ch:hover { transform: translateX(3px); background: rgba(255, 255, 255, .09); color: #fff; }
.axhome-ch-ic {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ch, #fe2c55) 26%, transparent);
  color: #fff; flex: none;
}
.axhome-ch-ic .ic { width: 13px; height: 13px; }
.axhome-ch b { margin-left: auto; font-family: var(--font-num); font-size: 11.5px; color: #8d95a8; font-weight: 400; }
.axhome-ch-hint {
  margin-top: 3px; font-size: 10.5px; color: #6f7788; line-height: 1.6;
  padding-left: 2px;
}

/* ---- 中：三张「在播卡」 ---- */
.axhome-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .axhome-stage { grid-template-columns: 1fr; } }
.axhome-card {
  position: relative; overflow: hidden; border-radius: 14px;
  padding: 15px 14px 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.axhome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -24px var(--ch, rgba(254, 44, 85, .8));
  border-color: color-mix(in srgb, var(--ch, #fe2c55) 55%, transparent);
}
.axhome-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%,
    color-mix(in srgb, var(--ch, #fe2c55) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.axhome-ring {
  position: relative; width: 62px; height: 62px; margin: 4px auto 9px;
  border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px; overflow: visible;
  background: var(--ch, #fe2c55);
}
.axhome-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  position: absolute; inset: 0;
}
.axhome-ring::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ch, #fe2c55) 70%, transparent);
  animation: axhome-breathe 2.2s ease-in-out infinite;
}
.axhome-ring::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ch, #fe2c55) 40%, transparent);
  animation: axhome-breathe 2.2s ease-in-out .7s infinite;
}
@keyframes axhome-breathe {
  0% { transform: scale(1); opacity: .9; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
.axhome-rankbadge {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  font-family: var(--font-num); font-size: 10px; letter-spacing: .1em;
  color: var(--ch, #fe2c55); background: rgba(0, 0, 0, .45);
  padding: 1px 7px; border-radius: 4px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--ch, #fe2c55) 45%, transparent);
  z-index: 3;
}
.axhome-card-name {
  position: relative; z-index: 2;
  text-align: center; color: #fff; font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.axhome-card-meta {
  position: relative; z-index: 2;
  text-align: center; font-size: 10.5px; color: #8f97a9; margin: 3px 0 9px;
}
.axhome-card-meta span {
  display: inline-block; padding: 0 5px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .12); margin: 0 2px;
}
.axhome-eco {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 9px;
}
.axhome-eco div {
  border-radius: 7px; background: rgba(0, 0, 0, .28); padding: 5px 4px; text-align: center;
}
.axhome-eco b { display: block; font-family: var(--font-num); font-size: 14px; color: #fff; line-height: 1.15; }
.axhome-eco i { font-style: normal; font-size: 10px; color: #858d9f; }
.axhome-wave {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: 2px; height: 18px; margin-bottom: 9px;
  justify-content: center;
}
.axhome-wave i {
  width: 2px; border-radius: 2px; background: var(--ch, #fe2c55);
  animation: axhome-wave 1s ease-in-out infinite alternate; opacity: .8;
}
@keyframes axhome-wave { from { height: 3px; opacity: .3; } to { height: 100%; opacity: .95; } }
.axhome-go {
  position: relative; z-index: 2;
  display: block; text-align: center; padding: 7px 8px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(120deg, var(--ch, #fe2c55), color-mix(in srgb, var(--ch, #fe2c55) 55%, #ffb04a));
  transition: filter .2s var(--ease);
}
.axhome-go:hover { filter: brightness(1.14); }
.axhome-go.off {
  background: rgba(255, 255, 255, .07); color: #7d8496; cursor: not-allowed;
}
/* 平台搜索类跳转：透明描边，和「进直播间」区分开 */
.axhome-go.alt {
  background: rgba(255, 255, 255, .06);
  border: 1px solid color-mix(in srgb, var(--ch, #fe2c55) 42%, transparent);
  color: #dfe4f0;
}
.axhome-go.alt:hover { background: color-mix(in srgb, var(--ch, #fe2c55) 20%, transparent); }

/* ---- 右：人气螺旋榜 + 跑马灯 ---- */
.axhome-side { display: grid; gap: 10px; align-content: start; }
.axhome-board {
  border-radius: 12px; padding: 11px 12px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.axhome-board h4 {
  margin: 0 0 9px; font-size: 11px; letter-spacing: .1em; color: #8a92a4;
  text-transform: uppercase; font-weight: 700;
}
.axhome-brow {
  display: grid; grid-template-columns: 20px 26px 1fr auto; align-items: center;
  gap: 8px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07);
  text-decoration: none;
}
.axhome-brow:last-child { border-bottom: 0; }
.axhome-brow:hover .axhome-bname { color: #fff; }
.axhome-bno { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: #fe2c55; text-align: center; }
.axhome-bav {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; overflow: hidden; flex: none;
}
.axhome-bav img { width: 100%; height: 100%; object-fit: cover; }
.axhome-bname { font-size: 11.5px; color: #cfd5e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.axhome-bnum { font-family: var(--font-num); font-size: 11px; color: #8f97a9; }

.axhome-marquee {
  position: relative; overflow: hidden; border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  padding: 7px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.axhome-mq-track { display: flex; gap: 26px; width: max-content; animation: axhome-mq 30s linear infinite; }
@keyframes axhome-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.axhome-mq-track span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: #8a92a4; white-space: nowrap;
}
.axhome-mq-track span em {
  font-style: normal; color: #fe2c55; letter-spacing: .1em; font-size: 9.5px;
  border: 1px solid rgba(254, 44, 85, .45); border-radius: 3px; padding: 0 4px;
}
.axhome-mq-track span b { color: #e6eaf2; font-family: var(--font-num); }

@media (prefers-reduced-motion: reduce) {
  .axhome-live i, .axhome-ring::before, .axhome-ring::after,
  .axhome-wave i, .axhome-mq-track { animation: none !important; }
}
