:root {
  --hm-bg: #f4f6fb;
  --hm-card: #ffffff;
  --hm-text: #252a32;
  --hm-muted: #7a8394;
  --hm-line: rgba(38, 48, 66, .08);
  --hm-red: #ef5148;
  --hm-blue: #4b8ff5;
  --hm-purple: #8d55f7;
  --hm-mint: #54d9b1;
  --hm-orange: #ff7b4d;
  --hm-yellow: #ffc94d;
  --hm-shadow: 0 16px 38px rgba(41, 52, 82, .12);
}

/* Red is the default accent for visible promo text and help entry. */
.hm26-promo span,
.hm26-promo strong,
.hm26-featured a {
  color: #f43f35 !important;
}

.hm26-promo em {
  background: #fff !important;
  color: #f43f35 !important;
}

.hm-i-help {
  background: linear-gradient(135deg, #ff6a55, #f43f35) !important;
}

/* 2026-04-29 H5 alignment hotfix: keep legacy floats/sprite CSS from breaking the new mall shell. */
@media (max-width: 759px) {
  .container {
    max-width: 640px !important;
    padding: 10px 12px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .hm26-topbar,
  .nav-wrapper {
    position: relative !important;
    top: auto !important;
  }

  .hm26-topbar {
    margin: -10px -12px 10px !important;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .hm26-brand {
    display: inline-flex !important;
  }

  .hm26-brand strong {
    font-size: 14px !important;
    line-height: 17px !important;
  }

  .hm26-brand em {
    max-width: 116px !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  .hm26-brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    font-size: 19px !important;
  }

  .hm26-search {
    height: 42px !important;
    padding: 0 12px 0 14px !important;
    font-size: 13px !important;
  }

  .hm26-search span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hm26-search b {
    flex: 0 0 auto;
  }

  .hm26-promo-grid {
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch;
  }

  .hm26-promo {
    min-height: 116px !important;
    padding: 16px !important;
  }

  .hm26-promo-large {
    min-height: 244px !important;
  }

  .hm26-promo strong {
    max-width: 96% !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .nav-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    margin: 4px 0 12px !important;
  }

  .nav-wrapper .nav-inner {
    grid-column: 1 / span 4 !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .nav-wrapper .nav-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .nav-wrapper .nav-inner a,
  .nav-wrapper .select-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 12px !important;
  }

  .nav-wrapper .nav-inner span {
    padding: 0 !important;
  }

  .nav-wrapper .select-btn {
    justify-self: stretch !important;
  }

  .tabs-wrap .goodsList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul > li {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul > li > a {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .tabs-wrap .goodsList > ul > li > a > span {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }

  .tabs-wrap .goodsList > ul > li > .goodsListR {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    text-align: left !important;
  }

  .tabs-wrap .goodsList > ul > li > div > h2 {
    min-height: 42px !important;
    margin: 0 0 8px !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
    text-align: left !important;
  }

  .tabs-wrap .goodsList > ul > li > div > .price {
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.35 !important;
  }

  .item_bottom_container {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .buy_container {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 10px !important;
  }

  .btn_ljcy {
    min-width: 0 !important;
    white-space: nowrap !important;
    line-height: 42px !important;
  }

  .footerdi {
    width: 100% !important;
    max-width: 640px !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    padding: 7px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .footerdi ul,
  .footerdi li {
    min-width: 0 !important;
  }

  .footerdi a {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
  }

  .footerdi a i {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .footerdi a i::before {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  .footerdi .f_home i::before { content: "首"; }
  .footerdi .f_whole i::before { content: "云"; }
  .footerdi .f_jiexiao i::before { content: "开"; }
  .footerdi .f_car i::before { content: "购"; }
  .footerdi .f_personal i::before { content: "我"; }

  .hm26-footer-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.15;
  }
}

/* 20260502a homepage load/end state polish */
body.hm26-home-page .tabs-wrap,
body.hm26-home-page .tabs-wrap[style] {
  min-height: 0 !important;
  padding-bottom: 10px !important;
}

body.hm26-home-page .tabs-wrap .goodsList,
body.hm26-home-page .tabs-wrap .goodsList[style] {
  clear: both !important;
  margin-bottom: 0 !important;
}

body.hm26-home-page .hm26-load-more .jiazai,
body.hm26-home-page .hm26-load-end .jiazai,
body.hm26-home-page .hm26-load-end b {
  display: none !important;
}

body.hm26-home-page #divGoodsLoading.hm26-load-more,
body.hm26-home-page #divGoodsLoading.hm26-load-more[style] {
  height: 38px !important;
  min-height: 38px !important;
  margin: 8px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #8a94a6 !important;
  line-height: 38px !important;
  text-align: center !important;
}

body.hm26-home-page #btnLoadMore.hm26-load-more,
body.hm26-home-page #btnLoadMore.hm26-load-more[style] {
  width: max-content !important;
  min-width: 116px !important;
  max-width: calc(100% - 32px) !important;
  height: 38px !important;
  margin: 10px auto 0 !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255, 123, 77, .28) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(41, 52, 82, .08) !important;
  color: var(--hm-red) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 38px !important;
  text-align: center !important;
}

body.hm26-home-page .hm26-load-end,
body.hm26-home-page .hm26-load-end[style] {
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: min(86%, 360px) !important;
  height: auto !important;
  min-height: 34px !important;
  margin: 12px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #98a2b3 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.hm26-home-page .hm26-load-end span {
  flex: 0 0 auto !important;
  color: #98a2b3 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.hm26-home-page .hm26-load-end::before,
body.hm26-home-page .hm26-load-end::after {
  display: block !important;
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: 106px !important;
  height: 1px !important;
  margin: 0 !important;
  background: rgba(42, 52, 73, .16) !important;
  content: "" !important;
}

@media (min-width: 760px) {
  body.hm26-home-page .tabs-wrap,
  body.hm26-home-page .tabs-wrap[style] {
    padding-bottom: 14px !important;
  }
}

/* Final visible-color override. */
.hm26-promo span,
.hm26-promo strong,
.hm26-featured a {
  color: #f43f35 !important;
  text-shadow: none !important;
}

.hm26-promo em {
  background: #fff !important;
  color: #f43f35 !important;
}

.hm-i-help {
  background: linear-gradient(135deg, #ff6a55, #f43f35) !important;
}

/* 2026-04-29 final responsive pass: keep the light mall shell stable on H5 and PC. */
.nav-wrapper {
  position: relative !important;
  top: auto !important;
}

.footerdi,
.footerdi[style] {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: 80 !important;
  width: min(100vw, 640px) !important;
  max-width: 640px !important;
  height: calc(74px + env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  border: 1px solid rgba(211, 219, 232, .9) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 -14px 36px rgba(58, 70, 96, .14) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(16px);
}

.footerdi ul {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footerdi li {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
}

.footerdi a {
  display: grid !important;
  grid-template-rows: 34px 16px !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  color: #566174 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.footerdi a.cur {
  color: var(--hm-red) !important;
}

.footerdi a i {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  background: #eef3fa !important;
  box-shadow: inset 0 0 0 1px rgba(172, 185, 205, .28) !important;
  overflow: hidden !important;
}

.footerdi a.cur i {
  background: linear-gradient(135deg, var(--hm-red), #ff875b) !important;
  box-shadow: 0 8px 16px rgba(239, 81, 72, .22) !important;
}

.footerdi a i::before {
  color: #6f7d91 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.footerdi a.cur i::before {
  color: #fff !important;
}

.footerdi .f_home i::before { content: "首" !important; }
.footerdi .f_whole i::before { content: "云" !important; }
.footerdi .f_jiexiao i::before { content: "开" !important; }
.footerdi .f_car i::before { content: "购" !important; }
.footerdi .f_personal i::before { content: "我" !important; }

.hm26-footer-label {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.footerdispace,
.footerdispace[style] {
  display: block !important;
  height: calc(86px + env(safe-area-inset-bottom)) !important;
  padding: 0 !important;
}

@media (min-width: 760px) {
  .container {
    max-width: 1180px !important;
    padding: 18px 24px calc(106px + env(safe-area-inset-bottom)) !important;
  }

  .db-main,
  .db-main-index {
    min-height: auto !important;
  }

  .hm26-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
  }

  .nav-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 4fr) minmax(88px, .85fr) minmax(88px, .85fr) !important;
    gap: 8px !important;
    align-items: center !important;
    min-height: 54px !important;
    margin: 18px 0 18px !important;
    padding: 8px !important;
    overflow: visible !important;
  }

  .nav-wrapper .nav-inner {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .nav-wrapper .nav-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .nav-wrapper .nav-inner a,
  .nav-wrapper .select-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }

  .tabs-wrap .goodsList {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul > li {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 12px !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 18px !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul > li > a {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .tabs-wrap .goodsList > ul > li > a > span {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.3 / 1 !important;
  }

  .tabs-wrap .goodsList > ul > li > a > span > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .tabs-wrap .goodsList > ul > li > .goodsListR {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tabs-wrap .goodsList > ul > li > div > h2 {
    min-height: 46px !important;
    margin: 0 0 4px !important;
    font-size: 20px !important;
    line-height: 1.18 !important;
  }

  .item_bottom_container {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .buy_container {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  }

  .btn_ljcy {
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .footerdi,
  .footerdi[style] {
    width: min(calc(100vw - 48px), 1180px) !important;
    max-width: 1180px !important;
    height: calc(76px + env(safe-area-inset-bottom)) !important;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom)) !important;
    border-radius: 26px 26px 0 0 !important;
  }

  .footerdi a {
    grid-template-rows: 36px 16px !important;
    font-size: 12px !important;
  }

  .footerdi a i {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (min-width: 1180px) {
  .tabs-wrap .goodsList {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: var(--hm-bg) !important;
  color: var(--hm-text);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100% !important;
  max-width: 1080px !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 12px 14px calc(84px + env(safe-area-inset-bottom)) !important;
}

.db-main,
.db-main-index {
  min-width: 0 !important;
  min-height: 100vh;
  height: auto !important;
}

.hm26-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: -12px -14px 12px;
  padding: 12px 14px;
  background: rgba(244, 246, 251, .92);
  border-bottom: 1px solid var(--hm-line);
  backdrop-filter: blur(14px);
}

.hm26-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hm26-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hm-red), #ff8d5b);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.hm26-brand strong,
.hm26-brand em {
  display: block;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm26-brand strong {
  color: #2c313a;
  font-size: 15px;
  line-height: 18px;
  font-weight: 900;
}

.hm26-brand em {
  color: var(--hm-muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 1px;
}

.hm26-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 46px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 8px 22px rgba(45, 58, 83, .08);
  color: #8a93a3;
  font-size: 14px;
}

.hm26-search b {
  position: relative;
  width: 20px;
  height: 20px;
  border: 3px solid #2f3540;
  border-radius: 50%;
}

.hm26-search b::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 10px;
  height: 3px;
  border-radius: 4px;
  background: #2f3540;
  transform: rotate(45deg);
}

.hm26-hero {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px 26px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 26%, rgba(255, 255, 255, .35), transparent 24%),
    linear-gradient(135deg, #b456ff 0%, #8d6df8 46%, #536bea 100%);
  box-shadow: var(--hm-shadow);
  color: #fff;
}

.hm26-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, transparent 0 62%, rgba(255, 255, 255, .18) 62% 100%);
  opacity: .5;
}

.hm26-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.hm26-eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .82);
}

.hm26-hero h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 62px);
  font-weight: 950;
  line-height: 1.02;
  text-shadow: 0 4px 16px rgba(87, 43, 160, .28);
}

.hm26-subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.55;
}

.hm26-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff3a5;
  color: #9a55d8;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(65, 47, 125, .18);
}

.hm26-device {
  position: absolute;
  right: 22px;
  bottom: 10px;
  z-index: 1;
  width: min(34%, 210px);
  aspect-ratio: .72;
  border-radius: 26px;
  background: linear-gradient(160deg, #1e2530, #0e1118);
  box-shadow: 0 18px 38px rgba(20, 20, 40, .28);
  transform: rotate(5deg);
}

.hm26-device::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f7d8e8 45%, #bcdcff);
}

.hm26-device i {
  position: absolute;
  right: -24px;
  top: 42%;
  z-index: 2;
  width: 84px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7d54, #ff3f7f);
  transform: rotate(-12deg);
}

.hm26-device strong,
.hm26-device span {
  position: absolute;
  z-index: 3;
  left: 16px;
}

.hm26-device strong {
  bottom: 42px;
  color: #fff;
  font-size: 18px;
}

.hm26-device span {
  bottom: 22px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.hm26-featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 8px;
  margin: 14px 0;
  padding: 20px 12px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--hm-shadow);
}

.hm26-featured a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #30343b;
  font-size: 15px;
  font-weight: 900;
}

.hm-i {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .1);
}

.hm-i::before {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.hm-i-buy { background: linear-gradient(135deg, #ff9f4d, #f0493e); }
.hm-i-open { background: linear-gradient(135deg, #6bb9ff, #4c70f6); }
.hm-i-show { background: linear-gradient(135deg, #ffd054, #ff9f2e); }
.hm-i-share { background: linear-gradient(135deg, #ff7a59, #ef3f38); }
.hm-i-news { background: linear-gradient(135deg, #66dfb9, #4ccfa8); }
.hm-i-recharge { background: linear-gradient(135deg, #9a58ff, #7137f5); }
.hm-i-service { background: linear-gradient(135deg, #ff7f5b, #e95842); }
.hm-i-help { background: linear-gradient(135deg, #ffd265, #f1ae3f); }

/* 2026-05: keep entry and promo text visible on light H5/PC backgrounds. */
.hm-i-help {
  background: linear-gradient(135deg, var(--hm-red), #ff7b4d) !important;
}
.hm26-featured a {
  color: #202632 !important;
}
.hm26-promo span,
.hm26-promo strong {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.hm26-promo em {
  background: #fff !important;
  color: var(--hm-red) !important;
}
.hm-i-user { background: linear-gradient(135deg, #6fdcbc, #46c8a4); }

.hm-i-buy::before { content: "购"; }
.hm-i-open::before { content: "开"; }
.hm-i-show::before { content: "晒"; }
.hm-i-share::before { content: "赚"; }
.hm-i-news::before { content: "告"; }
.hm-i-recharge::before { content: "充"; }
.hm-i-service::before { content: "服"; }
.hm-i-help::before { content: "?"; }
.hm-i-user::before { content: "我"; }

.hm26-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.hm26-promo {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--hm-shadow);
}

.hm26-promo::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -26px;
  width: 120px;
  height: 120px;
  border-radius: 38px;
  background: rgba(255, 255, 255, .23);
  transform: rotate(16deg);
}

.hm26-promo span,
.hm26-promo strong,
.hm26-promo em {
  position: relative;
  z-index: 1;
  display: block;
}

.hm26-promo span {
  font-size: 13px;
  opacity: .86;
}

.hm26-promo strong {
  max-width: 78%;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.hm26-promo em {
  width: max-content;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: inherit;
  font-style: normal;
  font-weight: 900;
}

.hm26-promo-large {
  grid-row: span 2;
  min-height: 256px;
  background: linear-gradient(150deg, #66a9ff, #4b8ff5);
}

.hm26-promo-orange { background: linear-gradient(135deg, #ff9a5f, #f06b4f); }
.hm26-promo-purple { background: linear-gradient(135deg, #b76aff, #8f5af7); }

.hm26-banner-rail,
.newnav,
.zxjx {
  display: none !important;
}

.tabs-wrap {
  min-height: 0 !important;
}

.nav-wrapper {
  position: sticky !important;
  top: 70px;
  z-index: 12;
  display: flex;
  align-items: center;
  min-height: 52px;
  height: auto !important;
  margin: 0 0 12px;
  padding: 6px;
  border: 0 !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: var(--hm-shadow);
}

.nav-wrapper .nav-inner {
  float: none !important;
  flex: 1 1 auto;
  width: auto !important;
  height: auto !important;
  padding-left: 0 !important;
  overflow-x: auto;
}

.nav-wrapper .nav-list {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.nav-wrapper .nav-inner li,
.nav-wrapper .nav-inner li:last-child {
  float: none !important;
  width: auto !important;
  height: auto !important;
}

.nav-wrapper .nav-inner a,
.nav-wrapper .select-btn {
  height: 38px !important;
  line-height: 38px !important;
  border: 0 !important;
  border-radius: 999px;
  background: #edf2f8;
  color: #485366 !important;
}

.nav-wrapper .nav-inner span {
  height: auto !important;
  line-height: inherit !important;
  margin-top: 0 !important;
  padding: 0 13px;
  border-bottom: 0 !important;
  color: inherit !important;
  font-weight: 900;
}

.nav-wrapper .nav-inner li.current a {
  background: #ef5148;
  color: #fff !important;
}

.nav-wrapper .select-btn {
  float: none !important;
  flex: 0 0 auto;
  width: auto !important;
  padding: 0 12px;
  font-size: 12px !important;
  font-weight: 900;
}

.nav-wrapper .select-icon {
  display: none !important;
}

.nav-wrapper .select-total {
  top: calc(100% + 8px) !important;
  left: 0;
  right: 0;
  width: 100% !important;
  border-radius: 16px;
  overflow: hidden;
}

.tabs-wrap .goodsList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tabs-wrap .goodsList > ul {
  float: none !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hm-shadow);
  overflow: hidden;
}

.tabs-wrap .goodsList > ul > li {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  min-height: 184px;
  width: 100% !important;
  padding: 14px !important;
  border: 0 !important;
  background: #fff;
}

.tabs-wrap .goodsList > ul > li > a > span {
  display: grid !important;
  width: 120px !important;
  height: 120px !important;
  place-items: center;
  border-radius: 16px;
  background: #f1f5fa;
  overflow: hidden;
}

.tabs-wrap .goodsList > ul > li > a > span > img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
}

.tabs-wrap .goodsList > ul > li > .goodsListR {
  margin-top: 0 !important;
  min-width: 0;
}

.tabs-wrap .goodsList > ul > li > div > h2 {
  display: -webkit-box;
  min-height: 42px;
  padding: 0 !important;
  color: #2a2f38;
  font-size: 18px !important;
  font-weight: 950;
  line-height: 1.25;
  white-space: normal !important;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tabs-wrap .goodsList > ul > li > div > .price {
  padding: 0 !important;
  color: var(--hm-muted) !important;
  font-size: 12px !important;
}

.tabs-wrap .goodsList > ul > li > div > .price em {
  color: var(--hm-purple) !important;
  font-size: 16px;
  font-weight: 950;
}

.item_bottom_container {
  grid-column: 1 / -1;
  padding: 0 !important;
}

.jdt {
  height: 8px !important;
  margin: 10px 0 !important;
  border-radius: 999px !important;
  background: #edf1f6 !important;
}

.jdt > span {
  height: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--hm-orange), var(--hm-red)) !important;
}

.Progress-bar .Pro-bar-li {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 !important;
}

.Progress-bar .Pro-bar-li li {
  position: static !important;
  float: none !important;
  width: auto !important;
  text-align: center !important;
  color: var(--hm-muted) !important;
  font-size: 11px !important;
}

.Progress-bar .Pro-bar-li li em {
  color: #2a2f38 !important;
  font-size: 13px !important;
  font-weight: 900;
}

.buy_container {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  margin-top: 12px !important;
}

.star {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px;
  background-color: #f4f7fb;
  background-size: 20px 20px !important;
  background-repeat: no-repeat;
  background-position: center;
}

.btn_ljcy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff8d5b, var(--hm-red));
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 950;
}

.btn_buy,
a.add {
  float: none !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  background: #2f3540 !important;
}

a.add::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.footerdispace {
  height: calc(76px + env(safe-area-inset-bottom)) !important;
}

.footerdi {
  left: 50% !important;
  width: min(100%, 640px) !important;
  height: calc(66px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid var(--hm-line);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 -12px 32px rgba(41, 52, 82, .12);
  backdrop-filter: blur(16px);
}

.footerdi ul {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
}

.footerdi li {
  float: none !important;
  width: auto !important;
}

.footerdi a {
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 3px;
  height: 100% !important;
  color: #2f3540 !important;
  font-size: 11px !important;
  font-weight: 900;
}

.footerdi a.cur {
  color: var(--hm-red) !important;
}

.footerdi a i {
  width: 26px !important;
  height: 26px !important;
  border-radius: 10px;
  background: #111 !important;
}

.footerdi a.cur i {
  background: linear-gradient(135deg, var(--hm-red), #ff8d5b) !important;
}

#btnCart em {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--hm-red);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

.loading {
  grid-column: 1 / -1;
}

@media (min-width: 760px) {
  .container {
    padding: 18px 24px 100px !important;
  }

  .hm26-topbar {
    margin: -18px -24px 18px;
    padding: 14px 24px;
  }

  .hm26-hero {
    min-height: 230px;
    padding: 36px 46px;
  }

  .hm26-featured {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    padding: 24px 18px;
  }

  .hm26-promo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tabs-wrap .goodsList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabs-wrap .goodsList > ul > li {
    grid-template-columns: 1fr;
  }

  .tabs-wrap .goodsList > ul > li > a > span {
    width: 100% !important;
    height: 190px !important;
  }

  .footerdispace {
    display: none !important;
  }

  .footerdi {
    position: static !important;
    width: 100% !important;
    height: 72px !important;
    margin: 22px 0 0 !important;
    transform: none !important;
    border: 1px solid var(--hm-line);
    border-radius: 22px;
  }
}

@media (min-width: 1040px) {
  .tabs-wrap .goodsList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hm26-topbar {
    grid-template-columns: 1fr;
  }

  .hm26-brand {
    display: none;
  }

  .hm26-hero {
    min-height: 198px;
    padding: 22px;
  }

  .hm26-hero-copy {
    max-width: 66%;
  }

  .hm26-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hm26-hero h1 {
    font-size: 30px;
  }

  .hm26-subtitle {
    display: none;
  }

  .hm26-device {
    width: 36%;
    right: 18px;
  }

  .hm26-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm26-promo strong {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hm26-featured {
    gap: 14px 4px;
  }

  .hm-i {
    width: 52px;
    height: 52px;
  }

  .hm26-promo-grid {
    grid-template-columns: 1fr;
  }

  .tabs-wrap .goodsList > ul > li {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 12px !important;
  }

  .tabs-wrap .goodsList > ul > li > a > span {
    width: 104px !important;
    height: 104px !important;
  }
}

/* Final mobile overrides must stay last because the source template also loads old mobile CSS. */
@media (max-width: 759px) {
  .container {
    max-width: 640px !important;
    padding: 10px 12px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .hm26-topbar,
  .nav-wrapper {
    position: relative !important;
    top: auto !important;
  }

  .hm26-topbar {
    margin: -10px -12px 10px !important;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .hm26-brand {
    display: inline-flex !important;
  }

  .hm26-brand strong {
    font-size: 14px !important;
    line-height: 17px !important;
  }

  .hm26-brand em {
    max-width: 116px !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  .hm26-brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    font-size: 19px !important;
  }

  .hm26-search {
    height: 42px !important;
    padding: 0 12px 0 14px !important;
    font-size: 13px !important;
  }

  .hm26-search span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .hm26-search b {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 7px !important;
    border-width: 3px !important;
  }

  .hm26-search b::after {
    right: -6px !important;
    bottom: -5px !important;
    width: 9px !important;
    height: 3px !important;
  }

  .hm26-promo-grid {
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
  }

  .hm26-promo {
    min-height: 116px !important;
    padding: 16px !important;
  }

  .hm26-promo-large {
    min-height: 244px !important;
  }

  .hm26-promo strong {
    max-width: 96% !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .nav-wrapper {
    overflow: visible !important;
    margin: 4px 0 12px !important;
  }

  .tabs-wrap .goodsList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul > li {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px !important;
    overflow: visible !important;
  }

  .tabs-wrap .goodsList > ul > li > a {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .tabs-wrap .goodsList > ul > li > a > span {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }

  .tabs-wrap .goodsList > ul > li > .goodsListR {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    text-align: left !important;
  }

  .tabs-wrap .goodsList > ul > li > div > h2 {
    min-height: 42px !important;
    margin: 0 0 8px !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
    text-align: left !important;
  }

  .tabs-wrap .goodsList > ul > li > div > .price {
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.35 !important;
  }

  .item_bottom_container {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .buy_container {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 10px !important;
  }

  .btn_ljcy {
    min-width: 0 !important;
    white-space: nowrap !important;
    line-height: 42px !important;
  }

  .footerdi {
    left: 50% !important;
    width: 100% !important;
    max-width: 640px !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    padding: 7px 8px calc(8px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
  }

  .footerdi ul,
  .footerdi li {
    min-width: 0 !important;
  }

  .footerdi a {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
  }

  .footerdi a i {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .footerdi a i::before {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  .footerdi .f_home i::before { content: "首"; }
  .footerdi .f_whole i::before { content: "云"; }
  .footerdi .f_jiexiao i::before { content: "开"; }
  .footerdi .f_car i::before { content: "购"; }
  .footerdi .f_personal i::before { content: "我"; }

  .hm26-footer-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.15;
  }
}
