* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #dfe5ea;
  color: #20242a;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.phone-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f6f8;
  box-shadow: 0 0 30px rgba(15, 23, 42, .14);
}
#app { position: relative; min-height: 100vh; padding-bottom: 74px; }
.app-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px;
  background: rgba(245, 246, 248, .96);
  backdrop-filter: blur(12px);
}
.location { font-size: 20px; font-weight: 800; }
.hello { margin-top: 3px; color: #8b949e; font-size: 12px; }
.header-btn {
  height: 34px; padding: 0 12px; border-radius: 17px;
  background: #fff; color: #0f8f6b; font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.view { padding: 0 14px 18px; }
.search {
  height: 42px; line-height: 42px; padding: 0 16px; margin: 6px 0 14px;
  border-radius: 21px; background: #fff; color: #8b949e;
}
.banner {
  min-height: 150px; border-radius: 14px; padding: 20px;
  background: linear-gradient(135deg, #0f8f6b, #1e7b96);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.banner-title { font-size: 24px; line-height: 1.2; font-weight: 800; }
.banner-subtitle { margin-top: 8px; color: rgba(255,255,255,.84); font-size: 13px; }
.section { margin-top: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-title { font-size: 18px; font-weight: 800; }
.section-more { color: #0f8f6b; font-size: 13px; }
.card, .panel {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.panel { padding: 16px; }
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 12px 6px;
}
.category-card {
  min-height: 84px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: #303740; font-size: 12px;
}
.category-icon, .category-img {
  width: 48px; height: 48px; border-radius: 50%;
}
.category-icon {
  display: grid; place-items: center; background: #e9f6f2; color: #0f8f6b; font-weight: 800;
}
.category-img { object-fit: cover; background: #edf0f3; }
.goods-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.goods-card { overflow: hidden; }
.goods-open { width: 100%; text-align: left; color: inherit; }
.goods-img {
  height: 142px; width: 100%; display: grid; place-items: center;
  background: #edf0f3; color: #0f8f6b; font-size: 34px; font-weight: 800;
}
.goods-img img { width: 100%; height: 100%; object-fit: cover; }
.goods-info { padding: 10px; }
.goods-title {
  height: 38px; line-height: 19px; overflow: hidden;
  font-weight: 700; font-size: 13px;
}
.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: 4px; color: #0f8f6b; 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 10px; }
.price { color: #df3f2d; font-weight: 800; }
.muted { color: #8b949e; font-size: 13px; }
.btn {
  height: 34px; padding: 0 12px; border-radius: 17px;
  background: #0f8f6b; color: #fff; font-size: 13px;
}
.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: #0f8f6b; 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; }
.list { display: grid; gap: 10px; }
.cart-row, .order-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px;
}
.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; }
.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: #0f8f6b; 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;
}
.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; }
.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: #e9f6f2; color: #0f8f6b; font-weight: 700; }
.desc { color: #59616c; line-height: 1.7; font-size: 13px; }
.detail-bar {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%);
  width: min(100vw, 430px); height: 56px; padding: 8px 10px;
  display: grid; grid-template-columns: 72px 1fr 1fr; gap: 8px;
  background: #fff; border-top: 1px solid #e6eaee;
}
.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: 78px; margin-top: 12px; }
.order-actions { display: grid; gap: 8px; justify-items: end; align-content: center; }
.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: 94px; }
.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: #0f8f6b; 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;
}
.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-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: min(100vw, 430px); min-height: 86px; padding: 12px 14px 16px;
  display: grid; grid-template-columns: 1fr 1.8fr; gap: 12px; align-items: center;
  background: #fff; border-top: 1px solid #e6eaee; z-index: 7;
}
.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: #e9f6f2; color: #0f8f6b; font-size: 13px; }
.user-panel { display: grid; gap: 14px; }
.user-head { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #e9f6f2; color: #0f8f6b;
  font-size: 22px; font-weight: 900;
}
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-action {
  height: 54px; border-radius: 10px; background: #f5f7f9;
  color: #303740; font-weight: 700;
}
.invite-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: #0f8f6b; letter-spacing: 1px; }
.invite-bind { display: grid; gap: 10px; }
.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: #0f8f6b; }
.password-form { margin: 16px 0; }
.tabbar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100vw, 430px); height: 64px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid #e6eaee;
}
.tabbar-item {
  color: #7a7f87; font-size: 12px; display: grid; place-items: center;
}
.tabbar-item.active { color: #0f8f6b; font-weight: 800; }
.toast {
  position: fixed; left: 50%; bottom: 84px; 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) {
  .phone-shell { width: 100vw; box-shadow: none; }
  .tabbar { width: 100vw; }
}

:root {
  --brand-red: #c81e1e;
  --brand-red-deep: #991b1b;
  --brand-red-soft: #fff1f1;
}

.brand-copy { display: grid; gap: 2px; }
.brand-kicker { color: var(--brand-red); font-size: 12px; font-weight: 700; line-height: 1.35; }
.brand-name { font-size: 22px; 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(--brand-red);
}

.btn,
.tab.active {
  background: var(--brand-red);
}

.banner {
  background: linear-gradient(135deg, var(--brand-red-deep), #ef4444);
}

.category-icon,
.sku-item.active,
.register-tip,
.user-avatar {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.goods-img,
.detail-img,
.checkout-img {
  color: var(--brand-red);
}

.wallet-toggle input {
  accent-color: var(--brand-red);
}
