/* 首页第一步：先搭建顶部单页入口，下面的商品区域暂时留给后续逐步补齐。 */
body.home-step-header-only,
body.front-frame-page.home-step-header-only,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only {
  background: #f5f6f1 !important;
  background-image: none !important;
}

/* 商品卡片从筛选区下方开始显示，隐藏旧首页标题和重复筛选控件。 */
body.home-step-header-only .product-home,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home {
  display: block !important;
  width: min(402px, calc(100% - 28px));
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 0 96px;
}

body.home-step-header-only .product-home > .home-title,
body.home-step-header-only .product-home > .toolbar,
body.home-step-header-only .product-home > .category-row,
body.home-step-header-only .product-home > .catalog-filter-row,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home > .home-title,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home > .toolbar,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home > .category-row,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home > .catalog-filter-row {
  display: none !important;
}

/* 旧首页的标签/活动筛选已迁移到顶部筛选栏下方，避免页面出现两组重复标签。 */
body.home-step-header-only #tagFilterSection,
body.home-step-header-only #offerFilterSection,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only #tagFilterSection,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only #offerFilterSection {
  display: none !important;
}

body.home-step-header-only .product-home .products-grid,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .products-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  body.home-step-header-only .product-home .product-card.product-enter,
  body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-card.product-enter {
    transform: translateY(28px) !important;
    opacity: 0 !important;
    transition: opacity .42s ease, transform .42s cubic-bezier(.22, .8, .22, 1), box-shadow .18s ease, border-color .18s ease !important;
    transition-delay: var(--card-delay, 0ms) !important;
  }

  body.home-step-header-only .product-home .product-card.product-enter.product-visible,
  body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-card.product-enter.product-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}

body.home-step-header-only .product-home .product-card,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-card {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .86);
  background: #fff;
  box-shadow: 0 6px 18px rgba(74, 80, 70, .055);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.home-step-header-only .product-home .product-card:hover,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-card:hover {
  border-color: rgba(255, 255, 255, .96);
  box-shadow: 0 9px 21px rgba(74, 80, 70, .075);
}

