/* ============================================================
   紫粉霓虹 · 会员风主题（深紫黑底 + 紫粉渐变 + 金色价格）
   仅用于 H5 端（index.html / order.html）；
   后台 admin.html 使用冻结的 admin.css（原薄荷绿主题），互不干扰。
   ============================================================ */
:root {
  --dark: #0b0714;
  --dark-2: #170f28;
  --card: #161029;
  --card-2: #1f1538;

  /* 品牌主色：紫 → 粉 */
  --green: #a855f7;      /* 语义别名：主色（紫） */
  --green-2: #f0abfc;    /* 语义别名：亮色（粉紫） */
  --cyan: #c084fc;
  --purple: #8b5cf6;
  --pink: #f472b6;

  --muted: #a294c4;
  --ink: #f7f3ff;
  --ink-2: #e3d8ff;
  --dim: #7c6a9e;

  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(168, 85, 247, .34);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --glow: 0 6px 20px rgba(168, 85, 247, .38);

  --grad: linear-gradient(90deg, #c084fc, #f472b6);
  --grad-green: linear-gradient(90deg, #8b5cf6, #ec4899);
  --grad-gold: linear-gradient(90deg, #ffe6b0, #f5b942);
  --on-brand: #fff;
  --radius: 16px;

  /* 页面统一左右安全边距，所有区块共用，保证纵向对齐一致 */
  --pad-x: 14px;
  /* 区块之间的统一纵向节奏：banner / 公告 / 搜索 / 分类 / 商品 之间一律 16px */
  --gap-block: 16px;

  /* ---- 以下为换肤变量：主题文件只需覆盖这些即可整体换风格 ---- */
  --fill-1: rgba(255, 255, 255, .04);
  --fill-2: rgba(255, 255, 255, .06);
  --glow-a: rgba(168, 85, 247, .34);
  --glow-b: rgba(236, 72, 153, .22);
  --glow-mark: 0 4px 16px rgba(168, 85, 247, .45), 0 0 18px rgba(236, 72, 153, .28);
  --glow-btn: 0 4px 16px rgba(168, 85, 247, .4);
  --glow-soft: 0 6px 22px rgba(139, 92, 246, .18);
  --hero-bg: linear-gradient(180deg, rgba(139, 92, 246, .16) 0%, var(--dark) 78%);
  --hero-ink: var(--ink);
  --hero-muted: var(--muted);
  --hero-chip-bg: var(--fill-1);
  --hero-pill-ink: var(--pink);
  --hero-pill-bg: var(--pink-soft);
  --hero-pill-line: var(--pink-line);
  --pink-soft: rgba(236, 72, 153, .12);
  --pink-line: rgba(236, 72, 153, .32);
  --brand-soft: rgba(168, 85, 247, .1);
  --brand-soft-2: rgba(168, 85, 247, .16);
  --brand-ring: rgba(168, 85, 247, .12);
  --brand-ring-2: rgba(168, 85, 247, .2);
  --thumb-bg: linear-gradient(135deg, #2a1c4d, #150e26);
  --dim-2: #6f5f92;
  --cats-bg: rgba(11, 7, 20, .93);
  --cats-line: var(--line);
  --cats-stuck-shadow: 0 10px 22px rgba(0, 0, 0, .38);
  /* 胶囊（分类 chip / 输入框）质感：主题可整体改写 */
  --chip-bg: var(--card);
  --chip-line: var(--line);
  --chip-ink: var(--muted);
  --chip-shadow: none;
  --chip-active-shadow: var(--glow-btn);
  --field-bg: var(--card);
  --tabbar-bg: rgba(23, 15, 40, .95);
  --toast-bg: rgba(31, 21, 56, .96);
  --toast-ink: var(--ink);
  --close-bg: rgba(0, 0, 0, .5);
  --mask-bg: rgba(0, 0, 0, .68);
  --sheet-bg: var(--dark-2);
  --wx-tip-bg: linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(236, 72, 153, .1));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 74px; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  overflow-x: hidden;
}

a { color: var(--pink); text-decoration: none; }
img { display: block; max-width: 100%; }

/* 顶部紫粉霓虹辉光 */
.app::before {
  content: "";
  position: absolute;
  top: -130px; left: 50%;
  transform: translateX(-50%);
  width: 440px; height: 320px;
  background:
    radial-gradient(circle at 42% 100%, var(--glow-a) 0%, transparent 58%),
    radial-gradient(circle at 68% 96%, var(--glow-b) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 26px var(--pad-x) 22px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
/* 头图背景：由后台配置，铺满整个头部，下面压一层渐变遮罩保证文字可读 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-bg);
  opacity: var(--hero-bg-mask, 0);
  transition: opacity .2s;
}
.hero.has-bg { border-bottom-color: transparent; }
.hero-bar { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-green);
  display: grid; place-items: center;
  font-weight: 900; font-size: 17px;
  color: var(--on-brand);
  letter-spacing: -.5px;
  flex: 0 0 auto;
  box-shadow: var(--glow-mark);
  overflow: hidden;
}
.hero-mark img { width: 100%; height: 100%; object-fit: cover; }
.hero-name { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: var(--hero-ink); }
.hero-slogan { font-size: 12px; color: var(--hero-muted); margin-top: 1px; }
.hero-pill {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--hero-pill-ink);
  background: var(--hero-pill-bg);
  border: 1px solid var(--hero-pill-line);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-title {
  position: relative;
  margin: 20px 0 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.28;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; }
.hero-chips span {
  font-size: 11.5px;
  color: var(--hero-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--hero-chip-bg);
  line-height: 1.4;
}

/* ---------------- 首页横幅 ---------------- */
.banner {
  position: relative; z-index: 1;
  margin: var(--gap-block) var(--pad-x) 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--brand-soft);
  line-height: 0;
  box-shadow: var(--glow-soft);
}
.ban-track { display: flex; will-change: transform; }
.banner img {
  width: 100%;
  flex: 0 0 100%;
  display: block;
  object-fit: cover;
  max-height: 44vw;
}
.ban-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; align-items: center; gap: 5px;
}
.ban-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: .25s;
}
.ban-dot.on { width: 15px; background: #fff; }

/* ---------------- 公告 ---------------- */
.notice {
  position: relative; z-index: 1;
  margin: var(--gap-block) var(--pad-x) 0;
  background: var(--brand-soft);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 11px 13px;
  border-radius: 13px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

/* ---------------- 搜索 ---------------- */
/* 下边距 8px + 分类栏上内距 8px = 统一的 16px 节奏；分类栏吸顶时也保留 8px 呼吸 */
.search { position: relative; z-index: 1; margin: var(--gap-block) var(--pad-x) 8px; }
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field-bg);
  box-shadow: var(--chip-shadow);
  border-radius: 14px;
  padding: 11px 14px 11px 38px;
  font-size: 14px;
  outline: none;
  color: var(--ink);
  font-family: inherit;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--line-2); background: var(--card-2); box-shadow: 0 0 0 3px var(--brand-ring); }
.search::before {
  content: "";
  position: absolute;
  left: 15px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -8px;
  border: 2px solid var(--dim);
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-45deg);
}

