/* ==========================================================
   远航跨境 · 市场风主题 v2
   单行顶栏 · peek 轮播 · 精致热卖卡 · 干净留白
   ========================================================== */
body.theme-marketplace {
  --mp-ink: #111827;
  --mp-ink-2: #4b5563;
  --mp-muted: #9ca3af;
  --mp-line: #eef0f4;
  --mp-surface: #ffffff;
  --mp-wash: #fcfcfd;
  --mp-accent: #f97316;
  --mp-accent-deep: #ea580c;
  --mp-price: #e11d48;
  --mp-radius: 16px;
  --mp-shadow: 0 8px 24px rgba(17, 24, 39, .06);
  --header-h: 64px;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--mp-wash);
  color: var(--mp-ink);
}

body.theme-marketplace main { padding-top: 8px; padding-bottom: 56px; }

/* ---------- 顶栏 + 次级分类导航栏 ---------- */
body.theme-marketplace .topbar {
  background: #fff;
  border-bottom: 1px solid var(--mp-line);
  box-shadow: none;
  z-index: 60;
}
body.theme-marketplace .topbar-inner { gap: 20px; }
body.theme-marketplace .logo { gap: 10px; }
body.theme-marketplace .logo-wordmark b {
  font-size: 19px; font-weight: 900; letter-spacing: -.03em; color: var(--mp-ink);
}
body.theme-marketplace .logo-wordmark small {
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: #ea580c;
}

