/* Unified light storefront layer. Business selectors and agent pages stay untouched. */
:root {
  --front-design-canvas: #f3f5f7;
  --front-design-paper: #ffffff;
  --front-design-paper-soft: #f8fafb;
  --front-design-ink: #252a31;
  --front-design-muted: #7c858f;
  --front-design-line: #e5e9ed;
  --front-design-line-strong: #d7dde3;
  --front-design-accent: #3478d4;
  --front-design-success: #2d9b73;
  --front-design-danger: #e4586e;
  --front-design-radius: 14px;
  --front-design-radius-sm: 10px;
  --front-design-shadow: 0 5px 16px rgba(35, 43, 52, .045);
  --front-design-shadow-hover: 0 8px 20px rgba(35, 43, 52, .065);
  --front-design-frame-width: 430px;
}

@view-transition {
  navigation: auto;
}

body.front-frame-page {
  min-width: 0;
  overflow-x: hidden;
  background: #f5f6f7 !important;
  color: var(--front-design-ink);
  font-family: var(--front-font-family, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.front-frame-page > .front-app-frame {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin-inline: auto;
  background: #f5f6f7 !important;
}

body.front-frame-page > .front-app-frame > .front-app-content {
  position: relative;
  min-height: 100vh;
  background: #f5f6f7 !important;
}

body.front-frame-page > .front-app-frame .front-page-layer {
  position: relative;
  z-index: 1;
  width: min(var(--front-design-frame-width), 100%);
  min-height: 100vh;
  margin-inline: auto;
  min-width: 0;
  background: transparent !important;
}

body.front-frame-page > .front-app-frame .fixed-bg-pattern {
  display: none !important;
  background: none !important;
}

body.front-frame-page > .front-app-frame:is(.home-page, .buyer-page, .user-subpage, .tool-page, .utility-page, .public-shop-page, .product-detail-page),
body.front-frame-page > .front-app-frame:is(.home-page, .buyer-page, .user-subpage, .tool-page, .utility-page, .public-shop-page, .product-detail-page) > .front-app-content {
  background: #f5f6f7 !important;
  background-image: none !important;
}

body.front-frame-page > .front-app-frame:is(.home-page, .buyer-page, .user-subpage, .tool-page, .utility-page, .public-shop-page, .product-detail-page) .fixed-bg-pattern {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

body.front-frame-page > .front-app-frame button,
body.front-frame-page > .front-app-frame a,
body.front-frame-page > .front-app-frame input,
body.front-frame-page > .front-app-frame select,
body.front-frame-page > .front-app-frame textarea {
  -webkit-tap-highlight-color: transparent;
}

body.front-frame-page > .front-app-frame button {
  font-family: inherit;
  letter-spacing: 0;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.front-frame-page > .front-app-frame .input,
body.front-frame-page > .front-app-frame .select,
body.front-frame-page > .front-app-frame .textarea,
body.front-frame-page > .front-app-frame input,
body.front-frame-page > .front-app-frame select,
body.front-frame-page > .front-app-frame textarea {
  border-color: var(--front-design-line);
  border-radius: var(--front-design-radius-sm);
  background: var(--front-design-paper);
  color: var(--front-design-ink);
  box-shadow: none;
}

body.front-frame-page > .front-app-frame .input:focus,
body.front-frame-page > .front-app-frame .select:focus,
body.front-frame-page > .front-app-frame .textarea:focus,
body.front-frame-page > .front-app-frame input:focus,
body.front-frame-page > .front-app-frame select:focus,
body.front-frame-page > .front-app-frame textarea:focus {
  border-color: #aebdcd;
  box-shadow: 0 0 0 3px rgba(52, 120, 212, .1);
  outline: none;
}

/* Keep all storefront cards on one restrained surface system. */
body.front-frame-page > .front-app-frame .product-card,
body.front-frame-page > .front-app-frame .guess-card,
body.front-frame-page > .front-app-frame .public-shop-grid > article,
body.front-frame-page > .front-app-frame .user-cart-item,
body.front-frame-page > .front-app-frame .user-follow-card,
body.front-frame-page > .front-app-frame .user-order-card,
body.front-frame-page > .front-app-frame .user-product-card,
body.front-frame-page > .front-app-frame .user-price-item,
body.front-frame-page > .front-app-frame .user-code-item,
body.front-frame-page > .front-app-frame .user-wallet-log,
body.front-frame-page > .front-app-frame .user-empty-state {
  border: 1px solid var(--front-design-line);
  border-radius: var(--front-design-radius);
  background: var(--front-design-paper);
  box-shadow: var(--front-design-shadow);
}

body.front-frame-page > .front-app-frame .product-card:hover,
body.front-frame-page > .front-app-frame .guess-card:hover,
body.front-frame-page > .front-app-frame .public-shop-grid > article:hover,
body.front-frame-page > .front-app-frame .user-product-card:hover {
  border-color: var(--front-design-line-strong);
  box-shadow: var(--front-design-shadow-hover);
}

/* Theme preview: two equal columns at every viewport, without changing data or card content. */
body.front-frame-page > .front-app-frame.home-page .product-home,
body.front-frame-page > .front-app-frame.home-entry-page .product-home {
  width: calc(100% - 20px);
  max-width: none;
  padding-top: 14px;
}

body.front-frame-page > .front-app-frame.home-page .products-grid,
body.front-frame-page > .front-app-frame.home-entry-page .products-grid,
body.front-frame-page > .front-app-frame.public-shop-page .public-shop-grid,
body.front-frame-page > .front-app-frame.product-detail-page .guess-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}

body.front-frame-page > .front-app-frame.home-page .product-card,
body.front-frame-page > .front-app-frame.home-entry-page .product-card {
  min-width: 0;
  transform: none;
}

body.front-frame-page > .front-app-frame.home-page .product-media,
body.front-frame-page > .front-app-frame.home-entry-page .product-media,
body.front-frame-page > .front-app-frame.public-shop-page .public-shop-grid > article > img,
body.front-frame-page > .front-app-frame.product-detail-page .product-hero-image {
  background: var(--front-design-paper-soft);
}

body.front-frame-page > .front-app-frame.home-page .product-title,
body.front-frame-page > .front-app-frame.home-entry-page .product-title,
body.front-frame-page > .front-app-frame.public-shop-page .public-shop-grid strong,
body.front-frame-page > .front-app-frame.product-detail-page .guess-card strong {
  color: var(--front-design-ink);
  font-weight: 720;
  letter-spacing: 0;
}

body.front-frame-page > .front-app-frame.home-page .category-row,
body.front-frame-page > .front-app-frame.home-entry-page .category-row,
body.front-frame-page > .front-app-frame.public-shop-page .public-shop-sort-row {
  scrollbar-width: none;
}

body.front-frame-page > .front-app-frame.home-page .category-row::-webkit-scrollbar,
body.front-frame-page > .front-app-frame.home-entry-page .category-row::-webkit-scrollbar,
body.front-frame-page > .front-app-frame.public-shop-page .public-shop-sort-row::-webkit-scrollbar {
  display: none;
}

body.front-frame-page > .front-app-frame.home-page .pill,
body.front-frame-page > .front-app-frame.home-entry-page .pill,
body.front-frame-page > .front-app-frame.public-shop-page .pill {
  border-color: var(--front-design-line);
  border-radius: 999px;
  background: var(--front-design-paper);
  color: var(--front-design-muted);
}

body.front-frame-page > .front-app-frame.home-page .pill.active,
body.front-frame-page > .front-app-frame.home-entry-page .pill.active,
body.front-frame-page > .front-app-frame.public-shop-page .pill.active {
  border-color: var(--front-design-ink);
  background: var(--front-design-ink);
  color: #fff;
}

body.front-frame-page > .front-app-frame.home-page .catalog-filter-chips button,
body.front-frame-page > .front-app-frame.public-shop-page .catalog-filter-chips button {
  border-color: var(--front-design-line);
  background: var(--front-design-paper);
  color: var(--front-design-muted);
}

body.front-frame-page > .front-app-frame.home-page .catalog-filter-chips button.active,
body.front-frame-page > .front-app-frame.public-shop-page .catalog-filter-chips button.active {
  border-color: var(--front-design-ink);
  background: var(--front-design-ink);
  color: #fff;
}

/* Product detail: preserve the existing capsules and make the media rule explicit. */
body.front-frame-page > .front-app-frame.product-detail-page .product-detail-shell {
  width: calc(100% - 16px);
  max-width: none;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-hero-image,
body.front-frame-page > .front-app-frame.product-detail-page .product-hero-trigger,
body.front-frame-page > .front-app-frame.product-detail-page .product-image-track {
  aspect-ratio: 1 / 1;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-main-image,
body.front-frame-page > .front-app-frame.product-detail-page .product-hero-trigger img {
  object-fit: contain !important;
  object-position: center;
  background: var(--front-design-paper-soft);
}

body.front-frame-page > .front-app-frame.product-detail-page .product-detail-topbar,
body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar {
  border: 1px solid var(--front-design-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--front-design-shadow-hover);
  backdrop-filter: blur(16px);
}

body.front-frame-page > .front-app-frame.product-detail-page .product-detail-topbar {
  height: 53px;
  min-height: 53px;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar {
  min-height: 53px;
  border-radius: 999px;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary,
body.front-frame-page > .front-app-frame.product-detail-page .detail-section,
body.front-frame-page > .front-app-frame.product-detail-page .shop-section {
  border-color: var(--front-design-line);
  border-radius: var(--front-design-radius);
  background: var(--front-design-paper);
  box-shadow: var(--front-design-shadow);
}

body.front-frame-page > .front-app-frame.product-detail-page .product-tag,
body.front-frame-page > .front-app-frame.product-detail-page .product-category-chip,
body.front-frame-page > .front-app-frame.product-detail-page .review-tag-row span {
  border-radius: 999px;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-price {
  color: var(--front-design-danger);
}

/* The original product card overlaps the promotion ribbon, matching the storefront hierarchy. */
body.front-frame-page > .front-app-frame.product-detail-page .product-offer-panel {
  position: relative;
  z-index: 0;
  min-height: 66px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(108deg, #ffae3d 0%, #ff7655 47%, #f23869 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 82, 96, .16);
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 15px 6px;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main strong {
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main del {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main del::after {
  position: absolute;
  left: -2px;
  top: 50%;
  width: calc(100% + 4px);
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  content: "";
  transform: rotate(11deg);
  transform-origin: center;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-side {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-side > span {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-side > small {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font-size: 9px;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-side > small:empty {
  display: none;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-lightning {
  position: absolute;
  top: -8px;
  left: 60%;
  width: 45px;
  height: 64px;
  fill: rgba(255, 255, 255, .22);
  filter: drop-shadow(0 2px 1px rgba(196, 43, 79, .08));
  transform: translateX(-50%) rotate(2deg);
}

body.front-frame-page > .front-app-frame.product-detail-page .product-offer-panel.is-upcoming {
  background: linear-gradient(108deg,#ffb14a 0%,#ff805e 52%,#ef536c 100%);
}
body.front-frame-page > .front-app-frame.product-detail-page .product-offer-panel.is-upcoming .product-offer-main del { display:none; }

body.front-frame-page > .front-app-frame.product-detail-page .product-summary-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary.has-product-offer {
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary.has-product-offer .product-summary-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: -13px;
  padding: 12px 15px 16px;
  border: 1px solid rgba(31, 38, 47, .055);
  border-radius: 12px 12px 10px 10px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(31, 38, 47, .025);
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary.has-product-offer .product-price-line {
  min-height: 18px;
  justify-content: flex-end;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary.has-product-offer .product-price-line .product-price {
  display: none;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary.has-product-offer .product-heat {
  margin-left: auto;
  color: #858b94;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-summary.has-product-offer .product-tags {
  margin-top: -2px;
}

/* Zibll-style product chips use one restrained red outline instead of mixed pastel tones. */
body.front-frame-page > .front-app-frame.product-detail-page .product-summary .product-tag,
body.front-frame-page > .front-app-frame.product-detail-page .product-summary .product-tag[class*="tag-tone-"],
body.front-frame-page > .front-app-frame.product-detail-page .product-summary .product-tag.tag-status-active,
body.front-frame-page > .front-app-frame.product-detail-page .product-summary .product-tag.tag-status-soldout {
  border-color: rgba(239, 72, 83, .72) !important;
  background: rgba(239, 72, 83, .055) !important;
  color: #e84652 !important;
}

/* Reserve 40% for the three tools and 60% for the joined purchase actions. */
body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) !important;
  gap: 3px !important;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1px !important;
  box-shadow: none !important;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-purchase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 !important;
  padding-right: 0;
  overflow: hidden;
  border-radius: 999px;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-primary,
body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-buy {
  font-size: 11px !important;
  font-weight: 800;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-primary {
  background: #f6a43b;
  border-radius: 999px 0 0 999px !important;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-buy {
  background: #f54c6d;
  border-radius: 0 999px 999px 0 !important;
}

body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-purchase:has(.product-bottom-buy.hidden) .product-bottom-primary {
  border-radius: 999px !important;
}

@media (max-width: 360px) {
  body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) !important;
  }
  body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main {
    padding-inline: 13px;
  }
  body.front-frame-page > .front-app-frame.product-detail-page .product-offer-main strong {
    font-size: 17px;
  }
  body.front-frame-page > .front-app-frame.product-detail-page .product-offer-side > span {
    font-size: 12px;
  }
  body.front-frame-page > .front-app-frame.product-detail-page .product-offer-lightning {
    left: 60%;
    width: 41px;
  }
}

/* The global redemption switch removes one tool, leaving 30% for tools and 70% for buying. */
body.internal-redeem-disabled.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar,
body.front-frame-page > .front-app-frame.product-detail-page.internal-redeem-disabled .product-bottom-bar,
body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar.internal-redeem-disabled {
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) !important;
}

body.internal-redeem-disabled.front-frame-page > .front-app-frame.product-detail-page .product-bottom-tools,
body.front-frame-page > .front-app-frame.product-detail-page.internal-redeem-disabled .product-bottom-tools,
body.front-frame-page > .front-app-frame.product-detail-page .product-bottom-bar.internal-redeem-disabled .product-bottom-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* User center and its subpages share the same page surface and topbar. */
body.front-frame-page > .front-app-frame.buyer-page .buyer-app,
body.front-frame-page > .front-app-frame.user-subpage .user-page-shell,
body.front-frame-page > .front-app-frame.public-shop-page .public-shop-shell {
  width: calc(100% - 20px);
  max-width: none;
  margin-inline: auto;
}

body.front-frame-page > .front-app-frame.buyer-page .user-profile-band,
body.front-frame-page > .front-app-frame.buyer-page .user-commerce-grid,
body.front-frame-page > .front-app-frame.buyer-page .user-section-band {
  border-color: var(--front-design-line);
  border-radius: var(--front-design-radius);
  background: var(--front-design-paper);
  box-shadow: var(--front-design-shadow);
}

body.front-frame-page > .front-app-frame.buyer-page .user-commerce-grid a,
body.front-frame-page > .front-app-frame.buyer-page .user-order-grid a,
body.front-frame-page > .front-app-frame.buyer-page .user-service-grid > a,
body.front-frame-page > .front-app-frame.buyer-page .user-service-grid > button {
  border-radius: var(--front-design-radius-sm);
}

body.front-frame-page > .front-app-frame.user-subpage .user-page-topbar {
  border-color: var(--front-design-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--front-design-shadow);
}

body.front-frame-page > .front-app-frame.user-subpage .user-cart-item,
body.front-frame-page > .front-app-frame.user-subpage .user-follow-card,
body.front-frame-page > .front-app-frame.user-subpage .user-order-card,
body.front-frame-page > .front-app-frame.user-subpage .user-product-card,
body.front-frame-page > .front-app-frame.user-subpage .user-price-item,
body.front-frame-page > .front-app-frame.user-subpage .user-code-item,
body.front-frame-page > .front-app-frame.user-subpage .user-wallet-log,
body.front-frame-page > .front-app-frame.user-subpage .user-empty-state {
  border-color: var(--front-design-line);
  border-radius: var(--front-design-radius);
  background: var(--front-design-paper);
  box-shadow: var(--front-design-shadow);
}

body.front-frame-page > .front-app-frame .public-bottom-nav {
  border-color: var(--front-design-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--front-design-shadow-hover);
}

body.front-frame-page > .front-app-frame .public-bottom-nav a {
  border-radius: 999px;
}

/* PC 页面背景铺满，只有内容层保持手机宽度和两列布局。 */
@media (min-width: 700px) {
  body.front-frame-page > .front-app-frame {
    box-shadow: none;
  }

  body.front-frame-page > .front-app-frame.home-page .random-theme-float {
    right: calc(50% - (var(--front-design-frame-width) / 2)) !important;
  }

  body.front-frame-page > .front-app-frame.home-page .products-grid,
  body.front-frame-page > .front-app-frame.home-entry-page .products-grid,
  body.front-frame-page > .front-app-frame.public-shop-page .public-shop-grid,
  body.front-frame-page > .front-app-frame.product-detail-page .guess-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699px) {
  body.front-frame-page > .front-app-frame {
    width: 100vw !important;
    max-width: 100vw !important;
    box-shadow: none;
  }

  body.front-frame-page > .front-app-frame .front-page-layer {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.front-frame-page > .front-app-frame *,
  body.front-frame-page > .front-app-frame *::before,
  body.front-frame-page > .front-app-frame *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* Product redeem sheet */
.product-redeem-modal{z-index:7100}
.product-redeem-sheet{width:min(520px,100%);overflow:hidden;border-radius:16px 16px 0 0;background:#fff}
.product-redeem-sheet form{display:grid;gap:14px;padding:18px 18px calc(18px + env(safe-area-inset-bottom))}
.product-redeem-sheet header{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;min-height:36px}
.product-redeem-sheet header::before{content:""}
.product-redeem-sheet header strong{font-size:16px;text-align:center}
.product-redeem-sheet header button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#f2f3f1;color:#202020;font-size:21px;cursor:pointer}
.product-redeem-field{display:grid;gap:7px}
.product-redeem-field>span,.product-redeem-fields .field>span{color:#686d68;font-size:12px;font-weight:700}
.product-redeem-field .input,.product-redeem-fields .input{min-height:44px;border-color:#e5e8e4;border-radius:8px;background:#f8f9f7}
.product-redeem-fields{display:grid;gap:11px}
.product-redeem-fields .field{display:grid;gap:7px}
.product-redeem-submit{min-height:44px;border-radius:999px;background:#202020;color:#fff}

/* 首屏与加载完成后保持同一画布，避免旧手机外框和装饰背景闪现。 */
html.front-frame-root,
body.front-frame-page,
body.front-frame-page > .front-app-frame,
body.front-frame-page > .front-app-frame > .front-app-content {
  width: 100%;
  max-width: none;
  background: #f5f6f7 !important;
  background-image: none !important;
}

body.front-frame-page > .front-app-frame {
  min-height: 100vh;
  min-height: 100svh;
  border-radius: 0;
  box-shadow: none;
}

body.front-frame-page {
  display: block;
  padding: 0 !important;
}

body.front-frame-page > .front-app-frame > .front-app-content > .front-page-layer {
  width: min(var(--front-design-frame-width, 430px), 100%);
  margin-inline: auto;
  background: transparent !important;
}

body.front-frame-page .fixed-bg-pattern {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

/* 主脚本尚未执行时也先按手机内容宽度排版，消除慢网速下的先宽后窄。 */
body:not(.front-frame-page):is(.home-page, .tool-page, .utility-page, .buyer-page, .product-detail-page, .public-shop-page) > :is(.shell, .tool-shell, .download-shell, .narrow-page, .product-home, .buyer-shell, .product-detail-shell, .public-shop-shell, .incentive-shell, .community-shell, .preview-maker-shell, .tutorial-shell) {
  width: min(var(--front-design-frame-width, 430px), 100%) !important;
  max-width: 100%;
  margin-inline: auto;
}

body:not(.front-frame-page).user-subpage > .user-page-shell {
  width: min(410px, calc(100% - 20px)) !important;
  max-width: 410px;
  margin-inline: auto;
  border-right: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.front-frame-page > .front-app-frame.user-subpage .user-page-shell {
  border-right: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 所有前台页面统一使用格陵兰白画布，首屏和框架挂载后保持同色。 */
:root {
  --front-design-canvas: #f5f6f1;
  --front-page-bg: #f5f6f1;
  --front-bg: #f5f6f1;
  --store-canvas: #f5f6f1;
}

html.front-frame-root,
body:is(.home-page, .tool-page, .utility-page, .buyer-page, .user-subpage, .public-shop-page, .product-detail-page),
body.front-frame-page,
body.front-frame-page > .front-app-frame,
body.front-frame-page > .front-app-frame > .front-app-content,
body.front-frame-page > .front-app-frame > .front-app-content > .front-page-layer {
  background-color: #f5f6f1 !important;
  background-image: none !important;
}
