/* =========================================================================
   shop910-home.css —— mxqshop.store 首页版式（1:1 复刻 demo1.shop910.shop）
   实测基准：1606px 视口，参考站页高 6809px
   导航栏 / 顶部条 / 页脚不在本文件范围（沿用站点既有样式，本文件不覆盖）
   所有栅格一律流式（flex + 1fr），不写死 px 宽度，避免宽屏靠左 / 窄屏溢出
   ========================================================================= */

.sh-home {
  --sh-ink: #111111;
  --sh-sub: #6b6b6b;
  --sh-line: #e6e6e6;
  --sh-sale: #e0352b;
  --sh-gutter: 10px;
  --sh-max: 1200px;          /* 参考站内容容器实测 1200px */
  --sh-title-fs: 26px;
  display: block;
  color: var(--sh-ink);
}

/* ---------- 区块标题：参考站实测居中、衬线感、上下留白 ---------- */
.sh-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: var(--sh-title-fs);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sh-ink);
  letter-spacing: .2px;
}
.sh-wrap {
  width: 100%;
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 0 var(--sh-gutter);
  box-sizing: border-box;
}
.sh-sec { margin: 0 0 60px; }
.sh-sec:last-child { margin-bottom: 0; }

/* =========================================================================
   ③ Hero 轮播 —— 实测 1606x950，5 帧循环，文字分 5 段依次入场
   ========================================================================= */
.sh-hero {
  position: relative;/* 成交卡绝对定位在hero 内部左下角 */
  width: 100%;
  height: 950px;
  overflow: hidden;
  background: #1b1b1b;
}
.sh-hero__track { position: absolute; inset: 0; }
.sh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}
.sh-hero__slide.is-active { opacity: 1; z-index: 2; }
.sh-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 参考站 hero 文字是白字压在图上，靠底部深色蒙层保证可读 */
.sh-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.10) 38%, rgba(0,0,0,.52) 100%);
  z-index: 1;
}
.sh-hero__body {
  position: absolute;
  left: 0; right: 0;
  top: 320px;                  /* 实测标题块起点 y≈423（相对 hero 104 → 319）*/
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  pointer-events: none;
}
.sh-hero__line {
  opacity: 0;
  transform: translateY(26px);
  margin: 0 auto;
}
.sh-hero__slide.is-active .sh-hero__line {
  animation: shHeroIn .8s ease forwards;
}
.sh-hero__slide.is-active .sh-hero__line:nth-child(1) { animation-delay: .10s; }
.sh-hero__slide.is-active .sh-hero__line:nth-child(2) { animation-delay: .26s; }
.sh-hero__slide.is-active .sh-hero__line:nth-child(3) { animation-delay: .42s; }
.sh-hero__slide.is-active .sh-hero__line:nth-child(4) { animation-delay: .58s; }
.sh-hero__slide.is-active .sh-hero__line:nth-child(5) { animation-delay: .74s; }