body.theme-marketplace .catbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--mp-line);
  position: sticky;
  top: var(--header-h);
  z-index: 55;
}
body.theme-marketplace .catbar-inner { height: 52px; }
body.theme-marketplace .cat-mega-btn {
  height: 36px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(120deg, #fb923c 0%, #f97316 36%, #ea580c 68%, #f43f5e 100%);
  background-size: 160% 160%;
  color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(249, 115, 22, .34);
  transition: background-position .35s ease, box-shadow .2s ease, filter .2s ease;
}
body.theme-marketplace .cat-mega-btn:hover {
  background-position: 100% 50%;
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(244, 63, 94, .32);
}
body.theme-marketplace .cat-mega-drop { z-index: 80; }
body.theme-marketplace .catbar a.nav-link,
body.theme-marketplace .catbar .nav-item > a {
  font-size: 14px; font-weight: 600; color: var(--mp-ink-2); border-radius: 9px;
}
body.theme-marketplace .catbar a.nav-link:hover,
body.theme-marketplace .catbar .nav-item:hover > a {
  color: var(--mp-ink); background: #f3f4f6;
}
body.theme-marketplace .catbar a.nav-link.active,
body.theme-marketplace .catbar .nav-item > a.active {
  color: #2563eb; font-weight: 700;
}
body.theme-marketplace .catbar a.nav-link.active::after,
body.theme-marketplace .catbar .nav-item > a.active::after {
  background: #2563eb; bottom: -7px;
}

body.theme-marketplace .search {
  max-width: 480px; height: 42px; margin: 0 auto;
  border: 1px solid transparent; border-radius: 999px; background: #f3f4f6;
  box-shadow: none;
}
body.theme-marketplace .search:focus-within {
  background: #fff; box-shadow: 0 0 0 2px rgba(249, 115, 22, .2);
}
body.theme-marketplace .search-scope { display: none; }
body.theme-marketplace .search input {
  padding-left: 18px; font-size: 14px;
}
body.theme-marketplace .search button {
  width: 38px; height: 38px; margin-right: 2px; padding: 0;
  border-radius: 50%; background: transparent; color: var(--mp-ink-2);
  display: grid; place-items: center;
}
body.theme-marketplace .search button:hover { color: var(--mp-accent-deep); }
body.theme-marketplace .search-btn-text { display: none; }
body.theme-marketplace .search-btn-ico { display: block; }

body.theme-marketplace .pill-balance {
  background: #fff7ed; color: #c2410c;
}
body.theme-marketplace .top-actions .btn-sm {
  border-radius: 999px; height: 36px; padding: 0 14px;
}
body.theme-marketplace .top-actions .btn-primary {
  background: #111827; border-color: #111827;
}
body.theme-marketplace .top-actions .btn-primary:hover {
  background: #000; border-color: #000; color: #fff;
}

/* 公告条 */
.mp-notice { background: #111827; color: #f8fafc; font-size: 13px; }
.mp-notice .mp-notice-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 34px; padding: 6px 0;
}
.mp-notice b {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  margin-right: 8px; border-radius: 4px; background: #ef4444;
  font-size: 10px; letter-spacing: .06em;
}
.mp-notice button {
  border: 0; background: transparent; color: #94a3b8; font-size: 18px; line-height: 1;
}
.mp-notice button:hover { color: #fff; }

.mp-home { padding-bottom: 24px; }

/* ---------- 3D 悬浮层叠轮播（无左右按键 · 宽扁比例 · 对称双翼露边） ---------- */
.mp-stage {
  position: relative;
  width: min(1240px, 100%);
  margin: 10px auto 0;
  padding: 6px 16px 20px;
  user-select: none;
}
.mp-stage-deck {
  position: relative;
  height: clamp(228px, 21.5vw, 284px);
}
.mp-stage-card {
  --s-bg1: #021c15;
  --s-bg2: #064e3b;
  --s-glow: #10b981;
  --s-btn: #22c55e;
  --s-ink: #032215;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9%;
  width: 82%;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(ellipse 52% 85% at 68% 54%, color-mix(in srgb, var(--s-glow) 34%, transparent), transparent 70%),
    linear-gradient(125deg, var(--s-bg1) 0%, color-mix(in srgb, var(--s-bg2) 68%, var(--s-bg1)) 55%, var(--s-bg1) 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  transform: translate3d(0, 0, 0) scale(.74);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition:
    transform .58s cubic-bezier(.22, 1, .36, 1),
    opacity .45s ease,
    filter .45s ease,
    box-shadow .55s ease;
  will-change: transform, opacity;
}
.mp-stage-card.is-active {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  box-shadow:
    0 26px 52px -12px rgba(2, 8, 23, .42),
    0 12px 24px -8px rgba(2, 8, 23, .24),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
.mp-stage-card.is-prev {
  transform: translate3d(-20.8%, 0, 0) scale(.81);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  filter: brightness(.64) saturate(.85);
  box-shadow: 0 14px 30px -10px rgba(2, 8, 23, .28);
}
.mp-stage-card.is-next {
  transform: translate3d(20.8%, 0, 0) scale(.81);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  filter: brightness(.64) saturate(.85);
  box-shadow: 0 14px 30px -10px rgba(2, 8, 23, .28);
}
.mp-stage-card.is-prev:hover,
.mp-stage-card.is-next:hover {
  filter: brightness(.78) saturate(.95);
}

.mp-stage-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .14;
  mix-blend-mode: screen;
  filter: blur(18px) saturate(1.4);
  transform: scale(1.15);
}
.mp-stage-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 75% 80% at 62% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 62% 50%, #000 20%, transparent 80%);
}
.mp-stage-wave {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--s-glow); opacity: .28; pointer-events: none;
}

.mp-stage-copy {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  max-width: 54%;
  padding: 22px 0 28px 7.5%;
}
.mp-stage-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
  color: #fff;
}
.mp-stage-sub {
  margin: 0 0 5px;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  color: rgba(255, 255, 255, .94);
}
.mp-stage-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-stage-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 0 0 12px;
}
.mp-stage-price span {
  font-size: 13px; color: rgba(255, 255, 255, .78); font-weight: 600;
}
.mp-stage-price strong {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
}
.mp-stage-cta {
  display: inline-flex; align-items: center; gap: 7px;
  width: fit-content; height: 36px; padding: 0 18px;
  border-radius: 999px;
  background: var(--s-btn);
  color: var(--s-ink);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--s-btn) 45%, transparent);
  transition: transform .2s, filter .2s;
}
.mp-stage-cta i { font-style: normal; transition: transform .2s; }
.mp-stage-card.is-active:hover .mp-stage-cta { filter: brightness(1.07); transform: translateY(-1px); }
.mp-stage-card.is-active:hover .mp-stage-cta i { transform: translateX(3px); }

