/* Shared storefront design; the total-control editor supplies these theme tokens. */
:root {
  --shop-primary: #202125;
  --shop-background: #f5f6f8;
  --shop-surface: #fff;
  --shop-text: #272930;
  --shop-muted: #858b97;
  --shop-button-text: #fff;
  --shop-radius: 18px;
  --shop-border: #e9ebef;
  --shop-shadow: 0 5px 16px rgba(25, 30, 45, .045);
}
html body { color: var(--shop-text); background: var(--shop-background); }
uni-app uni-page-body {
  background: var(--shop-background);
  color: var(--shop-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
uni-app uni-page-body > .box,
uni-app .re-bg,
uni-app .gar-bg,
uni-app .wave-bottom {
  background: var(--shop-background) !important;
}
/* Shared buttons: preserve original click handlers, sizes and disabled states. */
uni-app .btn,
uni-app .recharge-bottom-button,
uni-app .recharge-main-box .botton,
uni-app .tijioa.btn-sub,
uni-app .u-button--primary,
uni-app .receipt-submit {
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid transparent !important;
  border-radius: var(--shop-radius) !important;
  background: var(--shop-primary) !important;
  color: var(--shop-button-text) !important;
  box-shadow: 0 4px 10px rgba(20, 24, 32, .10);
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  transition: opacity .15s, transform .15s;
  cursor: pointer;
}
uni-app .btn:active,
uni-app .recharge-bottom-button:active,
uni-app .shop-action:active,
uni-app .shop-nav-button:active { opacity: .78; transform: translateY(1px); }
uni-app [disabled], uni-app [aria-disabled="true"] { cursor: not-allowed; }
uni-app button:focus-visible, uni-app [role="button"]:focus-visible {
  outline: 2px solid var(--shop-primary);
  outline-offset: 3px;
}
uni-app .login-from > .btn:last-child {
  color: var(--shop-primary) !important;
  background: var(--shop-surface) !important;
  border-color: #dfe2e8 !important;
  box-shadow: none;
}
uni-app .login-from .l-input-box,
uni-app .re-input-box,
uni-app .recharge-main-box .form-control {
  box-sizing: border-box;
  border: 1px solid #e4e7ed !important;
  border-radius: var(--shop-radius) !important;
  background: var(--shop-surface) !important;
  min-height: 48px;
  box-shadow: none;
}
uni-app .re-input-box:focus-within,
uni-app .l-input-box:focus-within { border-color: var(--shop-primary) !important; }
uni-app .box-common {
  box-sizing: border-box;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border) !important;
  border-radius: var(--shop-radius) !important;
  box-shadow: var(--shop-shadow);
  padding: 16px;
}
uni-app .u-popup__content { border-radius: var(--shop-radius) !important; }
uni-app .u-popup__content[style*="bottom"] { border-radius: var(--shop-radius) var(--shop-radius) 0 0; }
uni-app .u-cell__body { min-height: 54px; box-sizing: border-box; }
uni-app .u-cell__title-text { font-size: 14px; color: var(--shop-text); }
uni-app .u-cell__value { font-size: 13px; color: var(--shop-muted); }
uni-app .u-line { border-color: #eef0f4 !important; }
uni-app .fixed[data-v-690cb28b] {
  background: var(--shop-surface);
  border-bottom: 1px solid #f0f1f4;
  box-shadow: none;
}
uni-app .index-nav1 {
  background: var(--shop-surface);
  border: 1px solid var(--shop-border) !important;
  border-radius: var(--shop-radius) !important;
  padding: 16px 8px;
  box-shadow: var(--shop-shadow);
}
uni-app .index-nav1 > uni-view:empty { display: none; }
uni-app .index-video { border-radius: var(--shop-radius) !important; overflow: hidden; }
uni-app .recharge-grid-Item {
  border-radius: var(--shop-radius) !important;
  border: 1px solid var(--shop-border) !important;
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow);
}
uni-app .recharge-main-box .recharge-main-bottom {
  background: rgba(255,255,255,.96);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -5px 20px rgba(25,30,45,.04);
}
uni-app uni-page[data-page="pages/index/purchase"] .goods-item {
  border: 1px solid var(--shop-border) !important;
  border-radius: var(--shop-radius) !important;
  box-shadow: var(--shop-shadow);
  background: var(--shop-surface);
  padding: 16px;
  margin-top: 12px;
}
uni-app .grabbing-list {
  box-sizing: border-box;
  border: 1px solid var(--shop-border) !important;
  border-radius: var(--shop-radius) !important;
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow);
  padding: 12px 8px;
}
uni-app .buy-btn {
  border-radius: var(--shop-radius) !important;
  background: var(--shop-primary) !important;
  color: var(--shop-button-text) !important;
  box-shadow: 0 6px 18px rgba(25,30,45,.12);
}
uni-app .receipt-layout, uni-app .receipt-card {
  border-radius: var(--shop-radius) !important;
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow);
}
/* Personal center: two-column metrics, a three-action card and compact account rows. */
uni-app .shop-profile { min-height: 100vh; background: var(--shop-background); color: var(--shop-text); }
uni-app .shop-profile-content { padding: 20px 16px 8px; }
uni-app .shop-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
uni-app .shop-eyebrow { margin: 0 0 5px; color: var(--shop-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
uni-app .shop-page-title { margin: 0; color: var(--shop-text); font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.5px; }
uni-app .shop-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
uni-app .shop-avatar { width: 45px; height: 45px; background: #eceef2; border: 3px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
uni-app .shop-member-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 14px; }
uni-app .shop-member-name { font-size: 13px; font-weight: 500; color: #69717e; overflow-wrap: anywhere; min-width: 0; }
uni-app .shop-member-level { flex-shrink: 0; font-size: 10px; padding: 3px 9px; border: 1px solid #e1e4e9; border-radius: 20px; background: #fff; color: #626773; }
uni-app .shop-stat-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
uni-app .shop-stat { min-width: 0; min-height: 89px; padding: 15px 14px; border: 1px solid var(--shop-border) !important; border-radius: var(--shop-radius) !important; background: var(--shop-surface); box-shadow: var(--shop-shadow); }
uni-app .shop-stat-label { display: block; font-size: 11px; font-weight: 500; line-height: 1.45; color: var(--shop-muted); margin-bottom: 9px; }
uni-app .shop-stat-value { display: block; font-size: 21px; letter-spacing: -.4px; font-weight: 650; line-height: 1.2; color: var(--shop-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
uni-app .shop-stat-primary { background: var(--shop-primary); border-color: transparent; box-shadow: 0 6px 18px rgba(25,30,45,.10); }
uni-app .shop-stat-primary .shop-stat-label { color: var(--shop-button-text); opacity: .72; }
uni-app .shop-stat-primary .shop-stat-value { color: var(--shop-button-text); }
uni-app .shop-section { margin-top: 21px; }
uni-app .shop-section-title { display: flex; align-items: center; margin: 0 0 10px; font-size: 14px; font-weight: 650; color: var(--shop-text); line-height: 1.4; }
uni-app .shop-section-title::before { content: ""; width: 3px; height: 13px; background: var(--shop-primary); border-radius: 3px; margin-right: 8px; flex-shrink: 0; }
uni-app .shop-card { border: 1px solid var(--shop-border) !important; border-radius: var(--shop-radius) !important; background: var(--shop-surface); box-shadow: var(--shop-shadow); overflow: hidden; }
uni-app .shop-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 6px 14px; }
uni-app .shop-action { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--shop-text); padding: 0 4px; margin: 0; min-width: 0; font: inherit; cursor: pointer; }
uni-app .shop-action-icon { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: #f1f2f5; border: 1px solid #eceef2; border-radius: 15px; }
uni-app .shop-action-label { display: block; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
uni-app .shop-rows { padding: 0 13px; }
uni-app .shop-account-row { appearance: none; box-sizing: border-box; width: 100%; min-height: 60px; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid #f0f1f5; padding: 12px 0; margin: 0; color: var(--shop-text); font: inherit; text-align: left; }
uni-app button.shop-account-row { cursor: pointer; }
uni-app .shop-account-row:last-child { border-bottom: 0; }
uni-app .shop-row-icon { width: 32px; height: 32px; border-radius: 11px; background: #f3f4f7; display: flex; align-items: center; justify-content: center; flex: 0 0 32px; }
uni-app .shop-row-icon .shop-icon { width: 17px; height: 17px; flex-basis: 17px; }
uni-app .shop-row-label { flex: 1 1 auto; min-width: 0; font-size: 12px; overflow-wrap: anywhere; line-height: 1.5; }
uni-app .shop-row-value { flex: 0 1 44%; min-width: 0; font-size: 11px; color: var(--shop-muted); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
uni-app .shop-chevron { width: 12px; height: 12px; flex: 0 0 12px; opacity: .38; }
uni-app .shop-row-danger .shop-row-label { color: #bb4e5c; }
uni-app .shop-row-danger .shop-row-icon { background: #fff0f2; }
/* The middle destination stays visually prominent; all five original routes remain. */
:root uni-app .fooder_box.shop-nav {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 12px !important;
  right: 12px !important;
  width: calc(100% - 24px) !important;
  max-width: 426px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(224,227,234,.75);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 28px rgba(23,28,40,.10);
  z-index: 100;
}
:root uni-app .shop-nav .shop-nav-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; list-style: none; padding: 5px; margin: 0; gap: 2px; background: transparent; border-radius: inherit; }
:root uni-app .shop-nav li { display: block; min-width: 0; margin: 0; padding: 0; }
:root uni-app .shop-nav-button { appearance: none; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; width: 100%; min-height: 60px; border: 0; padding: 7px 2px; border-radius: 17px; background: transparent; color: #9297a1; cursor: pointer; font: inherit; }
:root uni-app .shop-nav .shop-nav-icon { width: 21px; height: 21px; display: block; opacity: .55; margin: 0; }
:root uni-app .shop-nav-icon-wrap { display: flex; align-items: center; justify-content: center; height: 24px; }
:root uni-app .shop-nav-label { font-size: 9px; line-height: 1.3; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
:root uni-app .selectedbag .shop-nav-button { background: #f0f1f5; color: var(--shop-primary); font-weight: 650; }
:root uni-app .selectedbag .shop-nav-icon { opacity: 1; }
:root uni-app .selectedbag .shop-nav-button::after { content: ""; position: absolute; bottom: 3px; width: 13px; height: 2px; border-radius: 3px; background: var(--shop-primary); }
:root uni-app .shop-nav-center { gap: 4px; padding-top: 0; color: var(--shop-primary); }
:root uni-app .shop-nav-center .shop-nav-icon-wrap { width: 46px; height: 46px; margin-top: -17px; background: var(--shop-primary); border: 4px solid var(--shop-background); border-radius: 17px; box-shadow: 0 3px 9px rgba(25,30,45,.12); }
:root uni-app .shop-nav-center .shop-nav-icon { width: 23px; height: 23px; opacity: 1; }
:root uni-app .selectedbag .shop-nav-center { background: transparent; }
:root uni-app .shop-nav-spacer { height: calc(98px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 350px) {
  uni-app .shop-profile-content { padding: 16px 12px 6px; }
  uni-app .shop-stat { padding: 13px 11px; }
  uni-app .shop-stat-value { font-size: 19px; }
  uni-app .shop-action-label { font-size: 10px; }
  uni-app .shop-account-row { gap: 7px; }
  uni-app .shop-row-value { flex-basis: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  uni-app .btn, uni-app .shop-action, uni-app .shop-nav-button { transition: none; }
}
/* Task screen shares the same soft cards and primary action as the account screens. */
uni-app .h-swiper {
  border-radius: var(--shop-radius) !important;
  border: 1px solid var(--shop-border) !important;
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow) !important;
  overflow: hidden;
}
uni-app .buy-btn.center {
  min-height: 46px;
  box-sizing: border-box;
  width: calc(100% - 24px) !important;
  border: 0 !important;
  border-radius: var(--shop-radius) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}
uni-app .grabbing-list > uni-view { padding: 10px 6px; box-sizing: border-box; }

/* Keep the task product fully visible; the old rotating overlay clipped it. */
uni-app .h-swiper {
  width: 240px !important;
  max-width: calc(100% - 32px) !important;
  height: 220px !important;
  margin: 20px auto 24px !important;
  box-sizing: border-box;
}
uni-app .h-swiper .swiper { width: 100% !important; height: 100% !important; margin: 0 !important; }
uni-app .h-swiper .swiper2 { display: none !important; }
uni-app .h-swiper .goods-item { display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
uni-app .h-swiper .swiper uni-image { width: 100% !important; height: 100% !important; min-width: 0; }
uni-app .h-swiper .swiper uni-image > div { width: 100% !important; height: 100% !important; background-size: contain !important; background-position: center !important; background-repeat: no-repeat; }
uni-app .h-swiper .swiper uni-image img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; }

/* Order header: centered title, balance strip and a single segmented filter. */
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .text-center {
  padding: 18px 16px 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--shop-text);
}
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .page-padding:not(.sticky) {
  padding: 0 12px 10px;
}
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .page-padding:not(.sticky) > .m-flex {
  min-height: 56px;
  box-sizing: border-box;
  padding: 14px 18px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px;
  background: var(--shop-primary);
  color: var(--shop-button-text);
  box-shadow: 0 5px 14px rgba(25,30,45,.10);
}
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .page-padding:not(.sticky) > .m-flex > uni-view:first-child {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .page-padding:not(.sticky) > .m-flex > uni-view:first-child::before {
  content: '';
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: url('/show/static/ui-icons/wallet.svg') center / contain no-repeat;
  filter: brightness(0) invert(1);
}
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .page-padding:not(.sticky) .color-theme {
  color: var(--shop-button-text) !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
  min-width: 0;
}
uni-app uni-page[data-page="pages/index/purchase"] .wave-bottom > .sticky {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
  margin: 0 12px 14px;
  padding: 4px !important;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 15px;
  box-shadow: var(--shop-shadow);
}
uni-app uni-page[data-page="pages/index/purchase"] .sticky > .classify {
  width: auto;
  min-width: 0;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 3px;
  border: 0 !important;
  border-radius: 11px;
  color: var(--shop-muted);
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}
uni-app uni-page[data-page="pages/index/purchase"] .sticky > .classify.active {
  background: var(--shop-primary) !important;
  color: var(--shop-button-text) !important;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(25,30,45,.12);
}
uni-app uni-page[data-page="pages/index/purchase"] .goods-item > .btn {
  width: 100% !important;
  max-width: none !important;
  min-height: 46px;
  margin: 22px 0 0 !important;
  padding: 12px 18px;
  white-space: nowrap;
  font-size: 14px;
}
