/* ==========================================================================
 * /shoes 分类首页 —— 版式 1:1 复刻（参考站 xie-6.shop910.shop）
 *
 * 所有数值来自真实 Chromium 渲染后 getComputedStyle 实测，1440px 视口。
 *   内容容器      max-width 1380px，居中
 *   hero          1440 × 900  视频轮播 object-fit:cover
 *   服务条        grid repeat(4,1fr)  图标 40×40  文字 14px
 *   四宫格        grid repeat(4,1fr)  gap 20px  图 325×433  cover
 *   品牌墙        grid repeat(5,1fr)  gap 48px 20px  图 255×255  contain
 *   横幅          1380 × 575  cover，居中浮白卡
 *   底部六列      grid repeat(6, calc(16% - 5px))  gap 10px 5px  图 213×478  cover
 *   字体          Tinos (serif)，字号 12/14/16/18/24/26/28/48
 *   圆角          全站 0
 *   按钮          黑底白字 12px，padding 10px 20px，无圆角
 *
 * 类名一律 sx- 前缀，绝不复用 styles.css / watch-home.css / chicme-home.css
 * 里的任何已有类名。
 * ========================================================================== */

/* ------------------------------------------------------------------
 * /shoes 页面级白底覆盖（2026-10-18 加）
 *
 * 站点全局 styles.css 里有 `body { background: var(--bg) }` 且 `--bg: #f6f8fc`（淡蓝灰），
 * 页面底部/图片加载前会露出这条蓝灰色带。
 * ⚠️ **不要去改 styles.css 的 --bg** —— 那是全站变量，改了所有页面都变白。
 * 这里只在 /shoes 渲染期间给 body/html 挂白底，离开本页由 JS 还原。
 * sx- 前缀的类不受影响（下面的 .sx-page 规则本来就是白底）。
 * ---------------------------------------------------------------- */
body.sx-body-white,
html.sx-body-white {
  background: #fff !important;
}

/* ------------------------------------------------- SHOES 独立品牌导航（吸顶） ----
 * 2026-10-19：25 个品牌一级分类（来源 demo1.shop910.shop SHOES 菜单）。
 * 渲染在 .sx-page 外层的 .sx-shell 里 —— sticky 在 overflow:hidden 祖先内失效，
 * sx-page 有 overflow-x:hidden，品牌条必须挂在它外面才能吸顶。
 * ------------------------------------------------------------------ */
.sx-brandnav {
  position: sticky;
  top: 0;
  z-index: 40;
  /* 2026-10-19 用户要求：黑底白字粗体（原白底黑字常规体） */
  background: #000;
  border-bottom: 1px solid #222;
}
/* ---- /shoes 顶部整体吸顶（1A：topbar + site-header + 品牌条三块 fixed，
 *      #app 用 padding-top 167px 补偿脱离文档流的高度；仅 body.sx-sticky-head 生效）
 *      ⚠️ 改 .sx-brandnav__track 高度时必须同步这里的 padding-top。
 *      ⚠️ 条高 = track 高度 + 1px（.sx-brandnav 有 border-bottom），别只加 track 高度。 ---- */
body.sx-sticky-head .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
body.sx-sticky-head #site-header {
  position: fixed;
  top: 37px;          /* topbar 高 37px */
  left: 0;
  right: 0;
  z-index: 49;
}
body.sx-sticky-head .sx-brandnav {
  position: fixed;
  top: 126px;         /* 37 + site-header 89 */
  left: 0;
  right: 0;
  z-index: 48;
}
body.sx-sticky-head #app {
  padding-top: 167px; /* 37 + 89 + 品牌条 41（40 + 1px 底边框，实测） */
}

/* -------------------------------------------------------------------------
   窄屏（≤820px）：统一为「只吸黑色品牌条」，页头随页面滚走。
   [2026-10-21 用户要求：手机端也要统一]

   为什么：窄屏页头是两行、高 125px（实测），三块合计 37+125+41 = 203px，
   在 844px 高的视口里占 24%，滚动时内容区被压得只剩四分之一。
   全站其余页面（/bag /watch /soccer-jersey、分类页、商品详情页）实测都是
   「窄屏只吸黑条 top:0」，本方案原先缺窄屏分支 ⇒ 手机上三块全吸，不一致。

   ⚠️ #app 的 padding-top: 167px 是 fixed 脱离文档流的补偿，
      窄屏下三块回文档流 ⇒ 必须归 0，否则内容被顶下 167px 出现大片空白。
   --------------------------------------------------------------------- */