/* 右侧 3D 全息发光底座与悬浮图标舞台 */
.mp-stage-art {
  position: absolute; z-index: 2;
  right: 7%; top: 50%;
  width: min(38%, 340px); height: 210px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  pointer-events: none;
}
.mp-cube {
  position: relative; z-index: 3;
  width: 112px; height: 112px;
  border-radius: 26px;
  display: grid; place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--s-glow) 52%, #fff) 0%, transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(15, 23, 42, .72));
  border: 1.5px solid color-mix(in srgb, var(--s-glow) 68%, rgba(255, 255, 255, .35));
  box-shadow:
    8px 14px 28px rgba(0, 0, 0, .48),
    0 0 34px color-mix(in srgb, var(--s-glow) 42%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, .45);
  transform: perspective(560px) rotateY(-15deg) rotateX(6deg) translateY(-10px);
  backdrop-filter: blur(10px);
}
.mp-cube svg {
  width: 56%; height: 56%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35));
}
.mp-cube--logo {
  padding: 0; overflow: hidden; background: transparent;
  border: 0; box-shadow: 8px 14px 28px rgba(0,0,0,.42), 0 0 34px color-mix(in srgb, var(--s-glow) 42%, transparent);
}
.mp-cube--logo svg { width: 100%; height: 100%; filter: none; }
.mp-holo-card {
  position: absolute; z-index: 2;
  width: 78px; height: 54px;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid color-mix(in srgb, var(--s-glow) 45%, rgba(255, 255, 255, .16));
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
  color: var(--s-glow);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mp-holo-left {
  left: 12px; top: 48%;
  transform: perspective(420px) rotateY(16deg) translateY(-35%);
}
.mp-holo-right {
  right: 10px; top: 44%;
  transform: perspective(420px) rotateY(-16deg) translateY(-35%);
}
.mp-holo-dots { display: flex; gap: 3px; }
.mp-holo-dots i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.mp-holo-card svg { width: 100%; height: 28px; }
.mp-holo-bars {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; height: 28px;
}
.mp-holo-bars b {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--s-glow) 40%, transparent), var(--s-glow));
}
.mp-holo-bars b:nth-child(1) { height: 34%; }
.mp-holo-bars b:nth-child(2) { height: 52%; }
.mp-holo-bars b:nth-child(3) { height: 46%; }
.mp-holo-bars b:nth-child(4) { height: 76%; }
.mp-holo-bars b:nth-child(5) { height: 96%; }

.mp-pedestal {
  position: absolute; z-index: 1;
  bottom: 18px; left: 50%;
  width: 200px; height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--s-glow) 55%, rgba(255, 255, 255, .25)) 0%, rgba(15, 23, 42, .65) 62%, transparent 76%);
  border: 1px solid color-mix(in srgb, var(--s-glow) 60%, rgba(255, 255, 255, .22));
  box-shadow:
    0 6px 24px color-mix(in srgb, var(--s-glow) 55%, transparent),
    inset 0 2px 6px rgba(255, 255, 255, .35);
}
.mp-pedestal::after {
  content: "";
  position: absolute; left: -18%; right: -18%; bottom: -14px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--s-glow) 48%, transparent), transparent 72%);
  filter: blur(6px);
}

/* 轮播指示点（内嵌于中央主卡底部居中，当前激活为醒目红胶囊） */
.mp-stage-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .28);
  backdrop-filter: blur(4px);
}
.mp-stage-dots button {
  width: 6px; height: 6px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .45); padding: 0; cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.mp-stage-dots button:hover { background: rgba(255, 255, 255, .8); }
