/* =============================================================================
 * /soccer-jersey 分类首页版式（2026-10-18）
 * 版式 1:1 复刻自 qiuyi-2.shop910.shop（Vue2 + Element UI 模板站）。
 *
 * 【为什么全部尺寸都写死成px】
 * 参考站整页是「一个大容器 + 固定像素栅格」，所有区块间距来自各自的margin-top，
 * 不是流式布局。凭感觉加 padding 会让页面逐段变高（复刻前实测：
 * 参考站 y=0..4760，本地一旦写成 padding:40px 0 就飘到 5000+）。
 * 所以下面每一个 margin-top 都是量出来的，注释里标了「实测 Δy」。
 *
 * 【命名】全部 sj- 前缀，零类名冲突（与既有 bw-/bg-/sx- 页共存）。
 * 【素材】/uploads/soccer-jersey/ 共 25 张，已按参考站实测 naturalWidth 落地。
 * ========================================================================== */

/* ---------- 页面骨架 ---------- */
.sj-page {
  /* ⚠️ 用 #f5f5f5 而不是纯白。参考站实测 body 背景就是 rgb(245,245,245)，
     它的各区块自身都是透明背景，全靠 body 的浅灰透出来。
     纯白时，区块之间的 110px 间距会变成刺眼的"空白带"（用户 2026-10-19 反馈）；
     浅灰下同样的间距视觉上是自然的过渡，读起来不空。 */
  background: #f5f5f5;
  /* 服务区（四项承诺）已于 2026-10-19 按用户要求删除，说明区成了最后一块。
     原先说明区→服务区有 85px，现由这里的 padding-bottom 承担底部收尾间距。 */
  padding-bottom: 85px;
  color: #33332b;
}
/* 参考站外层：x=50 w=1340 padding:10px → 内容区 x=60 w=1320 */
.sj-wrap {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* ---------- 字体 ---------- */
/* 参考站用 Roboto（正文/标题）与 "Archivo Black"（横幅艺术字）。
   Archivo Black 是重磅展示体，用它做不出「粗黑体」的观感，
   故用 900 字重的 system 字体栈替代，视觉等价且不外链字体。 */
.sj-page {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.sj-display {
  font-family: 'Archivo Black', 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
}

/* ============================ ① Hero ============================ */
/* 实测：y=277 h=600 w=1440，object-fit:cover，原图 1920x845 */
/* 绿条现在在 hero 之前（渲染顺序已调整），原本挂在 hero 上的 55px 上边距
   要转移到绿条上 —— 否则整块比参考站高 55px。
   实测参考站：header 底 222 → 绿条 y=222 → hero y=270。 */
.sj-marquee--top {
  margin-top: 55px;
}
/* ---------- hero 上方的球队徽章跑马灯（移植自首页 club-marquee） ----------
   2026-10-19 用户要求：hero 上方的绿条换成球队跑马灯。
   组件本体样式在 styles.css（.club-marquee，图高 --cm-h:44px、总高约 61px、白底满宽），
   这里只做本页的落位适配：
   · 2026-10-20 用户要求：导航栏和视频之间不要空白 —— 原绿条的 55px 顶部间距删掉，
     跑马灯紧贴导航栏、hero 紧贴跑马灯（参考站实测本就是 header 底 222 → 绿条 222 → hero 270）
   · 抵消组件自带的 margin-bottom:8px，hero 紧贴其下
   · z-index 需压过 hero，避免某些缩放场景下被后续元素盖住 */
.sj-page .club-marquee {
  margin: 0;
  position: relative;
  z-index: 2;
}
.sj-hero {
  margin-top: 0;
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
  /* ⚠️ 不要用浅灰占位。hero 是 303KB 大图，弱网下尚未解码时下方会露出一大块
     #ececec 灰底，首屏看起来"很空"（用户 2026-10-19 实测截图就是这个症状）。
     改成图片本身的深色（该图是深色球衣），占位期也是深色，观感连续。 */
  background: #1c1c1c;
}
.sj-hero img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}
.sj-hero-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===================== ② Popular leagues（6 枚 201px） ===================== */
/* 实测：区块 y=927 h=269；标题 y=938 h=33；图标行 y=985 h=201
   图标行：x=60 w=1320 gap:0 10px justify-content:space-between
   单枚 201x201，圆角 50px（正圆），overflow hidden */
.sj-sec-leagues {
  margin-top: 50px;
}
.sj-sec-title {
  font-size: 28px;
  font-weight: 700;
  color: #33332b;
  text-align: center;
  line-height: 33px;
  margin: 0;
  font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
}
/* 参考站标题容器 padding-bottom:15px */
.sj-title-pad {
  padding-bottom: 15px;
}
/* 图标行用 flex + space-between：条目数变化时不会像 auto-fit grid 那样留 0 宽隐式轨道 */
.sj-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 10px;
  width: 100%;
}
.sj-icon-row--leagues .sj-icon-cell {
  flex: 0 0 201px;
  width: 201px;
  height: 201px;
  border-radius: 50%;
  overflow: hidden;
}
.sj-icon-cell {
  display: block;
  position: relative;
  background: #fff;
}
.sj-icon-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.28s ease;
}
.sj-icon-cell:hover img {
  transform: scale(1.06);
}

