:root {
  --brand-red: #c81e1e;
  --brand-red-deep: #991b1b;
  --brand-red-soft: #fff1f1;
  --theme-primary: #0f8f6b;
  --theme-secondary: #1e7b96;
  --theme-bg: #f3fbf7;
  --button-radius: 18px;
  --card-radius: 12px;
  --shell-width: min(100vw, 430px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-height: calc(72px + var(--safe-bottom));
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--theme-primary) 14%, transparent), transparent 28%),
    linear-gradient(180deg, #f3f5f8 0%, #dfe5ea 100%);
  color: #20242a;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}
body { min-height: 100dvh; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.phone-shell {
  width: var(--shell-width);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--theme-bg) 0, #f6f7f9 260px, #f6f7f9 100%);
  box-shadow: 0 0 30px rgba(15, 23, 42, .14);
}
#app {
  position: relative;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-height) + 24px);
}
.app-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 16px 12px;
  background: color-mix(in srgb, var(--theme-bg) 88%, #fff);
  backdrop-filter: blur(12px);
}
.location { font-size: 20px; font-weight: 800; }
.hello { margin-top: 3px; color: #8b949e; font-size: 12px; }
.header-btn {
  height: 38px; min-width: 54px; padding: 0 13px; border-radius: var(--button-radius);
  background: #fff; color: var(--theme-primary); font-weight: 800;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}
.view { padding: 0 14px 22px; }
.site-footer {
  padding: 8px 18px calc(var(--tabbar-height) + 36px);
  color: #8b949e;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.search {
  height: 44px; padding: 0 16px; margin: 4px 0 14px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 22px; background: #fff; color: #8b949e;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.search-icon {
  color: var(--brand-red);
  font-size: 20px;
  font-weight: 900;
}
.search-live input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #20242a;
  background: transparent;
}
.search-live button {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--button-radius);
  background: var(--theme-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.category-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.category-filter .search {
  margin: 0;
  box-shadow: none;
  background: #f6f8fa;
}
.price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}
.price-filter input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e9ee;
  border-radius: 10px;
  outline: 0;
  background: #fff;
}
.btn.small {
  min-height: 36px;
  padding: 0 12px;
}
.sort-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-row::-webkit-scrollbar { display: none; }
.sort-row button {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: #f4f6f8;
  color: #59616c;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.sort-row button.active {
  background: color-mix(in srgb, var(--theme-primary) 12%, #fff);
  color: var(--theme-primary);
}
.banner {
  position: relative; overflow: hidden;
  min-height: 166px; border-radius: var(--card-radius); padding: 20px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--theme-primary) 22%, transparent);
}
.banner::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -44px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.banner::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -34px;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.banner.has-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.16));
  border-radius: 0;
}
.banner-copy { position: relative; z-index: 1; }
.banner-tag {
  width: fit-content;
  margin-bottom: 9px;
  padding: 4px 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
}
.banner-title { max-width: 280px; font-size: 24px; line-height: 1.22; font-weight: 900; }
.banner-subtitle { max-width: 260px; margin-top: 8px; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.55; }
.banner-cta {
  width: fit-content;
  height: 32px;
  margin-top: 13px;
  padding: 0 14px;
  border-radius: var(--button-radius);
  background: #fff;
  color: var(--theme-primary);
  font-size: 13px;
  font-weight: 900;
}
.home-banner-list {
  display: grid;
  gap: 10px;
}
.home-banner-list.multi {
  grid-auto-flow: column;
  grid-auto-columns: minmax(88%, 1fr);
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-banner-list.multi::-webkit-scrollbar { display: none; }
.home-banner-list.multi .banner {
  min-height: 156px;
  scroll-snap-align: start;
}
.home-quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 4px;
  margin-top: 12px;
  padding: 12px 6px;
}
.home-quick-nav button {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: #303740;
}
.home-quick-nav span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--theme-primary) 10%, #fff);
  color: var(--theme-primary);
  font-size: 13px;
  font-weight: 900;
}
.home-quick-nav em {
  max-width: 100%;
  color: #4b5563;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.section { margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-title { font-size: 19px; font-weight: 900; }
.section-more { color: var(--theme-primary); font-size: 13px; }
.section-subtitle { color: #8b949e; font-size: 12px; }
.shop-notice {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.home-coupon-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.home-coupon-strip button {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #edf0f3;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, #fff, var(--theme-bg));
  text-align: left;
}
.home-coupon-strip strong {
  display: block;
  color: var(--theme-primary);
  font-size: 17px;
  font-weight: 900;
}
.home-coupon-strip span {
  display: block;
  margin-top: 6px;
  color: #59616c;
  font-size: 12px;
  font-weight: 700;
}
.home-hot-line {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--card-radius);
  background: #fff;
  color: var(--theme-primary);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.home-service-btn {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border-radius: var(--button-radius);
  background: var(--theme-primary);
  color: #fff;
  font-weight: 900;
}
.card, .panel {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}
.panel { padding: 16px; }
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px;
  padding: 14px 8px;
}
.category-card {
  min-height: 88px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: #303740; font-size: 12px;
}
.category-icon, .category-img {
  width: 50px; height: 50px; border-radius: 18px;
}
.category-icon {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--theme-bg), #fff);
  color: var(--theme-primary); font-size: 17px; font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}
.category-img { object-fit: cover; background: #edf0f3; }
.category-name {
  width: 100%;
  min-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}
.goods-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.goods-card {
  overflow: hidden;
  border-radius: var(--card-radius);
}
.goods-open { width: 100%; text-align: left; color: inherit; }
.goods-img {
  height: 142px; width: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--theme-bg), #f8fafc);
  color: var(--theme-primary); font-size: 18px; font-weight: 900;
}
.goods-img img { width: 100%; height: 100%; object-fit: cover; }
.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
}
.image-fallback.image-error {
  gap: 6px;
  background: linear-gradient(135deg, #fff1f1, #f8fafc);
}
.image-fallback span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.image-fallback small {
  color: #8b949e;
  font-size: 11px;
  font-weight: 600;
}
.goods-info { padding: 10px 10px 8px; }
.goods-title {
  height: 40px; line-height: 20px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-weight: 800; font-size: 14px;
}
.goods-point {
  height: 18px; margin-top: 5px; color: #8b949e; font-size: 12px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.shop-line {
  height: 18px; margin-top: 5px; color: var(--theme-primary); font-size: 12px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.goods-action { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 10px 12px; }
.price { color: var(--theme-primary); font-weight: 900; }
.muted { color: #8b949e; font-size: 13px; }
.btn {
  height: 34px; padding: 0 12px; border-radius: var(--button-radius);
  background: var(--theme-primary); color: #fff; font-size: 13px;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.add-btn {
  min-width: 52px;
  height: 30px;
  border-radius: 15px;
  font-weight: 800;
}
.btn.secondary { background: #eef2f5; color: #34404a; }
.btn.block { width: 100%; height: 42px; border-radius: 21px; font-weight: 800; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tab {
  flex: 0 0 auto; height: 34px; padding: 0 13px; border-radius: 17px;
  background: #fff; color: #59616c; font-size: 13px;
}
.tab.active { background: var(--theme-primary); color: #fff; font-weight: 700; }
.form { display: grid; gap: 12px; }
.input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid #dde3e8; border-radius: 10px; outline: none; background: #fff;
}
.inline { display: flex; gap: 10px; }
.inline .input { flex: 1; }
.code-inline .btn {
  width: 108px;
  height: 42px;
  flex: 0 0 108px;
  border-radius: 10px;
  padding: 0 8px;
  font-weight: 800;
}
.list { display: grid; gap: 10px; }
.cart-row, .order-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px;
}
.order-row > div:first-child { min-width: 0; }
.order-row strong,
.order-row .muted {
  overflow-wrap: anywhere;
}
.order-status-pill {
  width: fit-content;
  justify-self: end;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.order-status-pill.warning { color: #b45309; background: #fff7ed; }
.order-status-pill.danger { color: #b91c1c; background: #fff1f1; }
.order-status-pill.primary { color: var(--theme-secondary); background: color-mix(in srgb, var(--theme-secondary) 10%, #fff); }
.order-status-pill.success { color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 10%, #fff); }
.order-status-pill.muted { color: #59616c; background: #f1f3f5; }
.order-status-hint {
  max-width: 120px;
  color: #8b949e;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}
.cart-shop { padding: 0; overflow: hidden; }
.cart-shop-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px; background: #f8fafb; border-bottom: 1px solid #edf0f3;
}
.cart-shop .cart-row + .cart-row { border-top: 1px solid #edf0f3; }
.cart-warning {
  margin-bottom: 10px;
  padding: 10px 12px;
  color: #b45309;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}
.cart-row.invalid {
  background: #fafafa;
  color: #8b949e;
}
.cart-status {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 8px;
  background: #fff1f1;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
}
.empty { padding: 34px 16px; text-align: center; color: #8b949e; }
.back-btn {
  height: 32px; padding: 0 12px; margin-bottom: 10px;
  border-radius: 16px; background: #fff; color: #59616c;
}
.detail-page { padding-bottom: 74px; }
.detail-img {
  height: 260px; margin: 0 -14px 12px;
  display: grid; place-items: center;
  background: #edf0f3; color: var(--theme-primary); font-size: 56px; font-weight: 800;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-main, .detail-page .panel { margin-bottom: 10px; }
.shop-panel {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.shop-panel > div:first-child { min-width: 0; }
.shop-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: 0 0 auto;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.contact-card > div:first-child { min-width: 0; }
.contact-phone {
  margin-top: 4px;
  color: #303740;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.contact-btn {
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.contact-btn:disabled {
  color: #8b949e;
  cursor: not-allowed;
  opacity: .78;
}
.service-page {
  padding-bottom: 18px;
}
.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.service-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 9px;
  background: #eef6ff;
  color: var(--theme-secondary);
  font-size: 12px;
  font-weight: 900;
}
.service-status.manual {
  background: #fff7ed;
  color: #b45309;
}
.service-status.closed {
  background: #f1f3f5;
  color: #59616c;
}
.service-context,
.service-recent,
.service-chat {
  margin-bottom: 10px;
}
.service-product {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}
.service-product-img {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f5f7;
}
.service-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-product strong,
.service-product span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-product strong {
  font-size: 14px;
  line-height: 1.4;
}
.service-product span {
  margin-top: 4px;
  color: #8b949e;
  font-size: 12px;
  white-space: nowrap;
}
.service-order-list {
  display: grid;
  gap: 8px;
}
.service-order-chip {
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fafb;
  color: #303740;
  text-align: left;
}
.service-order-chip span,
.service-order-chip em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.service-order-chip span {
  font-weight: 800;
}
.service-order-chip em {
  margin-top: 4px;
  color: #8b949e;
  font-size: 12px;
  font-style: normal;
}
.service-chat {
  display: grid;
  gap: 12px;
}
.service-messages {
  max-height: 44vh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}
.service-message {
  display: flex;
  justify-content: flex-start;
}
.service-message.mine {
  justify-content: flex-end;
}
.service-message.system {
  justify-content: center;
}
.service-bubble {
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f3f5f7;
  color: #303740;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.service-message.mine .service-bubble {
  background: var(--theme-primary);
  color: #fff;
}
.service-message.system .service-bubble {
  max-width: 92%;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
}
.service-sender {
  margin-bottom: 3px;
  color: #8b949e;
  font-size: 11px;
  font-weight: 800;
}
.service-message.mine .service-sender {
  color: rgba(255,255,255,.78);
}
.service-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-keywords button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 15px;
  background: #eef6ff;
  color: var(--theme-secondary);
  font-size: 12px;
  font-weight: 800;
}
.service-keywords button:disabled {
  background: #f1f3f5;
  color: #a0a8b2;
  cursor: not-allowed;
}
.service-keywords.inline-options {
  margin-top: 8px;
}
.service-input-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
}
.service-input-row .btn {
  height: 42px;
  border-radius: 10px;
  font-weight: 800;
}
.service-closed {
  padding: 10px;
  border-radius: 10px;
  background: #f1f3f5;
  color: #59616c;
  font-size: 13px;
  text-align: center;
}
.coupon-panel { overflow: hidden; }
.coupon-strip {
  display: grid;
  gap: 8px;
}
.coupon-ticket {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ffd9df;
  border-radius: 10px;
  background: #fff6f7;
}
.coupon-ticket strong,
.my-coupon strong {
  display: block;
  color: #df3f2d;
  font-size: 20px;
  line-height: 1.1;
}
.coupon-ticket span,
.my-coupon span {
  display: block;
  margin-top: 4px;
  color: #303740;
  font-size: 13px;
  font-weight: 800;
}
.coupon-ticket em,
.my-coupon em {
  display: block;
  margin-top: 3px;
  color: #8b949e;
  font-size: 12px;
  font-style: normal;
}
.coupon-claim {
  min-width: 58px;
  height: 32px;
  border-radius: 16px;
  background: #df3f2d;
  color: #fff;
  font-weight: 800;
}
.coupon-claim:disabled {
  background: #e6eaee;
  color: #8b949e;
  cursor: not-allowed;
}
.detail-price, .pay-amount { color: #df3f2d; font-size: 24px; font-weight: 900; }
.detail-title { margin: 8px 0; font-size: 18px; font-weight: 800; line-height: 1.35; }
.detail-meta { display: flex; justify-content: space-between; margin-top: 10px; color: #8b949e; font-size: 12px; }
.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.favorite-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: #f6f7f9;
  color: #59616c;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.favorite-btn.active {
  background: color-mix(in srgb, var(--theme-primary) 12%, #fff);
  color: var(--theme-primary);
}
.service-note-panel { display: grid; gap: 8px; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.service-tags span {
  padding: 5px 9px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-primary) 9%, #fff);
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
}
.param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.param-grid div {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: #f7f8fa;
}
.param-grid span,
.param-grid strong {
  display: block;
  overflow-wrap: anywhere;
}
.param-grid span { color: #8b949e; font-size: 12px; }
.param-grid strong { margin-top: 4px; color: #20242a; font-size: 13px; }
.block-title { margin-bottom: 10px; font-weight: 800; }
.spec-group { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; margin-top: 10px; }
.spec-name { min-height: 32px; display: flex; align-items: center; color: #59616c; font-size: 13px; font-weight: 700; }
.sku-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-item { min-height: 32px; padding: 0 12px; border-radius: 16px; background: #eef2f5; color: #34404a; }
.sku-item.active { background: color-mix(in srgb, var(--theme-primary) 10%, #fff); color: var(--theme-primary); font-weight: 700; }
.sku-item.disabled,
.sku-item:disabled {
  color: #b5bdc7;
  background: #f3f5f7;
  cursor: not-allowed;
  text-decoration: line-through;
}
.desc { color: #59616c; line-height: 1.7; font-size: 13px; }
.detail-bar {
  position: fixed; left: 50%; bottom: var(--tabbar-height); transform: translateX(-50%);
  width: var(--shell-width); height: 56px; padding: 8px 10px;
  display: grid; grid-template-columns: 72px 1fr 1fr; gap: 8px;
  background: #fff; border-top: 1px solid #e6eaee;
  z-index: 8;
}
.bar-link { color: #59616c; font-size: 13px; }
.bar-btn { border-radius: 20px; color: #fff; font-weight: 800; }
.bar-btn.add { background: #111827; }
.bar-btn.buy { background: #df3f2d; }
.checkout-btn { position: sticky; bottom: calc(var(--tabbar-height) + 6px); margin-top: 12px; }
.order-actions { display: grid; gap: 8px; justify-items: end; align-content: center; min-width: 94px; }
.order-actions .btn { width: 94px; padding: 0 8px; }
.order-actions.compact {
  grid-auto-flow: row;
  align-content: center;
}
.order-actions.compact .btn {
  width: 104px;
}
.review-done {
  width: 94px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
}
.order-express {
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f6f7fa;
  color: #34404a;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.order-detail-page { display: grid; gap: 10px; padding-bottom: 84px; }
.after-sale-page {
  display: grid;
  gap: 10px;
  padding-bottom: 84px;
}
.after-sale-list {
  gap: 10px;
}
.after-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
}
.after-sale-row > div:first-child { min-width: 0; }
.after-sale-title {
  margin-top: 6px;
  color: #303740;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.after-sale-deadline {
  margin-top: 6px;
  color: #a95f12;
  font-size: 12px;
  line-height: 1.4;
}
.after-sale-deadline.strong {
  margin-top: 4px;
  font-weight: 800;
}
.after-sale-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.after-sale-product .block-title {
  margin-bottom: 5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.textarea-input {
  height: auto;
  min-height: 92px;
  padding: 10px 13px;
  line-height: 1.5;
  resize: vertical;
}
.field-hidden { display: none !important; }
.order-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.order-status-title {
  margin-bottom: 6px;
  color: var(--brand-red);
  font-size: 22px;
  font-weight: 900;
}
.order-detail-card { display: grid; gap: 10px; }
.info-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #8b949e;
  font-size: 13px;
}
.info-row strong {
  justify-self: end;
  color: #303740;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}
.info-row strong.price { color: #df3f2d; }
.info-row a { color: var(--theme-primary); text-decoration: none; }
.review-panel { display: grid; gap: 12px; }
.review-head,
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-list { display: grid; gap: 10px; }
.review-item {
  padding: 10px 0;
  border-top: 1px solid #edf0f3;
}
.review-row strong {
  color: #303740;
  font-size: 13px;
}
.review-row span {
  color: #8b949e;
  font-size: 12px;
}
.review-stars {
  color: #ff9f1a;
  font-size: 15px;
  letter-spacing: 1px;
}
.review-stars.compact {
  flex: 0 0 auto;
  font-weight: 900;
}
.review-item p {
  margin: 6px 0 0;
  color: #59616c;
  line-height: 1.6;
  font-size: 13px;
}
.review-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px;
  border: 1px solid #e6eaee;
  border-radius: 10px;
  outline: none;
  resize: vertical;
  color: #303740;
}
.review-form textarea:focus { border-color: #ff3151; }
.review-stars.editable {
  display: flex;
  gap: 4px;
}
.review-star {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #c4cad2;
  font-size: 22px;
  line-height: 1;
}
.review-star.active { color: #ff9f1a; background: #fff7ed; }
.review-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #59616c;
  font-size: 13px;
}
.logistics-timeline {
  display: grid;
  gap: 0;
  margin-top: 4px;
}
.trace-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding-bottom: 14px;
}
.trace-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: #e6eaee;
}
.trace-item:last-child { padding-bottom: 0; }
.trace-item:last-child::before { display: none; }
.trace-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  background: #c8d0d8;
  box-shadow: 0 0 0 4px #f3f5f7;
}
.trace-item.active .trace-dot {
  background: var(--brand-red);
  box-shadow: 0 0 0 4px var(--brand-red-soft);
}
.trace-item strong { color: #303740; font-size: 14px; }
.trace-item p {
  margin: 4px 0;
  color: #59616c;
  font-size: 13px;
  line-height: 1.5;
}
.trace-item span { color: #8b949e; font-size: 12px; }
.alipay { margin-top: 36px; display: grid; gap: 12px; text-align: center; }
.alipay-logo { color: #1677ff; font-size: 28px; font-weight: 900; }
.pay-order { color: #59616c; font-size: 13px; }
.payment-page { display: grid; gap: 10px; padding-bottom: 80px; }
.payment-summary {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
}
.payment-summary .muted:last-child { grid-column: 1 / -1; }
.payment-methods { display: grid; gap: 10px; }
.pay-choice {
  min-height: 64px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; text-align: left;
}
.pay-choice strong { display: block; color: #20242a; font-size: 16px; }
.pay-choice em { display: block; margin-top: 4px; color: #8b949e; font-style: normal; font-size: 12px; }
.pay-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 900;
}
.pay-choice.wechat .pay-icon { background: #16a34a; }
.pay-choice.alipay .pay-icon { background: #1677ff; }
.pay-result { margin-top: 10px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.pay-title { color: #20242a; font-size: 20px; font-weight: 900; }
.qr-img {
  width: 220px; height: 220px; padding: 10px; border: 1px solid #edf0f3; border-radius: 8px; background: #fff;
}
.pay-actions { width: 100%; display: grid; gap: 8px; }
.checkout-page { padding-bottom: calc(118px + var(--safe-bottom)); }
body.checkout-active #app { padding-bottom: 0; }
body.checkout-active .view { padding-bottom: 0; }
body.checkout-active .tabbar,
body.checkout-active .site-footer {
  display: none;
}
.checkout-tabs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  height: 54px; margin: -2px -14px 10px; overflow: hidden;
  background: #eef0f2; border-radius: 0 0 18px 18px;
}
.checkout-tab {
  background: #f7f8fa; color: #59616c; font-size: 18px; font-weight: 800;
}
.checkout-tab.active { background: #fff; color: #20242a; border-radius: 0 0 22px 0; }
.address-panel, .protect-row, .pay-method {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.address-panel {
  width: 100%; text-align: left; background: #fff; color: inherit;
}
.address-main { font-size: 18px; line-height: 1.35; font-weight: 800; }
.arrow { color: #303740; font-size: 34px; line-height: 1; }
.address-picker { display: grid; gap: 12px; }
.address-list { display: grid; gap: 8px; }
.address-option {
  min-height: 72px; padding: 10px 12px; border-radius: 8px;
  display: grid; gap: 4px; text-align: left;
  background: #f6f7fa; border: 1px solid transparent; color: #303740;
}
.address-option.active { border-color: #ff3151; background: #fff4f6; }
.address-option strong { font-size: 15px; }
.address-option span { color: #59616c; font-size: 13px; line-height: 1.35; }
.address-option em { width: fit-content; padding: 2px 6px; border-radius: 6px; background: #ff3151; color: #fff; font-style: normal; font-size: 12px; }
.address-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.address-form input {
  min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #e6eaee; border-radius: 8px;
  outline: none; background: #fff; color: #303740;
}
.address-form input:focus { border-color: #ff3151; }
.address-form .btn { grid-column: 1 / -1; }
.empty.mini { padding: 12px; border-radius: 8px; background: #f6f7fa; color: #59616c; font-size: 13px; }
.checkout-goods, .checkout-page .panel { margin-bottom: 10px; }
.checkout-product {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center;
}
.checkout-img {
  width: 96px; height: 96px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: #edf0f3; color: var(--theme-primary); font-weight: 900;
}
.checkout-img img { width: 100%; height: 100%; object-fit: cover; }
.qty-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3;
}
.qty-stepper {
  display: grid; grid-template-columns: 32px 42px 32px; align-items: center;
  height: 32px; border-radius: 16px; background: #f5f6f8; text-align: center;
}
.qty-stepper button { height: 32px; color: #20242a; font-size: 20px; font-weight: 800; }
.service-title {
  display: flex; justify-content: space-between; align-items: center;
  margin: 16px 0 10px; font-size: 18px; font-weight: 800;
}
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-chip {
  min-height: 38px; display: grid; place-items: center;
  border-radius: 8px; background: #f6f7fa; color: #303740; font-size: 13px;
}
.pay-method {
  min-height: 48px; padding-bottom: 10px; border-bottom: 1px solid #edf0f3;
  font-size: 18px; font-weight: 800;
}
.coupon-select-row {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f3;
  color: #303740;
  font-weight: 800;
}
.coupon-select-row strong {
  color: #df3f2d;
  font-size: 13px;
}
.checkout-coupon-list {
  display: grid;
  gap: 8px;
  padding: 8px 0 2px;
  max-height: 178px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.checkout-coupon {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}
.checkout-coupon.active {
  border-color: #df3f2d;
  background: #fff6f7;
}
.checkout-coupon.active::after {
  content: "已选";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #ff3151;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.checkout-coupon strong {
  grid-row: span 2;
  color: #df3f2d;
  font-size: 16px;
}
.checkout-coupon span {
  color: #303740;
  font-size: 13px;
  font-weight: 800;
}
.checkout-coupon em {
  color: #8b949e;
  font-size: 12px;
  font-style: normal;
}
.check-dot {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: #ff3151; color: #fff; font-weight: 900;
}
.checkout-wallet { margin: 10px 0 0; padding: 0; box-shadow: none; }
.checkout-adjustments {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 28, 35, 0.08);
  display: grid;
  gap: 8px;
}
.adjust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #606873;
  font-size: 13px;
}
.adjust-row strong {
  color: #303740;
  font-weight: 800;
}
.adjust-row.save strong {
  color: var(--brand);
}
.adjust-note {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.checkout-options { display: grid; gap: 16px; }
.checkout-options > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.checkout-options strong { justify-self: end; font-weight: 800; color: #303740; }
.plain-input { width: 100%; border: 0; outline: none; background: transparent; color: #303740; text-align: right; }
.protect-row { min-height: 58px; font-weight: 800; }
.checkout-bar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: var(--shell-width); min-height: calc(86px + var(--safe-bottom)); padding: 12px 14px calc(16px + var(--safe-bottom));
  display: grid; grid-template-columns: 1fr 1.8fr; gap: 12px; align-items: center;
  background: #fff; border-top: 1px solid #e6eaee; z-index: 15;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, .10);
}
.total-price { font-size: 24px; }
.pay-now-btn {
  height: 52px; border-radius: 12px; color: #fff; font-size: 18px; font-weight: 900;
  background: linear-gradient(90deg, #ff3151, #f40f2f);
}
.register-tip { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--theme-primary) 10%, #fff); color: var(--theme-primary); font-size: 13px; }
.mine-page { display: grid; gap: 12px; margin: -8px -2px 0; }
.mine-topbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 0 4px 0 10px;
}
.mine-topbar::before {
  content: "我的";
  color: #1f2933;
  font-size: 22px;
  font-weight: 900;
}
.mine-topbar button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 52px;
  color: #303740;
}
.mine-topbar span { font-size: 22px; line-height: 1; }
.mine-topbar em { font-size: 12px; font-style: normal; font-weight: 700; }
.mine-profile-card {
  display: grid;
  grid-template-columns: 68px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border-radius: 14px;
  background:
    linear-gradient(105deg, #fff, rgba(255,255,255,.82)),
    linear-gradient(135deg, #ffecec, #e9f8f3);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  color: #1f2933;
  text-align: left;
}
.mine-profile-card b { color: #8b949e; font-size: 26px; }
.mine-profile-main { display: grid; gap: 6px; min-width: 0; }
.mine-profile-main strong { font-size: 20px; line-height: 1.2; }
.mine-profile-main span {
  color: #6b7280;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.user-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--theme-primary) 10%, #fff); color: var(--theme-primary);
  font-size: 22px; font-weight: 900; overflow: hidden;
}
.user-avatar.large { width: 64px; height: 64px; font-size: 26px; }
.user-avatar.hero-avatar { width: 68px; height: 68px; font-size: 28px; box-shadow: 0 8px 18px rgba(15, 143, 107, .18); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-avatar-btn {
  min-width: 64px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  background: #fff;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15, 143, 107, .13);
}
.hidden-file { display: none; }
.mine-wallet-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 13px 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf0f2;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}
.mine-wallet-card button {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  padding: 4px;
  color: #303740;
}
.mine-wallet-card strong {
  max-width: 100%;
  color: #df3f2d;
  font-size: 16px;
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mine-wallet-card span { color: #6b7280; font-size: 12px; font-weight: 700; }
.mine-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mine-card-head strong { color: #1f2933; font-size: 16px; }
.mine-card-head button { color: #8b949e; font-size: 13px; font-weight: 800; }
.mine-order-card,
.mine-menu-card,
.mine-card {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}
.mine-order-card { display: grid; gap: 14px; }
.mine-order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mine-order-grid button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 70px;
  color: #303740;
}
.mine-order-grid span {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f6f7f9;
  color: #1f2933;
  font-size: 20px;
}
.mine-order-grid i {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
}
.mine-order-grid em { font-size: 12px; font-style: normal; font-weight: 800; }
.mine-menu-card { padding: 0; overflow: hidden; }
.mine-row-button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #303740;
  text-align: left;
  border-bottom: 1px solid #edf0f2;
}
.mine-row-button:last-child { border-bottom: 0; }
.mine-row-button > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f7f5;
  color: var(--theme-primary);
  font-size: 14px;
  font-weight: 900;
}
.mine-row-button div { display: grid; gap: 3px; min-width: 0; }
.mine-row-button strong { color: #1f2933; font-size: 15px; }
.mine-row-button em {
  color: #8b949e;
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mine-row-button b { color: #c0c5cc; font-size: 22px; }
.mine-logout { margin-top: 2px; }
.mine-sub-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 46px;
}
.mine-sub-head strong { justify-self: center; color: #1f2933; font-size: 18px; }
.mine-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  color: #303740;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .06);
}
.mine-card { display: grid; gap: 12px; }
.mine-profile-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compact-form { display: grid; gap: 10px; }
.field-label { color: #5d6670; font-size: 12px; font-weight: 800; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mine-actions { margin-top: 0; }
.quick-action {
  height: 54px; border-radius: 10px; background: #f5f7f9;
  color: #303740; font-weight: 700;
}
.invite-card,
.invite-detail-card {
  display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: #f8fafb;
}
.invite-row { display: flex; justify-content: space-between; align-items: center; }
.invite-row strong { color: var(--theme-primary); letter-spacing: 1px; }
.invite-bind { display: grid; gap: 10px; }
.invite-code-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #9bd8c8;
  text-align: center;
}
.invite-code-box span { color: #7a7f87; font-size: 12px; font-weight: 700; }
.invite-code-box strong { color: var(--theme-primary); font-size: 24px; letter-spacing: 2px; }
.password-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.password-mode button {
  height: 38px;
  border-radius: 9px;
  background: #f5f7f9;
  color: #5d6670;
  font-weight: 800;
}
.password-mode button.active { background: color-mix(in srgb, var(--theme-primary) 10%, #fff); color: var(--theme-primary); }
.safe-tip {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f5f7f9;
  color: #5d6670;
  font-size: 12px;
  line-height: 1.45;
}
.safe-tip.warn { background: #fff5e7; color: #a95f12; }
.mine-address-list { display: grid; gap: 10px; }
.address-option.readonly {
  width: 100%;
  display: grid;
  gap: 5px;
  text-align: left;
  cursor: default;
}
.address-option.readonly strong { color: #1f2933; }
.address-option.readonly span { color: #5d6670; font-size: 13px; line-height: 1.45; }
.my-coupon {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #ffd9df;
  background: #fff;
}
.my-coupon > div:last-child {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}
.my-coupon b {
  color: var(--theme-primary);
  font-size: 13px;
}
.my-coupon small {
  color: #8b949e;
  font-size: 11px;
  line-height: 1.35;
}
.my-coupon.used,
.my-coupon.expired {
  border-color: #e6eaee;
  background: #f8fafb;
}
.my-coupon.used strong,
.my-coupon.expired strong,
.my-coupon.used b,
.my-coupon.expired b {
  color: #8b949e;
}
.favorite-row,
.history-row,
.notice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.history-row {
  grid-template-columns: 58px minmax(0, 1fr);
  width: 100%;
  text-align: left;
  color: inherit;
}
.favorite-main,
.notice-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  color: inherit;
}
.notice-main {
  grid-template-columns: 1fr;
}
.favorite-img {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f5;
}
.favorite-img img,
.favorite-img .image-fallback {
  width: 100%;
  height: 100%;
}
.favorite-row strong,
.history-row strong,
.notice-row strong {
  display: block;
  overflow: hidden;
  color: #20242a;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.favorite-row em,
.history-row em,
.notice-row em {
  display: block;
  margin-top: 4px;
  color: #8b949e;
  font-size: 12px;
  font-style: normal;
}
.favorite-row small {
  display: inline-block;
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}
.notice-row {
  border-left: 3px solid transparent;
}
.notice-row.unread {
  border-left-color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 5%, #fff);
}
.notice-row p {
  margin: 5px 0 0;
  color: #59616c;
  font-size: 13px;
  line-height: 1.45;
}
.wallet-toggle {
  display: flex; gap: 8px; align-items: center;
  padding: 12px; margin-bottom: 10px; color: #303740; font-size: 13px;
}
.wallet-toggle input { width: 18px; height: 18px; accent-color: var(--theme-primary); }
.password-form { margin: 16px 0; }
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: var(--shell-width); height: var(--tabbar-height);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px 6px calc(8px + var(--safe-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid #e6eaee;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
  z-index: 9;
}
.tabbar-item {
  color: #7a7f87; font-size: 12px; display: grid; place-items: center; gap: 2px;
  border-radius: 14px;
}
.tab-icon { font-size: 18px; line-height: 1; }
.tabbar-item.active { background: var(--theme-bg); color: var(--theme-primary); font-weight: 800; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-height) + 12px); transform: translateX(-50%);
  min-width: 180px; max-width: 320px; padding: 10px 16px; border-radius: 8px;
  background: rgba(25, 32, 38, .92); color: #fff; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20;
}
.toast.show { opacity: 1; }
@media (max-width: 430px) {
  :root { --shell-width: 100vw; }
  .phone-shell { width: 100vw; box-shadow: none; }
}

.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-kicker {
  max-width: 286px;
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand-name { font-size: 23px; font-weight: 900; line-height: 1.1; }
.brand-subname { color: #4b5563; font-size: 13px; font-weight: 700; line-height: 1.2; }

.header-btn,
.section-more,
.shop-line,
.invite-row strong,
.tabbar-item.active {
  color: var(--theme-primary);
}

.btn,
.tab.active {
  background: var(--theme-primary);
}

.banner {
  background:
    linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

.category-icon,
.sku-item.active,
.register-tip,
.user-avatar {
  color: var(--theme-primary);
}

.goods-img,
.detail-img,
.checkout-img {
  color: var(--theme-primary);
}

.wallet-toggle input {
  accent-color: var(--theme-primary);
}

.mine-topbar button span,
.mine-topbar button em,
.mine-card-head button,
.mine-back {
  color: var(--theme-primary);
}

.mine-profile-card {
  border-radius: var(--card-radius);
  background:
    linear-gradient(105deg, #fff, color-mix(in srgb, var(--theme-bg) 60%, #fff)),
    linear-gradient(135deg,
      color-mix(in srgb, var(--theme-primary) 16%, #fff),
      color-mix(in srgb, var(--theme-secondary) 14%, #fff));
  box-shadow: 0 14px 32px color-mix(in srgb, var(--theme-primary) 11%, transparent);
}

.mine-profile-card b {
  color: color-mix(in srgb, var(--theme-primary) 52%, #8b949e);
}

.user-avatar {
  background: color-mix(in srgb, var(--theme-primary) 11%, #fff);
  color: var(--theme-primary);
}

.user-avatar.hero-avatar {
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-primary) 18%, transparent);
}

.mine-avatar-btn {
  color: var(--theme-primary);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--theme-primary) 14%, transparent);
}

.mine-wallet-card,
.mine-order-card,
.mine-menu-card,
.mine-card {
  border-radius: var(--card-radius);
}

.mine-wallet-card strong,
.invite-row strong,
.invite-code-box strong {
  color: var(--theme-primary);
}

.mine-order-grid span,
.mine-row-button > span,
.password-mode button.active,
.register-tip {
  background: color-mix(in srgb, var(--theme-primary) 10%, #fff);
  color: var(--theme-primary);
}

.mine-order-grid i {
  background: var(--theme-secondary);
}

.mine-row-button b {
  color: color-mix(in srgb, var(--theme-primary) 38%, #c0c5cc);
}

.invite-code-box {
  border-color: color-mix(in srgb, var(--theme-primary) 42%, #fff);
}

.quick-action {
  background: color-mix(in srgb, var(--theme-primary) 7%, #f5f7f9);
}

.coupon-ticket strong,
.coupon-ticket em,
.my-coupon strong,
.my-coupon b,
.checkout-coupon strong,
.checkout-coupon em,
.coupon-select-row strong,
.detail-price,
.pay-amount,
.info-row strong.price {
  color: var(--theme-primary);
}

.coupon-claim,
.bar-btn.buy,
.pay-now-btn {
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
}

.sku-item.active,
.checkout-coupon.active {
  border-color: var(--theme-primary);
  background: color-mix(in srgb, var(--theme-primary) 9%, #fff);
  color: var(--theme-primary);
}

.image-fallback {
  color: var(--theme-primary);
}

body.card-plain .goods-card,
body.card-plain .panel,
body.card-plain .card {
  box-shadow: none;
  border: 1px solid #edf0f3;
}

body.card-large .goods-grid {
  grid-template-columns: 1fr;
}

body.card-large .goods-img {
  height: 190px;
}

body.tpl-digital .banner-title,
body.tpl-premium .banner-title {
  letter-spacing: 0;
}

body.tpl-fresh .phone-shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-bg) 88%, #fff) 0, #f6f8f3 260px, #f7f8fa 100%);
}

body.tpl-fresh .banner {
  min-height: 176px;
}

body.tpl-fresh .home-quick-nav span,
body.tpl-fresh .category-icon {
  border-radius: 18px;
}

body.tpl-brand {
  background: linear-gradient(180deg, #f5f6f8 0%, #e7eaee 100%);
}

body.tpl-brand .phone-shell {
  background: linear-gradient(180deg, #ffffff 0, #f5f6f8 330px, #f7f8fa 100%);
}

body.tpl-brand .app-header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(17, 24, 39, .06);
}

body.tpl-brand .search {
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: none;
}

body.tpl-brand .banner {
  min-height: 190px;
  padding: 24px 20px;
  border-radius: calc(var(--card-radius) + 2px);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .94), rgba(17, 24, 39, .72)),
    linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  box-shadow: 0 20px 44px rgba(17, 24, 39, .18);
}

body.tpl-brand .banner::before {
  width: 210px;
  height: 210px;
  right: -92px;
  top: -86px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
}

body.tpl-brand .banner::after {
  right: 18px;
  bottom: 18px;
  width: 92px;
  height: 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, .46);
}

body.tpl-brand .banner-tag {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
}

body.tpl-brand .banner-title {
  font-size: 26px;
  letter-spacing: 0;
}

body.tpl-brand .home-quick-nav,
body.tpl-brand .category-grid,
body.tpl-brand .goods-card,
body.tpl-brand .home-coupon-strip button {
  border: 1px solid rgba(17, 24, 39, .07);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
}

body.tpl-brand .home-quick-nav span {
  border-radius: 50%;
  background: #111827;
  color: #fff;
}

body.tpl-festival {
  background: linear-gradient(180deg, #fff2e7 0%, #ffe5e5 100%);
}

body.tpl-festival .phone-shell {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, .34), transparent 180px),
    linear-gradient(180deg, #fff4e7 0, #fff7ed 260px, #fff9f2 100%);
}

body.tpl-festival .app-header {
  background: rgba(255, 246, 232, .88);
}

body.tpl-festival .banner {
  min-height: 180px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .30), transparent 88px),
    linear-gradient(135deg, #dc2626 0%, var(--theme-primary) 52%, #f97316 100%);
  box-shadow: 0 18px 40px rgba(220, 38, 38, .20);
}

body.tpl-festival .banner-tag,
body.tpl-festival .banner-cta {
  border-radius: 999px;
}

body.tpl-festival .home-coupon-strip button {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #fff, #fff0d5);
}

body.tpl-festival .home-coupon-strip button::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(249, 115, 22, .14);
}

body.tpl-festival .section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  margin-right: 7px;
  border-radius: 4px;
  background: var(--theme-primary);
  vertical-align: -2px;
}

body.tpl-heritage {
  background: linear-gradient(180deg, #efe5d2 0%, #d9e3d4 100%);
}

body.tpl-heritage .phone-shell {
  background:
    radial-gradient(circle at 10% 2%, rgba(151, 66, 45, .10), transparent 130px),
    linear-gradient(180deg, #fbf5e8 0, #f7efe0 310px, #f6f3ea 100%);
}

body.tpl-heritage .app-header {
  background: rgba(251, 245, 232, .92);
}

body.tpl-heritage .banner {
  min-height: 184px;
  color: #4b261e;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 246, 230, .72)),
    linear-gradient(135deg, #8b1e1e, #2f6f5f);
  border: 1px solid rgba(139, 30, 30, .18);
  box-shadow: 0 16px 38px rgba(104, 72, 40, .14);
}

body.tpl-heritage .banner.has-image .banner-copy,
body.tpl-heritage .banner.has-image .banner-title,
body.tpl-heritage .banner.has-image .banner-subtitle {
  color: #fff;
}

body.tpl-heritage .banner-tag {
  background: rgba(139, 30, 30, .10);
  color: #8b1e1e;
}

body.tpl-heritage .banner-subtitle {
  color: rgba(75, 38, 30, .72);
}

body.tpl-heritage .banner-cta {
  background: #8b1e1e;
  color: #fff;
}

body.tpl-heritage .home-quick-nav span,
body.tpl-heritage .category-icon {
  border-radius: 50% 50% 44% 44%;
  background: #fff7ea;
  border: 1px solid rgba(139, 30, 30, .15);
}

body.tpl-premium {
  background: linear-gradient(180deg, #111827 0%, #3b3f46 100%);
}

body.tpl-premium .phone-shell {
  background:
    linear-gradient(180deg, #151922 0, #202631 250px, #f5f2ec 251px, #f6f7f9 100%);
}

body.tpl-premium .app-header {
  background: rgba(21, 25, 34, .92);
  color: #fff;
}

body.tpl-premium .hello,
body.tpl-premium .brand-subname {
  color: rgba(255, 255, 255, .66);
}

body.tpl-premium .banner {
  background:
    radial-gradient(circle at top right, rgba(214, 180, 106, .28), transparent 126px),
    linear-gradient(135deg, #111827 0%, #2d3340 56%, #6f5521 100%);
  box-shadow: 0 20px 42px rgba(17, 24, 39, .28);
}

body.tpl-premium .banner-tag {
  background: rgba(214, 180, 106, .16);
  color: #f8e7bd;
}

body.tpl-premium .banner-cta,
body.tpl-premium .home-quick-nav span {
  background: #d6b46a;
  color: #111827;
}

body.tpl-premium .section-title {
  color: #20242a;
}

body.tpl-premium .goods-card {
  border: 1px solid rgba(214, 180, 106, .18);
}

body.tpl-digital {
  background: linear-gradient(180deg, #eaf4ff 0%, #dbeafe 100%);
}

body.tpl-digital .phone-shell {
  background:
    linear-gradient(180deg, #eef7ff 0, #f8fbff 260px, #f5f7fb 100%);
}

body.tpl-digital .banner {
  min-height: 178px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, .94), rgba(54, 207, 201, .78)),
    linear-gradient(45deg, rgba(255,255,255,.16) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.16) 75%, transparent 75%);
  background-size: auto, 28px 28px;
}

body.tpl-digital .home-quick-nav span,
body.tpl-digital .category-icon {
  border-radius: 10px;
}

body.tpl-digital .goods-card,
body.tpl-digital .category-grid,
body.tpl-digital .home-quick-nav {
  border: 1px solid rgba(22, 119, 255, .08);
}

body.tpl-simple {
  background: #f4f6f8;
}

body.tpl-simple .phone-shell {
  background: #fff;
}

body.tpl-simple .app-header {
  background: #fff;
  border-bottom: 1px solid #edf0f3;
}

body.tpl-simple .banner {
  color: #1f2937;
  background: #f7f8fa;
  border: 1px solid #edf0f3;
  box-shadow: none;
}

body.tpl-simple .banner::before,
body.tpl-simple .banner::after {
  display: none;
}

body.tpl-simple .banner-tag {
  background: #fff;
  color: var(--theme-primary);
}

body.tpl-simple .banner-subtitle {
  color: #6b7280;
}

body.tpl-simple .banner-cta {
  background: var(--theme-primary);
  color: #fff;
}

body.tpl-simple .card,
body.tpl-simple .panel,
body.tpl-simple .goods-card,
body.tpl-simple .home-coupon-strip button {
  box-shadow: none;
  border: 1px solid #edf0f3;
}

body.tpl-local {
  background: linear-gradient(180deg, #ecfdf5 0%, #e0f2fe 100%);
}

body.tpl-local .phone-shell {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, .16), transparent 170px),
    linear-gradient(180deg, #f0fdf4 0, #f8fbff 300px, #f7f8fa 100%);
}

body.tpl-local .banner {
  min-height: 172px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .20), transparent),
    linear-gradient(135deg, var(--theme-primary), #0ea5e9);
}

body.tpl-local .home-quick-nav {
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

body.tpl-local .home-quick-nav button {
  min-height: 54px;
  grid-template-columns: 38px 1fr;
  justify-items: start;
  align-items: center;
  padding: 8px;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--theme-primary) 7%, #fff);
}

body.tpl-local .home-quick-nav span {
  border-radius: 12px;
}

/* Flagship storefront v2 */
.app-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 10px;
}

.store-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-primary) 12%, #fff);
  color: var(--theme-primary);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 8px 18px rgba(15, 23, 42, .08);
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.store-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.brand-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-subname {
  font-size: 12px;
}

.header-btn {
  min-width: 52px;
  height: 32px;
  border-radius: 17px;
}

.view {
  padding: 0 14px 18px;
}

.search {
  height: 38px;
  margin: 4px 0 8px;
  border-radius: 19px;
}

.store-delivery-row {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px;
  padding: 0 10px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--theme-primary) 8%, #fff);
  color: #4b5563;
  font-size: 12px;
  text-align: left;
}

.store-delivery-row strong {
  color: var(--theme-primary);
  font-size: 12px;
}

.store-delivery-row em {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
  font-weight: 700;
}

.store-delivery-row b {
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
}

.delivery-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.banner {
  min-height: 178px;
  padding: 19px;
  border-radius: 16px;
}

.banner.has-image .banner-img {
  inset: 0 0 0 auto;
  width: 58%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
}

.banner.has-image::after {
  background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,0) 100%);
}

.banner-copy {
  max-width: 58%;
}

.banner-title {
  font-size: 25px;
  line-height: 1.12;
}

.banner-subtitle {
  font-weight: 700;
}

.home-quick-nav {
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
}

.home-quick-nav span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  box-shadow: inset 0 -7px 14px rgba(255, 255, 255, .42), 0 8px 16px rgba(15, 23, 42, .07);
}

.home-quick-nav button:nth-child(1) span,
.category-card:nth-child(1) .category-icon { background: linear-gradient(145deg, #eaf8d6, #7ccf4a); color: #2f7d1d; }
.home-quick-nav button:nth-child(2) span,
.category-card:nth-child(2) .category-icon { background: linear-gradient(145deg, #fff1c5, #ff9f1c); color: #9a4a00; }
.home-quick-nav button:nth-child(3) span,
.category-card:nth-child(3) .category-icon { background: linear-gradient(145deg, #ffe3e3, #ff6b6b); color: #b91c1c; }
.home-quick-nav button:nth-child(4) span,
.category-card:nth-child(4) .category-icon { background: linear-gradient(145deg, #dff7ff, #38bdf8); color: #075985; }
.category-card:nth-child(5) .category-icon { background: linear-gradient(145deg, #fff7d6, #facc15); color: #8a5a00; }
.category-card:nth-child(6) .category-icon { background: linear-gradient(145deg, #e7f6ff, #60a5fa); color: #1d4ed8; }
.category-card:nth-child(7) .category-icon { background: linear-gradient(145deg, #ffe4ec, #fb7185); color: #be123c; }
.category-card:nth-child(8) .category-icon { background: linear-gradient(145deg, #edfdf6, #34d399); color: #047857; }

.home-coupon-strip {
  grid-template-columns: 1.12fr repeat(3, .76fr);
  gap: 6px;
}

.home-coupon-strip button {
  min-height: 74px;
  padding: 10px 8px;
  position: relative;
  overflow: hidden;
}

.coupon-member {
  background: linear-gradient(135deg, #1d2430, #3b2d16) !important;
  color: #f8e7bd;
}

.coupon-member span,
.coupon-member em {
  display: block;
  color: rgba(248, 231, 189, .78);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.coupon-member strong {
  margin-top: 5px;
  color: #f8e7bd;
  font-size: 15px;
}

.coupon-mini-ticket {
  border: 1px dashed color-mix(in srgb, var(--theme-primary) 46%, #fff) !important;
  background: #fffdf8 !important;
  text-align: center !important;
}

.coupon-mini-ticket::before,
.coupon-mini-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-bg);
}

.coupon-mini-ticket::before { left: -5px; }
.coupon-mini-ticket::after { right: -5px; }

.coupon-mini-ticket strong {
  color: var(--theme-primary);
  font-size: 20px;
  line-height: 1.1;
}

.coupon-mini-ticket span {
  margin-top: 5px;
  font-size: 10px;
}

.coupon-mini-ticket em {
  display: block;
  margin-top: 4px;
  color: #8b949e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.coupon-member:disabled,
.coupon-mini-ticket:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.home-coupon-strip.is-empty {
  grid-template-columns: 1fr;
}

.coupon-empty-card {
  width: 100%;
  text-align: center !important;
  background: #fff !important;
  border-style: dashed !important;
}

.coupon-empty-card span {
  color: #8b949e;
}

.category-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 2px;
  padding: 13px 6px;
  border-radius: 16px;
}

.category-card {
  min-height: 72px;
  gap: 5px;
}

.category-icon,
.category-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.category-icon {
  font-size: 15px;
}

.category-empty {
  grid-column: 1 / -1;
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #8b949e;
  font-size: 13px;
  font-weight: 800;
}

.section {
  margin-top: 17px;
}

.section-title {
  font-size: 18px;
}

.home-goods-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 94px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.home-goods-grid::-webkit-scrollbar {
  display: none;
}

.home-good-card {
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.home-good-img {
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--theme-bg), #fff);
  color: var(--theme-primary);
  font-size: 16px;
  font-weight: 900;
}

.home-good-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-good-title,
.home-good-point {
  padding: 0 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-good-title {
  margin-top: 7px;
  color: #20242a;
  font-size: 12px;
  font-weight: 900;
}

.home-good-point {
  margin-top: 3px;
  color: #8b949e;
  font-size: 10px;
}

.home-good-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 7px 8px;
}

.home-good-action span {
  min-width: 0;
  overflow: hidden;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-good-action button {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 18px;
}

body.tpl-brand,
body.tpl-premium {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--theme-primary) 14%, transparent), transparent 28%),
    linear-gradient(180deg, #f3f5f8 0%, #dfe5ea 100%);
}

body.tpl-brand .phone-shell,
body.tpl-premium .phone-shell {
  background: linear-gradient(180deg, #ffffff 0, #f5f6f8 330px, #f7f8fa 100%);
}

body.tpl-brand .app-header,
body.tpl-premium .app-header {
  background: rgba(255, 255, 255, .92);
  color: #20242a;
  border-bottom: 1px solid rgba(17, 24, 39, .06);
}

body.tpl-brand .store-logo,
body.tpl-premium .store-logo {
  background: linear-gradient(145deg, #f7dfaa, #9d7130);
  color: #111827;
}

body.tpl-brand .brand-kicker,
body.tpl-premium .brand-kicker {
  color: #d6b46a;
}

body.tpl-brand .brand-subname,
body.tpl-brand .hello,
body.tpl-premium .brand-subname,
body.tpl-premium .hello {
  color: #6b7280;
}

body.tpl-brand .store-badge,
body.tpl-premium .store-badge {
  background: rgba(214, 180, 106, .18);
  color: #f8e7bd;
  border: 1px solid rgba(214, 180, 106, .34);
}

body.tpl-brand .header-btn,
body.tpl-premium .header-btn {
  background: transparent;
  border: 1px solid rgba(214, 180, 106, .48);
  color: #f8e7bd;
  box-shadow: none;
}

body.tpl-brand .search,
body.tpl-premium .search {
  background: rgba(255,255,255,.12);
  border-color: rgba(214, 180, 106, .20);
  color: rgba(255,255,255,.72);
  box-shadow: none;
}

body.tpl-brand .search input,
body.tpl-premium .search input {
  color: #fff;
}

body.tpl-brand .store-delivery-row,
body.tpl-premium .store-delivery-row {
  background: rgba(214, 180, 106, .12);
  color: rgba(255,255,255,.76);
}

body.tpl-brand .store-delivery-row strong,
body.tpl-premium .store-delivery-row strong {
  color: #f8e7bd;
}

body.tpl-brand .delivery-icon,
body.tpl-premium .delivery-icon {
  background: #d6b46a;
  color: #111827;
}

body.tpl-brand .banner,
body.tpl-premium .banner {
  min-height: 188px;
  background:
    radial-gradient(circle at 90% 8%, rgba(214, 180, 106, .30), transparent 104px),
    linear-gradient(135deg, #111827 0%, #171717 52%, #5d451d 100%);
  border: 1px solid rgba(214, 180, 106, .22);
  box-shadow: 0 22px 46px rgba(0,0,0,.34);
}

body.tpl-brand .banner-title,
body.tpl-premium .banner-title {
  color: #f8e7bd;
  font-size: 26px;
}

body.tpl-brand .banner-tag,
body.tpl-premium .banner-tag {
  color: #f8e7bd;
  background: rgba(214, 180, 106, .14);
}

body.tpl-brand .banner-cta,
body.tpl-premium .banner-cta {
  background: linear-gradient(135deg, #f8e7bd, #bd8d3a);
  color: #111827;
}

body.tpl-brand .home-quick-nav,
body.tpl-premium .home-quick-nav {
  background: #111318;
  border-color: rgba(214, 180, 106, .16);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

body.tpl-brand .home-quick-nav button,
body.tpl-premium .home-quick-nav button {
  color: #f8e7bd;
}

body.tpl-brand .home-quick-nav span,
body.tpl-premium .home-quick-nav span {
  background: linear-gradient(145deg, #f7dfaa, #9d7130);
  color: #141414;
  border-radius: 12px;
}

body.tpl-brand .home-quick-nav em,
body.tpl-premium .home-quick-nav em {
  color: #e8d7ad;
}

body.tpl-brand .coupon-member,
body.tpl-premium .coupon-member {
  background: linear-gradient(135deg, #16191f, #090b10) !important;
  border: 1px solid rgba(214,180,106,.24);
}

body.tpl-brand .coupon-mini-ticket,
body.tpl-premium .coupon-mini-ticket {
  background: linear-gradient(135deg, #f8e7bd, #fff8e8) !important;
  border-color: rgba(141, 92, 22, .36) !important;
}

body.tpl-brand .tabbar,
body.tpl-premium .tabbar {
  background: rgba(10, 12, 16, .96);
  border-top-color: rgba(214, 180, 106, .18);
}

body.tpl-brand .tabbar-item,
body.tpl-premium .tabbar-item {
  color: rgba(248, 231, 189, .68);
}

body.tpl-brand .tabbar-item.active,
body.tpl-premium .tabbar-item.active {
  background: rgba(214, 180, 106, .16);
  color: #f8e7bd;
}

body.tpl-festival .phone-shell {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, .34), transparent 180px),
    linear-gradient(180deg, #fff4e7 0, #fff7ed 260px, #fff9f2 100%);
}

body.tpl-festival .app-header {
  background: rgba(255, 246, 232, .88);
  color: #20242a;
}

body.tpl-festival .brand-kicker,
body.tpl-festival .brand-subname,
body.tpl-festival .hello {
  color: #6b7280;
}

body.tpl-festival .store-logo {
  background: #fff;
  color: #e60012;
}

body.tpl-festival .store-badge {
  background: #ffcf33;
  color: #9f1d00;
}

body.tpl-festival .header-btn {
  background: #fff;
  color: var(--theme-primary);
  border: 0;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

body.tpl-festival .search,
body.tpl-festival .store-delivery-row {
  background: #fff;
  color: #4b5563;
  border: 0;
}

body.tpl-festival .store-delivery-row strong,
body.tpl-festival .store-delivery-row em {
  color: var(--theme-primary);
}

body.tpl-festival .search input {
  color: #20242a;
}

body.tpl-festival .delivery-icon {
  background: #fff;
  color: #e60012;
}

body.tpl-festival .banner {
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .28), transparent 88px),
    linear-gradient(135deg, #ff2a16 0%, #e60012 52%, #ff8a00 100%);
  box-shadow: 0 18px 40px rgba(230, 0, 18, .28);
}

body.tpl-festival .home-quick-nav,
body.tpl-festival .category-grid {
  background: #fffaf4;
}

body.tpl-festival .coupon-member {
  background: linear-gradient(135deg, #d91512, #ff6a00) !important;
  color: #fff;
}

body.tpl-festival .coupon-member span,
body.tpl-festival .coupon-member em,
body.tpl-festival .coupon-member strong {
  color: #fff;
}

body.tpl-festival .coupon-mini-ticket {
  border-color: #ff9d2d !important;
  background: #fff !important;
}

body.tpl-heritage .phone-shell {
  background:
    radial-gradient(circle at 10% 2%, rgba(151, 66, 45, .10), transparent 130px),
    linear-gradient(180deg, #fbf0df 0, #fff8ea 420px, #f6f3ea 100%);
}

body.tpl-heritage .store-logo {
  background: #8b1e1e;
  color: #f8e7bd;
}

body.tpl-heritage .store-badge,
body.tpl-heritage .delivery-icon {
  background: #8b1e1e;
  color: #f8e7bd;
}

body.tpl-heritage .banner {
  background:
    linear-gradient(135deg, rgba(255, 248, 234, .92), rgba(238, 220, 190, .74)),
    linear-gradient(135deg, #8b1e1e, #2f6f5f);
  color: #7a261d;
}

body.tpl-heritage .banner.has-image::after {
  background: linear-gradient(90deg, rgba(255,248,234,.94) 0%, rgba(255,248,234,.72) 46%, rgba(255,248,234,0) 100%);
}

body.tpl-heritage .banner.has-image .banner-title {
  color: #8b1e1e;
}

body.tpl-heritage .banner.has-image .banner-subtitle {
  color: #7a4a2c;
}

body.tpl-heritage .coupon-member {
  background: linear-gradient(135deg, #8b1e1e, #5e1714) !important;
}

body.tpl-heritage .coupon-mini-ticket {
  background: #fff8ea !important;
  border-color: rgba(139, 30, 30, .42) !important;
}

@media (max-width: 380px) {
  .home-coupon-strip {
    grid-auto-flow: column;
    grid-auto-columns: 128px;
    grid-template-columns: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .home-coupon-strip::-webkit-scrollbar { display: none; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