.mp-stage-dots button.is-active { width: 22px; background: #ef4444; }

/* ---------- 分类条（纯白底紧贴轮播，AccountBoy 10 宫格） ---------- */
.mp-cats-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  padding: 18px 0 10px;
}
.mp-home-body { padding-top: 8px; }
.mp-cats {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-top: 0;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mp-cats::-webkit-scrollbar { display: none; }
.mp-cat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 76px; padding: 4px; color: var(--mp-ink);
  transition: transform .2s;
}
.mp-cat:hover { transform: translateY(-4px); color: var(--mp-accent-deep); }
.mp-ico-app {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12), inset 0 0 0 1px rgba(15, 23, 42, .04);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.mp-ico-app svg { width: 100%; height: 100%; display: block; }
.mp-ico-app--lg { width: 68px; height: 68px; border-radius: 18px; }
.mp-cat:hover .mp-ico-app {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}
.mp-market-grid--dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.mp-home { background: #F7F8FA; }
.mp-home > .mp-stage { background: transparent; }
.mp-cat-ico {
  width: 58px; height: 58px; border-radius: 16px;
  background: color-mix(in srgb, var(--tint, #f97316) 14%, #fff);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .04);
  transition: box-shadow .2s, transform .2s;
}
.mp-cat:hover .mp-cat-ico {
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tint, #f97316) 28%, transparent);
}
.mp-cat-ico img { width: 72%; height: 72%; object-fit: contain; }
.mp-cat-name {
  font-size: 12px; font-weight: 600; text-align: center;
  max-width: 7.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 分区标题 ---------- */
.mp-section { margin-top: 40px; }
.mp-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.mp-section-head h2 {
  margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em;
  display: inline-flex; align-items: center; gap: 6px;
}
.mp-fire { font-size: 20px; line-height: 1; }
.mp-more { color: var(--mp-accent-deep); font-weight: 600; font-size: 13px; }
.mp-more:hover { text-decoration: underline; }

.mp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-tab {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink-2);
  font-weight: 600; font-size: 13px;
}
.mp-tab:hover { border-color: #fdba74; color: var(--mp-accent-deep); }
.mp-tab.active { background: #111827; border-color: #111827; color: #fff; }
.mp-pane { display: none; }
.mp-pane.active { display: block; animation: mpFade .3s ease; }
@keyframes mpFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 热卖 5 列精致卡 ---------- */
.mp-hot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.mp-hot-card {
  background: #fff;
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.mp-hot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, .1);
}
.mp-hot-cover {
  aspect-ratio: 1 / 1.05;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c2, #ea580c) 55%, transparent), transparent 58%),
    linear-gradient(160deg, var(--c1, #0f172a), color-mix(in srgb, var(--c2, #ea580c) 70%, #0f172a));
  position: relative;
  overflow: hidden;
}
.mp-hot-cover::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 36%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .18));
}
.mp-hot-cover img {
  width: 58%; height: 58%; object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35));
  transition: transform .35s;
  position: relative; z-index: 1;
}
.mp-hot-card:hover .mp-hot-cover img { transform: translateY(-4px) scale(1.04); }
.mp-hot-body {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.mp-hot-body h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.mp-hot-body h3 a { color: var(--mp-ink); }
.mp-hot-meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--mp-muted);
}
.mp-meta-badges {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}
.mp-meta-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
}
.mp-pick-badge,
.mp-multi-badge,
.mp-ship,
.mp-stock {
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-stars { display: inline-flex; align-items: center; gap: 1px; color: #e5e7eb; }
.mp-stars i { font-style: normal; font-size: 12px; }
.mp-stars i.on { color: #f59e0b; }
.mp-stars b { margin-left: 4px; color: var(--mp-ink-2); font-weight: 700; }
.mp-hot-price { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.mp-hot-price strong {
  color: var(--mp-price); font-size: 22px; font-weight: 800; letter-spacing: -.03em;
}
.mp-hot-price em {
  font-style: normal; font-size: 11px; font-weight: 700;
  color: #c2410c; background: #ffedd5; border-radius: 6px; padding: 2px 7px;
}
.mp-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mp-cart-btn {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff7ed;
  color: var(--mp-accent-deep);
  display: grid; place-items: center;
  transition: .15s;
}
.mp-cart-btn:hover {
  background: var(--mp-accent); border-color: var(--mp-accent); color: #fff;
}
.mp-buy {
  flex: 1; height: 40px; border-radius: 10px;
  border: 1px solid #e5e7eb; background: #fff; color: var(--mp-ink);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: .15s;
}
.mp-buy:hover {
  background: var(--mp-accent); border-color: var(--mp-accent); color: #fff;
}

/* ---------- 市场 / 目录 / 直充 ---------- */
.mp-market-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.mp-mkt-card {
  background: #fff; border: 1px solid var(--mp-line); border-radius: 16px;
  overflow: hidden; color: inherit; transition: .2s;
  display: flex; flex-direction: column; height: 100%;
}
.mp-mkt-card:hover {
  transform: translateY(-3px); box-shadow: var(--mp-shadow); color: inherit;
}
.mp-mkt-cover {
  aspect-ratio: 4/3; background: #f8fafc; display: grid; place-items: center;
}
.mp-mkt-cover img { width: 72%; height: 72%; object-fit: contain; }
.mp-mkt-body {
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.mp-mkt-body h3 { margin: 0; font-size: 14px; min-height: 2.7em; }
.mp-mkt-meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--mp-muted);
}
.mp-mkt-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 6px;
}
.mp-mkt-foot strong { color: var(--mp-price); font-size: 18px; font-weight: 800; }
.mp-seller { font-size: 12px; color: var(--mp-ink-2); text-align: right; }
.mp-seller b { color: #f59e0b; margin-left: 4px; }
.mp-empty {
  grid-column: 1 / -1; padding: 36px; text-align: center;
  color: var(--mp-muted); background: #fff; border: 1px dashed var(--mp-line); border-radius: 14px;
}

.mp-catalog-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.mp-catalog-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  padding: 14px; background: #fff; border: 1px solid var(--mp-line);
  border-radius: 16px; color: inherit; transition: .15s;
}
.mp-catalog-card:hover { border-color: #fdba74; box-shadow: var(--mp-shadow); color: inherit; }
.mp-catalog-card img {
  width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--mp-wash);
}
.mp-catalog-card h3 { margin: 0 0 4px; font-size: 15px; }
.mp-catalog-card p { margin: 0; font-size: 12px; color: var(--mp-muted); }
.mp-catalog-card strong { display: inline-block; margin-top: 6px; color: var(--mp-price); font-size: 16px; }

.mp-topup-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.mp-topup {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #fff; border: 1px solid var(--mp-line);
  border-radius: 14px; color: inherit; transition: .15s;
}
.mp-topup:hover { border-color: #fdba74; color: inherit; }
.mp-topup img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.mp-topup b { display: block; font-size: 14px; }
.mp-topup span { display: block; font-size: 12px; color: var(--mp-muted); }
.mp-topup em {
  margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700;
  color: var(--mp-accent-deep); background: #fff7ed; padding: 4px 10px; border-radius: 999px;
}

/* ---------- 品牌实力与核心保障（全宽浅灰底 + 地球网络轨迹 + 2x2 白卡 + 四列核心指标） ---------- */
.mp-about {
  position: relative;
  margin-top: 52px;
  padding: 58px 0 46px;
  background: linear-gradient(96deg, #f2f4f8 0%, #f7f9fc 48%, #f1f4f9 100%);
  border-top: 1px solid #eceff5;
  border-bottom: 1px solid #eceff5;
  overflow: hidden;
}
.mp-about-globe-left {
  position: absolute;
  left: -36px; top: -28px;
  width: 300px; height: 300px;
  pointer-events: none;
}
.mp-about-globe-right {
  position: absolute;
  right: max(0px, calc(50% - 760px));
  bottom: -16px;
  width: min(56vw, 640px);
  height: auto;
  pointer-events: none;
}
.mp-about-inner {
  position: relative;
  z-index: 2;
}
.mp-about-top {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 36px;
  align-items: center;
}
.mp-about-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #e11d48;
  text-transform: uppercase;
}
.mp-about-copy h1,
.mp-about-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.28;
  color: var(--mp-ink);
}
.mp-about-copy h1 em,
.mp-about-copy h2 em {
  font-style: normal;
  color: #e11d48;
}
.mp-about-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mp-ink-2);
}
.mp-about-slogan {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mp-ink);
}

