:root {
  --brand: #ff5000;
  --brand-dark: #e64500;
  /** 与商品页「立即购买」按钮一致 */
  --jd-buy-gradient: linear-gradient(90deg, #ff4142, #e1251b);
  --bg: #f5f5f5;
  --card: #fff;
  --text: #222;
  --muted: #888;
  --line: #eee;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 52px;
  --header-h: 48px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

body.app-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.app-body input,
body.app-body textarea,
body.app-body select,
body.app-body [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

a { color: inherit; text-decoration: none; }

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.app-shell {
  width: 100%;
  max-width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px var(--line);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.main-scroll {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  min-height: 100dvh;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(90deg, #ff6034, #ff5000);
  color: #fff;
}

.topbar-back {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  gap: 6px;
  color: #999;
  font-size: 14px;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  min-width: 0;
}

/* Banner */
.banner-swipe {
  margin: 10px 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2.2 / 1;
  background: #ddd;
  position: relative;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.banner-slide {
  position: absolute;
  inset: 0;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.32s ease;
  touch-action: manipulation;
}

.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 26px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.banner-slide-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-slide-price {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffe8dc;
}

.banner-slide-price span {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  vertical-align: middle;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}

.banner-dots span.is-on { background: #fff; width: 14px; border-radius: 3px; }

/* 首页快捷分类：圆形浅底 + 彩色插画 */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 0;
  padding: 14px 8px 12px;
  background: var(--card);
  margin: 10px 12px 0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.icon-grid-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.icon-grid-link:active .ico {
  transform: scale(0.92);
}

.icon-grid-label {
  font-size: 11px;
  color: #444;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.icon-grid .ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f5;
  overflow: hidden;
  padding: 0;
}

.home-cat-art {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  position: relative;
}

.home-cat-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-cat-art .home-cat-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.home-cat-art.is-broken img {
  display: none;
}

.home-cat-art.is-broken .home-cat-fallback {
  display: inline-flex;
}

/* 内联 SVG 图标 */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon svg {
  display: block;
}

.icon svg path,
.icon svg circle,
.icon svg rect {
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-bar-icon { color: #999; }
.icon-grid-svg { color: var(--brand); }
.tabbar-svg { color: inherit; }
.tabbar-item.is-active .tabbar-svg { color: var(--brand); }

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffe8de;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.pay-success-icon {
  margin: 0;
  color: #22a06b;
  display: flex;
  justify-content: center;
}

.action-bar-icons a {
  gap: 4px;
}

.action-bar-icons .icon {
  color: #666;
}

/* Section */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 8px;
  font-size: 16px;
  font-weight: 700;
}

.section-hd small { font-weight: 400; color: var(--muted); font-size: 12px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card .thumb {
  aspect-ratio: 1;
  background: #f0f0f0;
  overflow: hidden;
  min-height: 120px;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .info { padding: 8px 10px 10px; }

.product-card .title {
  font-size: 13px;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .meta {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.price { color: var(--brand); font-weight: 700; font-size: 16px; }
.price small { font-size: 11px; }
.price-old { color: #bbb; font-size: 11px; text-decoration: line-through; font-weight: 400; }
.tag-sale { font-size: 10px; color: var(--brand); border: 1px solid #ffc9b0; padding: 0 4px; border-radius: 3px; }

/* 首页猜你喜欢 — 京东双流瀑布 */
.home-waterfall.feeds {
  display: flex;
  flex-wrap: wrap;
  padding: 4px;
  background: #f4f4f4;
}

.home-waterfall-col {
  width: 50%;
  box-sizing: border-box;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-waterfall-item {
  width: 100%;
}

.home-waterfall .product-card {
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

.home-waterfall .product-card .thumb {
  margin-bottom: 0;
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  background: #fff url(https://img10.360buyimg.com/wq/jfs/t24601/190/890984006/4559/731564fc/5b7f9b7bN3ccd29ab.png) no-repeat 50%;
  background-size: 138px;
}

.home-waterfall .product-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-waterfall .product-card .info {
  padding: 0 10px 10px;
}

.home-waterfall .product-card .title {
  text-align: left;
  line-height: 1.05rem;
  max-height: 2.1rem;
  font-size: 14px;
  color: #434343;
  height: auto;
}

.home-waterfall .product-card .meta {
  margin-top: 6px;
  height: auto;
  min-height: 24px;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
}

.home-waterfall .product-card .price {
  color: #e4393c;
  font-size: 12px;
  font-weight: 600;
}

.home-waterfall .product-card .price small {
  font-size: 12px;
}

.home-waterfall .product-card .price-old {
  color: #999;
  font-size: 11px;
}

.home-waterfall .product-card .tag-sale {
  border-color: #ffccc7;
  color: #e4393c;
}

/* 首页 — 与分类页相同的顶部搜索 */
.page-jd-home {
  --cat-top-h: 52px;
}

.page-jd-home.page-tab .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  min-height: 100dvh;
}

.page-jd-home .home-search-top.cat-top {
  top: env(safe-area-inset-top, 0px);
}

.page-jd-home .main-scroll {
  padding-top: 0;
}

/* Category page */
.page-jd-category {
  --cat-top-h: 52px;
  background: #f7f7f7;
}

.page-jd-category.page-tab .app-shell,
.page-jd-category.page-category .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  background: #f7f7f7;
  min-height: 100dvh;
}

.cat-top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px 12px 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.cat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 17px;
  background: #fff;
  color: #999;
}

.cat-search-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: #b2b2b2;
}

.cat-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.cat-search-input::placeholder {
  color: #999;
}

.cat-layout {
  display: flex;
  min-height: calc(100dvh - var(--tabbar-h) - var(--cat-top-h) - env(safe-area-inset-top, 0px));
}

.cat-side {
  width: 88px;
  background: #f8f8f8;
  flex-shrink: 0;
  overflow-y: auto;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

.cat-side a {
  display: block;
  padding: 14px 6px;
  text-align: center;
  font-size: 12px;
  color: #333;
  border-left: 3px solid transparent;
  text-decoration: none;
  line-height: 1.35;
}

.cat-side a.is-active {
  background: #fff;
  color: #e1251b;
  font-weight: 600;
  border-left-color: #e1251b;
}

.cat-main {
  flex: 1;
  overflow-y: auto;
  background: #f7f7f7;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
}

.page-jd-category .cat-main .empty {
  color: #bfbfbf;
  font-size: 14px;
}

/* Detail */
.detail-gallery {
  background: #fff;
  aspect-ratio: 1;
}

.detail-gallery img { width: 100%; height: 100%; object-fit: contain; }

.detail-panel {
  margin-top: 10px;
  background: var(--card);
  padding: 14px 12px;
}

.detail-price .price { font-size: 24px; }

.detail-title { font-size: 16px; line-height: 1.45; margin-top: 8px; font-weight: 600; }

.detail-sub { margin-top: 8px; font-size: 12px; color: var(--muted); }

.detail-desc {
  margin-top: 10px;
  background: var(--card);
  padding: 12px;
}

.detail-desc img { width: 100%; margin-top: 8px; border-radius: 6px; }

.detail-desc p { font-size: 14px; line-height: 1.6; color: #444; margin: 0 0 8px; }
.detail-desc .detail-line { font-size: 13px; color: #666; }
.detail-desc img { width: 100%; margin: 8px 0 0; border-radius: 6px; background: #f5f5f5; min-height: 120px; object-fit: contain; }
.detail-rich { font-size: 14px; line-height: 1.65; color: #444; word-break: break-word; }
.detail-rich img { max-width: 100%; height: auto; display: block; margin: 10px 0; border-radius: 6px; }
.detail-rich p { margin: 0 0 10px; }
.detail-rich ul, .detail-rich ol { padding-left: 1.2em; margin: 0 0 10px; }

.main-scroll--product-jd {
  padding-bottom: calc(72px + var(--safe-bottom) + 12px);
}

/* JD 商品页（PC 右栏风格） */
.jd-sku-panel {
  margin-top: 10px;
  background: var(--card);
  padding: 0 12px 12px;
}

.jd-promo-strip {
  margin: 0 -12px 10px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #fff5f0, #fff);
  color: var(--brand);
  font-size: 12px;
  border-bottom: 1px solid #ffe8de;
}

.jd-sku-head {
  position: relative;
  padding-right: 52px;
}

.jd-badge {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 2px;
  margin: 0 4px 6px 0;
  vertical-align: middle;
  color: #fff;
}

.jd-badge--zy { background: #e1251b; }
.jd-badge--chaoshi { background: #4caf50; }

.jd-sku-title {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  display: inline;
}

.jd-fav {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.jd-fav .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jd-price-block {
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.jd-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.jd-price-main {
  color: #e1251b;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.jd-price-tag {
  font-size: 11px;
  color: #e1251b;
  border: 1px solid #e1251b;
  border-radius: 2px;
  padding: 0 4px;
  line-height: 16px;
}

.jd-price-orig {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.jd-price-meta {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #888;
}

.jd-price-notice { color: #666; }

.jd-rank-line {
  margin-top: 8px;
  font-size: 12px;
  color: #b8860b;
  background: #fffbe6;
  padding: 6px 8px;
  border-radius: 4px;
}

.jd-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.jd-row-label {
  flex-shrink: 0;
  width: 36px;
  color: #999;
}

.jd-row-body { flex: 1; min-width: 0; }

.jd-row--link {
  color: inherit;
  text-decoration: none;
  align-items: flex-start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.jd-row--link:active {
  background: rgba(0, 0, 0, 0.03);
}

.jd-row-chevron {
  flex-shrink: 0;
  margin-top: 2px;
  color: #ccc;
}

.jd-delivery-addr { color: #333; font-weight: 500; }

.jd-delivery-time {
  margin-top: 4px;
  color: #e1251b;
  font-size: 12px;
}

.jd-logistics {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.jd-logistics-badge {
  color: #e1251b;
  border: 1px solid #e1251b;
  border-radius: 2px;
  padding: 0 4px;
  font-size: 11px;
}

.jd-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.jd-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: #333;
  max-width: 100%;
}

.jd-spec-chip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 2px;
}

.jd-spec-chip.is-active {
  border-color: #e1251b;
  color: #e1251b;
  background: #fff5f5;
}

.jd-service-tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #666;
  font-size: 12px;
}

.jd-service-tags span::after {
  content: ' · ';
  color: #ddd;
}

.jd-service-tags span:last-child::after { content: none; }

.jd-shop-name { color: #333; }

.jd-buy-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.jd-buy-icon-form { flex-shrink: 0; }

.jd-buy-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: none;
  background: none;
  color: #666;
  font-size: 10px;
  padding: 0;
  text-decoration: none;
}

.jd-buy-icon--cart { cursor: pointer; }

.jd-buy-plus {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}

.jd-buy-qty {
  flex-shrink: 0;
  height: 32px;
}

.jd-buy-qty button { height: 32px; }

.jd-buy-main-form {
  flex: 1;
  min-width: 0;
}

.jd-buy-submit {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--jd-buy-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  cursor: pointer;
}

.jd-buy-submit-price {
  font-size: 12px;
  opacity: 0.95;
}

.jd-buy-submit-text {
  font-size: 16px;
  font-weight: 700;
}

.page-product-jd .tabbar { display: none; }

.page-product-jd .topbar-jd-buy {
  background: var(--jd-buy-gradient);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.topbar-back--plain {
  background: transparent;
  border: none;
  box-shadow: none;
}

.topbar-back--plain:active {
  opacity: 0.75;
}

.topbar-back--plain .icon-back svg {
  stroke: #222;
  stroke-width: 2.2;
}

.topbar .topbar-back--plain .icon-back svg {
  stroke: #fff;
}

/* Bottom bar (product) */
.action-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 60;
}

.action-bar.with-tab { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }

.action-bar-icons { display: flex; gap: 16px; font-size: 11px; color: #666; }
.action-bar-icons a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}

.btn-cart { background: linear-gradient(90deg, #ffd01e, #ff8917); color: #fff; }
.btn-buy { background: linear-gradient(90deg, #ff6034, #ff5000); color: #fff; }
.btn-block { width: 100%; flex: none; }
.btn-ghost { background: #f5f5f5; color: #333; }

/* Cart */
.cart-list { padding: 10px 12px; }

.cart-item {
  display: flex;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 10px;
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #fafafa;
}

.cart-item .body { flex: 1; min-width: 0; }
.cart-item .title { font-size: 13px; line-height: 1.35; }
.cart-item .row { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-ctrl button {
  width: 28px;
  height: 28px;
  border: none;
  background: #fafafa;
  font-size: 16px;
}

.qty-ctrl span { min-width: 32px; text-align: center; font-size: 13px; }

.cart-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 55;
}

.cart-footer .total { flex: 1; font-size: 13px; }
.cart-footer .total strong { color: var(--brand); font-size: 18px; }

/* Form */
.form-card {
  margin: 10px 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
}

.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.pay-types { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-types label {
  flex: 1;
  min-width: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}
.pay-types input { display: none; }
.pay-types label:has(input:checked) { border-color: var(--brand); color: var(--brand); background: #fff8f5; }

.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
}

.empty .btn { margin-top: 16px; max-width: 200px; margin-left: auto; margin-right: auto; }

/* Tabbar */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 100;
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: #666;
  position: relative;
}

.tabbar-item.is-active { color: var(--brand); }
.tabbar-icon {
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.tabbar-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  margin-left: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.toast.show { opacity: 1; }

/* 我的 */
.topbar-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* Tab 页统一：分类 / 购物车 / 我的（无顶栏、顶部卡片无图标） */
.page-tab {
  background: var(--bg);
}

.page-tab .app-shell {
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  background: linear-gradient(180deg, #ff5000 0, #ff6034 100px, var(--bg) 100px);
  min-height: 100dvh;
}

.tab-top-card--first {
  margin-top: 0;
}

.tab-top-card {
  position: relative;
  margin: 0 14px 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.tab-top-card__title {
  margin: 0;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.tab-top-card__sub {
  margin: 10px 0 0;
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tab-top-card__price {
  color: var(--brand);
  font-weight: 700;
}

.tab-page-head {
  padding: 4px 16px 10px;
  color: #fff;
  flex-shrink: 0;
}

.tab-page-head__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.tab-top-card--compact {
  padding: 14px 16px;
  margin-bottom: 10px;
}

.page-category:not(.page-jd-category) .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  min-height: 100dvh;
}

.page-cart .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  min-height: 100dvh;
}

.page-cart .main-scroll--center-empty {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: calc(100dvh - var(--header-h) - var(--tabbar-h) - env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}

.page-jd-cart.page-cart .main-scroll--center-empty {
  min-height: calc(100dvh - var(--header-h) - var(--tabbar-h));
}

.empty--cart {
  padding: 24px;
}

/* 京东风格购物车 */
.page-jd-cart .jd-cart-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.jd-cart-nav-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.jd-cart-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #f5f5f5;
}

.jd-cart-addr {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #333;
}

.jd-cart-addr-icon {
  width: 14px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e1251b'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.jd-cart-addr-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd-cart-edit-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  padding: 4px 0;
  cursor: pointer;
}

.page-jd-cart.is-cart-edit .jd-cart-edit-btn {
  color: #e1251b;
}

.jd-cart-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
}

.jd-cart-tab {
  font-size: 15px;
  color: #666;
  white-space: nowrap;
  position: relative;
  padding: 0 0 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.jd-cart-tab.is-cur {
  color: #333;
  font-weight: 600;
}

.jd-cart-tab.is-cur::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 3px;
  margin-left: -10px;
  background: #e1251b;
  border-radius: 2px;
}

.jd-cart-main {
  background: #f5f5f5;
}

.page-jd-cart:not(.page-cart-empty-items) .jd-cart-main {
  padding-bottom: calc(56px + var(--safe-bottom) + 12px);
}

.jd-cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.jd-cart-empty-txt {
  margin: 0;
  font-size: 14px;
  color: #999;
}

.jd-cart-list {
  padding: 10px 0 0;
}

.jd-cart-shop {
  margin: 0 10px 10px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.jd-cart-shop-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 8px;
}

.jd-cart-shop-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd-cart-shop-arrow {
  width: 8px;
  height: 8px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
  transform: rotate(45deg);
  margin-right: 4px;
}

.jd-cart-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.jd-cart-check.is-checked {
  border-color: #e1251b;
  background: #e1251b;
}

.jd-cart-check.is-checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.jd-cart-goods {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #f5f5f5;
}

.jd-cart-goods.is-disabled {
  opacity: 0.45;
}

.jd-cart-goods-img {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
}

.jd-cart-goods-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.jd-cart-goods-body {
  flex: 1;
  min-width: 0;
}

.jd-cart-goods-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.jd-cart-goods-title {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.jd-cart-qty {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.page-jd-cart.is-cart-edit .jd-cart-qty {
  display: none;
}

.jd-cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #666;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.jd-cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.jd-cart-sku {
  margin-top: 6px;
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  background: #f7f7f7;
  border-radius: 4px;
  font-size: 11px;
  color: #888;
}

.jd-cart-sku-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd-cart-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.jd-cart-tag {
  font-size: 10px;
  color: #e1251b;
  border: 1px solid rgba(225, 37, 27, 0.35);
  border-radius: 2px;
  padding: 0 4px;
  line-height: 16px;
}

.jd-cart-price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.jd-cart-price {
  color: #f2270c;
  font-weight: 600;
  font-size: 12px;
}

.jd-cart-price em {
  font-style: normal;
  font-size: 18px;
}

.jd-cart-price-tip {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 400;
}

.jd-cart-price-old {
  font-size: 11px;
  color: #8c8c8c;
  text-decoration: line-through;
}

.jd-cart-item-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.page-jd-cart.is-cart-edit [data-jd-cart-item-actions] {
  display: flex !important;
}

.jd-cart-item-act {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
  cursor: pointer;
}

.jd-cart-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 60;
  width: 100%;
  max-width: min(480px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.jd-cart-bar-check {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #333;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.jd-cart-bar-check .jd-cart-check {
  pointer-events: none;
}

.jd-cart-bar-check-label {
  font-size: 13px;
}

.jd-cart-bar-sum {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.jd-cart-bar-total {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #f2270c;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}

.jd-cart-bar-yen,
.jd-cart-bar-dec {
  font-size: 14px;
}

.jd-cart-settle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff4142, #e1251b);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.jd-cart-settle.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.page-category:not(.page-jd-category) .cat-layout {
  min-height: calc(100dvh - var(--tabbar-h));
}

.main-tab-page {
  padding-top: 0;
  background: transparent;
}

.page-tab-my .main-my,
.page-jd-my .jd-my {
  padding-top: 0;
}

/* 京东触屏版 — 我的 */
.page-jd-my.page-tab .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  background: #f3f2f8;
}

.page-jd-my .jd-my {
  background: #f3f2f8;
  padding-bottom: calc(var(--tabbar-h) + 16px + var(--safe-bottom));
  min-height: auto;
  overflow-x: hidden;
}

.jd-my-linear {
  background: linear-gradient(180deg, #ffe8e6 0%, #fff0ee 72px, #f3f2f8 168px);
  padding-bottom: 4px;
}

.jd-my-header {
  position: relative;
  padding: 19px 18px 10px;
  box-sizing: border-box;
  color: #1a1a1a;
}

.jd-my-header.shadow {
  box-shadow: 0 4px 12px rgba(250, 44, 25, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 100%);
}

.jd-my-user {
  display: flex;
  align-items: center;
}

.jd-my-avatar-wrap {
  flex-shrink: 0;
}

.jd-my-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(250, 44, 25, 0.08);
  border: 1px solid #fff;
  background: linear-gradient(180deg, #fff, #fff1f1);
}

.jd-my-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-my-personal {
  flex: 1;
  padding: 7px 0 0 8px;
  min-width: 0;
}

.jd-my-name {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.jd-my-account-icon {
  position: absolute;
  right: 18px;
  top: 30px;
  width: 20px;
  height: 20px;
  background: url(https://img12.360buyimg.com/img/s40x40_jfs/t1/200301/26/20875/2486/624d038bEa32dbe7a/af4b07550371cd4c.png) 0 0 / 100% 100% no-repeat;
}

.jd-my-card {
  margin: 10px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
}

.jd-my-fav.fav_floor {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0 8px;
  min-height: 44px;
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(90deg, rgba(242, 242, 242, 0.5), rgba(250, 250, 250, 0.6)),
    linear-gradient(#fff, #fff);
}

.jd-my-fav.fav_floor.jd-my-card {
  margin-bottom: 0;
}

.jd-my-fav--single .jd-my-fav-item {
  flex: none;
  justify-content: flex-start;
  padding: 0 12px;
  width: 100%;
}

.jd-my-fav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1a1a1a;
  text-decoration: none;
  min-height: 44px;
}

.jd-my-fav-item--static {
  pointer-events: none;
}

.jd-my-fav-key {
  font-size: 12px;
  line-height: 34px;
  margin-right: 5px;
  color: #262626;
}

.jd-my-fav-val {
  font-size: 12px;
  font-weight: 700;
}

.jd-my-order.my_order {
  margin-top: 0;
  border-radius: 0 0 12px 12px;
  padding-bottom: 8px;
}

.jd-my-order.my_order.jd-my-card {
  margin-top: 0;
}

.jd-my-order-row {
  display: flex;
  padding: 8px 10px 4px;
  position: relative;
  align-items: stretch;
}

.jd-my-order-entrance {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  height: 80px;
  text-decoration: none;
  color: inherit;
  background-repeat: no-repeat;
  background-position: center 8px;
  background-size: 30px 30px;
  box-sizing: border-box;
}

.jd-my-entrance-text {
  display: block;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 12px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  top: auto;
  line-height: 1.25;
  max-height: 32px;
  overflow: hidden;
  padding: 0 2px;
}

.jd-my-entrance-text--box {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-end;
  bottom: 4px;
  line-height: 1.15;
  font-size: 11px;
}

.jd-my-order-entrance.type_consult .jd-my-entrance-text {
  font-size: 11px;
  line-height: 1.15;
  max-height: 28px;
}

.jd-my-order-entrance.type_unpay {
  background-image: url(https://img12.360buyimg.com/img/s60x60_jfs/t1/144453/3/26543/2290/62651dc1E9a870916/9d55698157214416.png);
}

.jd-my-order-entrance.type_unrecieve {
  background-image: url(https://img12.360buyimg.com/img/s60x60_jfs/t1/149388/24/26816/2914/62651dc1E1d5a859d/1e9d70ebcaa01281.png);
}

.jd-my-order-entrance.type_consult {
  background-image: url(https://img12.360buyimg.com/img/s60x60_jfs/t1/192293/7/23240/3633/62651dc1E8c8c7f45/1dbd5c48a5537c8a.png);
}

.jd-my-order-entrance.type_orders {
  background-image: url(https://img12.360buyimg.com/img/s60x60_jfs/t1/73197/18/17564/2229/62651dc1E9eb02b59/421fc756bd04de78.png);
}

.jd-my-order-entrance.type_orders::before {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: -5px;
  width: 10px;
  height: 44px;
  background: url(https://img12.360buyimg.com/img/s20x88_jfs/t1/165515/27/23119/1870/625d23caEaf7372b1/90fd6e9ba15bd553.png);
  background-size: 10px;
  content: "";
}

.jd-my-dot.dot_num {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  box-sizing: border-box;
  min-width: 12px;
  padding: 0 3px;
  height: 13px;
  line-height: 13px;
  background: linear-gradient(90deg, #ff404f, #fa2c19);
  border-radius: 6px 6px 6px 2px;
  box-shadow: 0 2px 4px rgba(250, 44, 25, 0.32);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.jd-my-wallet {
  display: flex;
  padding: 12px 0 8px;
}

.jd-my-wallet-item {
  position: relative;
  flex: 1;
  text-align: center;
  line-height: 1;
}

.jd-my-wallet-val {
  font-size: 0;
  height: 30px;
  line-height: 30px;
  color: #1a1a1a;
  white-space: nowrap;
}

.jd-my-wallet-val .assets_val {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
}

.jd-my-wallet-val .assets_val--sm {
  font-size: 12px;
  font-weight: 400;
}

.jd-my-wallet-val.my_asset {
  height: 30px;
  background: url(https://img12.360buyimg.com/img/s60x60_jfs/t1/85289/34/25820/2287/62481e2fEf08341c9/bcd3644e87bc9372.png) no-repeat 50% scroll;
  background-size: 30px auto;
}

.jd-my-wallet-key {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #262626;
  line-height: 1.2;
}

.jd-my-wallet-item--all::before {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: -5px;
  width: 10px;
  height: 49px;
  background: url(https://img12.360buyimg.com/img/s20x88_jfs/t1/165515/27/23119/1870/625d23caEaf7372b1/90fd6e9ba15bd553.png);
  background-size: 10px;
  content: "";
}

.jd-my-tools-wrap {
  margin: 10px;
  padding: 12px 8px 16px;
  background: #fff;
  border-radius: 15px;
}

.jd-my-tools-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}

.jd-my-tool {
  flex: 0 0 25%;
  min-width: 72px;
  text-align: center;
  text-decoration: none;
  color: #262626;
  padding-top: 4px;
}

.jd-my-tool-icon {
  display: block;
  margin: 0 auto 6px;
  width: 30px;
  height: 30px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.jd-my-tool-icon--addr {
  background-image: url(https://img12.360buyimg.com/img/s59x60_jfs/t1/181893/30/23607/3772/6267c1c0E51feb772/6560b1afca6b253f.png);
}

.jd-my-tool-icon--fav {
  background-image: url(https://img12.360buyimg.com/img/s60x60_jfs/t1/216515/34/18229/3273/6267c3dfE721548af/18e0a2427b75b3a7.png);
}

.jd-my-tool-icon--order {
  background-image: url(https://img13.360buyimg.com/img/jfs/t1/233159/40/16794/885/665001e3F0c3de6ae/ea2b5f9e5f7bfeac.png);
}

.jd-my-tool-key {
  font-size: 12px;
  color: #262626;
  line-height: 1.2;
}

.page-jd-my .order-rec {
  background: #f3f2f8;
  margin-top: 0;
}

.my-profile-card {
  padding: 20px 18px 14px;
}

.my-profile-card .tab-top-card__title {
  border-left: none;
  padding-left: 0;
}

.my-profile-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.my-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  border: 3px solid #fff;
  overflow: hidden;
}

.my-avatar img,
.my-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-nickname {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.my-profile-card .my-stats {
  display: flex;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.my-stat {
  flex: 1;
  text-align: center;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.my-stat + .my-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: #eee;
}

.my-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.my-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.my-menu-grid {
  margin: 0 14px 12px;
  padding: 4px 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.my-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  color: #333;
  transition: background 0.15s;
}

.my-menu-item:active { background: #fafafa; }

.my-menu-item + .my-menu-item {
  border-top: 1px solid #f5f5f5;
}

.my-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-menu-icon--order { background: #fff4ec; color: #ff5000; }
.my-menu-icon--heart { background: #fff0f0; color: #e1251b; }
.my-menu-icon--loc { background: #eef6ff; color: #2b7de9; }

.my-menu-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.my-menu-arrow { color: #d8d8d8; flex-shrink: 0; }

.my-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px;
  margin: 0;
  background: transparent;
}

.my-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.2;
}

.my-link-all {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.my-empty-card {
  margin: 0 14px 20px;
  padding: 32px 20px 28px;
  text-align: center;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.my-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f7f7f7;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-empty-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.my-empty-btn {
  margin-top: 16px;
  max-width: 168px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 22px;
  padding: 10px 24px;
}

.main-my-sub { padding-bottom: 16px; }

.my-order-card {
  margin: 0 12px 10px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.my-order-hd {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.my-order-status.is-paid { color: #0a8; }
.my-order-status.is-to_ship { color: #e1251b; }
.my-order-status.is-pending { color: var(--brand); }

.my-order-body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.my-order-ft {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.my-order-pay {
  margin-top: 10px;
  display: flex;
  width: 100%;
  justify-content: center;
}

/* 京东风格订单列表 / 详情 */
.page-jd-orders .main-scroll,
.page-jd-order-detail .main-scroll {
  padding-bottom: calc(16px + var(--safe-bottom));
}

.jd-order-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-jd-order-detail .app-shell {
  padding-top: 0;
}

.jd-order-header-back {
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.jd-order-header-back--light .icon-back { stroke: #fff; }

.jd-order-header-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.jd-order-header-menu {
  width: 40px;
  height: 40px;
}

.jd-order-top {
  position: sticky;
  top: var(--header-h);
  z-index: 35;
  background: #fff;
  padding: 8px 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.jd-order-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.jd-order-search-input {
  flex: 1;
  height: 32px;
  border: none;
  border-radius: 16px;
  background: #f2f2f2;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}

.jd-order-search-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #e1251b;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
}

.jd-order-tabs {
  display: flex;
  align-items: stretch;
}

.jd-order-tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px 12px;
  font-size: 14px;
  color: #666;
  position: relative;
}

.jd-order-tab.is-cur {
  color: #e1251b;
  font-weight: 600;
}

.jd-order-tab.is-cur::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: #e1251b;
}

.jd-order-main {
  background: var(--bg);
}

.jd-order-list {
  padding: 10px 10px 0;
}

.jd-order-box {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.jd-order-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 8px;
  min-height: 40px;
}

.jd-order-head--in-card {
  padding-bottom: 4px;
}

.jd-order-shop-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.jd-order-shop-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.jd-order-shop-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd-order-state {
  font-size: 13px;
  color: #e1251b;
  flex-shrink: 0;
}

.jd-order-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
}

.jd-order-item--detail {
  align-items: center;
}

.jd-order-cover {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
}

.jd-order-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.jd-order-item-main {
  flex: 1;
  min-width: 0;
}

.jd-order-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jd-order-qty {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.jd-order-total {
  text-align: right;
  padding: 4px 12px 10px;
  font-size: 13px;
  color: #333;
}

.jd-order-pay-label { margin-right: 2px; }

.jd-order-pay-price {
  color: #333;
  font-weight: 600;
}

.jd-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 12px;
}

.jd-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

.jd-order-btn--red {
  border-color: #e1251b;
  background: #fff;
  color: #e1251b;
}

.jd-order-btn--ghost {
  border-color: #ccc;
  color: #333;
}

.jd-order-nomore {
  text-align: center;
  padding: 16px 12px 8px;
  color: #999;
  font-size: 12px;
}

.jd-order-empty {
  text-align: center;
  padding: 48px 16px;
  color: #999;
  font-size: 14px;
}

.order-rec {
  margin-top: 8px;
  padding: 0 8px 16px;
}

.order-rec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 12px;
}

.order-rec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.order-rec-text {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.order-rec-feeds {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.order-rec-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-rec-goods {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.order-rec-goods-img {
  aspect-ratio: 1;
  background: #f8f8f8;
  overflow: hidden;
}

.order-rec-goods-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.order-rec-goods-info {
  padding: 8px 8px 10px;
}

.order-rec-goods-name {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.order-rec-goods-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.order-rec-goods-price {
  color: #e1251b;
  font-size: 12px;
  font-weight: 600;
}

.order-rec-goods-price em {
  font-style: normal;
  font-size: 18px;
}

.jd-detail-status {
  margin-top: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 24px;
  background: linear-gradient(135deg, #e1251b 0%, #ff4142 55%, #ff6a4d 100%);
  color: #fff;
}

.jd-detail-nav-title {
  margin: 0 0 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: var(--header-h);
}

.jd-detail-status-main {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.jd-detail-status-sub {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.92;
}

.jd-order-main--detail {
  margin-top: -12px;
  padding-bottom: calc(72px + var(--safe-bottom));
}

.jd-detail-card {
  margin: 0 10px 10px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
}

.jd-detail-addr {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.jd-detail-addr-icon {
  color: #e1251b;
  flex-shrink: 0;
  margin-top: 2px;
}

.jd-detail-addr-line {
  margin: 0 0 4px;
  font-size: 15px;
}

.jd-detail-addr-line span {
  margin-left: 10px;
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

.jd-detail-addr-detail {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}

.jd-detail-item-price {
  margin: 6px 0 0;
  font-size: 13px;
  color: #e1251b;
}

.jd-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: #666;
}

.jd-detail-row--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  color: #333;
  font-size: 14px;
}

.jd-detail-pay-sum {
  color: #e1251b;
  font-size: 16px;
  font-weight: 700;
}

.jd-detail-mono {
  font-size: 12px;
  word-break: break-all;
  text-align: right;
  max-width: 62%;
}

.jd-detail-spacer {
  height: 4px;
}

.jd-detail-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: min(480px, 100%);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  z-index: 50;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.my-addr-form .btn-ghost { margin-top: 8px; border: 1px solid var(--line); background: #fff; }

/* 京东风格 — 我的收藏（goodfav / coll_goods） */
.page-jd-fav {
  background: #f7f7f7;
}

.page-jd-fav .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  background: #f7f7f7;
  min-height: 100dvh;
}

.page-jd-fav .jd-fav-header {
  border-bottom: none;
}

.jd-fav-nav.fav_nav {
  position: sticky;
  top: var(--header-h);
  z-index: 39;
  width: 100%;
  background: #fff;
}

.jd-fav-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.jd-fav-nav a {
  position: relative;
  display: block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.jd-fav-nav li {
  flex: 1;
}

.jd-fav-nav li.cur a {
  color: #e4393c;
  font-weight: 600;
}

.jd-fav-nav li.cur a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: #e4393c;
}

.jd-fav-count.fav_count {
  margin: 0;
  padding: 0 10px;
  height: 40px;
  line-height: 40px;
  font-size: 12px;
  color: #666;
  background: #f7f7f7;
}

.jd-fav-count em {
  margin: 0 5px;
  color: #e4393c;
  font-style: normal;
  font-weight: 600;
}

.page-jd-fav .jd-fav-main {
  padding-bottom: calc(16px + var(--safe-bottom));
  background: #f7f7f7;
}

.page-jd-fav .jd-fav-list {
  padding: 6px 8px 4px;
}

.page-jd-fav .jd-fav-list .order-rec-goods {
  margin: 0;
}

.page-jd-fav .jd-fav-goods-card .order-rec-goods-img {
  aspect-ratio: 1;
  background: #fff;
}

.page-jd-fav .jd-fav-goods-card .order-rec-goods-img img {
  object-fit: contain;
  background: #fff;
}

.jd-fav-empty.mod_empty_page {
  padding: 75px 8% 15px;
  text-align: center;
}

.jd-fav-empty .mod_empty_page_icon {
  overflow: hidden;
  margin: 0 auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
}

.jd-fav-empty .mod_empty_page_main {
  margin: 12px 0 8px;
  font-size: 16px;
  color: #333;
}

.jd-fav-empty .mod_empty_page_sub {
  font-size: 12px;
  color: #999;
}

.jd-fav-empty .mod_empty_page_btn {
  display: inline-block;
  margin: 12px auto 0;
  padding: 0 22px;
  height: 40px;
  border-radius: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  color: #3985ff;
  background-color: #fff;
  text-decoration: none;
}

.page-jd-fav .order-rec {
  clear: both;
  background: #f7f7f7;
  margin-top: 5px;
}

.my-fav-grid { padding: 0 12px; }

.my-addr-card {
  margin: 0 12px 10px;
  padding: 14px;
  background: var(--card);
  border-radius: 12px;
}

.my-addr-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.my-addr-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff5f0;
  color: var(--brand);
}

.my-addr-detail {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.my-addr-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.my-addr-actions form { display: inline; }
.my-addr-actions button {
  border: none;
  background: none;
  color: #c00;
  padding: 0;
  font-size: 13px;
}

.my-addr-form { margin: 0 12px; }
.my-addr-default {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.my-addr-add { margin: 0 12px; max-width: calc(100% - 24px); }

.muted { color: var(--muted); }

.jd-fav-form { display: inline; margin: 0; }
.jd-fav.is-active { color: #e1251b; }
.jd-fav.is-active .icon { color: #e1251b; }
.jd-fav.is-active .icon svg path {
  fill: #e1251b;
  stroke: #e1251b;
}

.page-tab .main-scroll { padding-bottom: calc(var(--tabbar-h) + 16px + var(--safe-bottom)); }

/* 确认订单（京东结算页布局） */
.page-checkout-jd {
  background: #f2f2f2;
}

.page-checkout-jd .app-shell {
  background: #f2f2f2;
  max-width: 480px;
}

.jd-checkout-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  height: calc(44px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.jd-checkout-nav .topbar-back {
  flex-shrink: 0;
}

.jd-checkout-nav__title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 36px;
}

.jd-checkout-main {
  padding-bottom: calc(72px + var(--safe-bottom));
}

.jd-checkout-tip {
  margin: 8px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.jd-checkout-tip--err {
  background: #fff2f0;
  color: #e1251b;
}

.jd-checkout-addr {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 14px 12px 14px 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.jd-checkout-addr__body {
  flex: 1;
  min-width: 0;
}

.jd-checkout-addr__line--addr {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
}

.jd-checkout-addr__line--user {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.jd-checkout-addr__arrow {
  flex-shrink: 0;
  color: #ccc;
}

.jd-checkout-store {
  margin: 8px 0;
  background: #fff;
}

.jd-checkout-store__hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
}

.jd-checkout-store__logo {
  width: 26px;
  height: auto;
}

.jd-checkout-store__name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.jd-checkout-store__bd {
  padding: 0 12px 12px;
}

.jd-checkout-product {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.jd-checkout-product__pic {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
}

.jd-checkout-product__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jd-checkout-product__info {
  flex: 1;
  min-width: 0;
}

.jd-checkout-product__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jd-checkout-product__spec {
  margin: 4px 0 0;
  font-size: 12px;
  color: #999;
  line-height: 1.35;
}

.jd-checkout-product__row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jd-checkout-product__price {
  font-size: 16px;
  font-weight: 700;
  color: #fa2c19;
}

.jd-checkout-qty {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
}

.jd-checkout-qty__btn {
  width: 28px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  background: #fafafa;
}

.jd-checkout-qty__val {
  min-width: 32px;
  text-align: center;
  color: #333;
}

.jd-checkout-product__tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jd-checkout-tag {
  font-size: 10px;
  color: #fa2c19;
  border: 1px solid rgba(250, 44, 25, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
}

.jd-checkout-ship {
  padding-top: 10px;
}

.jd-checkout-ship__line1 {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.jd-checkout-ship__label {
  color: #999;
  width: 42px;
  flex-shrink: 0;
}

.jd-checkout-ship__value {
  flex: 1;
  color: #333;
}

.jd-checkout-ship__arrow {
  width: 6px;
  height: auto;
  opacity: 0.45;
}

.jd-checkout-ship__line2 {
  margin-top: 6px;
  padding-left: 42px;
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.jd-checkout-bill,
.jd-checkout-pay,
.jd-checkout-invoice,
.jd-checkout-privacy {
  margin: 8px 0;
  background: #fff;
  padding: 4px 12px;
}

.jd-checkout-bill__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #f7f7f7;
}

.jd-checkout-bill__row:last-of-type {
  border-bottom: none;
}

.jd-checkout-bill__label {
  color: #333;
}

.jd-checkout-bill__val {
  color: #1a1a1a;
}

.jd-checkout-bill__val--muted {
  color: #999;
}

.jd-checkout-bill__row--link .jd-checkout-bill__arrow {
  margin-left: 4px;
  color: #ccc;
}

.jd-checkout-bill__divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}

.jd-checkout-bill__total {
  text-align: right;
  padding: 10px 0 12px;
  font-size: 14px;
  color: #333;
}

.jd-checkout-bill__total strong {
  color: #fa2c19;
  font-size: 16px;
  font-weight: 700;
}

.jd-checkout-pay__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f7f7f7;
  cursor: pointer;
  position: relative;
}

.jd-checkout-pay__item:last-child {
  border-bottom: none;
}

.jd-checkout-pay__item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.jd-checkout-pay__name {
  font-size: 15px;
  color: #1a1a1a;
}

.jd-checkout-pay__desc {
  font-size: 12px;
  color: #999;
  margin-left: auto;
  margin-right: 8px;
}

.jd-checkout-pay__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jd-checkout-pay__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ddd;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
}

.jd-checkout-pay__item:has(.jd-checkout-pay__desc) .jd-checkout-pay__check {
  margin-left: 0;
}

.jd-checkout-pay__input:checked + .jd-checkout-pay__check {
  border-color: #fa2c19;
  background: #fa2c19;
}

.jd-checkout-pay__input:checked + .jd-checkout-pay__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.jd-checkout-invoice {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  font-size: 14px;
}

.jd-checkout-invoice__label {
  color: #333;
  flex-shrink: 0;
}

.jd-checkout-invoice__val {
  flex: 1;
  text-align: right;
  color: #666;
  font-size: 13px;
  margin: 0 4px;
}

.jd-checkout-invoice__arrow {
  color: #ccc;
  flex-shrink: 0;
}

.jd-checkout-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  font-size: 13px;
  color: #333;
}

.jd-checkout-privacy__text {
  flex: 1;
}

.jd-checkout-privacy__icon {
  width: 14px;
  height: 14px;
}

.jd-checkout-privacy__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.jd-checkout-privacy__check.is-on {
  border-color: #fa2c19;
  background: #fa2c19;
  position: relative;
}

.jd-checkout-privacy__check.is-on::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.jd-checkout-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.jd-checkout-bar__price {
  flex: 1;
  color: #fa2c19;
  font-weight: 700;
  line-height: 1;
}

.jd-checkout-bar__sym {
  font-size: 14px;
}

.jd-checkout-bar__int {
  font-size: 22px;
}

.jd-checkout-bar__dec {
  font-size: 14px;
}

.jd-checkout-bar__btn {
  flex: 0 0 128px;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff4142, #fa2c19);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* 收货地址（京东布局） */
.page-jd-address {
  background: #f2f2f2;
}

.page-jd-address .app-shell {
  background: #f2f2f2;
}

.jd-addr-list-main,
.jd-addr-edit-main {
  padding-bottom: calc(72px + var(--safe-bottom));
  min-height: calc(100dvh - 48px);
}

.jd-addr-empty {
  padding: 48px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.jd-addr-list {
  background: #fff;
}

.jd-addr-row-wrap + .jd-addr-row-wrap {
  border-top: 8px solid #f2f2f2;
}

.jd-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  background: #fff;
}

.jd-addr-row__radio {
  width: 22px;
  flex-shrink: 0;
  padding-top: 2px;
}

.jd-addr-row__radio img {
  width: 20px;
  height: auto;
}

.jd-addr-radio-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.jd-addr-row__body {
  flex: 1;
  min-width: 0;
}

.jd-addr-row__region {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.jd-addr-row__detail {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
}

.jd-addr-row__meta {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 12px;
}

.jd-addr-row__edit {
  flex-shrink: 0;
  padding: 4px;
}

.jd-addr-row__edit img {
  width: 18px;
  height: auto;
  opacity: 0.55;
}

.jd-addr-list-bar,
.jd-addr-edit-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 90;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.jd-addr-list-bar__btn,
.jd-addr-edit-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(90deg, #ff4142, #fa2c19);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.jd-addr-edit-card {
  margin-top: 8px;
  background: #fff;
  padding: 0 12px;
}

.jd-addr-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.jd-addr-field--last {
  border-bottom: none;
}

.jd-addr-field__label {
  width: 72px;
  flex-shrink: 0;
  color: #333;
  line-height: 36px;
}

.jd-addr-field__body {
  flex: 1;
  min-width: 0;
}

.jd-addr-field__body--phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jd-addr-area {
  color: #333;
  font-size: 14px;
  flex-shrink: 0;
}

.jd-addr-input,
.jd-addr-textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1a1a1a;
  background: transparent;
  font-family: inherit;
}

.jd-addr-input {
  height: 36px;
  line-height: 36px;
}

.jd-addr-input::placeholder,
.jd-addr-textarea::placeholder {
  color: #ccc;
}

.jd-addr-textarea {
  min-height: 56px;
  resize: none;
  line-height: 1.45;
  padding: 8px 0;
}

.jd-addr-tags-card {
  padding: 14px 12px;
}

.jd-addr-tags-hd {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.jd-addr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jd-addr-tag-pill {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.jd-addr-tag-pill:active {
  opacity: 0.85;
}

.jd-addr-tag-pill.is-active {
  background: #fff5f5;
  border-color: #e1251b;
  color: #e1251b;
  font-weight: 600;
}

.jd-addr-tag-pill--plus {
  min-width: 36px;
  text-align: center;
}

.jd-addr-smart-card {
  padding: 14px 12px 16px;
}

.jd-addr-smart-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.jd-addr-smart-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 13px;
  line-height: 1.5;
  color: #999;
  background: transparent;
  font-family: inherit;
}

.jd-addr-default-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px;
}

.jd-addr-default-text strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 600;
}

.jd-addr-default-text p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.jd-addr-switch {
  position: relative;
  flex-shrink: 0;
}

.jd-addr-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.jd-addr-switch__ui {
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #ddd;
  position: relative;
  transition: background 0.2s;
}

.jd-addr-switch__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.jd-addr-switch input:checked + .jd-addr-switch__ui {
  background: #fa2c19;
}

.jd-addr-switch input:checked + .jd-addr-switch__ui::after {
  transform: translateX(20px);
}

.jd-addr-region-trigger {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  color: #1a1a1a;
  font-family: inherit;
  cursor: pointer;
}

.jd-addr-region-trigger [data-region-display].is-placeholder {
  color: #ccc;
}

.jd-addr-region-arrow {
  flex-shrink: 0;
  color: #ccc;
}

.region-picker {
  position: fixed;
  inset: 0;
  z-index: 200;
  max-width: 480px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.region-picker__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.region-picker__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.region-picker__hd {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}

.region-picker__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #999;
  padding: 4px 8px;
}

.region-picker__cols {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 52vh;
}

.region-picker__col {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border-right: 1px solid #f5f5f5;
}

.region-picker__col:last-child {
  border-right: none;
}

.region-picker__item {
  padding: 12px 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.region-picker__item.is-active {
  color: #fa2c19;
  background: #fff5f4;
}

body.region-picker-open {
  overflow: hidden;
}

.jd-addr-smart-input {
  color: #333;
}
