.shop-home .shop-section {
  padding: 73px 0 54px
}

.shop-home .shop-section[data-style="1"] {
  padding-bottom: 40px;
  background: #f7f7f7
}

.shop-home .shop-section[data-style="2"] {
  background: #f7f7f7
}

.shop-home .shop-section[data-style="3"] {
  background: #fff;
  padding-top: 73px;
  padding-bottom: 72px
}

.shop-home .shop-section-heading {
  margin-bottom: 30px
}

.shop-home .shop-grid.style-1,
.shop-home .shop-grid.style-3 {
  column-gap: 24px
}

.shop-home .shop-grid.style-3 {
  row-gap: 24px
}

.shop-home .style-3 .shop-product p {
  -webkit-line-clamp: 2;
  min-height: 36px
}

.shop-home .style-3 .shop-product-price {
  display: none
}

.shop-home {
  background: #f7f7f7;
  color: #1a1a1a
}

.shop-home * {
  box-sizing: border-box
}

.shop-home a {
  color: inherit;
  text-decoration: none
}

.shop-wrap {
  width: 1200px;
  max-width: calc(100% - 48px);
  margin: auto
}

.shop-hero {
  /* 参考其他页面(vrzhibonew/vrvideo)：用 aspect-ratio 让高度随宽度自适应，保持图片原始比例 1440×400 */
  aspect-ratio: 1440 / 400;
  /* 默认背景图，JS 会通过 --hero-bg 变量动态覆盖 */
  --hero-bg: url('/static/shop/template-home/asset/images/商城-0-69.png');
  background-color: #192638;
  background-image: var(--hero-bg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  position: relative
}

.shop-hero-inner {
  height: 100%;
  position: relative
}

.shop-nav {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 185px;
  /* 原来固定368px，banner自适应后改为相对高度 */
  height: calc(100% - 100px);
  min-height: 200px;
  border: 1px solid #ffffffbb;
  border-radius: 10px;
  background: #ffffff08;
  backdrop-filter: blur(12px);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  z-index: 20
}

.shop-nav-item {
  /* flex: 1; */
  min-height: 0;
  padding: 10px 0;
}

.shop-nav-item>a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  font-size: 14px;
  line-height: 20px
}

.shop-nav-item:hover,
.shop-nav-item:focus-within {
  background: #ffffff1a;
  /* padding-right: 28px */
}

.shop-nav-menu {
  display: none;
  position: absolute;
  left: calc(100% - 10px);
  top: -1px;
  min-width: 343px;
  max-width: 766px;
  width: max-content;
  /* 原来固定368px，改为跟随导航框高度自适应 */
  height: calc(100% + 2px);
  /* overflow: auto; */
  background: #fff;
  border-radius: 0 10px 10px 0;
  padding: 26px 32px;
  grid-template-rows: repeat(7, 45px);
  grid-auto-flow: column;
  grid-auto-columns: 279px
}

.shop-nav-item:hover .shop-nav-menu,
.shop-nav-item:focus-within .shop-nav-menu {
  display: grid
}

.shop-nav-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  padding: 0 8px
}

.shop-nav-menu a:hover {
  background: #edf3ff;
  color: #286cff
}

.shop-nav-menu img {
  width: 33px;
  height: 29px;
  object-fit: contain;
  flex: none
}

.shop-nav-menu span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.shop-nav-menu p {
  color: #999;
  font-size: 13px
}

.shop-hero-copy {
  position: absolute;
  left: 226px;
  top: 121px;
  width: 560px;
  color: white
}

.shop-hero-copy p {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 500;
}

.shop-hero-copy h1 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 30px;
  max-width: 550px
}

.shop-hero-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 39px;
  border-radius: 24px;
  background: #fff;
  color: #222 !important;
  font-size: 14px
}

.shop-hero-thumbs {
  position: absolute;
  bottom: 16px;
  /* left: 512px; */
  right: 0;
  display: flex;
  gap: 10px
}

.shop-hero-thumbs button {
  padding: 0;
  width: 115px;
  height: 43px;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  /* background: #fff; */
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;

}

.shop-hero-thumbs button.active {
  border: 2px solid #fff;
  /* box-shadow: 0 0 0 1px #286cff */
}

.shop-hero-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.shop-section {
  padding: 72px 0
}

.shop-section:nth-child(even) {
  background: white
}

.shop-section h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  margin: 0
}

.shop-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px
}

.shop-section-heading>a {
  color: #999;
  font-size: 14px
}

.shop-grid {
  display: grid;
  gap: 24px 20px
}

.shop-grid.style-1,
.shop-grid.style-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.shop-grid.style-2 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.shop-product {
  min-width: 0;
  display: block
}