.mp-about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mp-about-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, .8);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mp-about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}
.mp-about-ico {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: #fff1f2;
  color: #e11d48;
  display: grid;
  place-items: center;
}
.mp-about-ico svg { width: 21px; height: 21px; }
.mp-about-card b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mp-ink);
  line-height: 1.3;
}
.mp-about-card div span {
  display: block;
  font-size: 12px;
  color: var(--mp-muted);
  line-height: 1.45;
}

.mp-about-stats {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(15, 23, 42, .07);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}
.mp-about-stat strong {
  display: block;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--mp-ink);
  font-variant-numeric: tabular-nums;
}
.mp-about-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--mp-muted);
}

.mp-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.mp-review {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0; padding: 14px;
  min-width: 0; width: 100%; max-width: 420px;
  background: #fff; border: 1px solid var(--mp-line); border-radius: 14px;
}
.mp-review__thumb {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 10px; overflow: hidden;
  background: var(--mp-wash); border: 1px solid var(--mp-line);
  display: block;
}
.mp-review__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mp-review__thumb:hover { opacity: .92; }
.mp-review__body {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px;
}
.mp-review p {
  margin: 0; color: var(--mp-ink-2); line-height: 1.6; font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-review footer {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; font-size: 12px; color: var(--mp-muted); margin-top: auto;
}
.mp-review footer b { color: var(--mp-ink); font-size: 12.5px; }
.mp-review__product {
  display: block; min-width: 0;
  color: var(--mp-muted); font-size: 12px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.mp-review__product:hover { color: var(--mp-accent-deep); }

.mp-posts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.mp-post {
  background: #fff; border: 1px solid var(--mp-line); border-radius: 14px;
  overflow: hidden; color: inherit; transition: .15s;
  display: flex; flex-direction: column; min-height: 0;
}
.mp-post:hover { transform: translateY(-3px); box-shadow: var(--mp-shadow); color: inherit; }
.mp-post img { width: 100%; aspect-ratio: 16/9; object-fit: cover; padding: 0; background: var(--mp-wash); display: block; }
.mp-post--logo img { object-fit: cover; padding: 0; background: #0f172a; }
.mp-post__date { margin: 0; padding: 10px 12px 0; font-size: 12px; color: #94a3b8; }
.mp-post h3 { margin: 0; padding: 4px 12px 0; font-size: 14px; line-height: 1.4; min-height: 0; }
.mp-post__excerpt {
  margin: 0; padding: 4px 12px 12px; font-size: 12px; color: #94a3b8; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .mp-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .mp-hot-grid, .mp-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-catalog-grid, .mp-topup-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 860px) {
  .mp-stage { padding: 4px 12px 14px; }
  .mp-stage-deck { height: 236px; }
  .mp-stage-card { left: 0; width: 100%; }
  .mp-stage-card.is-prev,
  .mp-stage-card.is-next { opacity: 0; pointer-events: none; transform: scale(.92); }
  .mp-stage-art { width: 150px; right: 4%; }
  .mp-holo-card { display: none; }
  .mp-cube { width: 84px; height: 84px; border-radius: 20px; }
  .mp-pedestal { width: 120px; bottom: 26px; }
  .mp-stage-copy { max-width: 64%; padding: 18px 0 28px 20px; }
  .mp-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mp-hot-grid, .mp-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-about { padding: 40px 0 34px; }
  .mp-about-top { grid-template-columns: 1fr; gap: 24px; }
  .mp-about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .mp-reviews { grid-template-columns: minmax(0, 1fr); }
  .mp-review { max-width: none; }
  .mp-posts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 70%);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .mp-post { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .mp-stage-deck { height: 218px; }
  .mp-stage-art { display: none; }
  .mp-stage-copy { max-width: 100%; padding: 18px 20px 30px; }
  .mp-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mp-hot-grid, .mp-market-grid,
  .mp-catalog-grid, .mp-topup-row { grid-template-columns: 1fr; }
  .mp-about-cards { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-stage-card, .mp-orb, .mp-pane { transition: none !important; animation: none !important; }
}

/* color-mix 不支持时的回退 */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .mp-cat-ico { background: #fff7ed; }
  .mp-hot-cover { background: linear-gradient(160deg, #0f172a, #ea580c); }
  .mp-stage-card { background: linear-gradient(125deg, var(--s-bg1), var(--s-bg2)); }
}


/* ==========================================================
   v3 视觉打磨：版式层级 · 图标磁贴 · 生成封面 · 购买流程 · 移动端 · 深色适配
   ========================================================== */
body.theme-marketplace { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.theme-marketplace h1, body.theme-marketplace h2, body.theme-marketplace h3 { text-wrap: balance; }
.mp-review p, .mp-stage-desc, .mp-step-desc { text-wrap: pretty; }

html[data-theme="dark"] body.theme-marketplace {
  --mp-ink: #f1f5f9;
  --mp-ink-2: #cbd5e1;
  --mp-muted: #94a3b8;
  --mp-line: #243046;
  --mp-surface: #162032;
  --mp-wash: #0d1320;
}
html[data-theme="dark"] body.theme-marketplace .topbar,
html[data-theme="dark"] body.theme-marketplace .catbar,
html[data-theme="dark"] body.theme-marketplace .mp-hot-card,
html[data-theme="dark"] body.theme-marketplace .mp-mkt-card,
html[data-theme="dark"] body.theme-marketplace .mp-catalog-card,
html[data-theme="dark"] body.theme-marketplace .mp-topup,
html[data-theme="dark"] body.theme-marketplace .mp-step,
html[data-theme="dark"] body.theme-marketplace .mp-review,
html[data-theme="dark"] body.theme-marketplace .mp-post,
html[data-theme="dark"] body.theme-marketplace .mp-tab:not(.active),
html[data-theme="dark"] body.theme-marketplace .mp-cart-btn:not(:hover),
html[data-theme="dark"] body.theme-marketplace .mp-buy:not(:hover) {
  background: var(--mp-surface);
  border-color: var(--mp-line);
  color: var(--mp-ink);
}
html[data-theme="dark"] body.theme-marketplace .mp-about {
  background: linear-gradient(96deg, #0f172a 0%, #131d31 50%, #0f172a 100%);
  border-color: var(--mp-line);
}
html[data-theme="dark"] body.theme-marketplace .mp-about-card {
  background: var(--mp-surface);
  border-color: var(--mp-line);
}
html[data-theme="dark"] body.theme-marketplace .mp-about-ico {
  background: rgba(225, 29, 72, .16);
}
html[data-theme="dark"] body.theme-marketplace .mp-about-stats {
  border-top-color: var(--mp-line);
}
html[data-theme="dark"] body.theme-marketplace .mp-about-globe-left { opacity: .22; }
html[data-theme="dark"] body.theme-marketplace .mp-about-globe-right { opacity: .35; }
html[data-theme="dark"] body.theme-marketplace .search { background: #1e293b; }
html[data-theme="dark"] body.theme-marketplace .catbar a.nav-link:hover,
html[data-theme="dark"] body.theme-marketplace .catbar .nav-item:hover > a { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] body.theme-marketplace .mp-step > em { color: rgba(255, 255, 255, .06); }

/* ---------- 图标磁贴（分类条 / 目录 / 直充 / 流程共用） ---------- */
.mp-ico-tile {
  --tint: #f97316;
  width: 58px; height: 58px; flex: none; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: var(--tint);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tint) 72%, #fff), var(--tint));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tint) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s, box-shadow .2s;
}
.mp-ico-tile svg { width: 50%; height: 50%; }
.mp-ico-tile--lg { width: 68px; height: 68px; border-radius: 18px; }
.mp-ico-tile--sm { width: 46px; height: 46px; border-radius: 13px; }
.mp-cat:hover .mp-ico-tile { transform: translateY(-3px); }
.mp-cat-name {
  max-width: 8em; white-space: normal; line-height: 1.35; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.mp-cats { align-items: start; }

/* ---------- 生成封面：没有上传图时不再显示空占位 ---------- */
.mp-gen-cover {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--c2) 60%, #fff) 0, transparent 52%),
    linear-gradient(155deg, var(--c1), var(--c2));
}
.mp-gen-cover::before, .mp-gen-cover::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.mp-gen-cover::before { width: 72%; aspect-ratio: 1; right: -20%; top: -24%; }
.mp-gen-cover::after { width: 46%; aspect-ratio: 1; left: -14%; bottom: -18%; }
.mp-gen-cover svg { position: relative; z-index: 1; width: 36%; height: 36%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
.mp-gen-cover i {
  position: absolute; z-index: 2; left: 10px; top: 10px;
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.mp-mkt-cover { position: relative; }
.mp-hot-cover img { z-index: 1; }

/* ---------- 卡片信息：发货方式 + 库存（不显示销量） ---------- */
.mp-hot-body h3 { min-height: 2.7em; }
.mp-hot-body h3 a, .mp-mkt-body h3 { color: var(--mp-ink); }
.mp-ship { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--mp-ink-2); }
.mp-ship::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.mp-ship.manual { color: #c2410c; }
.mp-ship.manual::before { background: #f59e0b; }
.mp-pick-badge,
.mp-multi-badge {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px;
  border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #fff;
}
.mp-pick-badge {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.mp-multi-badge {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 2px 8px rgba(14, 165, 233, .25);
}
.mp-rate { margin-left: auto; font-size: 12px; font-weight: 700; color: #d97706; }
.mp-hot-price { flex-wrap: wrap; }

/* ---------- 直充 / 资讯：条目少时不拉伸成整行 ---------- */
.mp-topup-row { grid-template-columns: repeat(auto-fill, minmax(300px, 360px)); }
.mp-topup > div { min-width: 0; flex: 1; }
.mp-topup > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-topup .mp-ico-tile { display: grid; color: #fff; overflow: visible; white-space: normal; }
.mp-topup em { white-space: nowrap; flex: none; }
.mp-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mp-catalog-card:hover .mp-ico-tile { transform: scale(1.05); }

/* ---------- 购买流程 01-05 ---------- */
.mp-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mp-step {
  position: relative; overflow: hidden; padding: 20px 18px 18px;
  background: #fff; border: 1px solid var(--mp-line); border-radius: 16px; transition: .2s;
}
.mp-step:hover { transform: translateY(-3px); box-shadow: var(--mp-shadow); }
.mp-step > em {
  position: absolute; right: 14px; top: 8px; font-style: normal;
  font-size: 46px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #f1f5f9;
}
.mp-step .mp-ico-tile { margin-bottom: 14px; position: relative; }
.mp-step b { position: relative; display: block; margin-bottom: 4px; font-size: 15px; }
.mp-step-desc { position: relative; display: block; font-size: 12.5px; line-height: 1.6; color: var(--mp-muted); }

/* ---------- 信任区块对比度 ---------- */
.mp-trust-points span { color: rgba(255, 255, 255, .8); }
.mp-trust-copy > p { color: rgba(255, 255, 255, .78); }

/* ---------- 响应式补充 ---------- */
@media (max-width: 1100px) {
  .mp-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  /* 搜索框独占第二行，保证首屏可搜索；品牌文字保留 */
  body.theme-marketplace .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; row-gap: 8px; }
  body.theme-marketplace .search { order: 9; flex: 1 0 100%; max-width: none; height: 40px; }
  body.theme-marketplace .logo .logo-wordmark { display: flex; }
  body.theme-marketplace .logo-wordmark b { font-size: 16px; }
  body.theme-marketplace .logo-wordmark small { font-size: 9.5px; }
  .mp-notice .mp-notice-inner { font-size: 12px; }
  .mp-notice .mp-notice-inner > div { display: flex; align-items: flex-start; gap: 8px; word-break: keep-all; line-break: strict; }
  .mp-notice b { flex: none; margin-right: 0; margin-top: 1px; }
  .footer { padding-bottom: 96px; }
  .haacc-fab-stack { right: 14px; bottom: 14px; }
  .haacc-concierge-trigger { width: 50px; height: 50px; }
  .fab-top { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .mp-features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mp-feature { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .mp-flow { grid-template-columns: 1fr; }
  /* 手机单列：横向卡片，避免封面占去半屏 */
  .mp-hot-card { flex-direction: row; }
  .mp-hot-cover { width: 116px; aspect-ratio: auto; min-height: 116px; flex: none; }
  .mp-hot-cover::after { display: none; }
  .mp-hot-body { padding: 12px; gap: 6px; }
  .mp-hot-body h3 { min-height: 0; font-size: 14px; }
  .mp-topup-row { grid-template-columns: minmax(0, 1fr); }
  /* 手机顶栏：保持一行放得下（品牌 + 语言货币 + 登录），注册入口移入抽屉 */
  body.theme-marketplace .top-actions .btn-primary { display: none; }
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .mp-ico-tile { background: var(--tint); box-shadow: none; }
  .mp-gen-cover { background: linear-gradient(155deg, var(--c1), var(--c2)); }
}