/* ---------------- 分类 ---------------- */
.cats {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 9px;
  overflow-x: auto;
  padding: 8px var(--pad-x) var(--gap-block);
  background: var(--cats-bg);
  border-bottom: 1px solid var(--cats-line);
  scroll-padding: 0 var(--pad-x);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.cats::-webkit-scrollbar { display: none; }
/* 吸顶后才浮起的柔和层次，静态时保持干净 */
.cats.stuck { box-shadow: var(--cats-stuck-shadow); }
/* 横向可滑动时，右侧做渐隐暗示（滚到尽头自动取消） */
.cats.fade-r {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
}
.cat {
  flex: 0 0 auto;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  color: var(--chip-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--chip-shadow);
  transition: transform .16s ease, background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.cat:active { transform: scale(.95); }
.cat.active {
  background: var(--grad-green);
  border-color: transparent;
  color: var(--on-brand);
  font-weight: 700;
  box-shadow: var(--chip-active-shadow);
}

/* ---------------- 商品网格 ---------------- */
.grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 var(--pad-x) 22px;
}
.card {
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .16s, border-color .16s;
  display: flex;
  flex-direction: column;
}
.card:active { transform: scale(.975); border-color: var(--line-2); }
.card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--thumb-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 12px;
  position: relative;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .hot {
  position: absolute; left: 0; top: 0;
  background: var(--grad-green);
  color: var(--on-brand);
  font-size: 10.5px; font-weight: 800;
  padding: 2px 9px;
  border-radius: 0 0 10px 0;
}
.card .body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title {
  font-size: 14px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card .tag {
  font-size: 10.5px; color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  border-radius: 5px; padding: 1px 5px;
}
.card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 5px; padding-top: 6px; }
.card .price {
  font-weight: 900; font-size: 18px;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card .price small { font-size: 11px; font-weight: 600; }
.card .origin { font-size: 11px; color: var(--dim-2); text-decoration: line-through; }

.empty { text-align: center; color: var(--muted); padding: 56px 20px; font-size: 14px; }
.loading { text-align: center; color: var(--muted); padding: 44px 0; font-size: 13.5px; }

/* ---------------- 详情抽屉 ---------------- */
.mask {
  position: fixed; inset: 0;
  background: var(--mask-bg);
  z-index: 40; opacity: 0; pointer-events: none; transition: .2s;
}
.mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%; max-width: 480px; max-height: 88vh;
  background: var(--sheet-bg);
  border: 1px solid var(--line-2);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  z-index: 50;
  transition: transform .26s cubic-bezier(.3, 1, .4, 1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -10px 44px rgba(0, 0, 0, .55);
}
.sheet.show { transform: translate(-50%, 0); }
/* 关闭按钮改为相对整个抽屉定位，浮在跟随滚动的封面之上 */
.sheet .sh-head { position: static; }
.sheet .sh-close { z-index: 6; }

/* 商品图：放进滚动区，跟随内容一起滑动；负外边距撑满抽屉宽度 */
.sheet .sh-media { position: relative; margin: -15px -16px 14px; }
.sheet .sh-media img {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; display: block;
  background: var(--thumb-bg);
}
.sheet .sh-media .ph {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13px;
  background: var(--thumb-bg);
}

/* 价格行：价格靠左，标签靠右 */
.sh-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sh-tag {
  font-size: 11px; color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  border-radius: 999px; padding: 2px 9px;
  white-space: nowrap;
}

.sheet .sh-cover {
  width: 100%; aspect-ratio: 16 / 9;
  background: var(--thumb-bg);
  object-fit: cover;
}
.sheet .sh-cover-empty {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 13px;
  background: var(--thumb-bg);
}
.sheet .sh-close {
  position: absolute; right: 11px; top: 11px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--close-bg);
  border: 1px solid var(--line);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}
.sheet .sh-body { padding: 15px 16px 22px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.sheet .sh-sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.sheet .sh-price {
  font-size: 26px; font-weight: 900;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet .sh-price small { font-size: 13px; }
.sheet .sh-origin { color: var(--dim-2); font-size: 12.5px; text-decoration: line-through; margin-left: 7px; }
.sheet h3 {
  font-size: 14px; margin: 18px 0 9px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.sheet h3::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: var(--grad-green);
}

.spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.spec {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 13px; cursor: pointer;
  background: var(--card);
  min-width: 92px; text-align: center;
  transition: .16s;
}
.spec .sp-price { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.spec.active { border-color: var(--purple); background: var(--brand-soft-2); color: var(--green-2); font-weight: 700; box-shadow: inset 0 0 0 1px var(--brand-ring-2); }
.spec.active .sp-price { color: var(--pink); }

.qty { display: flex; align-items: center; gap: 12px; }
.qty button {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--green-2); font-size: 17px; cursor: pointer; line-height: 1;
}
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.features { display: flex; flex-wrap: wrap; gap: 6px; }
.features span {
  font-size: 12px; background: var(--brand-soft);
  color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px 9px;
}
.desc {
  white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line);
  padding: 11px 13px; border-radius: 12px;
}

.field { margin-bottom: 11px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px; outline: none;
  background: var(--card); color: var(--ink);
  font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple); background: var(--card-2); }
.field textarea { min-height: 64px; resize: vertical; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: block; width: 100%;
  border: none; border-radius: 50px;
  padding: 13px; font-size: 15.5px; font-weight: 800;
  text-align: center; cursor: pointer;
  transition: .16s; font-family: inherit;
}
.btn:active { transform: scale(.985); }
.btn-primary {
  background: var(--grad-green); color: var(--on-brand);
  box-shadow: var(--glow-btn);
}
.btn-ghost { background: transparent; color: var(--pink); border: 1px solid var(--pink-line); }
.btn-gray { background: var(--fill-2); color: var(--ink-2); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn-row { display: flex; gap: 10px; margin-top: 15px; }
.btn-row .btn { flex: 1; }

/* ---------------- 页脚备案 ---------------- */
.site-foot {
  position: relative; z-index: 1;
  text-align: center;
  padding: 4px 16px 22px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
}
.site-foot .foot-icp a { color: var(--muted); text-decoration: none; }
.site-foot .foot-icp a:active { color: var(--pink); }
.site-foot .foot-co { opacity: .8; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  background: var(--tabbar-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; z-index: 30;
  padding: 7px 0 max(7px, env(safe-area-inset-bottom));
}
.tabbar .tb {
  flex: 1; text-align: center; font-size: 11.5px;
  color: var(--muted); cursor: pointer; padding: 2px 0;
}
.tabbar .tb .ico { font-size: 18px; display: block; line-height: 1.2; }
.tabbar .tb.active { color: var(--pink); font-weight: 700; }
.tabbar .tb-cta {
  flex: 1.5;
  background: var(--grad-green); color: var(--on-brand);
  border-radius: 999px; margin: 0 10px;
  font-size: 13.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-btn);
}

/* ---------------- 首页弹窗 ---------------- */
.pop-mask {
  position: fixed; inset: 0; z-index: 90;
  background: var(--mask-bg);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px;
  animation: popFade .2s ease;
}
.pop-box {
  position: relative;
  width: 100%; max-width: 330px;
  max-height: 82vh; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  text-align: center;
  animation: popIn .24s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes popFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.pop-img { width: 100%; display: block; object-fit: cover; max-height: 46vh; border-radius: 20px 20px 0 0; }
.pop-body { padding: 20px 20px 6px; }
.pop-body b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.pop-text {
  margin-top: 8px; font-size: 13.5px; line-height: 1.75;
  color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
}
.pop-body:empty { padding: 0; }
.pop-btn {
  display: block; width: calc(100% - 40px);
  margin: 16px 20px 20px;
  padding: 12px 16px;
  border: none; border-radius: 999px;
  background: var(--grad-green);
  color: var(--on-brand);
  font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  box-shadow: var(--glow-btn);
}
.pop-btn:active { transform: scale(.97); }
.pop-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; line-height: 26px;
  border-radius: 50%; border: none;
  background: var(--close-bg);
  color: #fff; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.pop-body.no-img { padding-top: 28px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; top: 42%;
  transform: translate(-50%, -50%) scale(.94);
  background: var(--toast-bg);
  border: 1px solid var(--line-2);
  color: var(--toast-ink);
  padding: 11px 18px; border-radius: 12px;
  font-size: 14px; z-index: 999;
  opacity: 0; pointer-events: none; transition: .2s;
  max-width: 78%; text-align: center;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------------- 通用区块 ---------------- */
.session {
  position: relative; z-index: 1;
  margin: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow);
}
.session h3 { margin: 0 0 11px; font-size: 15px; font-weight: 800; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------------- 订单状态标签 ---------------- */
.badge {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.badge.pending { color: #ffca6e; background: rgba(255, 202, 110, .12); border: 1px solid rgba(255, 202, 110, .3); }
.badge.paid { color: var(--pink); background: rgba(236, 72, 153, .12); border: 1px solid rgba(236, 72, 153, .3); }
.badge.closed { color: var(--muted); background: var(--fill-2); border: 1px solid var(--line); }

/* ---------------- 仅微信内支付引导 ---------------- */
.wx-tip {
  position: relative; z-index: 1;
  margin: 12px 12px 0;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--wx-tip-bg);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 10px;
}
.wx-tip-txt { display: flex; flex-direction: column; gap: 3px; }
.wx-tip-txt b { font-size: 13.5px; color: var(--ink); }
.wx-tip-txt span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.wx-tip-btns { display: flex; gap: 8px; }
.wx-tip-btn {
  flex: 1; padding: 8px 0; font-size: 12.5px; font-weight: 700;
  border-radius: 999px; cursor: pointer;
  background: var(--fill-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
}
.wx-tip-btn.primary {
  background: var(--grad-green); color: var(--on-brand); border: none;
}

.qrbox {
  width: 190px; max-width: 62%; margin: 6px auto 4px;
  padding: 10px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow);
}
.qrbox img { display: block; width: 100%; height: auto; }

.linkbox {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  background: var(--brand-soft);
  border: 1px dashed var(--line-2);
  border-radius: 10px; padding: 9px 11px;
  word-break: break-all; text-align: center;
  -webkit-user-select: all; user-select: all;
}
