/* 小程序风格订货商城 — 参考多租户商城平台 Figma 原型 */
:root {
  --primary: #fd7a78;
  --primary-active: #ea5b23;
  --primary-light: #fff0ee;
  --price: #fd7a78;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #03130f;
  --text-secondary: #626262;
  --muted: #979797;
  --border: #eef0f3;
  --radius: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --header-gradient: linear-gradient(91deg, #ffd8b4 0.9%, #fd7a78 101.76%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.page { display: none; min-height: 100vh; padding-bottom: calc(56px + var(--safe-bottom)); }
.page.active { display: block; }
.page--sub { padding-bottom: var(--safe-bottom); }

/* 导航栏 */
.mp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.mp-nav--brand { background: linear-gradient(135deg, #1677ff, #4096ff); border: none; }
.mp-nav--brand .mp-nav-title { color: #fff; }
.mp-nav--sub { position: sticky; }
.mp-nav--transparent { background: transparent; border: none; position: absolute; width: 100%; }
.mp-nav--transparent .mp-nav-title { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.mp-nav--transparent .mp-nav-back { color: #fff; background: rgba(0,0,0,.25); }
.mp-nav-title { font-size: 17px; font-weight: 600; }
.mp-nav-back {
  position: absolute;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

/* 首页 — Figma 已登录首页 */
.home-header {
  background: var(--header-gradient);
  padding: 12px 12px 16px;
  border-radius: 0 0 20px 20px;
}
.home-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-brand-name {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  background: #fff;
  border-radius: 17px;
  padding: 0 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  cursor: pointer;
}
.search-icon { width: 16px; height: 16px; object-fit: contain; opacity: .6; flex-shrink: 0; }
.search-placeholder { color: var(--muted); font-size: 13px; }

.banner-swiper { position: relative; margin: 10px 12px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 702 / 350; }
.banner-track { display: flex; transition: transform .35s ease; height: 100%; }
.banner-slide {
  min-width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1677ff, #69b1ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 0 20px;
  text-align: center;
}
.banner-slide.has-image { background-size: cover; background-position: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.banner-caption { padding: 0 16px; text-align: center; font-size: 18px; font-weight: 600; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.banner-dot.active { width: 16px; border-radius: 3px; background: var(--primary-active); }

.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 8px 12px;
  background: #fff7e6;
  border-radius: 8px;
  font-size: 12px;
  color: #ad6800;
}
.notice-tag {
  flex-shrink: 0;
  background: #ffa940;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.panel {
  margin: 10px 12px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 8px;
}

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 4px; }
.category-item { text-align: center; cursor: pointer; }
.category-item .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-item .icon .category-icon-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.category-item .name { font-size: 12px; color: var(--text-secondary); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 12px 8px;
}
.section-head--center { justify-content: center; padding-top: 20px; }
.section-head-title { font-size: 16px; font-weight: 700; }
.section-head--center .section-head-title { font-size: 17px; }
.section-head-more { font-size: 12px; color: var(--muted); }

/* 商品网格（双列，小程序常见） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px 12px;
}
.product-grid--compact { padding: 8px; }
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.product-card .thumb {
  aspect-ratio: 1;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .info { padding: 10px; }
.product-card .name {
  font-size: 13px;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}
.product-card .price { color: var(--price); font-size: 16px; font-weight: 700; }
.product-card .price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.product-card .add-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* 分类页 — Figma 商品列表 */
.category-page-head { background: var(--card); padding: 4px 12px 0; border-bottom: 1px solid var(--border); }
.category-page-title { text-align: center; font-size: 17px; font-weight: 600; padding: 10px 0 8px; color: var(--text); }
.category-search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.category-search-row input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.category-search-btn {
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.category-quick {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.category-quick-item {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  cursor: pointer;
}
.category-quick-item .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-quick-item .icon .category-icon-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.category-quick-item .name { font-size: 11px; color: var(--text-secondary); padding: 2px 4px; border-radius: 10px; }
.category-quick-item.active .name { color: var(--primary-active); background: var(--primary-light); font-weight: 600; }

.category-layout { display: flex; height: calc(100vh - 200px - 56px - var(--safe-bottom)); min-height: 320px; }
.category-side {
  width: 80px;
  background: #f5f5f5;
  overflow-y: auto;
  flex-shrink: 0;
}
.category-side-item.active {
  background: var(--card);
  color: var(--primary-active);
  font-weight: 600;
  border-left-color: var(--primary-active);
}
.product-list-rows { padding: 0 10px 12px; background: var(--card); }
.product-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.product-row .thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}
.product-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.product-row .name {
  font-size: 14px;
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-row .tag {
  display: inline-block;
  font-size: 10px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}
.product-row .bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product-row .price { color: var(--price); font-size: 16px; font-weight: 700; }
.category-side-item {
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.category-main { flex: 1; overflow-y: auto; background: var(--card); }

.search-bar { display: flex; gap: 8px; padding: 10px 12px; background: var(--card); }
.search-bar input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}
.search-btn {
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

/* 商品详情 — Figma 商品详情 */
.detail-page { padding-bottom: calc(56px + var(--safe-bottom)); background: var(--bg); }
.detail-nav {
  position: sticky;
  top: 0;
  z-index: 110;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.detail-nav-back {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.detail-nav-back img { width: 20px; height: 20px; }
.detail-nav-title { font-size: 17px; font-weight: 700; color: var(--text); }
.detail-scroll { padding-bottom: 8px; }

.detail-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f0f2f5;
  overflow: hidden;
}
.detail-gallery-track { display: flex; height: 100%; transition: transform .35s ease; }
.detail-gallery-slide { min-width: 100%; height: 100%; }
.detail-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.detail-gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.detail-gallery-dot.active { width: 16px; border-radius: 3px; background: var(--primary-active); }

.detail-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.detail-price-main { display: flex; align-items: baseline; gap: 2px; color: var(--price); }
.detail-price-symbol { font-size: 14px; font-weight: 700; }
.detail-price { font-size: 24px; font-weight: 700; line-height: 1; }
.detail-price-label { font-size: 13px; color: var(--text); opacity: .6; margin-left: 8px; font-weight: 500; }
.detail-unit { font-size: 13px; color: var(--muted); }

.detail-info-card,
.detail-desc-card {
  background: #fff;
  padding: 16px;
  margin-bottom: 10px;
}
.detail-name { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text); }
.detail-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(253,122,120,.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}
.detail-supply {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .85;
  flex-wrap: wrap;
}
.detail-supply img { width: 16px; height: 16px; opacity: .7; }
.detail-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: .85;
}
.detail-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.detail-desc-card .block-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.desc { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.detail-desc-images { margin-top: 12px; }
.detail-desc-images img { width: 100%; display: block; border-radius: 4px; margin-bottom: 8px; }

.block-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.sku-area { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.sku-label { font-size: 13px; color: var(--text-secondary); }
.sku-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sku-tag {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}
.sku-tag.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.stepper button { width: 32px; height: 32px; border: none; background: #fafafa; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.stepper .qty-input,
.stepper input[type="text"] {
  width: 48px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  outline: none;
  background: #fff;
  padding: 0 4px;
  -moz-appearance: textfield;
}
.stepper input[type="text"]::-webkit-outer-spin-button,
.stepper input[type="text"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 加购弹层 */
.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.cart-sheet.open { display: flex; }
.cart-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.cart-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  z-index: 1;
  animation: sheet-up .28s ease;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cart-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cart-sheet-head { display: flex; gap: 12px; padding-right: 28px; margin-bottom: 16px; }
.cart-sheet-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}
.cart-sheet-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-sheet-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.cart-sheet-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-sheet-price { color: var(--price); font-size: 20px; font-weight: 700; }
.cart-sheet-price .detail-price-symbol { font-size: 13px; }
.cart-sheet-unit { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.cart-sheet-stock { font-size: 12px; color: var(--text-secondary); }
.cart-sheet-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 20px;
}
.cart-sheet-panel .sku-area { margin-top: 0; padding-top: 0; border-top: none; }
.cart-sheet-submit { width: 100%; height: 44px; font-size: 15px; border-radius: 22px; }
.cart-sheet-submit.df-btn--outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cart-sheet-submit.df-btn--primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.detail-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(50px + var(--safe-bottom));
  padding: 6px 12px calc(6px + var(--safe-bottom));
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.04);
  z-index: 200;
}
.detail-action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  min-width: 40px;
}
.detail-action-icon img { width: 20px; height: 20px; opacity: .85; }
.detail-action-icon span { font-size: 10px; color: var(--text-secondary); }
.df-btn { height: 40px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; flex: 1; min-width: 0; }
.df-btn--outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
}
.df-btn--primary { background: var(--primary); color: #fff; }
.df-btn--pill { border-radius: 20px; }

.address-card-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.mine-order-icon { width: 34px; height: 34px; object-fit: contain; display: block; margin: 0 auto 8px; }
.mine-menu-icon { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.mine-menu-item { display: flex; align-items: center; }
.mine-order-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* 购物车 */
.cart-list { padding: 10px 12px calc(70px + var(--safe-bottom)); }
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.cart-item .check { width: 18px; height: 18px; margin-top: 22px; accent-color: var(--primary); flex-shrink: 0; }
.cart-item .thumb {
  width: 72px;
  height: 72px;
  background: #f0f2f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 14px; font-weight: 500; line-height: 1.4; }
.cart-item .spec { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cart-item .line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item .line-price { color: var(--price); font-size: 15px; font-weight: 700; }
.cart-item .line-price span { font-size: 11px; font-weight: 400; color: var(--muted); }
.cart-item .qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.cart-item .qty button { width: 28px; height: 28px; border: none; background: #fafafa; cursor: pointer; flex-shrink: 0; }
.cart-item .qty input {
  width: 40px;
  height: 28px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  outline: none;
  background: #fff;
  padding: 0 2px;
}

.cart-bar {
  position: fixed;
  bottom: calc(56px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--card);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
  z-index: 150;
}
.cart-select-all { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.cart-bar-info { flex: 1; min-width: 0; text-align: right; }
.cart-bar-line { font-size: 13px; }
.cart-bar-line em { color: var(--price); font-style: normal; font-size: 18px; font-weight: 700; }
.cart-bar-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cart-settle-btn {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* 结算 */
.checkout-body { padding: 12px; padding-bottom: 80px; }
.address-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.address-card-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.address-card textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
}
.checkout-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.checkout-block input, .checkout-block textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.checkout-item:last-child { border-bottom: none; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.summary-block .summary-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.summary-block .total-line { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 15px; color: var(--text); }
.summary-block .total-line em { color: var(--price); font-style: normal; font-weight: 700; }
.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.checkout-footer-total { flex: 1; font-size: 20px; font-weight: 700; color: var(--price); }
.submit-btn {
  height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 订单 */
.order-tabs {
  display: flex;
  background: var(--card);
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.order-tab {
  flex: 1;
  min-width: 64px;
  padding: 12px 4px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.order-tab.active { color: var(--primary); font-weight: 600; position: relative; }
.order-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.order-list { padding: 10px 12px; }
.order-card {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
}
.order-card .head {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.order-card .status { color: var(--primary); font-weight: 500; }
.order-card .body { padding: 12px 14px; font-size: 13px; color: var(--text-secondary); }
.order-card .amount { text-align: right; padding: 0 14px 12px; font-size: 14px; }
.order-card .amount em { color: var(--price); font-style: normal; font-weight: 700; }

.order-status-card {
  background: var(--header-gradient);
  border-radius: var(--radius);
  padding: 20px 16px;
  color: #fff;
  margin-bottom: 10px;
}
.order-status-text { font-size: 20px; font-weight: 700; }
.order-status-no, .order-status-time { font-size: 12px; opacity: .85; margin-top: 6px; }
.od-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--text-secondary); }
.od-text { font-size: 14px; line-height: 1.5; }
.od-item { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* 我的 — Figma 个人中心 */
.mine-top {
  background: var(--header-gradient);
  padding: 12px 16px 70px;
  border-radius: 0 0 24px 24px;
  position: relative;
}
.mine-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 32px;
  color: #fff;
}
.mine-top-title { font-size: 17px; font-weight: 700; }
.mine-service {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.mine-service img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.mine-avatar-wrap { display: flex; justify-content: center; margin-top: 16px; }
.mine-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(253,122,120,.35);
}
.mine-body { margin-top: -36px; padding: 0 12px 12px; }
.mine-profile-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 16px 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(230,237,246,.4);
  margin-bottom: 10px;
}
.mine-profile-card .mine-name { font-size: 16px; font-weight: 600; color: var(--text); }
.mine-profile-card .mine-phone { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.mine-order-panel {
  margin: 0 0 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 2px 12px rgba(245,245,245,.8);
}
.mine-panel-head { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.mine-panel-link { font-size: 12px; color: var(--muted); font-weight: 400; cursor: pointer; }
.mine-order-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mine-order-item {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 0;
}
.mine-menu { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(245,245,245,.8); }
.mine-menu-item { padding: 16px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.mine-menu-item:last-child { border-bottom: none; }

/* 登录 — Figma 业务员登录 */
.page-login { background: #fff; }
.login-nav { background: #fff; border-bottom: none; }
.login-nav .mp-nav-back img { width: 18px; height: 18px; }
.login-page { padding: 24px 24px 40px; text-align: center; max-width: 360px; margin: 0 auto; }
.login-brand { margin-bottom: 40px; }
.login-logo { width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 20px; overflow: hidden; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.login-logo.has-image { background: transparent; }
.login-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.login-page h2 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 0; }
.login-demo-fields { margin-bottom: 16px; text-align: left; }
.login-demo-fields input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  margin-bottom: 10px;
  font-size: 14px;
  outline: none;
}
.login-btn--pill {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}
.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.login-agree input { margin-top: 3px; flex-shrink: 0; }
.login-agree a { color: var(--primary); text-decoration: none; }

/* TabBar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 200;
}
.tabbar.hidden { display: none; }
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
  position: relative;
}
.tabbar-item.active { color: var(--primary-active); }
.tab-icon { width: 25px; height: 25px; object-fit: contain; display: block; margin: 0 auto 2px; }
.tabbar-item .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--price);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  display: none;
  max-width: 80%;
  text-align: center;
}
.toast.show { display: block; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 14px; }
.empty a { color: var(--primary); text-decoration: none; }