@media (max-width: 820px) {
  body.sx-sticky-head .topbar,
  body.sx-sticky-head #site-header { position: static; }
  body.sx-sticky-head .sx-brandnav {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
  }
  body.sx-sticky-head #app { padding-top: 0; }
}
.sx-brandnav__track {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sx-brandnav__track::-webkit-scrollbar { display: none; }
.sx-brandnav__item {
  /* 2026-10-19 用户要求（2A）：换成无衬线黑体（原 Tinos 衬线体带笔锋） */
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;              /* 2026-10-19 用户要求：取消粗体，常规笔画粗细均匀的黑体 */
  letter-spacing: 0.4px;
  color: #fff;                   /* 白字（黑底） */
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  /* [2026-10-20 用户要求 v2] 红块**满高**（撑满整条 40px 黑条）+ 6px 斜切。
     参考图实测：红块高 = 整条导航条高，逐行左移 1px 共 6px ⇒ 平行四边形斜切。 */
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  margin: 0 -14px;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.sx-brandnav__item:focus { outline: none; }
/* [2026-10-20 v2] 悬停 → 红底白字**满高 + 6px 斜切**，移开恢复黑条底色 */
.sx-brandnav__item:hover {
  background-color: #CF2419;
  color: #fff;
  opacity: 1;
  border-bottom-color: transparent;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.sx-brandnav__home {
  margin-right: 14px;            /* Home 按钮与品牌列表留出间距 */
  padding-right: 18px;
  border-right: 1px solid #333;  /* 竖分隔线 */
}
@media (max-width: 640px) {
  .sx-brandnav__track { gap: 20px; height: 40px; padding: 0 16px; }
  .sx-brandnav__item { font-size: 13px; }
}

.sx-page {
  --sx-ink: #000;
  --sx-body: #000;
  --sx-white: #fff;
  --sx-soft: #f5f5f5;
  --sx-line: #e2e2e2;

  width: 100%;
  background: #fff;
  color: var(--sx-body);
  font-family: Tinos, "Times New Roman", serif;
  overflow-x: hidden;
}

.sx-page *,
.sx-page *::before,
.sx-page *::after {
  box-sizing: border-box;
}

.sx-wrap {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

/* ------------------------------------------------------ ① 顶部黑条 ------ */
.sx-topbar {
  height: 30px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 30px;
}

.sx-topbar__note {
  padding-left: 30px;
  white-space: nowrap;
}

.sx-topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 30px;
}

/* -------------------------------------------------------- ② hero ------- */
.sx-hero {
  display: block;   /* <a> 默认 inline，不写这行整块宽度塌成 0 */
  position: relative;
  width: 100%;
  height: 900px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.sx-hero__video,
.sx-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 900px;
  object-fit: cover;
  border-radius: 0;
  z-index: 1;
}

.sx-hero__body {
  display: flex;    /* <span> 默认 inline，不写这行 flex 布局不生效 */
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.sx-hero__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 26px;
  color: #fff;
}

.sx-hero__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 26px;
  color: #fff;
  max-width: 620px;
}

.sx-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: Tinos, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.sx-hero .sx-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

/* ----------------------------------------------------- ③ 服务条 ------- */
.sx-trust {
  background: #000;
  padding: 12px 0;
}

.sx-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 0;
}

.sx-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.sx-trust__item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.sx-trust__item span {
  font-size: 14px;
  line-height: 26px;
  color: #fff;
  padding: 5px;
}

/* ----------------------------------------------------- ④ 四宫格 ------- */
.sx-quad {
  padding: 28px 0 0;
}

/* 源站实测：四宫格整行 1360px 内放 4 个 325px 定宽盒，余量靠
   justify-content:space-between 均分成 20px 间距。
   用 1fr 等分会得到 330px —— 与源站的 325px 差 5px。
   这里照抄源站算法：定宽 325px + space-between。 */
.sx-quad__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 0;
}

.sx-quad__item {
  display: block;
  flex: 0 0 325px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
  background: var(--sx-soft);
}

.sx-quad__item img {
  display: block;
  width: 100%;
  height: 433px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.sx-quad__item:hover img {
  transform: scale(1.03);
}

.sx-quad__label {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 14px;
  white-space: nowrap;
}

/* --------------------------------------------------- ⑤ 品牌墙 -------- */
.sx-brands {
  padding: 48px 0 0;
}

/* 同上：源站品牌墙是 5 个 255px 定宽盒 + space-between（实测 x=41/317/593/868/1144）。 */
.sx-brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px 0;
}

.sx-brand {
  display: block;
  flex: 0 0 255px;
  text-decoration: none;
  background: var(--sx-soft);
  border-radius: 0;
  overflow: hidden;
}

.sx-brand__thumb {
  width: 100%;
  height: 255px;
  display: block;
  background: var(--sx-soft);
}