.sh-hero__h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .5px;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.sh-hero__h2 {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.sh-hero__p {
  margin-top: 16px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.sh-hero__cta {
  pointer-events: auto;
  display: inline-block;
  margin-top: 34px;
  padding: 13px 38px;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.sh-hero__cta:hover { background: #111111; color: #fff; transform: translateY(-2px); }

@keyframes shHeroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 分页点：参考站底部居中小圆点 */
.sh-hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 150px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.sh-hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.sh-hero__dot.is-active { background: #fff; width: 26px; border-radius: 5px; }

/* =========================================================================
   ④ 成交卡跑马灯 —— 参考站 order-carousel 220x90 横向滚动
   实测参考站：该卡**浮在 hero 内部左下角**（y≈900，hero 底 1054），
   viewport 高度约等于 1~2 张卡（220px），不是一条长柱。
   之前写成常规流里的独立区块 → 16 张卡竖着堆成一条 900px 高的白柱，非常难看。
   正解：绝对定位贴在 hero 左下角，遮罩 + 固定高度，超出部分裁掉。
   ========================================================================= */
.sh-orders {
  position: absolute;
  left: max(var(--sh-gutter), calc((100vw - var(--sh-max)) / 2 + var(--sh-gutter)));
  /* top 由 JS 按hero 实际高度算（见 mountShOrders），这里给兜底值 */
  top: 720px;
  z-index: 7;
  width: 220px;
  height: 196px;                /* 2 张卡 + gap，超出裁掉 */
  overflow: hidden;
  pointer-events: none;
}
.sh-orders__viewport {
  overflow: hidden;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.sh-orders__track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: shOrdersRoll 26s linear infinite;
}
.sh-order {
  width: 220px;
  min-height: 90px;
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgb(239,237,234);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.sh-order__t {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sh-order__m {
  margin-top: 6px;
  font-size: 12px;
  color: #6a6a6a;
}
@keyframes shOrdersRoll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* =========================================================================
   ⑤ Hot Categories —— 实测 4 张 285x214（列距 13px），图下白色胶囊标签
   ========================================================================= */
.sh-cats { margin-top: 26px; }
.sh-cats__row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.sh-cat {
  position: relative;
  text-decoration: none; /* [2026-10-22] MORE 格改 <a> 输出，掐掉链接默认下划线/颜色继承差异 */
  flex: 1 1 240px;
  min-width: 0;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  background: #f2f2f2;
}
.sh-cat__img {
  width: 100%;
  aspect-ratio: 285 / 214;      /* 实测比例固定，用 aspect-ratio 而非写死 height */
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.sh-cat:hover .sh-cat__img { transform: scale(1.05); }
.sh-cat__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}

/* =========================================================================
   ⑥ 品牌 logo + 长文简介（居中）
   ========================================================================= */
.sh-about { text-align: center; padding: 26px 0 10px; }
.sh-about__logo {
  height: 70px;                 /* 实测 150x70 */
  width: auto;
  max-width: 280px;             /* 换 header logo(471x232) 后限宽，避免过窄 */
  object-fit: contain;
  margin: 0 auto 26px;
  display: block;
}
.sh-about__txt {
  margin: 0 auto;
  max-width: 1170px;
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}

/* =========================================================================
   ⑦ Hot Sales —— 实测左 1 大 590x590 + 右 4 小 295x295（2x2）
   用 grid-template-areas 表达「一大多四小」，比例 2fr : 1fr
   ========================================================================= */
/* 参考站实测：左大图 1 张**跨满两行**，右侧 4 张小图排成 2×2。
   所以是 3 列 × 2 行，不是 2 列 —— 之前写成 "big small1 / big small2"
   只有 4 个格子，第 3、4 张小图被挤到第三行，版面就错了。
   比例来自参考站截图：大图约占 2/3 总宽，小图各占 1/3 的一半。 */
.sh-sales__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "big small1 small3"
    "big small2 small4";
  gap: 10px;
  aspect-ratio: 1180 / 590;      /* 实测容器 1180x590 */
}
/* 让第 3、4 张小图落到正确的格子（网格区域名对应 SLOTS 数组下标） */
.sh-sale--s3 { grid-area: small3; }
.sh-sale--s4 { grid-area: small4; }
.sh-sale {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f2f2f2;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
}
.sh-sale--big { grid-area: big; }
.sh-sale--s1 { grid-area: small1; }
.sh-sale--s2 { grid-area: small2; }
.sh-sale__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.sh-sale:hover .sh-sale__img { transform: scale(1.05); }
.sh-sale__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 22px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* =========================================================================
   顶部三块整体吸顶（2026-10-20 用户要求，仅首页）
   —— 目标：.topbar（Track Order 黑条）+ .site-header（logo/搜索）
           + .catbar-wrap（分类导航）三块一起锁死在视口顶部。
   —— 只在 <body class="sh-sticky-head"> 时生效；JS 在离开首页时立即摘掉该类。
   —— 高度补偿：JS 实测三块总高后写 body { padding-top }，把内容整体下推不被盖住。

   为什么不用 position: sticky：
     这三块是 <body> 下的平级兄弟，sticky 需要父容器有高度约束，
     一旦固定就会和 .app-shell 的 flex 布局打架（内容被盖住 / 出现空白带）。
     「fixed + body padding-top」是站内既有做法（/shoes 的 sx-sticky-head 同思路）。

   z-index 取值说明：
     .site-header 原本是 60；mega 面板 #mega-root 是 70。
     三块统一用 65 —— 低于 mega（悬停大菜单要能盖在导航上），
     高于 .rp-toast（成交动态，50）与页脚浮层，避免面板被压住。
   ========================================================================= */
body.sh-sticky-head .topbar,
body.sh-sticky-head .site-header,
body.sh-sticky-head .catbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 65;
}
/* 三块原本就是文档流里的块，各自要占位；fixed 后失去占位，
   由 JS 统一给 body 加等高 padding-top补偿。 */
body.sh-sticky-head .topbar { top: 0; }
body.sh-sticky-head .site-header { top: var(--sh-topbar-h, 0px); }
body.sh-sticky-head .catbar-wrap { top: calc(var(--sh-topbar-h, 0px) + var(--sh-header-h, 0px)); }

/* 窄屏（手机上 header 会变高：图标换行/搜索框变窄），
   用 max-height 兜底 + 阴影，避免三块叠在一起时糊成一片 */
@media (max-width: 1100px) {
  body.sh-sticky-head .topbar,
  body.sh-sticky-head .site-header,
  body.sh-sticky-head .catbar-wrap {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  }
}

/* =========================================================================
   分类导航条：黑底白字，高度对齐 /shoes 的 sx-brandnav（2026-10-20 用户要求）

   参考来源：shoes-home.css 的 .sx-brandnav —— 同站另一套吸顶品牌条，
   本次把顶部分类导航条对齐到同一套视觉与高度，两处观感一致。

   高度：2026-10-20 用户要求「A 站所有黑底分类导航条统一 40px」，
   桌面与 ≤640 窄屏同值（原先桌面 54 / 窄屏 46 不一致）。

   ⚠️ 原只在首页生效（body.sh-sticky-head 限定），其它页面维持站点原白底样式。
      [2026-10-22 用户要求] 扩展到 body.sh-catbar-dark：首页「View all products」
      落点 /search?q=（空查询的全部商品列表页）也要这套黑底 + 红块高亮，
      否则点进去退回白底栏。该类只配色、不触发 fixed 吸顶
      （见 app.js shSyncStickyHeader 注释）。
   ========================================================================= */
body.sh-sticky-head .catbar-wrap,
body.sh-catbar-dark .catbar-wrap{
  background: #000;
  border-bottom: 1px solid #222;
}
body.sh-sticky-head .catbar-wrap .catbar-inner,
body.sh-catbar-dark .catbar-wrap .catbar-inner{
  /* 与 .sx-brandnav__track 同高（40px），左右留白也一致 */
  height: 40px;
  align-items: center;
}
body.sh-sticky-head .catbar-wrap .nav,
body.sh-catbar-dark .catbar-wrap .nav{
  display: flex;
  align-items: center;
  gap: 30px;                 /* 同 .sx-brandnav__track */
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.sh-sticky-head .catbar-wrap .nav::-webkit-scrollbar,
body.sh-catbar-dark .catbar-wrap .nav::-webkit-scrollbar{ display: none; }

body.sh-sticky-head .catbar-wrap .nav button,
body.sh-catbar-dark .catbar-wrap .nav button{
  flex: 0 0 auto;
  color: #fff;                         /* 白字（黑底） */
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4px;
  /* [2026-10-20 用户要求 v2] 红块**满高**（撑满整条 40px 黑条）+ 6px 斜切。
     参考图实测：红块高 37px = 整条导航条高，逐行左移 1px 共 6px ⇒ 平行四边形斜切。
     满高做法用 align-self:stretch（父 .nav 是 flex + align-items:center），
     纵向 padding 归 0；文字靠 display:inline-flex + align-items:center 垂直居中。
     横向 padding 14px（> 斜切量 6px，斜边不会切到文字）。 */
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  margin: 0 -14px;                     /* 抵消横向 padding，保持原有 gap 视觉 */
  background-color: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.18s, color 0.18s;
}
body.sh-sticky-head .catbar-wrap .nav button:focus,
body.sh-catbar-dark .catbar-wrap .nav button:focus{ outline: none; }
body.sh-sticky-head .catbar-wrap .nav button:focus-visible,
body.sh-catbar-dark .catbar-wrap .nav button:focus-visible{
  outline: 2px solid #fff; outline-offset: -2px;
}
/* [2026-10-22 用户要求] 悬停红块必须**撑满黑条**（对照 /bag 的 .b6-catnav-item）。
   ⚠️ 带下拉大菜单的一级项被 <div class="nav-item"> 包了一层（app.js:7013
   `hasChildren && !noMega ? '<div class="nav-item" data-navroot>…' : btn`），
   而 styles.css 的 .nav-item 只写了 position:relative / display:flex，没有纵向拉伸
   ⇒ 包装层高度塌成文字行高（实测 16~19px），红块只在 40px 黑条中间浮一小块。
   实测受影响 8 项：WATCH / NFL / MLB / College / NBA / NHL / NASCAR / F1
   （无子项的全部商品、Soccer Jersey、BAG、SHOES、Football Shoes 本来就是满高）。
   做法：让包装层跟随黑条满高，内部 button 由 .nav-item 默认的 align-items:stretch 顶满。 */
body.sh-sticky-head .catbar-wrap .nav-item,
body.sh-catbar-dark .catbar-wrap .nav-item{
  align-self: stretch;
  align-items: stretch;
}
/* 悬停：白色下划线（与 /shoes 的 .sx-brandnav__item:hover 同一效果），
   不再用站点的红斜切块 —— 那套是白底方案，黑底上会突兀 */
/* [2026-10-20 用户要求 v2] 悬停 → 红底白字**满高 + 6px 斜切**，移开恢复黑条底色。
   clip-path 用与 styles.css:108 相同的 Fanatics 斜切（上轮误设为 none，这里恢复）。 */
body.sh-sticky-head .catbar-wrap .nav button:hover,
body.sh-catbar-dark .catbar-wrap .nav button:hover{
  background-color: #CF2419 !important;
  color: #fff !important;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  opacity: 1;
  border-bottom-color: transparent;
}
/* 当前项：白字 + 常驻下划线（黑底上无法再靠「深色加粗」区分） */
/* [2026-10-20 v2] active 项同样走红底满高 + 斜切（当前分类） */
body.sh-sticky-head .catbar-wrap .nav button.active,
body.sh-catbar-dark .catbar-wrap .nav button.active {
  background-color: #CF2419;
  color: #fff;
  font-weight: 600;
  border-bottom-color: transparent;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
/* 分类图标在黑底上要亮一点，避免灰图标糊进背景 */
body.sh-sticky-head .catbar-wrap .nav .chip-icon,
body.sh-catbar-dark .catbar-wrap .nav .chip-icon{ opacity: 0.92; }
body.sh-sticky-head .catbar-wrap .nav button:hover .chip-icon,
body.sh-catbar-dark .catbar-wrap .nav button:hover .chip-icon{ opacity: 1; }

/* 两侧渐隐提示在黑底上必须是黑→透明，否则会出现两块灰白色块 */
body.sh-sticky-head .catbar-wrap .catbar-inner::before,
body.sh-catbar-dark .catbar-wrap .catbar-inner::before,
body.sh-sticky-head .catbar-wrap .catbar-inner::after,
body.sh-catbar-dark .catbar-wrap .catbar-inner::after{
  background: linear-gradient(90deg, #000, rgba(0, 0, 0, 0));
}
body.sh-sticky-head .catbar-wrap .catbar-inner::after,
body.sh-catbar-dark .catbar-wrap .catbar-inner::after{
  background: linear-gradient(270deg, #000, rgba(0, 0, 0, 0));
}

/* 窄屏跟随 /shoes 的 40px */
@media (max-width: 640px) {
  body.sh-sticky-head .catbar-wrap .catbar-inner,
  body.sh-catbar-dark .catbar-wrap .catbar-inner,
  body.sh-sticky-head .catbar-wrap .nav,
  body.sh-catbar-dark .catbar-wrap .nav { height: 40px; }
  body.sh-sticky-head .catbar-wrap .nav,
  body.sh-catbar-dark .catbar-wrap .nav { gap: 20px; }
  body.sh-sticky-head .catbar-wrap .nav button,
  body.sh-catbar-dark .catbar-wrap .nav button { font-size: 13px; }
}

/* 窄屏（≤820px）：统一为「只吸黑色分类条」，页头随页面滚走。
   [2026-10-21 用户要求：手机端也要统一]
   原实现是 ≤700px 时 .catbar-wrap 直接 `position: static` —— 黑条完全滚走，
   而全站其余页面（/bag /watch /soccer-jersey、分类页、商品详情页、/shoes）
   窄屏都是「黑条 sticky top:0 吸住」，首页成了唯一例外。
   移动端三块合计会超 40% 视口高，所以页头不吸（这是全站既有约定），
   但黑条本身只有 41px，吸住不占空间、也更利于切换分类。 */
@media (max-width: 820px) {
  body.sh-sticky-head .topbar,
  body.sh-sticky-head .site-header { position: static; }
  body.sh-sticky-head .catbar-wrap {
    position: sticky;
    top: 0;
  }
}

/* =========================================================================
   ⑧ All Products —— 实测 4 列 × 275x275，列距约 25px，卡高 340px
   ========================================================================= */
.sh-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 24px;
}
.sh-pcard {
  flex: 1 1 calc(25% - 18px);
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}
.sh-pcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;              /* 实测 275x275 正方 */
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 2px;
}
.sh-pcard__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, opacity .3s ease;
}
.sh-pcard:hover .sh-pcard__img { transform: scale(1.04); }
/* 第二张图 hover 淡入（参考站每卡有两张图，y 差 137px） */
.sh-pcard__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.sh-pcard:hover .sh-pcard__img--alt { opacity: 1; }

.sh-pcard__name {
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 39px;                 /* 两行占位，卡片对齐 */
}
.sh-pcard__prices {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-height: 20px;
}
.sh-pcard__price { font-size: 15px; font-weight: 600; color: var(--sh-sale); }
.sh-pcard__was {
  font-size: 12px;
  color: #9a9a9a;
  text-decoration: line-through;
}
.sh-pcard__badge {
  position: absolute;
  left: 0; top: 10px;
  padding: 4px 9px;
  background: var(--sh-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0 2px 2px 0;
}

.sh-more {
  display: block;
  text-decoration: none; /* [2026-10-22] 终态改 <a> 输出，掐掉链接默认下划线 */
  width: max-content;
  margin: 44px auto 0;
  padding: 12px 34px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.sh-more:hover { background: #333; transform: translateY(-2px); }
.sh-more[disabled] { opacity: .45; cursor: default; transform: none; }

/* =========================================================================
   ⑨ 信任区 —— 实测 1200x500 视频轮播 + 居中 700x300 蒙版卡片
   ========================================================================= */
.sh-trust {
  position: relative;
  width: 100%;
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 0 var(--sh-gutter);
  box-sizing: border-box;
  height: 500px;
  overflow: hidden;
  background: #101010;
}
.sh-trust__video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.sh-trust__card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 78%);
  padding: 40px 34px;
  box-sizing: border-box;
  background: rgba(0,0,0,.42);
  text-align: center;
  color: #fff;
}
.sh-trust__h {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.15;
}
.sh-trust__p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
}

/* =========================================================================
   ⑩ Customer Reviews —— 实测 2 行 × 6 列 300x675，列距约 8px
   ========================================================================= */
.sh-revs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sh-rev {
  flex: 1 1 calc(16.666% - 8px);
  min-width: 0;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 2px;
}
.sh-rev__img {
  width: 100%;
  aspect-ratio: 300 / 675;         /* 实测固定竖版比例 */
  object-fit: cover;
  display: block;
}

/* =========================================================================
   ⑪ 四宫格服务保障 —— 实测 4 列 298x136
   ========================================================================= */
.sh-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.sh-perk {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 4px;
}
.sh-perk__icon {
  width: 35px; height: 35px;
  flex: 0 0 35px;
  object-fit: contain;
}
.sh-perk__t {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.sh-perk__d {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sh-sub);
}

/* =========================================================================
   响应式 —— 参考站在 1200 以下会切成更窄版式（实测 1200 时 hero 变 400px 高）
   ========================================================================= */
@media (max-width: 1400px) {
  .sh-hero { height: 760px; }
  .sh-hero__body { top: 250px; }
  .sh-hero__h1 { font-size: 46px; }
  .sh-hero__h2 { font-size: 26px; }
}

@media (max-width: 1100px) {
  :root { }
  .sh-home { --sh-title-fs: 23px; }
  .sh-hero { height: 560px; }
  .sh-hero__body { top: 180px; }
  .sh-hero__h1 { font-size: 36px; }
  .sh-hero__h2 { margin-top: 14px; font-size: 21px; }
  .sh-hero__p { margin-top: 12px; font-size: 15px; }
  .sh-hero__cta { margin-top: 24px; padding: 11px 30px; font-size: 15px; }
  .sh-hero__dots { bottom: 90px; }
  /* 窄屏卡片更小、更矮，只露1 张多一点 */
  .sh-orders { width: 200px; height: 150px; }
  .sh-order { width: 200px; min-height: 70px; padding: 9px 11px; }
  .sh-order__t { font-size: 12px; }
  .sh-order__m { margin-top: 4px; font-size: 11px; }
  .sh-sec { margin-bottom: 44px; }

  /* Hot Sales 窄屏：一张大图在上、四张小图排成 2×2 在下（区域名要写全5 个） */
  .sh-sales__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "big big"
      "small1 small3"
      "small2 small4";
    aspect-ratio: auto;
    gap: 10px;
  }
  .sh-sale { aspect-ratio: 1 / 1; }

  .sh-trust { height: 400px; }
  .sh-trust__h { font-size: 26px; }
  .sh-trust__card { padding: 28px 22px; width: min(560px, 88%); }

  .sh-pcard { flex: 1 1 calc(33.333% - 17px); }
  .sh-rev { flex: 1 1 calc(33.333% - 6px); }
}

@media (max-width: 820px) {
  .sh-hero { height: 440px; }
  .sh-hero__body { top: 130px; }
  .sh-hero__h1 { font-size: 29px; }
  .sh-hero__h2 { font-size: 18px; }
  .sh-hero__p { font-size: 14px; }
  .sh-orders { width: 172px; height: 104px; }
  .sh-order { width: 172px; min-height: 52px; padding: 7px 9px; }
  .sh-order__t { font-size: 11px; -webkit-line-clamp: 1; }
  .sh-order__m { font-size: 10px; }
  .sh-cat { flex: 1 1 calc(50% - 7px); }
  .sh-pcard { flex: 1 1 calc(50% - 12px); }
  .sh-rev { flex: 1 1 calc(50% - 4px); }
  .sh-perk { flex: 1 1 100%; }
  .sh-trust { height: 320px; }
  .sh-trust__h { font-size: 20px; }
  .sh-trust__p { font-size: 13px; }
}

@media (max-width: 480px) {
  .sh-home { --sh-title-fs: 20px; --sh-gutter: 8px; }
  .sh-hero { height: 360px; }
  .sh-hero__body { top: 104px; }
  .sh-hero__h1 { font-size: 24px; }
  .sh-hero__h2 { margin-top: 10px; font-size: 15px; }
  .sh-hero__p { margin-top: 10px; font-size: 13px; line-height: 1.5; }
  .sh-hero__cta { margin-top: 18px; padding: 10px 24px; font-size: 14px; }
  .sh-hero__dots { bottom: 54px; }
  .sh-sec { margin-bottom: 34px; }
  .sh-orders { width: 150px; height: 80px; left: 10px; }
  .sh-order { width: 150px; min-height: 40px; padding: 5px 7px; }
  .sh-order__t { font-size: 10px; -webkit-line-clamp: 1; }
  .sh-order__m { font-size: 9px; margin-top: 2px; }
  .sh-cat { flex: 1 1 100%; }
  .sh-about__logo { height: 48px; max-width: 200px; margin-bottom: 16px; }
  .sh-about__txt { font-size: 13px; line-height: 1.65; }
  .sh-pcard { flex: 1 1 calc(50% - 8px); }
  .sh-grid { gap: 18px 10px; }
  .sh-rev { flex: 1 1 calc(50% - 4px); }
  .sh-trust { height: 260px; }
  .sh-trust__h { font-size: 17px; }
  .sh-trust__card { padding: 20px 16px; }
  .sh-trust__p { font-size: 12px; }
  .sh-more { padding: 11px 28px; }
}

/* 尊重系统的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .sh-hero__slide { transition: none; }
  .sh-hero__line { opacity: 1; transform: none; animation: none !important; }
  .sh-orders__track { animation: none; }
  .sh-cat__img, .sh-sale__img, .sh-pcard__img { transition: none; }
}