body.home-step-header-only .product-home .product-body,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-body {
  padding: 8px 9px 9px;
  border-top: 1px solid rgba(255, 255, 255, .72);
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(245, 246, 241, .64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  backdrop-filter: blur(14px) saturate(112%);
}

body.home-step-header-only .product-home .product-title,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-title {
  min-height: 34px;
  font-size: 13px;
  line-height: 1.35;
}

body.home-step-header-only .product-home .product-media,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-media {
  aspect-ratio: 1 / 1;
}

body.home-step-header-only .product-home .product-media img,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-media img {
  object-fit: cover;
}

body.home-step-header-only .product-home .product-media,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-media {
  position: relative;
  background: #fff;
  border-bottom-color: rgba(255, 255, 255, .66);
}

body.home-step-header-only .product-card-category-overlay,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-card-category-overlay {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  display: inline-flex;
  max-width: calc(100% - 64px);
  min-height: 20px;
  align-items: center;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(245, 246, 241, .62);
  color: #4f554e;
  font-size: 10px;
  font-weight: 720;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(74, 80, 70, .045);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

body.home-step-header-only .product-home .product-id.product-merchant-name,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-id.product-merchant-name {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(245, 246, 241, .62);
  color: #565c55;
  box-shadow: 0 3px 9px rgba(74, 80, 70, .045);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

body.home-step-header-only .product-home .product-card-labels:empty,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-card-labels:empty {
  display: none;
}

body.home-step-header-only .product-home .card-bottom-line:has(.product-card-labels:empty),
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .card-bottom-line:has(.product-card-labels:empty) {
  justify-content: flex-end;
}

body.home-step-header-only .random-theme-float,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .random-theme-float,
body.home-step-header-only .front-night-toggle,
body.home-step-header-only .front-night-stars,
body.home-step-header-only .front-particle-canvas {
  display: none !important;
}

/* front.css 默认会隐藏首页 topbar，这里明确恢复为顶部唯一入口。 */
body.home-step-header-only .topbar,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .topbar {
  display: block !important;
}

body.front-frame-page > .front-app-frame.home-page.home-step-header-only,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only > .front-app-content {
  background: #f5f6f1 !important;
  background-image: none !important;
}

body.home-step-header-only .home-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: calc(100% - 28px);
  max-width: 402px;
  box-sizing: border-box;
  margin: 2px auto 0;
}

body.home-step-header-only .home-recommend-panel {
  min-width: 0;
  overflow: hidden;
  padding: 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(75, 82, 70, .065), inset 0 1px 0 rgba(255, 255, 255, .72);
}

body.home-step-header-only .home-recommend-store { background: #f0e9fa; }
body.home-step-header-only .home-recommend-hot { background: #e7f0fa; }

body.home-step-header-only .home-recommend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
}

body.home-step-header-only .home-recommend-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.home-step-header-only .home-recommend-head strong {
  color: #2e2a37;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

body.home-step-header-only .home-recommend-head span:not(.home-recommend-mark) {
  color: rgba(55, 54, 65, .62);
  font-size: 10px;
  line-height: 1.2;
}

body.home-step-header-only .home-recommend-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  background: rgba(255, 255, 255, .42);
  color: rgba(46, 42, 55, .74);
  font-size: 11px;
  font-weight: 850;
}

body.home-step-header-only .home-recommend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

body.home-step-header-only .home-recommend-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 5px 3px 4px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 11px;
  background: rgba(255, 255, 255, .28);
  color: #2e2a37;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

body.home-step-header-only .home-recommend-item:hover { background: rgba(255, 255, 255, .5); transform: translateY(-1px); }

body.home-step-header-only .home-recommend-item img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255, 255, 255, .65);
}

body.home-step-header-only .home-recommend-item span { display: grid; width: 100%; min-width: 0; gap: 2px; text-align: center; }
body.home-step-header-only .home-recommend-item b,
body.home-step-header-only .home-recommend-item small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home-step-header-only .home-recommend-item b { color: #302c39; font-size: 10px; font-weight: 760; line-height: 1.25; }
body.home-step-header-only .home-recommend-item small { color: rgba(55, 54, 65, .62); font-size: 9px; line-height: 1.2; }

body.home-step-header-only .topbar {
  position: relative;
  z-index: 20;
  left: auto;
  width: 100%;
  margin: 0;
  padding: max(18px, env(safe-area-inset-top)) 14px 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.home-step-header-only .topbar-inner {
  position: relative;
  display: block;
  align-items: center;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

body.home-step-header-only .home-glass-brand {
  display: inline-flex;
  position: absolute;
  top: 1px;
  left: 14px;
  right: 40%;
  width: auto !important;
  max-width: none;
  min-width: 0;
  align-items: center;
  min-width: 0;
  max-width: none;
  min-height: 50px;
  padding: 0 17px 0 7px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 8px 24px rgba(104, 89, 64, .075), inset 0 1px 0 rgba(255, 255, 255, .8);
  color: #282721;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(135%);
}

body.home-step-header-only .home-glass-brand .brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: #36342c;
  box-shadow: 0 3px 10px rgba(77, 70, 53, .09);
  font-size: 14px;
  font-weight: 800;
}

body.home-step-header-only .home-glass-brand .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-step-header-only .home-glass-brand > span:last-child {
  display: block;
  max-width: 158px;
  margin-left: 9px;
  overflow: hidden;
  color: #282721;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-step-header-only .home-original-tools {
  display: none;
}

body.home-step-header-only .home-glass-actions {
  display: flex;
  position: absolute !important;
  top: 1px;
  right: 0 !important;
  width: 40% !important;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 0;
  transform: none;
  z-index: 30;
}

body.home-step-header-only .home-glass-icon {
  display: grid;
  place-items: center;
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 8px 24px rgba(104, 89, 64, .065), inset 0 1px 0 rgba(255, 255, 255, .8);
  color: #4a4840;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(135%);
  transition: background-color .18s ease, transform .18s ease;
}

body.home-step-header-only .home-glass-icon:hover {
  background: rgba(255, 255, 255, .72);
}

body.home-step-header-only .home-glass-icon:active {
  transform: scale(.95);
}

body.home-step-header-only .home-glass-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: .82;
}

body.home-step-header-only .home-glass-search-panel {
  display: none;
  width: 100%;
  max-width: 430px;
  margin: 5px auto 0;
  padding: 0;
}

body.home-step-header-only .home-glass-search-panel.open {
  display: block;
  animation: homeGlassSearchIn .2s ease both;
}

@keyframes homeGlassSearchIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

body.home-step-header-only .home-glass-search-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 44px;
  padding: 0 9px 0 13px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 8px 24px rgba(104, 89, 64, .065), inset 0 1px 0 rgba(255, 255, 255, .84);
  backdrop-filter: blur(18px) saturate(135%);
}

body.home-step-header-only .home-glass-search-field > img {
  width: 18px;
  height: 18px;
  opacity: .58;
}

body.home-step-header-only .home-glass-search-field .input {
  min-width: 0;
  min-height: 42px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #302f29;
  font-size: 13px;
}

body.home-step-header-only .home-glass-search-field .input:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

body.home-step-header-only .home-glass-search-close {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  color: #6e6b63;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

body.home-step-header-only .toolbar .search-action {
  display: none !important;
}

body.home-step-header-only .toolbar {
  margin-top: 0;
}

@media (min-width: 700px) {
  body.home-step-header-only .topbar {
    padding-top: 18px;
  }
}

@media (max-width: 360px) {
  body.home-step-header-only .home-glass-brand {
    padding-right: 11px;
  }

  body.home-step-header-only .home-glass-brand > span:last-child {
    max-width: 126px;
    font-size: 15px;
  }

  body.home-step-header-only .home-glass-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }

  body.home-step-header-only .home-glass-brand {
    right: 40%;
  }

  body.home-step-header-only .home-glass-actions {
    width: 40% !important;
    right: 0 !important;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-step-header-only .home-glass-search-panel.open {
    animation: none;
  }
}

/* 推荐区采用轻薄的内容带，图片和交互保持代码布局，不使用厚重的小卡片。 */
body.home-step-header-only .home-recommendations {
  gap: 12px;
  width: min(430px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  position: relative;
  left: auto;
  transform: none;
}

body.home-step-header-only .home-recommend-panel {
  padding: 13px 12px 11px;
  border: 0;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

body.home-step-header-only .home-recommend-store {
  background: linear-gradient(135deg, rgba(244, 235, 255, .94), rgba(238, 229, 250, .84));
}

body.home-step-header-only .home-recommend-hot {
  background: linear-gradient(135deg, rgba(232, 243, 255, .96), rgba(224, 237, 250, .84));
}

body.home-step-header-only .home-recommend-head {
  align-items: center;
  margin: 0 2px 9px;
}

body.home-step-header-only .home-recommend-head strong {
  color: #35333b;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
}

body.home-step-header-only .home-recommend-arrow {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(62, 60, 69, .48);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

body.home-step-header-only .home-recommend-list {
  gap: 2px;
}

body.home-step-header-only .home-recommend-item,
body.home-step-header-only .home-recommend-item:hover {
  min-height: 66px;
  padding: 4px 2px 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transform: none;
}

body.home-step-header-only .home-recommend-item:hover {
  background: rgba(255, 255, 255, .28);
}

body.home-step-header-only .home-recommend-item img {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(69, 65, 76, .1);
}

body.home-step-header-only .home-recommend-item span {
  display: block;
}

body.home-step-header-only .home-recommend-item b {
  color: #393740;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

body.home-step-header-only .home-recommend-item small,
body.home-step-header-only .home-recommend-mark {
  display: none;
}

/* 横向斜切推荐带：标题、装饰和面板使用合成素材，头像与名称保持动态内容。 */
body.home-step-header-only .home-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
  width: min(430px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  margin-top: 8px;
  border-radius: 0;
  background: none;
  overflow: visible;
}

body.home-step-header-only .home-recommend-panel,
body.home-step-header-only .home-recommend-store,
body.home-step-header-only .home-recommend-hot {
  position: relative;
  min-height: 0;
  aspect-ratio: 420 / 220;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
}

body.home-step-header-only .home-recommend-store {
  background-image: url('/assets/home-recommend-store-panel.png?v=2026091034');
  aspect-ratio: 420 / 220;
}

body.home-step-header-only .home-recommend-hot {
  background-image: url('/assets/home-recommend-hot-panel.png?v=2026091034');
  aspect-ratio: 420 / 220;
}

body.home-step-header-only .home-recommend-head {
  display: none;
}

body.home-step-header-only .home-recommend-hot .home-recommend-head {
  display: none;
}

body.home-step-header-only .home-recommend-title-art {
  display: block;
  width: 168px;
  max-width: 92%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(93, 66, 160, .16));
}

body.home-step-header-only .home-recommend-arrow {
  display: none;
}

body.home-step-header-only .home-recommend-list {
  position: absolute;
  right: 9px;
  bottom: 6px;
  left: 9px;
  height: 72px;
  align-items: end;
  gap: 1px;
}

body.home-step-header-only .home-recommend-item,
body.home-step-header-only .home-recommend-item:hover {
  min-height: 72px;
  padding: 6px 1px 2px;
  border-radius: 10px;
  color: #fff;
}

body.home-step-header-only .home-recommend-item:hover {
  background: rgba(255, 255, 255, .12);
}

body.home-step-header-only .home-recommend-item img {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, .82);
  box-shadow: 0 4px 10px rgba(60, 40, 100, .16);
}

body.home-step-header-only .home-recommend-item b {
  color: rgba(255, 255, 255, .95);
  font-size: 10px;
  font-weight: 560;
  text-shadow: 0 1px 2px rgba(54, 44, 82, .22);
}

@media (max-width: 360px) {
  body.home-step-header-only .home-recommendations,
  body.home-step-header-only .home-recommend-panel,
  body.home-step-header-only .home-recommend-store,
  body.home-step-header-only .home-recommend-hot {
    min-height: 0;
  }

  body.home-step-header-only .home-recommend-panel,
  body.home-step-header-only .home-recommend-store,
  body.home-step-header-only .home-recommend-hot {
    aspect-ratio: 420 / 220;
  }

  body.home-step-header-only .home-recommend-title-art {
    display: none;
  }

  body.home-step-header-only .home-recommend-item img {
    width: 34px;
    height: 34px;
  }
}

/* 内测首页推荐区使用原始透明底图，店铺与商品内容由页面动态加载。 */
body.home-step-header-only .home-recommendations {
  display: block;
  aspect-ratio: 1742 / 414;
  min-height: 0;
  background: url('/assets/home-recommend-base.png?v=2026091105') center / 100% auto no-repeat;
  position: relative;
}

body.home-step-header-only .home-recommend-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  aspect-ratio: auto;
  background: none !important;
  background-image: none !important;
}

body.home-step-header-only .home-recommend-store { left: 0; }
body.home-step-header-only .home-recommend-hot { right: 0; }

body.home-step-header-only .home-recommend-side .home-recommend-list {
  position: absolute;
  left: 12%;
  right: 6%;
  bottom: 10%;
  height: 43%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1px;
  pointer-events: auto;
}

body.home-step-header-only .home-recommend-item {
  display: grid;
  justify-items: center;
  align-content: end;
  min-width: 0;
  min-height: 100%;
  padding: 0 1px 1px;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
}

body.home-step-header-only .home-recommend-item:hover,
body.home-step-header-only .home-recommend-item:focus-visible {
  background: transparent;
  transform: none;
}

body.home-step-header-only .home-recommend-item img {
  display: block;
  width: clamp(22px, 6vw, 30px);
  height: clamp(22px, 6vw, 30px);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 6px;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
}

body.home-step-header-only .home-recommend-item span {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 1px;
  text-align: center;
}

body.home-step-header-only .home-recommend-item b {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, .95);
  font-size: clamp(8px, 2vw, 10px);
  font-weight: 520;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: none;
  white-space: nowrap;
}

body.home-step-header-only .home-recommend-item[aria-busy="true"] { opacity: 1; }

@media (max-width: 360px) {
  body.home-step-header-only .home-recommend-side .home-recommend-list {
    left: 12%;
    right: 6%;
  }
}

/* 推荐区交互层：严格限制在底图两侧的内容区域内，避免透明留白把内容挤到底图外。 */
body.home-step-header-only .home-recommendations {
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
}

body.home-step-header-only .home-recommend-side {
  overflow: hidden;
}

body.home-step-header-only .home-recommend-side .home-recommend-list {
  top: 29%;
  right: 7%;
  bottom: 31%;
  left: 22%;
  height: auto;
  min-height: 0;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

body.home-step-header-only .home-recommend-item,
body.home-step-header-only .home-recommend-item:hover,
body.home-step-header-only .home-recommend-item:active,
body.home-step-header-only .home-recommend-item:focus-visible {
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
  outline: none;
  overflow: hidden;
}

body.home-step-header-only .home-recommend-item img {
  width: clamp(14px, 5cqw, 24px);
  height: clamp(14px, 5cqw, 24px);
  flex: 0 0 auto;
  aspect-ratio: 1;
  max-width: none;
  max-height: none;
  border-width: 1px;
  border-radius: clamp(3px, 1cqw, 6px);
  object-fit: cover;
}

body.home-step-header-only .home-recommend-item span {
  max-width: 100%;
  margin-top: 1px;
  overflow: hidden;
}

body.home-step-header-only .home-recommend-item b {
  max-width: 100%;
  font-size: clamp(7px, 2.1cqw, 10px);
  line-height: 1.1;
  text-shadow: none;
}

/* 推荐不足三条时保持视觉居中；有三条时仍按三列铺开。 */
body.home-step-header-only .home-recommend-side .home-recommend-list:not(:has(> .home-recommend-item:nth-child(3))) {
  display: flex;
  justify-content: center;
}

body.home-step-header-only .home-recommend-side .home-recommend-list:not(:has(> .home-recommend-item:nth-child(3))) > .home-recommend-item {
  flex: 0 0 33.3333%;
}

@media (max-width: 360px) {
  body.home-step-header-only .home-recommend-side .home-recommend-list {
    top: 28%;
    right: 6%;
    bottom: 30%;
    left: 20%;
  }
}

/* 细节优化：推荐图保持单张合成素材，缩紧外边距并修正小屏裁切。 */
body.home-step-header-only .topbar {
  padding-top: max(26px, env(safe-area-inset-top));
  padding-bottom: 10px;
}

body.home-step-header-only .topbar-inner {
  min-height: 54px;
}

body.home-step-header-only .home-glass-brand {
  top: 0;
  right: 39%;
  min-height: 54px;
  padding-right: 16px;
  background: rgba(255, 255, 255, .62);
  box-shadow:
    0 7px 20px rgba(104, 89, 64, .055),
    inset 0 1px 0 rgba(255, 255, 255, .88);
}

body.home-step-header-only .home-glass-brand .brand-mark {
  width: 37px;
  height: 37px;
  box-shadow: 0 2px 8px rgba(77, 70, 53, .075);
}

body.home-step-header-only .home-glass-brand > span:last-child {
  margin-left: 10px;
  font-size: 17px;
  letter-spacing: 0;
}

body.home-step-header-only .home-glass-actions {
  top: 0;
  width: 39% !important;
  height: 54px;
  gap: 7px;
}

body.home-step-header-only .home-glass-icon {
  width: 48px !important;
  height: 48px !important;
  flex-basis: 48px;
  background: rgba(255, 255, 255, .6);
  box-shadow:
    0 7px 20px rgba(104, 89, 64, .05),
    inset 0 1px 0 rgba(255, 255, 255, .88);
}

body.home-step-header-only .home-glass-icon img {
  width: 19px;
  height: 19px;
}

body.home-step-header-only .home-recommendations {
  width: min(430px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  margin-top: 6px;
  overflow: hidden;
  isolation: isolate;
  background-size: 100% auto;
  background-position: center;
}

body.home-step-header-only .home-recommend-panel,
body.home-step-header-only .home-recommend-side {
  display: none !important;
}

body.home-step-header-only .home-recommend-side {
  display: block !important;
  background: none !important;
}

body.home-step-header-only .public-bottom-nav {
  width: min(356px, calc(100vw - 24px)) !important;
  bottom: max(10px, calc(7px + env(safe-area-inset-bottom))) !important;
}

@media (max-width: 360px) {
  body.home-step-header-only .topbar {
    padding-top: max(22px, env(safe-area-inset-top));
  }

  body.home-step-header-only .home-glass-brand {
    right: 38%;
    padding-right: 11px;
  }

  body.home-step-header-only .home-glass-brand > span:last-child {
    margin-left: 8px;
    font-size: 16px;
  }

  body.home-step-header-only .home-glass-actions {
    width: 38% !important;
    gap: 4px;
  }

  body.home-step-header-only .home-glass-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }
}

/* 顶部单行操作区：品牌靠左，搜索框从搜索按钮位置向左展开。 */
body.home-step-header-only .topbar-inner {
  --home-action-size: 50px;
  --home-action-gap: 8px;
  position: relative;
}

body.home-step-header-only .home-glass-brand {
  left: 8px;
  right: auto !important;
  width: min(230px, calc(100% - 184px)) !important;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

body.home-step-header-only .home-glass-actions {
  right: 0 !important;
  left: auto !important;
  width: auto !important;
  justify-content: flex-end;
  gap: var(--home-action-gap);
}

body.home-step-header-only .home-glass-icon {
  flex: 0 0 var(--home-action-size);
  width: var(--home-action-size) !important;
  height: var(--home-action-size) !important;
}

body.home-step-header-only .home-night-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

body.home-step-header-only .home-glass-search-panel {
  position: absolute;
  top: 1px;
  /* 展开框复用主题商城胶囊的左侧位置，宽度仍沿用当前展开尺寸。 */
  left: 8px;
  right: auto;
  z-index: 35;
  display: block !important;
  width: min(220px, calc(100% - 174px));
  max-width: none;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
  animation: none;
  transition: opacity .22s ease, transform .26s cubic-bezier(.22, .7, .2, 1), visibility 0s linear .26s;
}

body.home-step-header-only .home-glass-search-panel.open {
  visibility: visible;
  opacity: 1;
  transform: scaleX(1);
  pointer-events: auto;
  animation: homeGlassSearchExpand .26s cubic-bezier(.22, .7, .2, 1) both;
  transition-delay: 0s;
}

@keyframes homeGlassSearchExpand {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

body.home-step-header-only .home-glass-search-panel .home-glass-search-field {
  width: 100%;
  box-sizing: border-box;
}

body.home-step-header-only .home-glass-header.search-open .home-glass-brand {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

body.home-step-header-only .home-glass-header.search-open .home-search-icon {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 360px) {
  body.home-step-header-only .topbar-inner {
    --home-action-size: 44px;
    --home-action-gap: 4px;
  }

  body.home-step-header-only .home-glass-brand {
    width: calc(100% - 154px) !important;
  }

  body.home-step-header-only .home-glass-search-panel {
    left: 8px;
    right: auto;
    width: min(190px, calc(100% - 146px));
  }
}

/* 搜索按钮保持独立，输入框展开后只替换主题商城胶囊。 */
body.home-step-header-only .home-glass-search-panel {
  width: min(230px, calc(100% - 184px));
}

body.home-step-header-only .home-glass-search-field {
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: var(--home-action-size);
  height: var(--home-action-size);
  box-sizing: border-box;
  padding-right: 13px;
}

body.home-step-header-only .home-glass-header.search-open .home-search-icon {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 360px) {
  body.home-step-header-only .home-glass-search-panel {
    width: calc(100% - 154px);
  }
}

/* 顶部下方的每日店铺与自然周商品榜单。 */
body.home-step-header-only .home-feature-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: min(402px, calc(100% - 28px));
  margin: 2px auto 0;
  box-sizing: border-box;
}

body.home-step-header-only .home-feature-panel {
  min-width: 0;
  padding: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

body.home-step-header-only .home-feature-stores {
  background: linear-gradient(180deg, #ffd7e7 0%, #ffeaf2 54%, #fff5f8 100%);
}

body.home-step-header-only .home-feature-weekly {
  background: linear-gradient(180deg, #ffe680 0%, #fff0b5 54%, #fff8dc 100%);
}

body.home-step-header-only .home-feature-heading {
  display: flex;
  min-width: 0;
  height: 25px;
  align-items: center;
  gap: 5px;
  padding: 0 1px;
}

body.home-step-header-only .home-feature-heading h2 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #25241f;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-step-header-only .home-feature-heading span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 18px;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #2d2c28;
  font-size: 9px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

body.home-step-header-only .home-feature-weekly .home-feature-heading span {
  color: #443d00;
  background: #f5dc3d;
}

body.home-step-header-only .home-feature-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 82px;
  margin-top: 6px;
}

body.home-step-header-only .home-feature-item,
body.home-step-header-only .home-feature-skeleton {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 7px;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

body.home-step-header-only .home-feature-item {
  color: #26251f;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

body.home-step-header-only .home-feature-item:hover,
body.home-step-header-only .home-feature-item:focus-visible {
  border-color: rgba(255, 255, 255, .98);
  box-shadow: 0 4px 12px rgba(80, 75, 63, .08), inset 0 1px 0 #fff;
  outline: none;
}

body.home-step-header-only .home-feature-item:active {
  opacity: .76;
}

body.home-step-header-only .home-feature-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-step-header-only .home-feature-skeleton {
  border-color: transparent;
  background: rgba(255, 255, 255, .5);
}

body.home-step-header-only .home-feature-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .62) 48%, transparent 68%);
  transform: translateX(-100%);
  animation: homeFeatureLoading 1.25s ease-in-out infinite;
}

@keyframes homeFeatureLoading {
  to { transform: translateX(100%); }
}

body.home-step-header-only .home-feature-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 82px;
  place-items: center;
  color: rgba(47, 45, 39, .56);
  font-size: 11px;
}

/* 推荐区下方的一级分类入口，图片由总后台分类管理上传。 */
body.home-step-header-only .home-category-section {
  width: min(402px, calc(100% - 28px));
  box-sizing: border-box;
  margin: 15px auto 0;
}

body.home-step-header-only .home-category-section h2 {
  margin: 0;
  padding: 0 3px;
  color: #282621;
  font-size: 16px;
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: 0;
}

body.home-step-header-only .home-category-strip {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
  justify-content: flex-start;
  gap: 14px;
  margin: 8px 0 0;
  padding: 3px 3px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.home-step-header-only .home-category-strip::-webkit-scrollbar {
  display: none;
}

body.home-step-header-only .home-category-item {
  display: grid;
  flex: 0 0 60px;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(46, 45, 40, .68);
  font: inherit;
  cursor: pointer;
}

body.home-step-header-only .home-category-item img {
  display: block;
  width: 50px;
  height: 50px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 15px;
  object-fit: cover;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 5px 14px rgba(81, 76, 65, .07);
}

body.home-step-header-only .home-category-item span {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-step-header-only .home-category-item.active {
  color: #7650d8;
}

body.home-step-header-only .home-category-item.active img {
  border-color: #8a5cf6;
  box-shadow: 0 5px 14px rgba(112, 75, 205, .12);
}

body.home-step-header-only .home-category-item:focus-visible {
  outline: 2px solid rgba(43, 42, 37, .72);
  outline-offset: 3px;
  border-radius: 15px;
}

/* 分类后的三层筛选保持轻量：主入口、活动类型、商品标签。 */
body.home-step-header-only .home-discovery-filters {
  width: min(402px, calc(100% - 28px));
  box-sizing: border-box;
  margin: 10px auto 14px;
}

body.home-step-header-only .home-primary-filters {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  align-items: stretch;
  justify-content: flex-start;
  gap: 26px;
  padding: 0 4px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  border-bottom: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.home-step-header-only .home-primary-filters::-webkit-scrollbar {
  display: none;
}

body.home-step-header-only .home-primary-filter {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8e8f8c;
  font: inherit;
  cursor: pointer;
  transition: color .18s ease;
}

body.home-step-header-only .home-primary-filter::before {
  display: none;
}

body.home-step-header-only .home-primary-filter img {
  display: none;
}

body.home-step-header-only .home-primary-filter span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 38px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-step-header-only .home-primary-filter.active {
  color: #353431;
  font-weight: 700;
}

body.home-step-header-only .home-primary-filter.active span {
  font-weight: 760;
}

body.home-step-header-only .home-primary-offer-filter.active {
  color: #8a5cf6;
  font-weight: 760;
}

body.home-step-header-only .home-primary-offer-filter.active span {
  font-weight: 760;
}

body.home-step-header-only .home-primary-indicator {
  position: absolute;
  z-index: 2;
  right: auto;
  bottom: 0;
  left: var(--home-primary-indicator-left, 4px);
  display: block;
  width: var(--home-primary-indicator-width, 28px);
  height: 3px;
  border-radius: 999px;
  background: #8a5cf6;
  pointer-events: none;
  transform: translateZ(0);
  transition: left .28s cubic-bezier(.22, .7, .2, 1), width .2s ease;
}

/* 顶部筛选行只允许横向浏览，指示线完整留在行内。 */
body.home-step-header-only .home-primary-filters {
  overscroll-behavior-y: none;
  scrollbar-gutter: stable;
}

body.home-step-header-only .home-primary-filter:focus-visible {
  outline: 2px solid rgba(242, 87, 130, .3);
  outline-offset: -2px;
}

body.home-step-header-only .home-offer-filters,
body.home-step-header-only .home-tag-filters {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.home-step-header-only .home-offer-filters::-webkit-scrollbar,
body.home-step-header-only .home-tag-filters::-webkit-scrollbar {
  display: none;
}

body.home-step-header-only .home-offer-filters {
  gap: 7px;
  min-height: 27px;
  margin-top: 7px;
  padding: 1px 2px 2px;
  border-bottom: 0;
}

body.home-step-header-only .home-offer-filters button {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(79, 75, 66, .06);
  border-radius: 9px;
  background: #fff;
  color: #92928f;
  font: inherit;
  font-size: 11px;
  font-weight: 580;
  line-height: 25px;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(57, 54, 47, .025);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.home-step-header-only .home-offer-filters button.active {
  border-color: #8a5cf6;
  background: #8a5cf6;
  color: #fff;
  box-shadow: 0 4px 10px rgba(138, 92, 246, .16);
}

body.home-step-header-only .home-tag-filters {
  gap: 8px;
  margin-top: 6px;
  padding: 1px 2px 1px;
}

body.home-step-header-only .home-tag-filters button {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(79, 75, 66, .06);
  border-radius: 10px;
  background: #fff;
  color: #92928f;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(57, 54, 47, .025);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.home-step-header-only .home-tag-filters button.active {
  border-color: #8a5cf6;
  background: #8a5cf6;
  color: #fff;
  box-shadow: 0 4px 10px rgba(138, 92, 246, .16);
}

body.home-step-header-only .home-tag-filters button:hover,
body.home-step-header-only .home-tag-filters button:focus-visible {
  border-color: rgba(138, 92, 246, .42);
  outline: none;
}

/* 当天只有一个可推荐店铺时保持单项原尺寸，并在左侧玻璃区中居中。 */
body.home-step-header-only .home-feature-items > .home-feature-item:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 6px) / 2);
}

@media (max-width: 360px) {
  body.home-step-header-only .home-feature-strip {
    gap: 6px;
    width: calc(100% - 24px);
  }

  body.home-step-header-only .home-feature-panel {
    padding: 7px;
  }

  body.home-step-header-only .home-feature-heading {
    gap: 4px;
  }

  body.home-step-header-only .home-feature-heading h2 {
    font-size: 15px;
  }

  body.home-step-header-only .home-feature-heading span {
    padding: 0 5px;
    font-size: 8px;
  }

  body.home-step-header-only .home-feature-items {
    gap: 5px;
  }

  body.home-step-header-only .home-category-section {
    width: calc(100% - 24px);
  }

  body.home-step-header-only .home-category-strip {
    gap: 7px;
    padding-inline: 1px;
  }

  body.home-step-header-only .home-category-item {
    flex-basis: 55px;
  }

  body.home-step-header-only .home-category-item img {
    width: 46px;
    height: 46px;
  }

  body.home-step-header-only .home-discovery-filters {
    width: calc(100% - 24px);
  }

  body.home-step-header-only .home-primary-filter {
    min-height: 38px;
  }

  body.home-step-header-only .home-offer-filters {
    gap: 6px;
  }

  body.home-step-header-only .home-tag-filters {
    gap: 7px;
  }

  body.home-step-header-only .home-tag-filters button {
    padding-inline: 9px;
    font-size: 11px;
  }

  body.home-step-header-only .home-feature-items > .home-feature-item:only-child {
    width: calc((100% - 5px) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-step-header-only .home-feature-skeleton::after {
    animation: none;
  }
}

/* 顶部品牌胶囊按站点 Logo 展示，尺寸和留白参考小程序品牌入口。 */
body.home-step-header-only .topbar {
  padding-top: max(30px, env(safe-area-inset-top));
}

body.home-step-header-only .home-glass-brand {
  left: 10px;
  min-height: 56px;
  padding: 0 18px 0 13px;
}

body.home-step-header-only .topbar-inner,
body.home-step-header-only .home-glass-actions {
  min-height: 56px;
  height: 56px;
}

body.home-step-header-only .home-glass-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

body.home-step-header-only .home-glass-brand > span:last-child {
  margin-left: 11px;
  font-size: 18px;
  font-weight: 780;
}

body.home-step-header-only .home-glass-search-field {
  min-height: 56px;
  height: 56px;
}

/* 商品信息区恢复为纯白卡片，不再使用玻璃模糊和渐变。 */
body.home-step-header-only .product-home .product-body,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-body {
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* 活动条与玻璃内容区无缝衔接，避免顶部圆角高光形成白边。 */
body.home-step-header-only .product-home .product-card.has-card-promo .product-card-promo + .product-body,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-card.has-card-promo .product-card-promo + .product-body {
  border-top: 0;
  border-radius: 10px 10px 13px 13px;
  box-shadow: none;
}

/* 卡片外侧不绘制白色边线，活动条只保留顶部圆弧。 */
body.home-step-header-only .product-home .product-card,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-card {
  border: 0;
}

body.home-step-header-only .product-home .product-card-promo,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-card-promo {
  overflow: visible;
  border-radius: 13px 13px 0 0;
}

body.home-step-header-only .product-home .product-card-promo::after,
body.front-frame-page > .front-app-frame.home-page.home-step-header-only .product-home .product-card-promo::after {
  display: block;
}