.sx-brand__thumb img {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.sx-brand:hover .sx-brand__thumb img {
  transform: scale(1.03);
}

.sx-brand__name {
  display: block;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  padding: 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------- ⑥ 通用标题区 ------------ */
.sx-head {
  text-align: center;
  padding: 42px 0 0;
}

.sx-head__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #000;
}

.sx-head__sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 22px;
  color: #000;
}

.sx-head .sx-btn {
  margin: 0;
}

/* ------------------------------------------------ ⑦ 商品网格 ---------- */
.sx-products {
  padding: 20px 0 0;
}

/* 商品网格：与品牌墙同一套算法（定宽 + space-between）。
   原来是 `gap:20px` + 卡片 `flex: 1 1 calc(25% - 15px)` —— flex-grow:1 会把当行的卡
   拉伸填满整行，8 件时首行只有 2 张、每张撑到 680px 宽，完全不是参考站的 4 列小卡布局。 */
.sx-products__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 0;
}

/* 定宽 330px：1380 = 4×330 + 3×30，4 列铺满；flex:0 0 是关键——
   不写 0 就变回 grow:1，卡片被拉伸、行数变少。 */
.sx-pcard {
  display: block;   /* <a> 默认 inline，不写这行 flex 子项宽度会塌 */
  flex: 0 0 330px;
  min-width: 0;
  background: var(--sx-soft);
  text-decoration: none;
  overflow: hidden;
  border-radius: 0;
}

.sx-pcard__thumb {
  width: 100%;
  height: 380px;
  background: var(--sx-soft);
}

/* 参考站的商品图是「白底摆拍图」，contain 完整呈现鞋子不切边；
   原来的 cover 会按 330×380 的框裁切方图（1200×1200），鞋头/鞋跟被切掉。 */
.sx-pcard__thumb img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: contain;
  /* 图片区固定白底：商品图是「白底摆拍图」，object-fit:contain 后四周会留白，
     留白必须是白色（与商品图自身底色一致），不能跟卡片灰底 ——
     否则图片四周出现一圈灰边。灰底只在下方文字区（.sx-pcard__body）。 */
  background: #fff;
  transition: transform 0.3s ease-in-out;
}

.sx-pcard:hover .sx-pcard__thumb img {
  transform: scale(1.03);
}

/* display:block 是关键修复（2026-10-19）。
 * 父级 .sx-pcard 是 <a> 标签，<a> 的 UA 默认样式就是 display:inline；
 * 本规则原先没写 display，子元素白块便沿用 inline 布局 ——
 * inline 盒子不按块级排版，背景会溢出到行盒外缘，被卡片的 overflow:hidden 裁一刀，
 * 于是白块从左边与上边各凸出一截，形成"台阶"状错位（用户截图放大后即是此状）。
 * 显式声明 block 让白块与上方灰块严丝合缝，构成一整块规整长方形。 */
.sx-pcard__body {
  display: block;
  /* 文字区与上方图片区同色（--sx-soft = #f5f5f5），整张卡片一整块灰底。
     原来是 #fff 白色 ⇒ 图片区灰、文字区白，接缝处有明显色差断层，不符合参考站。 */
  background: var(--sx-soft);
  padding: 14px 16px 16px;
  text-align: center;
}

.sx-pcard__name {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-pcard__price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.sx-empty {
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 40px 0 0;
}

/* ------------------------------------------- ⑧ 全宽横幅 -------------- */
.sx-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 575px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
  background: #eee;
}

.sx-banner:first-of-type {
  margin-top: 0;
}

.sx-banner__img {
  display: block;
  width: 100%;
  height: 575px;
  object-fit: cover;
}

.sx-banner__card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 520px;
  background: #fff;
  border: 1px solid #333;
  text-align: center;
  padding: 26px 30px 24px;
  color: #000;
}

.sx-banner__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  margin: 0 0 14px;
}

.sx-banner__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 22px;
  color: #000;
}

.sx-banner__cta {
  display: flex;
  justify-content: center;
}

.sx-banner__more {
  display: block;
  margin: 20px auto 0;
  width: fit-content;
}

/* ------------------------------------------------- ⑨ 评价区 ----------- */
.sx-social {
  padding: 32px 0 0;
}

.sx-social__title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 24px;
  color: #000;
}

/* 评价墙：桌面端 5 列铺满整行（原来是 overflow-x:auto + 固定 320px，
   1380px 容器装不下 5×320+4×20=1680px ⇒ 第 5 张被裁掉、看起来"空白多"）。
   改成定宽 255px + space-between，与品牌墙同一套算法，正好 5 列铺满 1380px。 */
.sx-social__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 0;
  padding-bottom: 10px;
}

.sx-scard {
  flex: 0 0 255px;
  background: var(--sx-soft);
  padding: 22px 20px;
  border-radius: 0;
}

.sx-scard__stars {
  font-size: 14px;
  color: #b08b3e;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.sx-scard__text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 12px;
}

