.web_header .topAd,
.mobileheader .topAd,
#adzhanweidingbu {
  display: none !important
}

.shop-home .shop-section {
  padding: 73px 0 54px
}

.shop-home .shop-section[data-style="1"] {
  padding-bottom: 50px;
  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
}

/* banner 主区域：只用 aspect-ratio 保持 1440x400 原始比例，高度随宽度自适应 */
.shop-hero {
  aspect-ratio: 1440 / 400;
  background: #192638;
  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 {
  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
}

/* 导航悬浮菜单：跟随导航高度自适应 */
.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);
  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;
  right: 0;
  display: flex;
  gap: 10px
}

.shop-hero-thumbs button {
  padding: 0;
  width: 115px;
  height: 43px;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent
}

.shop-hero-thumbs button.active {
  border: 2px solid #fff
}

.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
}

@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
  }
}

/* 移动端：隐藏左侧导航，hero 采用 16/10 饱满比例 + 渐变遮罩提升文字可读性 */
@media(max-width:600px) {
  .shop-wrap {
    max-width: calc(100% - 24px)
  }

  /* 隐藏 PC 端左侧导航栏 */
  .shop-nav {
    display: none !important
  }

  .shop-nav-menu {
    min-width: 190px;
    max-width: calc(100vw - 160px);
    padding: 16px 8px;
    grid-auto-columns: 170px
  }

  /* ========== 移动端 Banner 优化 ========== */
  /* 改变 banner 比例为 16/10，让手机端展示更饱满；cover 填满 */
  .shop-hero {
    aspect-ratio: 16 / 10;
    height: auto;
    overflow: hidden;
    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;
    top: 32px;
    width: auto;
    z-index: 2
  }

  /* 副标题 —— 移动端用标签样式，字距加大 */
  .shop-hero-copy p {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
    display: inline-block;
    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
  }

  .shop-hero-buy:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(40, 108, 255, 0.3)
  }

  /* 缩略图指示器 —— 底部靠左，z-index 高于遮罩 */
  .shop-hero-thumbs {
    position: absolute;
    bottom: 14px;
    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
  }
}

/* 移动端横向滚动分类条（shop-mobile-categories） */
.shop-mobile-categories {
  display: none
}

@media(max-width:600px) {
  .shop-mobile-categories {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid #eee
  }

  .shop-mobile-categories::-webkit-scrollbar {
    display: none
  }

  .shop-mobile-cat-item {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-radius: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s
  }

  /* .shop-mobile-cat-item:hover,
  .shop-mobile-cat-item:active {
    color: #286cff;
    border-bottom-color: #286cff
  } */
}