/* ===================== ③ Popular Teams（6 枚 136px） ===================== */
/* 实测：区块 y=1396 h=204；标题 y=1407 h=33；图标行 y=1454 h=136
   图标行 gap:0 75px space-between —— 间距比 leagues 段大得多，必须写死 */
.sj-sec-teams {
  /* ⚠️ 60 而不是原来的 200：原先绿条夹在 leagues 与 teams 之间，
     200px 里含绿条(55) + 上下留白。现在绿条移到 teams 之后（对齐参考站 y=1630），
     这段只剩纯间距 —— 参考站 TOP 底 1336 → teams 区块顶 1396 = 60。 */
  margin-top: 60px;
}
.sj-icon-row--teams .sj-icon-cell {
  flex: 0 0 136px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  overflow: hidden;
}
.sj-icon-row--teams {
  /* [2026-10-22] 6→7 枚（新增 Manchester United）：7x136=952，内容区 1320，
     gap 上限 (1320-952)/6≈61px，取 60px 保证一行放下不溢出 */
  gap: 0 60px;
}

/* ===================== ④ 双横幅 RETRO / YOUTH ===================== */
/* 实测：区块 y=1785 h=818；图 y=1795 各 650x366，左 x60 右 x730
   图上居中标题 30px/700 Archivo Black，副标 28px/700（RETRO）/20px（YOUTH） */