.sx-scard__who {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* ----------------------------------------------- ⑩ 底部六列 ---------- */
.sx-flow {
  padding: 40px 0 0;
}

/* 源站实测：grid repeat(6, calc(16% - 5px)) + justify-content:space-between，
   在 1360px 容器内每列实得 213px。照抄同一算法。 */
.sx-flow__grid {
  display: grid;
  grid-template-columns: repeat(6, calc(16% - 5px));
  justify-content: space-between;
  gap: 10px 0;
}

.sx-flow__item {
  display: block;
  width: 100%;
  max-width: 213px;
  height: 478px;
  overflow: hidden;
  border-radius: 0;
  background: var(--sx-soft);
  text-decoration: none;
}

.sx-flow__item img {
  display: block;
  width: 100%;
  height: 478px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.sx-flow__item:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------- ⑪ 支付图标条 ---------- */
.sx-pay {
  padding: 46px 0 40px;
  text-align: center;
}

.sx-pay img {
  display: inline-block;
  width: 800px;
  max-width: 100%;
  height: 35px;
  object-fit: contain;
}

/* ==================================================== 响应式 ==========
 * 断点从 1280px 起 —— 1440px 视口必须保持源站原始尺寸，
 * 断点若设在 1440px 会让 1440 视口误命中降级规则（实测踩过）。 */
@media (max-width: 1280px) {
  .sx-banner,
  .sx-banner__img { height: 500px; }
  .sx-quad__item img { height: 380px; }
  .sx-brand__thumb,
  .sx-brand__thumb img { height: 230px; }
  .sx-flow__item,
  .sx-flow__item img { height: 420px; }
}

@media (max-width: 1024px) {
  .sx-hero,
  .sx-hero__video,
  .sx-hero__poster { height: 640px; }
  .sx-hero__title { font-size: 38px; }
  .sx-hero__sub { font-size: 16px; }
  .sx-quad__item { flex: 0 0 calc(50% - 6px); }
  .sx-quad__item img { height: 420px; }
  .sx-brand { flex: 0 0 calc(33.333% - 12px); }
  .sx-brands__grid { gap: 24px 0; }
  /* 窄屏同样定宽不拉伸：2 列 330px 居中排布，
     不用 grow:1（那样卡会被拉满整行、图被拉变形）。 */
  .sx-pcard { flex: 0 0 calc(50% - 15px); }
  .sx-products__grid { gap: 16px 0; }
  .sx-flow__grid { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .sx-flow__item { max-width: none; }
  .sx-flow__item,
  .sx-flow__item img { height: 400px; }
  .sx-banner,
  .sx-banner__img { height: 420px; }
  .sx-banner__card { width: 86%; }
}

@media (max-width: 640px) {
  .sx-topbar { font-size: 12px; }
  .sx-topbar__note { padding-left: 14px; }
  .sx-topbar__right { padding-right: 14px; gap: 12px; }
  .sx-hero,
  .sx-hero__video,
  .sx-hero__poster { height: 460px; }
  .sx-hero__title { font-size: 28px; margin-bottom: 16px; }
  .sx-hero__sub { font-size: 14px; margin-bottom: 18px; }
  .sx-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .sx-quad__item { flex: 0 0 calc(50% - 5px); }
  .sx-quad__item img { height: 260px; }
  .sx-brand { flex: 0 0 calc(50% - 5px); }
  .sx-brands__grid { gap: 14px 0; }
  .sx-quad__label { bottom: 24px; font-size: 12px; padding: 6px 10px; }
  .sx-brand__thumb,
  .sx-brand__thumb img { height: 160px; }
  .sx-brand__name { font-size: 12px; padding: 8px 4px; }
  .sx-head { padding: 28px 0 0; }
  .sx-head__title { font-size: 20px; }
  .sx-banner,
  .sx-banner__img { height: 320px; }
  .sx-banner__card {
    width: 94%;
    padding: 18px 16px 16px;
    bottom: 12px;
  }
  .sx-banner__title { font-size: 19px; margin-bottom: 14px; }
  .sx-banner__eyebrow { font-size: 11px; margin-bottom: 8px; }
  .sx-banner__more { margin-top: 12px; }
  .sx-social__title { font-size: 19px; }
  /* 移动端恢复横向滑动（源站原本就是 swipe 墙）：
     桌面端铺满 5 列，窄屏 255px×5 必然挤爆 ⇒ 改回单行横滑。 */
  .sx-social__row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 14px; }
  .sx-scard { flex: 0 0 260px; }
  .sx-flow__grid { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .sx-flow__item,
  .sx-flow__item img { height: 300px; }
  .sx-pay img { height: 24px; }
  .sx-pcard__thumb,
  .sx-pcard__thumb img { height: 280px; }
}