.shop-product h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.shop-product p {
  font-size: 14px;
  line-height: 22px;
  color: #999;
  margin: 0 0 16px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.shop-product-price {
  font-size: 20px;
  color: #e10000
}

.shop-product:hover h3 {
  color: #286cff
}

.shop-product-image {
  height: 272px;
  background: white;
  /* border: 1px solid #e5e5e5; */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.shop-product-image img {
  width: 100%;
  height: 100%;
  /* object-fit: contain */
}

.style-1 .shop-product {
  height: 175px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #253344;
  color: white
}

.style-1 .shop-product:nth-child(1) .shop-product-price {
  background: linear-gradient(90deg, #A76B55 0%, #4B2D25 100%);
}

.style-1 .shop-product:nth-child(2) .shop-product-price {
  background: linear-gradient(90deg, #95B3D0 0%, #6B839D 100%);
}

.style-1 .shop-product:nth-child(3) .shop-product-price {
  background: linear-gradient(90deg, #D7B170 0%, #A07642 100%);
}

.style-1 .shop-product-image {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent
}

.style-1 .shop-product-image img {
  height: 100%;
  width: 100%;
  object-fit: cover
}

.style-1 .shop-product-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 75%
}

.style-1 h3 {
  font-size: 18px;
  margin: 0 0 12px
}

.style-1 p {
  font-size: 12px;
  line-height: 17px;
  color: #ffffffa6;
  min-height: 34px;
  margin: 0 0 18px
}

.style-1 .shop-product-price {
  color: white;
  font-size: 18px;
  background: #ffffff35;
  border-radius: 8px;
  padding: 7px 12px
}

.style-1 .shop-product:hover h3 {
  color: white
}

.style-3 .shop-product {
  height: 166px;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: inset 0 0 16px #d5e9ff;
  position: relative;
  padding: 34px 20px
}

.style-3 .shop-product-image {
  position: absolute;
  right: 12px;
  top: 18px;
  width: 135px;
  height: 130px;
  border: 0;
  background: transparent
}

.style-3 .shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.style-3 .shop-product-copy {
  position: relative;
  width: 62%
}

.style-3 h3 {
  font-size: 18px;
  margin: 0 0 12px
}

.style-3 p {
  font-size: 12px;
  line-height: 18px;
  margin: 0 0 6px;
  min-height: 18px;
  -webkit-line-clamp: 1
}

.style-3 .shop-product-price {
  font-size: 16px
}

.shop-empty {
  padding: 80px;
  text-align: center;
  color: #999
}

/* 移动端横向滚动分类条，PC端默认隐藏 */
.mobile-shop-nav {
  display: none
}

@media(max-width:1000px) {
  .shop-hero-copy {
    width: calc(100% - 230px)
  }

  .shop-hero-copy h1 {
    font-size: 26px
  }

  .shop-hero-thumbs {
    left: 226px
  }

  .shop-grid.style-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .shop-grid.style-1,
  .shop-grid.style-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .shop-section {
    padding: 48px 0
  }
}

@media(max-width:600px) {
  .shop-wrap {
    max-width: calc(100% - 24px)
  }

  /* 隐藏原有左侧导航，加 !important 确保覆盖 */
  .shop-nav {
    display: none !important
  }

  /* 显示移动端横向滚动分类条——用 JS transform 方案 */
  .mobile-shop-nav {
    display: block !important;
    padding: 12px !important;
    margin: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
    scrollbar-width: none !important
  }

  /* 隐藏滚动条 */
  .mobile-shop-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important
  }

  /* 内层flex包装器，由JS transform移动 */
  .mobile-shop-nav-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
    width: max-content !important
  }

  .mobile-shop-nav a {
    flex: 0 0 auto !important;
    padding: 8px 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #f5f5f5;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    transition: all .2s ease
  }

  .mobile-shop-nav a:active {
    background: #286cff;
    color: #fff;
    border-radius: 20px
  }

  .shop-nav-menu {
    min-width: 190px;
    max-width: calc(100vw - 160px);
    padding: 16px 8px;
    grid-auto-columns: 170px
  }

  /* ========== 移动端 Banner 优化 ========== */

  /* 改变banner比例，让移动端展示更饱满，不再像PC端那样扁 */
  .shop-hero {
    aspect-ratio: 16 / 10;
    height: auto;
    /* border-radius: 0 0 16px 16px; */
    overflow: hidden;
    /* 背景图由 --hero-bg 变量控制 */
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center
  }

  /* 伪元素渐变遮罩层，提升底部文字可读性 */
  .shop-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
    z-index: 1
  }

  .shop-hero-inner {
    padding: 0;
    max-width: 100%
  }

  /* 文字内容区域 —— 移到底部，配合渐变遮罩更清晰 */
  .shop-hero-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    /* bottom: 32px; */
    top: 32px;
    width: auto;
    z-index: 2
  }

  /* 副标题 —— 移动端用标签样式 */
  .shop-hero-copy p {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
    /* padding: 3px 10px; */
    display: inline-block;
    /* background: rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(6px); */
    border-radius: 10px;
    letter-spacing: 1px
  }

  /* 主标题 —— 加大字号使其更醒目 */
  .shop-hero-copy h1 {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.45;
    max-width: 100%;
    /* 限制最多两行，超出省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3)
  }

  /* 立即购买按钮 —— 更圆润、更具活力 */
  .shop-hero-buy {
    width: auto;
    min-width: 96px;
    height: 34px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 17px;
    /* background: linear-gradient(135deg, #286cff 0%, #4d8bff 100%); */
    /* color: #fff !important; */
    /* box-shadow: 0 4px 14px rgba(40, 108, 255, 0.4); */
    /* transition: transform .2s ease, box-shadow .2s ease */
  }

  .shop-hero-buy:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(40, 108, 255, 0.3)
  }

  /* 缩略图指示器 —— 底部居中小缩略图 */
  .shop-hero-thumbs {
    position: absolute;
    /* left: 50%; */
    bottom: 14px;
    /* transform: translateX(-50%); */
    display: flex;
    gap: 6px;
    z-index: 3
  }

  .shop-hero-thumbs button {
    width: 48px;
    height: 30px;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: border-color .25s ease
  }

  /* 激活状态 —— 白色边框高亮 */
  .shop-hero-thumbs button.active {
    border-color: #fff
  }

  .shop-hero-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
  }

  .shop-grid.style-1,
  .shop-grid.style-3 {
    grid-template-columns: 1fr
  }

  .shop-product-image {
    height: 180px
  }

  .shop-section h2 {
    font-size: 24px
  }

  .shop-product h3 {
    font-size: 16px
  }

  .shop-section {
    padding: 36px 0
  }
}