.sj-sec-banner {
  /* 参考站实测 = 110px（绿条f2底 1678 → 横幅图顶 1788），我原先照抄了 110。
     但用户 2026-10-19 反馈这里「空处太高」—— 因为右侧横幅图顶部本身是大片浅色，
     110px 空白 + 浅色图顶叠在一起，观感上像一块空区。
     按用户要求收到 60px（故意偏离参考站 110，属主观紧凑化）。 */
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.sj-banner {
  position: relative;
  flex: 0 0 650px;
  width: 650px;
  height: 366px;
  overflow: hidden;
  display: block;
  background: #eee;
}
.sj-banner img {
  width: 100%;
  height: 366px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sj-banner:hover img {
  transform: scale(1.03);
}
/* 图上文字层：上下居中 */
.sj-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #104720;
  padding: 0 20px;
}
.sj-banner-t1 {
  font-size: 30px;
  line-height: 32px;
  font-weight: 700;
  margin: 0 0 6px;
  font-family: 'Archivo Black', 'Roboto', sans-serif;
  color: #104720;
}
.sj-banner-t2 {
  font-size: 28px;
  line-height: 31px;
  font-weight: 700;
  margin: 0;
  color: #026820;
}
.sj-banner--sm .sj-banner-t2 {
  font-size: 20px;
  line-height: 22px;
}

/* ===================== ⑤ WEAR YOUR NATION 通栏 ===================== */
/* 实测：区块 y=2171 h=433；图 y=2181 w=1320 h=413，主标题 44px 副标 23px */
.sj-sec-wear {
  margin-top: 10px; /* 双横幅底 2603… 参考站：banner 底 2161 → wear 容器 2171，Δ10 */
}
.sj-wear {
  position: relative;
  display: block;
  width: 100%;
  height: 413px;
  overflow: hidden;
  background: #eee;
}
.sj-wear img {
  width: 100%;
  height: 413px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sj-wear:hover img {
  transform: scale(1.03);
}
.sj-wear-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sj-wear-t1 {
  font-size: 44px;
  line-height: 48px;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: 'Archivo Black', 'Roboto', sans-serif;
  color: #104720;
}
.sj-wear-t2 {
  font-size: 23px;
  line-height: 25px;
  font-weight: 700;
  margin: 0;
  color: #026820;
}

/* ===================== ⑥ 四宫格 ×2 组 ===================== */
/* 实测第一组：容器 y=2604 w=1440 pad:10 → 内容 y=2614 w=1420 x=10
   单图 700x525，x=10 与 x=730；行间距 3159-2614-525 = 20
   第二组 y=3159 同样布局 */
.sj-sec-quad {
  margin-top: 0; /* 实测 wear 底 2594 → quad 容器顶 2604，Δ10（由外层 pad 承担） */
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* 参考站实测：容器 1420x1070（1440 视口 + 左右各 10px 内边距），
   两格 700px，**列间距 20px** → 700+20+700 = 1420，正好铺满，
   两格 x=10 / 730，右边缘 1430，**左右边距都是 10px（对称居中）**。
   ⚠️ 我原先写成 `gap: 20px 10px`（列 10），只占 1410，容器还剩 10px 全堆到右边，
   导致左边距 10 / 右边距 20，整块视觉偏左（用户 2026-10-19 指出「要居中对齐」）。
   ⚠️ 也不要用 flex + space-between：定宽元素下它会吃掉剩余空间让 gap 失效。 */
/* ⚠️⚠️ 列宽必须是 1fr 1fr（自适应），不能写死 700px。
   参考站实测（同一份 DOM 换视口宽度重测）：
     1440 视口 → 每格 700px、左右各留 10、内容占 98.6%
     1606 视口 → 每格 783px、左右各留 10、内容占 98.8%
     1920 视口 → 每格 940px、左右各留 10、内容占 99.0%
   即参考站是「撑满视口、只留 10px 边距」的流式栅格。
   700px 只是 1440 视口下的计算结果：(1440-20padding-20gap)/2 = 700 —— 纯属巧合!
   我误当成写死值，导致 1606 屏上内容只占 88%、两侧各空 93px（用户反复反馈「偏左/没铺满」）。
   高度也要跟着走，用 aspect-ratio 取代固定 525px（1606 下参考站实际高 587）。 */
.sj-quad-row {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 流式两列，撑满容器 */
  gap: 20px;
}
.sj-quad {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 936 / 700;          /* 与图片原始比例一致，高度随宽度自适应 */
  overflow: hidden;
  display: block;
  background: #eee;
}
.sj-quad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sj-quad:hover img {
  transform: scale(1.03);
}
.sj-quad-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #104720;
  padding: 0 24px;
}
.sj-quad-t1 {
  font-size: 34px;
  line-height: 38px;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: 'Archivo Black', 'Roboto', sans-serif;
  color: #104720;
}
.sj-quad-t2 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  margin: 0;
  color: #f0f0f0;
}

/* ===================== ⑦ 左文右图说明区 ===================== */
/* 实测：y=3694 h=436；左文案 x=80（品牌标 16px 蓝 #3A5EA8、主标题 56px #212121、
   描述 15px，行高 20左右）；右图 670x436 x=720 */
.sj-sec-story {
  margin-top: 0; /* 实测：quad 底 3684 → story 顶 3694，Δ10 */
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* 整块是 <a href="/mlb">：重置链接默认样式，保留 flex 布局，给出可点反馈 */
.sj-story-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.sj-story-link:hover .sj-story-title {
  color: #215b32;          /* 悬停时标题变主题绿，暗示可点 */
}
.sj-story-link:hover .sj-story-img img {
  transform: scale(1.02);  /* 轻微放大，与四宫格 hover 语言一致 */
}
.sj-story-img img {
  transition: transform 0.4s ease;
}
.sj-story-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 20px; /* 参考站文案 x=80，容器 x=50+10=60，故内缩 20 */
}
.sj-story-kicker {
  font-size: 16px;
  font-weight: 700;
  color: #3a5ea8;
  margin: 0 0 10px;
}
.sj-story-title {
  font-size: 56px;
  line-height: 60px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 12px;
}
.sj-story-desc {
  font-size: 15px;
  line-height: 20px;
  color: #555;
  margin: 0;
  max-width: 610px; /* 实测文案盒 w=610 */
}
.sj-story-img {
  flex: 0 0 670px;
  width: 670px;
  height: 436px;
  overflow: hidden;
  background: #eee;
}
.sj-story-img img {
  width: 100%;
  height: 436px;
  object-fit: cover;
  display: block;
}

/* ===================== ⑧ 四项服务承诺 ===================== */
/* 实测（1440 视口）：图标 y=4245 40x40，x=[198, 533, 868, 1203] → 间距恒为 335px。
   ⚠️ 不能用 space-between 铺满整行：那样算出来是 340 间距且起始 x=70，
   与参考站的 198 起、335 间距差 128px。参考站是「固定 335 步长 + 居中」。 */
.sj-sec-svc {
  /* 参考站实测：story 区底 4130 → svc 容器顶 4215 = 85px（原写 100，偏大 15） */
  margin-top: 85px;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
/* 参考站实测（1440）：容器 x=50 w=1340 justify-center，每列固定 335px，
   列内容盒 x=65 w=305（内缩 15px）。
   ⚠️ 列内是**纵向居中**：图标在上居中、文字在下居中。
   我原先做成「图标在左、文字在右、左对齐」，与参考站完全不同（用户截图指出）。
   图标父级实测 disp=flex / flex-direction:column / align-items:center。 */
.sj-svc {
  flex: 0 0 335px;
  width: 335px;
  padding: 0 15px;        /* 335 - 15*2 = 305，与参考站内容盒宽一致 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.sj-svc-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* 标题与描述在参考站里同为 13px/700、居中（实测 ta=-webkit-center） */
.sj-svc-t1 {
  font-size: 13px;
  line-height: 15px;
  font-weight: 700;
  color: #212121;
  margin: 15px 0 0;        /* 图标 y=4245+40=4285 → 标题 y=4296，间距 11~15 */
  font-family: 'Roboto', sans-serif;
}
.sj-svc-t2 {
  font-size: 13px;
  line-height: 15px;
  font-weight: 700;
  color: #212121;
  margin: 6px 0 0;
  font-family: 'Roboto', sans-serif;
}

/* =============================================================================
 * 【2026-07-18 补】三个挂件区块 —— 首版漏做，用户对比截图后补齐
 *
 * 重要背景：参考站这三个块在 DOM 里是 3 个<iframe>（srcdoc 内联挂件，src 属性为 null），
 * 常规 getComputedStyle / querySelectorAll 取不到内容，第一版抓取因此整段漏掉。
 * 实测参数（1440 视口，真实 Chromium 读 contentDocument 拿到）：
 *   f0 y=222  h=48/55  滚动条：- 50% OFF 1 ITEM / - 15% OFF $99+ / - BUY 2 - FREE SHIPPING
 *   f1 y=1249 h=80/60 TOP PRODUCTS：Roboto 700 50px #215B32，居中，margin 10px auto
 *   f2 y=1623 h=48/55 滚动条：- Player/Fan Fit Available / - Instant Savings /
 *                                - Pro-grade Quality / - Custom Name Number
 *   滚动条共性：Poppins 700 24px #fff，margin-right 26px，padding 10px，
 *               animation scroll-left 30s linear infinite（0%→translateX(0)，100%→-50%）
 *   移动端（≤768px）：字号 16px
 * ========================================================================== */

/* ---------- 绿色滚动条 ---------- */
.sj-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #215b32;/* iframe 内 body 透明，绿底来自父级容器 */
  color: #fff;
}
.sj-marquee__track {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Poppins', 'Archivo Black', 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 35px;
  padding: 10px;
  animation: sj-scroll-left 30s linear infinite;
  will-change: transform;
}
.sj-marquee__item {
  display: inline-block;
  margin-right: 26px;
}
@keyframes sj-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .sj-marquee__track { animation: none; }
}

/* 第二条绿条：参考站实测在球队图标之下，间距 40px
   （球队图标底 1590 → 绿条 y=1630） */
.sj-marquee--mid {
  margin-top: 40px;
}
/* ---------- TOP PRODUCTS 大标题 ---------- */
.sj-sec-top {
  /* 实测参考站：联赛图标底 1179 → TOP iframe y=1256，间距 77px。
     之前这里没写 margin-top（默认 0），导致 TOP 与 leagues 贴在一起，
     整条时序比参考站高了 62px。 */
  margin-top: 77px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
}
.sj-top-title {
  font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
  margin: 10px auto;
  color: #215b32;
}

/* ---------- 移动端覆盖 ---------- */
@media (max-width: 900px) {
  .sj-top-title {
    font-size: 30px;
    padding: 5px;
  }
  .sj-marquee__track {
    font-size: 16px;
    padding: 10px;
  }
}
/* 用户要求：桌面像素级 1:1，移动端按本站响应式规则重排（非竞品站移动版式）。 */
@media (max-width: 1400px) {
  .sj-icon-row--leagues .sj-icon-cell {
    flex: 1 1 201px;
    width: auto;
    max-width: 201px;
  }
  .sj-icon-row--teams .sj-icon-cell {
    flex: 1 1 136px;
    width: auto;
    max-width: 136px;
  }
  .sj-banner {
    flex: 0 1 650px;
    width: auto;
  }
  /* 四宫格无需在此处覆盖：默认已是 grid-template-columns:1fr 1fr + aspect-ratio，
     天然流式自适应，窄屏不会溢出（1440/1366/1200/1024 实测均左右各 10px）。 */
  .sj-story-img {
    flex: 0 1 670px;
    width: auto;
  }
}

@media (max-width: 900px) {
  .sj-hero,
  .sj-hero img {
    height: 340px;
  }
  .sj-sec-teams {
    margin-top: 120px;
  }
  .sj-sec-banner,
  .sj-sec-story,
  .sj-sec-svc {
    flex-direction: column;
    align-items: stretch;
  }
  /* 四宫格是 grid，flex-direction 对它无效 —— 单列必须改 grid-template-columns */
  .sj-quad-row {
    grid-template-columns: minmax(0, 1fr);
  }
  /* ⚠️ 这些容器在桌面端都写死了固定高（366/525/436），移动端必须同时清掉高度，
     否则 img 被 aspect-ratio 压到 ~278px 而容器仍是 525px，下方多出 247px 空白。
     flex 也要统一写在这里 —— 分成两条规则时后者会覆盖前者（实测踩过）。 */
  .sj-banner,
  .sj-quad,
  .sj-story-img {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }
  /* 说明区配图放最前：移动端先给视觉锚点，再读文案 */
  .sj-story-img {
    order: -1;
  }
  .sj-story-copy {
    flex: 1 1 auto;
  }
  .sj-banner img,
  .sj-quad img {
    height: auto;
    aspect-ratio: 700 / 525;
  }
  /* 说明区配图是 860x560，比例与四宫格不同，必须各用各的 */
  .sj-story-img img {
    height: auto;
    aspect-ratio: 860 / 560;
  }
  .sj-wear,
  .sj-wear img {
    height: 240px;
  }
  .sj-icon-row--leagues {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }
  .sj-icon-row--teams {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .sj-sec-title {
    font-size: 22px;
    line-height: 28px;
  }
  .sj-banner-t1,
  .sj-quad-t1 {
    font-size: 22px;
    line-height: 26px;
  }
  .sj-banner-t2,
  .sj-wear-t1 {
    font-size: 16px;
    line-height: 20px;
  }
  .sj-banner--sm .sj-banner-t2,
  .sj-wear-t2 {
    font-size: 14px;
    line-height: 18px;
  }
  .sj-story-copy {
    padding-left: 0;
  }
  .sj-story-title {
    font-size: 28px;
    line-height: 34px;
  }
  .sj-svc {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .sj-hero,
  .sj-hero img {
    height: 220px;
  }
  .sj-sec-teams {
    margin-top: 90px;
  }
  .sj-sec-banner {
    margin-top: 120px;
  }
  .sj-wear,
  .sj-wear img {
    height: 170px;
  }
  .sj-icon-row--leagues .sj-icon-cell {
    flex: 0 0 calc(50% - 8px);
    max-width: none;
    height: auto;
    aspect-ratio: 1;
  }
  .sj-icon-row--teams .sj-icon-cell {
    flex: 0 0 calc(33.333% - 12px);
    max-width: none;
    height: auto;
    aspect-ratio: 1;
  }
}
/* >>> liuyang-nav Soccer Jersey 独立分类导航（ly- 前缀，2026-10-19）
   布局 1:1 复刻 liuyangjersey：两行平铺顶栏 + 悬停多级带图弹层。
   仅出现在 /soccer-jersey 页（renderSoccerJerseyHome 输出），该页同时隐藏
   .catbar-wrap 顶部分类选项栏（app.js renderHeader 里控制）。 */
/* 2026-10-20 用户要求：导航栏对齐 /shoes 品牌导航 ——
   ① 背景改黑（#000 + #222 底边线）；② 高度与 .sx-brandnav 一致（2026-10-20 起全站黑底分类导航条统一 40px）；
   ③ Home 改成「← Home」（箭头在前，回主站首页，右侧竖分隔线）。
   条目同步改白字 + 悬停白下划线（黑底上原来的深灰字/蓝 hover 不可读）。 */
/* 2026-10-20 用户要求：所有黑底分类导航栏都吸顶（/watch、Soccer Jersey 子分类页与
   商品详情页此前是 relative，滚动时会跟着内容滚走，顶部只剩页头）。
   桌面端吸在页头之下：topbar 37 + header 89 = 126px（与 .b6-catnav 同一基准）；
   z-index 39 低于页头（40/49），即便布局偶发错位也不会反过来盖住 logo。
   窄屏 ≤820px 与 /soccer-jersey 专页既有行为一致：页头随页面滚走，黑条吸在 0。
   注意：/soccer-jersey 专页由 sjSyncStickyHeader 打 inline style（fixed），
   行内样式优先级更高，专页行为不受这条规则影响。 */
.ly-nav { background: #000; border-bottom: 1px solid #222; position: sticky; top: 126px; z-index: 39; }
@media (max-width: 820px) {
  .ly-nav { top: 0; }
}
.ly-nav__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 30px; padding: 0 30px; min-height: 40px; max-width: 1440px; margin: 0 auto; }
/* [2026-10-23] 球衣专页黑条改为「单行 + 横向可滚动」。
   起因：按用户要求把 Football Shoes 从主导航移进这条黑条（Club 之后、Nation 之前），
   一级项从 13 变 14，1440 宽下 flex-wrap:wrap 会把「Shorts」挤到第二行
   （实测 tops=[126,149]，条高 40→63，黑条变形）。
   改法照抄站内 /shoes 的 .sx-brandnav__track（overflow-x:auto + 项 flex:0 0 auto）：
   桌面端永远单行，宽度不够时横向滚动，不换行。
   窄屏（≤860px）本来就是同一套 nowrap+overflow-x 规则，行为一致。 */
.ly-nav--sj .ly-nav__bar {
  flex-wrap: nowrap;
  overflow-x: auto;
  /* 默认靠左起点：老浏览器不支持 safe 关键字时也不会把左端裁掉。 */
  justify-content: flex-start;
  gap: 0 29px;                 /* 30→29：14 项时 1440 宽正好一行放得下（多 10px） */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* 支持 safe 关键字的浏览器：内容放得下时仍居中（与原实现一致），
   放不下时退化为靠左起点，避免 flex 居中 + overflow 导致左端滚不回去。 */
@supports (justify-content: safe center) {
  .ly-nav--sj .ly-nav__bar { justify-content: safe center; }
}
.ly-nav--sj .ly-nav__bar::-webkit-scrollbar { display: none; }
.ly-nav--sj .ly-nav__bar > .ly-row--d1 { flex: 0 0 auto; }
.ly-row { position: relative; }
.ly-link { display: flex; align-items: center; gap: 9px; padding: 7px 2px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; white-space: nowrap; }
/* 2026-10-20 用户要求：弹层面板是白底，里面的二/三/四级分类名统一黑字
   （黑底改色时 .ly-link 曾全局变白，把弹层文字也带白了）。悬停仍为蓝色高亮。 */
.ly-drop .ly-link, .ly-drop .ly-link .ly-txt { color: #111; }
.ly-row--d1 > .ly-link { border-bottom: 2px solid transparent; }
.ly-row--d1 > .ly-link:hover, .ly-row--d1 > .ly-link:hover .ly-txt { color: #fff; opacity: 0.72; }
.ly-row--d1 > .ly-link:hover { border-bottom-color: #fff; }
.ly-link--home { margin-right: 14px; padding-right: 18px; border-right: 1px solid #333; }
.ly-ico { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.ly-arrow { margin-left: 14px; color: #9a9a9a; font-size: 15px; line-height: 1; }
.ly-drop { display: none; position: absolute; left: -12px; top: 100%; min-width: 240px; background: #fff; border: 1px solid #e7e7e7; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1); padding: 6px 0; z-index: 90; }
.ly-row.has-kids:hover > .ly-drop { display: block; }
.ly-row--d2 > .ly-link, .ly-row--d3 > .ly-link { padding: 8px 16px 8px 14px; font-size: 13.5px; min-width: 210px; }
.ly-row--d2 > .ly-link:hover .ly-txt, .ly-row--d3 > .ly-link:hover .ly-txt { color: #1d66c9; }
.ly-row--d2 .ly-txt, .ly-row--d3 .ly-txt { flex: 1 1 auto; }
.ly-drop--d3 { left: 100%; top: -6px; max-height: min(620px, 74vh); overflow-y: auto; }
.ly-drop--grid { min-width: 700px; max-height: min(620px, 74vh); overflow-y: auto; }
.ly-row.has-kids:hover > .ly-drop--grid { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); }
/* [2026-10-22 用户要求] 顶栏一级项（d1）悬停改「红底白字满高 + 6px 斜切」，
   与 /bag（.b6-catnav-item）、/shoes（.sx-brandnav__item）完全同款。
   此前这里只有「变淡 + 白下划线」——手表页黑条（ly-nav--watch 共用本文件）同样没有红底，
   用户实测反馈失效。满高做法：row 拉满条高、link 撑满 row；
   红块宽度用 padding 0 14px + margin 0 -14px 抵消，保持原 gap 视觉。
   本段必须写在原「白下划线」规则之后（部分选择器特异性更高，天然覆盖变淡效果）。 */
.ly-nav__bar > .ly-row--d1 {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ly-nav__bar > .ly-row--d1 > .ly-link {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  margin: 0 -14px;
  border-bottom: 0;
  transition: background-color 0.18s, color 0.18s;
}
.ly-nav__bar > .ly-row--d1 > .ly-link:hover,
.ly-nav__bar > .ly-row--d1 > .ly-link:hover .ly-txt {
  background-color: #CF2419;
  color: #fff;
  opacity: 1;
}
.ly-nav__bar > .ly-row--d1 > .ly-link:hover {
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
/* ← Home 的竖分隔线间距在满高块下保持原视觉 */
.ly-nav__bar > .ly-row--d1 > .ly-link--home {
  margin-right: 14px;
  padding-right: 18px;
}
/* [2026-10-22] 手表黑条（ly-nav--watch）：右端 3 个品牌的弹层改从右缘展开，
   避免 Vacheron Constantin 等右端项的 240px 弹层超出视口产生横向溢出。
   其三级面板（ly-drop--d3）也同步左翻（right:100%），否则会从右锚面板再向右顶出屏幕。 */
.ly-nav--watch .ly-nav__bar > .ly-row--d1:nth-last-child(-n+3) .ly-drop {
  left: auto;
  right: -12px;
}
.ly-nav--watch .ly-nav__bar > .ly-row--d1:nth-last-child(-n+3) .ly-drop--d3 {
  left: auto;
  right: 100%;
}
/* 隐藏顶部分类选项栏的兜底（hidden 属性被其它规则覆盖时仍然生效） */
.catbar-wrap[hidden] { display: none !important; }
@media (max-width: 860px) {
  .ly-nav__bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 0 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ly-nav__bar::-webkit-scrollbar { display: none; }
  .ly-drop { display: none !important; }
}
@media (max-width: 640px) {
  .ly-nav__bar { min-height: 40px; padding: 0 16px; }
  .ly-link { font-size: 13px; }
}

/* ---------- 顶部三块吸顶（2026-10-20 用户要求，仅 /soccer-jersey） ----------
   topbar + site-header + 黑色 ly 导航整体固定，页面内容从下方滚过。
   高度由 app.js 实测后写入 body padding-top 与 --sj-* 变量（模式同首页 sh-sticky-head、
   /shoes 的 sx-sticky-head），任何视口宽度都对得齐，不写死像素。
   窄屏（≤820px，header 两行太高、沿用站点既有约定不吸顶）：只吸黑色导航
   （sticky top:0，占文档流、无需 padding 补偿），等价于全站 catbar 的窄屏吸顶。 */
body.sj-sticky-head .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
body.sj-sticky-head #site-header { position: fixed; top: var(--sj-topbar-h, 37px); left: 0; right: 0; z-index: 49; }
body.sj-sticky-head .ly-nav { position: fixed; top: calc(var(--sj-topbar-h, 37px) + var(--sj-header-h, 89px)); left: 0; right: 0; z-index: 48; }
@media (max-width: 820px) {
  body.sj-sticky-head .topbar,
  body.sj-sticky-head #site-header { position: static; }
  body.sj-sticky-head .ly-nav { position: sticky; top: 0; }
}
/* <<< liuyang-nav 结束 */

/* [2026-10-22] 原 nav3-sticky-head（纯 sticky 版）已废弃删除：
   JS 实际切换的类是 nav3-fixed（fixed + body padding 方案），
   其 CSS 现统一放在 styles.css 的「全站三块整体吸顶」段，全站生效。 */

