/* 首页样式 */
.home-layout-page {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0 15px 80px;
  background: linear-gradient(180deg, #e4f5ff 0%, #f6fcff 46%, #ffffff 100%);
  overflow: hidden;
}

.home-safe-top {
  height: 35px;
}

.home-brand-card {
  min-height: 49px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.96), 0 9px 24px rgba(43, 121, 207, 0.14);
  display: flex;
  align-items: center;
  padding: 9px 12px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.home-brand-logo {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  margin-right: 8px;
  border-radius: 9px;
}

.home-brand-copy {
  flex: 1;
  min-width: 0;
}

.home-brand-title {
  font-size: 16px;
  line-height: 19px;
  color: #1268e8;
  font-weight: 900;
  letter-spacing: 0.25px;
}

.home-brand-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 14px;
  color: #667085;
  font-weight: 700;
}

.home-search-card {
  height: 33px;
  margin: 7px 0 6px;
  padding: 0 5px 0 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.96), 0 6px 17px rgba(43, 121, 207, 0.12);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.home-search-icon {
  width: 17px;
  height: 17px;
  margin-right: 6px;
  flex-shrink: 0;
}

.home-search-placeholder {
  flex: 1;
  color: #9aa7b8;
  font-size: 12px;
  font-weight: 600;
}

.home-search-btn {
  height: 24px;
  min-width: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #59c5ff, #0b64ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(20, 104, 255, 0.22);
}

.home-hero-card {
  height: 137px;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  background: #d9f0ff;
  box-shadow: 0 9px 23px rgba(47, 135, 220, 0.18);
}

.home-hero-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-mask {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
}

.home-hero-content {
  position: absolute;
  left: 14px;
  top: 21px;
  z-index: 2;
  width: 205px;
}

.home-hero-title {
  color: #124c9c;
  font-size: 20px;
  line-height: 25px;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.7);
}

.home-hero-sub {
  margin-top: 5px;
  color: #455a75;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
}

.home-hero-button {
  margin-top: 11px;
  width: 70px;
  height: 26px;
  border-radius: 15px;
  background: linear-gradient(135deg, #4cc1ff, #0b64ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(20, 104, 255, 0.26);
}

.home-quick-card {
  margin-top: 9px;
  padding: 10px 5px 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.96), 0 8px 22px rgba(43, 121, 207, 0.13);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.home-quick-item {
  text-align: center;
  min-width: 0;
  cursor: pointer;
}

.home-quick-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  display: block;
}

.home-quick-title {
  font-size: 12px;
  line-height: 15px;
  color: #1d2939;
  font-weight: 900;
}

.home-quick-sub {
  font-size: 10px;
  line-height: 13px;
  color: #667085;
  margin-top: 1px;
  font-weight: 600;
}

.home-coupon-card {
  min-height: 64px;
  margin-top: 13px;
  border-radius: 12px;
  padding: 10px 9px 10px 12px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #168cff, #0764ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 9px 21px rgba(20, 104, 255, 0.28);
  overflow: hidden;
}

.home-coupon-copy {
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

.home-coupon-title {
  font-size: 19px;
  line-height: 24px;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-coupon-sub {
  font-size: 11px;
  line-height: 15px;
  margin-top: 2px;
  font-weight: 700;
  opacity: 0.96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-coupon-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7d8, #ffba33);
  color: #2b1a00;
  font-size: 12px;
  line-height: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 5px 11px rgba(165, 105, 0, 0.24);
}

.home-section-title {
  margin: 9px 3px 5px;
  color: #1268e8;
  font-size: 13px;
  line-height: 17px;
  font-weight: 900;
}

.home-empty-card {
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #8b98aa;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.96), 0 6px 17px rgba(43, 121, 207, 0.1);
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.home-product-card {
  min-height: 153px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 9px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.96), 0 7px 17px rgba(80, 130, 190, 0.14);
  cursor: pointer;
}

.home-product-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 4px 9px 9px 4px;
  background: linear-gradient(135deg, #4db5ff, #1168ff);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.home-product-img {
  width: 100%;
  height: 75px;
  margin-top: 18px;
  display: block;
  object-fit: contain;
}

.home-product-title {
  margin-top: 4px;
  font-size: 13px;
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-product-sub {
  margin-top: 2px;
  font-size: 10px;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-product-footer {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-product-price {
  color: #ff3b1f;
  font-size: 15px;
  font-weight: 900;
}

.home-product-buy {
  height: 22px;
  line-height: 22px;
  padding: 0 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, #51b8ff, #0864ff);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.home-bottom-space {
  height: 60px;
}

/* JH_WATER_BG_THREE_END_V1：首页独立布局背景覆盖，保留原玻璃卡片层级 */
.home-layout-page {
  background-image: linear-gradient(180deg, rgba(228,245,255,0.50) 0%, rgba(246,252,255,0.42) 46%, rgba(255,255,255,0.66) 100%), url('../assets/backgrounds/jh-water-page-bg.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}


/* JH_HOME_H5_IMAGE_ONLY_SQUARE_V3B：H5 首页 Banner 纯图片 + 正方形轮播 */
.home-hero-mask,.home-hero-content,.home-hero-title,.home-hero-sub,.home-hero-button,.home-coupon-copy,.home-coupon-title,.home-coupon-sub,.home-coupon-action{display:none!important;}
.home-hero-image{position:static!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.home-coupon-card{height:64px!important;min-height:0!important;padding:0!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;display:block!important;cursor:pointer;}
.home-square-swiper-card{width:100%;height:345px;margin-top:10px;border-radius:14px;overflow:hidden;position:relative;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(226,246,255,.72));box-shadow:inset 0 0 0 1px rgba(255,255,255,.96),0 9px 24px rgba(43,121,207,.14);}
.home-square-stage,.home-square-slide{width:100%;height:100%;position:relative;}
.home-square-slide{position:absolute;left:0;top:0;opacity:0;transition:opacity .36s ease;cursor:pointer;background:#eaf7ff;}
.home-square-slide.active{opacity:1;z-index:2;}
.home-square-image{width:100%;height:100%;object-fit:cover;display:block;}
.home-square-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;align-items:center;justify-content:center;gap:5px;z-index:5;}
.home-square-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.58);box-shadow:0 1px 3px rgba(0,0,0,.12);}
.home-square-dot.active{width:16px;border-radius:999px;background:#fff;}


/* JH_HOME_BOTTOM_BANNER_V2：首页底部大图，支持单图/多图自动轮播 */
.jh-home-bottom-banner{height:150px!important;margin:12px 0 0!important;border-radius:16px!important;min-height:0!important;padding:0!important;display:block;position:relative;overflow:hidden;background:linear-gradient(135deg,#e6f7ff,#ffffff);box-shadow:inset 0 0 0 1px rgba(255,255,255,.96),0 9px 24px rgba(43,121,207,.14);cursor:pointer;}
.jh-home-bottom-banner .jh-config-banner-img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}

/* JH34_HOME_BOTTOM_CAROUSEL_DOT_FIX_V1：底部大图多图轮播指示点增强，避免浅色图上不可见 */
.home-square-dots{bottom:12px!important;}
.home-square-dot{background:rgba(18,107,255,.30)!important;border:1px solid rgba(255,255,255,.86)!important;}
.home-square-dot.active{background:#1688ff!important;box-shadow:0 3px 8px rgba(22,136,255,.32)!important;}
