﻿/* ==========================================================
   三角洲接单 · 全局样式（蓝白主题）
   移动端优先 + PC 端自适应
   ========================================================== */

:root {
  --bg: #fffdf0;
  --bg-grad-1: rgba(255, 214, 0, .10);
  --bg-grad-2: rgba(255, 170, 0, .07);

  --surface: #ffffff;
  --surface-2: #fffbe8;
  --surface-3: #fff6cc;
  --surface-4: #fff0a8;

  --line: #f0e5bd;
  --line-soft: #f7f0d6;

  --text: #141414;
  --text-2: #5b5b5b;
  --text-3: #9c9c9c;

  --brand: #ffe500;
  --brand-2: #ffd400;
  --brand-soft: #fff8cc;
  --brand-ink: #111111;
  --brand-dark: #7a6400;

  --price: #ff2d2d;
  --orange: #ff6a00;
  --danger: #e11d48;
  --danger-soft: #ffe9ee;
  --success: #12a150;
  --success-soft: #e6f7ee;
  --warning: #c98a00;
  --warning-soft: #fff6da;
  --info: #b8860b;
  --info-soft: #fff4d6;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(120, 100, 20, .07);
  --shadow: 0 4px 16px rgba(120, 100, 20, .09);
  --shadow-lg: 0 12px 32px rgba(120, 100, 20, .14);

  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(820px 420px at 8% -6%, var(--bg-grad-1), transparent 62%),
    radial-gradient(680px 360px at 96% 2%, var(--bg-grad-2), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cddcf1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b9cde9; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */

.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(76px + var(--safe-b));
  position: relative;
}

.app.wide { max-width: 1320px; padding-bottom: 32px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.brand-mark.hitter { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 4px 12px rgba(234, 88, 12, .28); }
.brand-mark.cs { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 4px 12px rgba(2, 132, 199, .28); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 16px; letter-spacing: .3px; }
.brand-text span { font-size: 10.5px; color: var(--text-3); letter-spacing: 1.1px; }

.topbar-spacer { flex: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.chip b { color: var(--brand); font-variant-numeric: tabular-nums; }
.chip.orange b { color: var(--price); }

/* PC 顶部导航（移动端隐藏） */
.topnav { display: none; align-items: center; gap: 2px; margin-left: 14px; }
.topnav button {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-2);
  transition: all .15s;
}
.topnav button:hover { background: var(--surface-3); color: var(--text); }
.topnav button.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------------- 底部导航 ---------------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(23, 62, 128, .05);
}

.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 0 3px;
  color: var(--text-3);
  font-size: 11px;
  border-radius: 12px;
  transition: color .16s;
}
.tabbar button svg { width: 21px; height: 21px; stroke-width: 1.9; }
.tabbar button.active { color: var(--brand); }
.tabbar button.active.hitter { color: var(--orange); }

/* ---------------- 通用组件 ---------------- */

.page { padding: 16px; }
.page-tight { padding: 12px 16px; }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px;
}
.section-title h3 { margin: 0; font-size: 15.5px; letter-spacing: .2px; }
.section-title .more { font-size: 12.5px; color: var(--text-3); }
.section-title h3::before {
  content: ''; display: inline-block; width: 3px; height: 14px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-radius: 2px;
  margin-right: 8px; vertical-align: -2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  background: linear-gradient(140deg, #1e40af 0%, #2563eb 48%, #3b8ef7 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .26);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 82% 16%, #000, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .tag-line { font-size: 11px; letter-spacing: 2.6px; color: rgba(255,255,255,.72); }
.hero h2 { margin: 10px 0 8px; font-size: 25px; letter-spacing: .5px; }
.hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 13px; }
.hero-stats { display: flex; gap: 26px; margin-top: 20px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11px; color: rgba(255,255,255,.68); }

.scroll-x {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 16px 4px;
  scrollbar-width: none; margin: 0 -16px;
}
.scroll-x::-webkit-scrollbar { display: none; }

.game-pill {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  transition: all .16s;
}
.game-pill.active {
  background: var(--brand); color: #fff;
  border-color: var(--brand);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------------- 首页双 banner / 播报 / 入口 ---------------- */

.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 620px) { .banner-grid { grid-template-columns: 1fr; } }

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 30px rgba(16, 34, 66, .18);
  transition: transform .16s, box-shadow .16s;
}
.banner:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(16, 34, 66, .24); }
.banner.pc { background: linear-gradient(140deg, #08213d 0%, #1d4ed8 58%, #3b82f6 100%); }
.banner.mobile { background: linear-gradient(140deg, #2e1065 0%, #7c3aed 58%, #a78bfa 100%); }
.banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 84% 18%, #000, transparent 72%);
  pointer-events: none;
}
.banner > * { position: relative; z-index: 1; }
.banner .b-ico { position: absolute; top: 12px; right: 14px; font-size: 46px; opacity: .26; }
.banner .b-title { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: .5px; }
.banner .b-sub { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.banner .b-cta {
  margin-top: 16px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.banner.mobile .b-cta { color: #7c3aed; }

.marquee {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 0;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 24px; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
  font-size: 12px;
  color: var(--text-2);
  padding-left: 12px;
}
.marquee-track span { flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.cs-row:hover { border-color: #c7dcfb; }
.cs-row .avatar { margin: 0; }

.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 4px; }
.entry {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  color: var(--text-2);
  transition: border-color .15s, transform .1s;
}
.entry:hover { border-color: #c7dcfb; }
.entry:active { transform: scale(.97); }
.entry i { font-style: normal; font-size: 21px; line-height: 1; }

/* ---------------- 分类 + 单子（商品目录） ---------------- */

.platform-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 14px;
}
.platform-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .16s;
  text-align: left;
}
.platform-tab span { font-size: 17px; line-height: 1.2; }
.platform-tab b { font-size: 15px; }
.platform-tab i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.platform-tab:hover { border-color: #c7dcfb; }
.platform-tab.active {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .26);
}
.platform-tab.active i { color: rgba(255, 255, 255, .78); }

.catalog { display: block; }

.cat-nav {
  display: none;
  flex-direction: column;
  gap: 3px;
  width: 196px;
  flex: 0 0 196px;
  position: sticky;
  top: 78px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
}
.cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: left;
  width: 100%;
  transition: background .14s, color .14s;
}
.cat-item:hover { background: var(--surface-2); color: var(--text); }
.cat-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat-item b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-item i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-3); }

.cat-chips {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -16px 6px; padding: 2px 16px 10px;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.cat-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }

.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.prod {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s, transform .1s;
}
.prod:hover { border-color: #c7dcfb; box-shadow: var(--shadow); }
.prod:active { transform: scale(.985); }

.prod-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
}
.prod-cover img { width: 100%; height: 100%; object-fit: cover; }
.prod-cover .emoji { font-size: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .18)); }
.prod-cover .hot {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .92); color: #ef6c00; font-weight: 700;
}
.prod-cover .tip {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .94); color: #ef6c00; font-weight: 700;
}
.prod-cover .off {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, .55);
  display: grid; place-items: center;
  font-size: 12px; color: var(--text-2); font-weight: 600;
}

.prod-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h4 {
  margin: 0; font-size: 13.5px; line-height: 1.42; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; gap: 6px; }
.prod-sales { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

/* 后台上传封面 */
.cover-row { display: flex; gap: 14px; align-items: flex-start; }
.cover-preview {
  width: 108px; height: 68px; flex: 0 0 108px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px dashed var(--line);
  display: grid; place-items: center;
  overflow: hidden;
  font-size: 22px;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-actions { flex: 1; min-width: 0; }

.svc {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, transform .1s, box-shadow .16s;
}
.svc:hover { border-color: #c7dcfb; box-shadow: var(--shadow); }
.svc:active { transform: scale(.985); }
.svc .cat { font-size: 10.5px; color: var(--brand); letter-spacing: .5px;
  background: var(--brand-soft); padding: 2px 7px; border-radius: 5px; align-self: flex-start; }
.svc h4 { margin: 8px 0 6px; font-size: 14.5px; line-height: 1.4; min-height: 40px; letter-spacing: .2px; }
.svc .sico-inline { margin-right: 5px; font-size: 14px; vertical-align: -1px; }
.svc .desc { font-size: 11.5px; color: var(--text-3); line-height: 1.5; min-height: 34px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.svc .sico { position: absolute; top: 12px; right: 13px; font-size: 17px; opacity: .85; }

.price { color: var(--price); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.price small { font-size: 11px; font-weight: 500; color: var(--text-3); margin-left: 2px; }

.hot-flag {
  position: absolute; top: 0; right: 0;
  font-size: 10px; padding: 3px 9px;
  background: linear-gradient(135deg, #fb923c, #f97316); color: #fff;
  border-radius: 0 var(--radius) 0 10px;
  font-weight: 700; letter-spacing: .4px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: filter .15s, transform .1s, background .15s;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #2f77ea, #1d4ed8); }
.btn-orange {
  background: linear-gradient(180deg, #fb923c, #f97316);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(249, 115, 22, .26);
}
.btn-orange:hover { background: linear-gradient(180deg, #f9862f, #ea6a0c); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #ffd0da; box-shadow: none; }
.btn-danger:hover { background: #ffdde5; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px 11px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending_pay { color: var(--warning); background: var(--warning-soft); border-color: #fde8c0; }
.badge.paid { color: var(--info); background: var(--info-soft); border-color: #d3e3ff; }
.badge.accepted { color: #ea6a0c; background: #fff1e3; border-color: #ffd9bb; }
.badge.submitted { color: #7c3aed; background: #f3ebff; border-color: #e2d3ff; }
.badge.completed { color: var(--success); background: var(--success-soft); border-color: #c8eeda; }
.badge.cancelled, .badge.refunded { color: var(--text-3); background: #f1f4f9; border-color: #e3e9f2; }
.badge.disputed { color: var(--danger); background: var(--danger-soft); border-color: #ffd0da; }

/* ---------------- 订单卡片 ---------------- */

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s;
}
.order-card:hover { border-color: #c7dcfb; box-shadow: var(--shadow); }
.order-card .oc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-card .oc-head h4 { margin: 0; font-size: 15px; line-height: 1.4; }
.order-card .oc-no { font-size: 11px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.order-card .oc-meta { display: flex; gap: 14px; margin-top: 11px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.order-card .oc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.order-card .oc-foot .amt { color: var(--price); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.order-card .oc-actions { display: flex; gap: 8px; }

/* ---------------- 表单 ---------------- */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field label i { color: var(--danger); font-style: normal; margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }

.input, .textarea, .select {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  font-size: 14px;
  transition: border-color .16s, box-shadow .16s;
}
.input::placeholder, .textarea::placeholder { color: #a9b8cf; }
.input:focus, .textarea:focus, .select:focus {
  border-color: #7fa9f9;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------------- 列表行 ---------------- */

.list { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  transition: background .14s;
}
.row:hover { background: var(--surface-2); }
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
.row .k { font-size: 13.5px; font-weight: 500; }
.row .v { font-size: 13px; color: var(--text-2); text-align: right; }
.row .sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }

.avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: var(--text-2);
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

/* ---------------- 空状态 ---------------- */

.empty { padding: 52px 20px; text-align: center; color: var(--text-3); }
.empty .ico { font-size: 34px; opacity: .5; margin-bottom: 10px; }
.empty p { margin: 0; font-size: 13px; }

/* ---------------- 弹层 ---------------- */

.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16, 34, 66, .38);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
  text-align: left; /* 避免 .center 工具类（mask.center）把弹层内文字居中 */
}

.mask.center, .mask { text-align: left; }
.mask.center { align-items: center; padding: 20px; }

.sheet {
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(20px + var(--safe-b));
  box-shadow: 0 -10px 40px rgba(16, 34, 66, .16);
  animation: slideUp .24s cubic-bezier(.22, .9, .28, 1);
}
.mask.center .sheet { border-radius: var(--radius-lg); border-bottom: 1px solid var(--line); max-width: 470px; animation: pop .2s ease; }

.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-close { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 15px; display: grid; place-items: center; }
.sheet-close:hover { background: var(--surface-4); }

@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

/* ---------------- Toast ---------------- */

#toast-root {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 86vw;
}
.toast {
  padding: 10px 16px;
  border-radius: 11px;
  background: #16233c;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toastIn .2s ease;
  text-align: center;
}
.toast.ok { background: #0f9d58; }
.toast.err { background: #e11d48; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------------- 统计卡片 ---------------- */

.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box b { display: block; font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-box span { font-size: 11px; color: var(--text-3); }
.stat-box.orange b { color: var(--price); }
.stat-box.blue b { color: var(--info); }
.stat-box.green b { color: var(--success); }

/* ---------------- 登录页 ---------------- */

.auth-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 24px calc(32px + var(--safe-b));
  max-width: 460px; margin: 0 auto;
}
.auth-logo {
  width: 62px; height: 62px; border-radius: 19px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800; color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .3);
}
.auth-logo.hitter { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 12px 28px rgba(234, 88, 12, .28); }
.auth-logo.cs { background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 12px 28px rgba(2, 132, 199, .28); }
.auth-wrap h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: .3px; }
.auth-wrap .sub { color: var(--text-3); font-size: 13.5px; margin: 0 0 26px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.auth-switch b { color: var(--brand); cursor: pointer; }
.auth-tip {
  margin-top: 20px; padding: 12px 14px;
  background: var(--brand-soft);
  border: 1px solid #d3e3ff;
  border-radius: 11px;
  font-size: 12px; color: var(--text-2); line-height: 1.7;
}
.auth-tip code { color: var(--brand); font-size: 12px; }

/* ---------------- 订单详情 ---------------- */

.detail-head {
  padding: 22px 18px;
  background: linear-gradient(140deg, #1e40af 0%, #2563eb 55%, #3b8ef7 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.detail-head::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 88% 10%, #000, transparent 68%);
  pointer-events: none;
}
.detail-head > * { position: relative; z-index: 1; }
.detail-head .no { font-size: 11.5px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.detail-head h2 { margin: 9px 0 10px; font-size: 20px; }
.detail-head .amt { font-size: 27px; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }

.timeline { padding: 4px 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-4); border: 2px solid var(--line); flex: 0 0 auto; margin-top: 3px; }
.tl-item.done .tl-dot { background: var(--brand); border-color: var(--brand); }
.tl-body { flex: 1; }
.tl-body b { font-size: 13px; font-weight: 600; }
.tl-body .meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.chat-box { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 4px 0; }
.msg { max-width: 78%; padding: 9px 12px; border-radius: 13px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border-bottom-right-radius: 4px; }
.msg.other { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }
.msg .who { font-size: 10.5px; opacity: .7; margin-bottom: 3px; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }

/* ---------------- 客服端 ---------------- */

.cs-shell { display: flex; min-height: 100vh; max-width: 1360px; margin: 0 auto; }

.cs-side {
  width: 212px; flex: 0 0 212px;
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface);
}
.cs-side .logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.cs-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  transition: all .14s;
  text-align: left;
  width: 100%;
}
.cs-nav:hover { background: var(--surface-2); color: var(--text); }
.cs-nav.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cs-nav .badge-count {
  margin-left: auto; font-size: 10.5px; padding: 1px 7px;
  background: var(--danger); color: #fff; border-radius: 6px; font-weight: 700;
}
.cs-nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
.cs-nav span { white-space: nowrap; }

.cs-main { flex: 1; min-width: 0; padding: 24px 26px 40px; }
.cs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.cs-head h1 { margin: 0; font-size: 21px; letter-spacing: .2px; }
.cs-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-3); }

.cs-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .cs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cs-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.cs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.cs-card .label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.cs-card .num { font-size: 24px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.cs-card .num small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.cs-card .delta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.cs-card.hi { border-color: #bcd6ff; background: linear-gradient(180deg, #f6faff, #fff); }
.cs-card.hi .num { color: var(--brand); }

.toolbar { display: flex; align-items: center; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.toolbar .input { width: auto; flex: 1; min-width: 180px; max-width: 320px; padding: 9px 12px; font-size: 13px; }
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.seg button:hover { background: var(--surface-2); }
.seg button.active { background: var(--brand); color: #fff; font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl thead th {
  text-align: left; padding: 10px; font-size: 11.5px; font-weight: 600;
  color: var(--text-3); letter-spacing: .4px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); position: sticky; top: 0; white-space: nowrap;
}
.tbl tbody td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .mono { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 11.5px; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.tbl-scroll { overflow-x: auto; }

/* ---------------- 打手端 ---------------- */

.lobby-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s;
}
.lobby-card:hover { border-color: #ffd0a8; box-shadow: var(--shadow); }
.lobby-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #fb923c, #f97316);
}
.lobby-card .lc-top { display: flex; justify-content: space-between; gap: 12px; }
.lobby-card h4 { margin: 0 0 7px; font-size: 15px; }
.lobby-card .target { font-size: 12px; color: var(--text-3); line-height: 1.55; }
.lobby-card .income { text-align: right; flex: 0 0 auto; }
.lobby-card .income b { display: block; font-size: 20px; color: var(--price); font-variant-numeric: tabular-nums; }
.lobby-card .income span { font-size: 10.5px; color: var(--text-3); }
.lobby-card .lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

.online-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.online-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-3); box-shadow: 0 0 0 3px rgba(139, 156, 186, .16);
}
.online-dot.on::before { background: var(--success); box-shadow: 0 0 0 3px rgba(15, 157, 88, .16); }

/* ---------------- 下单须知 / 客服 / 加入我们 ---------------- */

.notice-text {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-text.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.notice-toggle { margin-top: 10px; font-size: 12.5px; color: var(--brand); font-weight: 600; }

.notice-mini {
  background: var(--warning-soft);
  border: 1px solid #fde8c0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #8a5a00;
  line-height: 1.65;
  margin-bottom: 12px;
}
.notice-mini b { color: #b45309; margin-right: 5px; }

.wechat-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.wechat-row b {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .4px;
}
.wechat-row .btn { margin-left: auto; }

.qr-img {
  width: 180px; height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0 auto 14px;
  display: block;
  background: #fff;
  padding: 6px;
}

.cs-float {
  position: fixed;
  right: 16px;
  bottom: calc(88px + var(--safe-b));
  z-index: 60;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
  transition: transform .12s;
}
.cs-float:hover { transform: translateY(-1px); }
.cs-float svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .cs-float { bottom: 28px; right: 32px; }
}

/* ---------------- 常用工具 ---------------- */

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.brand-color { color: var(--brand); }
.orange-color { color: var(--price); }
.hidden { display: none !important; }

.loading { display: grid; place-items: center; padding: 60px 0; color: var(--text-3); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; margin-bottom: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- PC 端适配 ---------------- */

@media (min-width: 900px) {
  body { font-size: 15px; }

  .app { max-width: 1180px; padding-bottom: 40px; }

  .tabbar { display: none; }
  .topnav { display: flex; }
  .cat-nav { display: flex; }
  .cat-chips { display: none; }
  .catalog { display: flex; gap: 22px; align-items: flex-start; }
  .catalog-main { flex: 1; min-width: 0; }
  .platform-switch { grid-template-columns: repeat(2, 230px); justify-content: start; }

  .topbar { padding: 14px 28px; }

  .page { padding: 24px 28px; }

  .grid-2 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .prod-body h4 { font-size: 14px; }
  .prod-cover .emoji { font-size: 48px; }

  .hero { padding: 34px 32px; }
  .hero h2 { font-size: 30px; }
  .hero-stats { gap: 38px; margin-top: 24px; }
  .hero-stats b { font-size: 24px; }

  .svc h4 { min-height: 44px; font-size: 15px; }
  .svc { padding: 16px; }

  .section-title { margin: 26px 0 14px; }
  .section-title h3 { font-size: 17px; }

  .order-card { padding: 18px; }
}

@media (max-width: 899px) {
  .topnav { display: none; }
}

/* 客服端在窄屏的布局 */
@media (max-width: 860px) {
  .cs-shell { flex-direction: column; }
  .cs-side {
    width: 100%; flex: none; height: auto; position: sticky; top: 0; z-index: 30;
    flex-direction: row; align-items: center; padding: 10px 12px; gap: 6px;
    overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
  }
  .cs-side .logo { padding: 0 12px 0 4px; }
  .cs-side .logo .brand-text span { display: none; }
  .cs-nav { padding: 8px 12px; font-size: 13px; white-space: nowrap; width: auto; }
  .cs-main { padding: 16px 14px 40px; }
  .cs-head h1 { font-size: 18px; }
}

@media (max-width: 380px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   黄色主题覆盖（对照参考站：奶油底 + 亮黄主色 + 黑字 + 红色价格）
   ========================================================== */

.brand-mark { background: linear-gradient(135deg, #ffe94d, #ffc400); color: #111; box-shadow: 0 4px 12px rgba(255, 196, 0, .42); }
.brand-mark.hitter { background: linear-gradient(135deg, #ffd54d, #ff9f00); color: #111; box-shadow: 0 4px 12px rgba(255, 159, 0, .4); }
.brand-mark.cs { background: linear-gradient(135deg, #ffe94d, #ffc400); color: #111; box-shadow: 0 4px 12px rgba(255, 196, 0, .42); }
.brand-text b { color: #111; }

.btn-primary {
  background: linear-gradient(180deg, #ffe94d, #ffd400);
  color: #111; border-color: transparent;
  box-shadow: 0 4px 0 #e3c800;
}
.btn-primary:hover { background: linear-gradient(180deg, #ffdf2b, #ffca00); }
.btn-orange {
  background: linear-gradient(180deg, #ffe94d, #ffd400);
  color: #111; border-color: transparent;
  box-shadow: 0 4px 0 #e3c800;
}
.btn-orange:hover { background: linear-gradient(180deg, #ffdf2b, #ffca00); }

.banner.pc { background: linear-gradient(140deg, #17130e 0%, #2c241a 55%, #4b3a24 100%); }
.banner.mobile { background: linear-gradient(140deg, #0c1a18 0%, #15332d 55%, #225347 100%); }
.banner .b-cta {
  background: var(--brand); color: #111;
  border-radius: 8px; padding: 10px 22px; font-size: 13.5px;
  box-shadow: 0 4px 0 #d9c400;
}
.banner.mobile .b-cta { color: #111; }

.tabbar button.active { color: #111; font-weight: 700; }
.tabbar button.active.hitter { color: #111; }
.tabbar button.active svg { stroke-width: 2.3; }

.section-title h3::before { background: linear-gradient(180deg, #ffd400, #ff9f00); }

.cs-row { background: linear-gradient(135deg, #fff9cf, #ffe94d); border-color: #efdc8c; }
.entry { background: linear-gradient(160deg, #fffbe0, #ffe94d); border-color: #efdc8c; color: #3d3400; font-weight: 600; }

.cs-float { background: #111; color: var(--brand); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }

.cat-chip.active { background: var(--brand); color: #111; border-color: var(--brand); font-weight: 700; }
.platform-tab.active { background: linear-gradient(135deg, #ffd400, #ffe94d); color: #111; box-shadow: 0 8px 20px rgba(255, 200, 0, .35); }
.platform-tab.active i { color: #6b5b00; }

.seg button.active { background: var(--brand); color: #111; }
.cs-nav.active { background: var(--brand-soft); color: #111; }

.detail-head { background: linear-gradient(140deg, #17130e, #2c241a 55%, #4b3a24); }
.msg.mine { background: linear-gradient(135deg, #ffe94d, #ffd400); color: #111; }

.auth-logo { background: linear-gradient(135deg, #ffe94d, #ffc400); color: #111; box-shadow: 0 12px 28px rgba(255, 200, 0, .35); }
.auth-logo.hitter { background: linear-gradient(135deg, #ffd54d, #ff9f00); color: #111; }
.auth-logo.cs { background: linear-gradient(135deg, #ffe94d, #ffc400); color: #111; }
.auth-tip { background: var(--brand-soft); border-color: #efdc8c; }
.auth-tip code { color: #7a6400; }
.auth-switch b { color: #7a6400; }

.cs-card.hi { border-color: #efdc8c; background: linear-gradient(180deg, #fffdf0, #fff); }
.cs-card.hi .num { color: #7a6400; }
.cs-nav .badge-count { background: #ff2d2d; }

.chip b { color: #111; }
.stat-box b { color: #111; }
.stat-box.orange b { color: var(--price); }
.stat-box.blue b { color: #b8860b; }
.stat-box.green b { color: #12a150; }

.notice-toggle { color: #8a6d00; }
.wechat-row b { color: #8a6d00; }
.cs-head h1 { color: #111; }
.tbl thead th { background: #fffbe8; }
.price { color: var(--price); }

/* ==========================================================
   参考站一比一：顶部大图 + 登录卡 + 专区入口 + 圆形入口
   ========================================================== */

.home-hero {
  position: relative;
  height: 200px;
  background: linear-gradient(150deg, #2a2013 0%, #0d0b08 55%, #3a2a16 100%);
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 76%);
}
.hero-brand {
  position: absolute; left: 18px; bottom: 42px; z-index: 2;
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.hero-brand .h-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #ffe94d, #ffc400);
  color: #111; font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(255, 196, 0, .35);
}
.hero-brand b { display: block; font-size: 19px; letter-spacing: .5px; }
.hero-brand i { font-style: normal; font-size: 10px; letter-spacing: 2px; opacity: .6; }

.home-body { margin-top: -28px; position: relative; z-index: 3; padding-top: 0; }

.login-card {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #fff7b8, #ffe066);
  border: 1px solid #efd94f;
  box-shadow: 0 6px 18px rgba(160, 130, 0, .16);
  text-align: left;
}
.lc-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #e8d46a;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700; color: #5a4a00;
  flex: 0 0 auto;
}
.lc-text { flex: 1; font-size: 15.5px; font-weight: 700; color: #3a3000; }
.lc-arrow { font-size: 18px; color: #9a8400; opacity: .7; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, #fffbe0, #fffdf6);
  border: 1px solid #f0e5bd;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 11px 0 13px;
  box-shadow: var(--shadow-sm);
}
.stat-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-cell b { font-size: 15.5px; font-weight: 800; color: #1a1a1a; font-variant-numeric: tabular-nums; }
.stat-cell span { font-size: 11px; color: #9b8a3f; }

.notice-bar {
  display: block; width: 100%;
  background: linear-gradient(90deg, #fff6c2, #ffe94d);
  border: 1px solid #efdc8c;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #6b5a00;
  margin: 12px 0;
  text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow-sm);
}

.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.zone {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 0.92;
  padding: 12px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  text-align: left;
  box-shadow: 0 8px 20px rgba(16, 34, 66, .16);
}
.zone::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 78% 22%, #000, transparent 72%);
}
.zone > * { position: relative; z-index: 1; }
.zone.pc { background: linear-gradient(150deg, #2a2118, #0e0c0a 70%); }
.zone.mobile { background: linear-gradient(150deg, #12312a, #081412 70%); }
.zone .z-ico { position: absolute; top: 10px; right: 12px; font-size: 34px; opacity: .22; }
.zone .z-title { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.28; }
.zone .z-sub { color: rgba(255, 255, 255, .66); font-size: 10.5px; margin-top: 4px; }
.zone .z-btn {
  margin-top: 9px;
  background: var(--brand); color: #111;
  font-size: 11px; font-weight: 800;
  padding: 5px 11px; border-radius: 6px;
  box-shadow: 0 3px 0 #d9c400;
}

.entry-circle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.entry-circle button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: #444;
}
.entry-circle i {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #fff6ad, #ffd400 72%);
  border: 2px solid #f0c800;
  display: grid; place-items: center;
  font-style: normal; font-size: 21px;
  box-shadow: 0 5px 12px rgba(200, 160, 0, .26);
}

.lc-headset { background: radial-gradient(circle at 50% 30%, #fff6ad, #ffd400 72%) !important; border: 2px solid #f0c800 !important; }

/* 会员等级 */
.member-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fff7b8, #ffe066);
  border: 1px solid #efd94f;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.mc-badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: #111; color: var(--brand);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  flex: 0 0 auto;
}
.mc-name { font-size: 17px; font-weight: 800; color: #3a3000; }
.mc-sub { font-size: 12px; color: #7a6a1a; margin-top: 4px; }
.member-progress { padding: 0 4px; }
.mp-bar { height: 8px; border-radius: 4px; background: #f0e5bd; overflow: hidden; }
.mp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffd400, #ffb800); }
.mp-text { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* 聊天列表 */
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-item {
  display: flex; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.chat-item .avatar { width: 40px; height: 40px; border-radius: 50%; }
.ci-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.ci-top b { font-size: 13.5px; }
.ci-top span { font-size: 11px; color: var(--text-3); }
.ci-msg { font-size: 13px; color: var(--text-2); line-height: 1.55; word-break: break-word; }
.ci-reply {
  margin-top: 8px; padding: 8px 10px;
  background: var(--brand-soft);
  border: 1px solid #efdc8c;
  border-radius: 8px;
  font-size: 12.5px; color: #6b5a00; line-height: 1.55;
}
.ci-wait { margin-top: 6px; font-size: 11.5px; color: #c98a00; }

/* 悬浮客服改成圆形，避免遮挡商品卡 */
.cs-float {
  width: 54px; height: 54px; padding: 0;
  border-radius: 50%;
  justify-content: center;
  right: 14px;
  bottom: calc(96px + var(--safe-b));
}
.cs-float span { display: none; }
.cs-float svg { width: 22px; height: 22px; }

/* 生成的海报图接入 */
.home-hero { background: url('/uploads/hero.jpg') center/cover no-repeat; }
.zone.pc { background: url('/uploads/zone-pc.jpg') center/cover no-repeat; }
.zone.mobile { background: url('/uploads/zone-mobile.jpg') center/cover no-repeat; }
.zone::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 34%, rgba(0,0,0,.78) 100%);
}

/* PC 端专区图不要撑太高 */
@media (min-width: 900px) {
  .home-hero { height: 280px; }
  .zone { aspect-ratio: 16 / 6.2; }
  .zone .z-title { font-size: 18px; }
  .zone .z-btn { font-size: 12px; }
  .hero-brand { bottom: 54px; }
}

/* ==========================================================
   轮播海报 / 联系客服条 / 六边形入口 / 优惠券悬浮
   ========================================================== */

.carousel { position: relative; margin: 12px 0 14px; }
.carousel-track {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 14px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 2.4 / 1;
  background: #0d0b08;
  box-shadow: 0 8px 20px rgba(16, 34, 66, .16);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-cap { position: absolute; left: 14px; bottom: 12px; color: #fff; }
.cb-cap b { display: block; font-size: 15px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.cb-cap span { font-size: 11.5px; opacity: .82; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 9px; }
.cdot { width: 6px; height: 6px; border-radius: 50%; background: #e3d6a0; transition: all .22s; }
.cdot.on { width: 16px; border-radius: 3px; background: #ffd400; }

.cs-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(100deg, #fff7b8, #ffe94d 68%, #fff7b8);
  border: 1px solid #efd94f;
  box-shadow: 0 6px 16px rgba(160, 130, 0, .16);
}
.csr-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: #111; color: #ffe500;
  display: grid; place-items: center;
  font-size: 19px; flex: 0 0 auto;
}
.csr-line { width: 1px; height: 34px; background: rgba(0, 0, 0, .18); flex: 0 0 auto; }
.csr-body { flex: 1; display: flex; flex-direction: column; line-height: 1.32; text-align: left; }
.csr-body b { font-size: 14.5px; color: #3a3000; font-weight: 700; }
.csr-body i { font-style: normal; font-size: 11.5px; color: #8a7a2a; letter-spacing: .5px; }
.csr-arrow { color: #3a3000; font-size: 15px; letter-spacing: -3px; }

.entry-hex {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-top: 16px; position: relative;
}
.entry-hex button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; color: #444;
}
.entry-hex .hex {
  width: 52px; height: 58px;
  display: grid; place-items: center;
  font-size: 21px;
  background: linear-gradient(180deg, #fff6ad, #ffd400);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 4px 10px rgba(200, 160, 0, .26);
}
.entry-hex button:active .hex { filter: brightness(.94); }

.coupon-fab {
  position: fixed;
  right: 14px;
  bottom: calc(158px + var(--safe-b));
  z-index: 59;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #111;
  color: #ffe500;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .32);
}
.coupon-fab .cf-txt {
  position: absolute; right: -2px; bottom: -7px;
  background: #ff2d2d; color: #fff;
  font-size: 9.5px; padding: 1px 6px; border-radius: 8px; font-weight: 700;
}
@media (min-width: 900px) {
  .coupon-fab { bottom: 100px; right: 32px; }
}

/* 优惠券改成挂在入口行右上角，避免遮住正文 */
.entry-hex { position: relative; }
.coupon-fab {
  position: absolute;
  right: -2px;
  top: -20px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #111;
  color: #ffe500;
  display: grid; place-items: center;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  z-index: 5;
}
.coupon-fab .cf-txt {
  position: absolute; right: -4px; bottom: -8px;
  background: #ff2d2d; color: #fff;
  font-size: 9.5px; padding: 1px 6px; border-radius: 8px; font-weight: 700;
}

/* 下单须知弹层 */
.notice-list {
  margin: 0; padding-left: 20px;
  font-size: 13px; line-height: 1.85; color: var(--text-2);
}
.notice-list li { margin-bottom: 8px; }
.notice-list li::marker { color: #d9b400; font-weight: 700; }

/* 顶部轮播改为通栏大图，登录卡压在图上 */
.home-top { position: relative; background: #7f1d1d; }
.home-top .carousel { margin: 0; }
.home-top .carousel-track { border-radius: 0; gap: 0; }
.home-top .carousel-slide { border-radius: 0; aspect-ratio: 2.15 / 1; box-shadow: none; }
.home-top .carousel-slide .cb-cap { left: 18px; bottom: 40px; }
.home-top .cb-cap b { font-size: 21px; letter-spacing: .5px; }
.home-top .cb-cap span { font-size: 12.5px; }
.home-top .carousel-dots { position: absolute; left: 0; right: 0; bottom: 15px; margin-top: 0; z-index: 3; }
.home-top .cdot { background: rgba(255,255,255,.55); }
.home-top .cdot.on { background: #ffe500; }
.home-top .login-card {
  position: relative;
  z-index: 3;
  margin: -24px 16px 0;
  width: calc(100% - 32px);
}
.home-body { padding-top: 0; margin-top: 0; }
.home-body .stats-row { margin-top: 0; }

/* 轮播圆点移到右下角，避免被登录卡遮住 */
.home-top .carousel-dots { left: auto; right: 16px; bottom: 34px; justify-content: flex-end; }

/* 客服耳机 / 优惠券 图标精修（SVG 描边，不再用 emoji） */
.csr-icon {
  background: radial-gradient(circle at 50% 32%, #2c2c2c, #0a0a0a 78%);
  box-shadow: inset 0 0 0 2px rgba(255, 229, 0, .22), 0 4px 10px rgba(0, 0, 0, .18);
}
.csr-icon svg { width: 22px; height: 22px; stroke-width: 1.9; color: #ffe500; }

.coupon-fab {
  background: radial-gradient(circle at 50% 30%, #2a2a2a, #050505 80%);
  box-shadow: inset 0 0 0 2px rgba(255, 229, 0, .2), 0 8px 20px rgba(0, 0, 0, .32);
}
.coupon-fab .cf-ico { display: grid; place-items: center; }
.coupon-fab .cf-ico svg { width: 25px; height: 25px; stroke-width: 1.8; color: #ffe500; }

/* ==========================================================
   进店弹窗（服务号引导）
   ========================================================== */

.welcome-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 6, 4, .72);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 24px;
  animation: fade .2s ease;
}

.welcome-card {
  width: 100%;
  max-width: 320px;
  position: relative;
  border-radius: 10px;
  padding: 26px 20px 18px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 80% at 50% 0%, #d92626 0%, #a80f0f 46%, #7c0808 100%);
  border: 2px solid #f3c14b;
  box-shadow: 0 0 0 3px rgba(124, 8, 8, .55), 0 20px 50px rgba(0, 0, 0, .5);
  animation: pop .24s ease;
}
.welcome-card::before {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(243, 193, 75, .5);
  border-radius: 6px;
  pointer-events: none;
}

.wc-close {
  position: absolute; top: -2px; right: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #f3c14b; font-size: 13px;
  display: grid; place-items: center;
}

.wc-title { font-size: 17px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px; }
.wc-lines { font-size: 15px; line-height: 1.95; font-weight: 600; }
.wc-highlight {
  font-size: 19px; font-weight: 800; letter-spacing: 2px;
  margin: 10px 0 14px;
  color: #ffe9a8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.wc-qr {
  width: 158px; height: 158px; object-fit: contain;
  background: #fff; padding: 7px; border-radius: 6px;
  margin: 0 auto 12px;
  display: block;
}
.wc-note { font-size: 10.5px; line-height: 1.6; opacity: .82; }

.wc-dismiss {
  color: #fff; font-size: 13px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 8px 18px;
}

/* 优惠券按钮：黑底圆形 + 绿色票券 + 白字，文字在圆内 */
.coupon-fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #3a3a3a, #1e1e1e 80%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.coupon-fab .cf-ico { display: grid; place-items: center; }
.coupon-fab .cf-ico svg {
  width: 21px; height: 21px;
  color: #3ec46d;
  stroke-width: 2;
}
.coupon-fab .cf-txt {
  position: static; right: auto; bottom: auto;
  background: none; color: #fff;
  font-size: 9.5px; font-weight: 600; letter-spacing: .3px;
  padding: 0;
  line-height: 1.1;
}

/* 成交播报滚动加快 */
.marquee-track { animation-duration: 18s; }

/* 微信一键登录 */
.btn-wx {
  background: linear-gradient(180deg, #3ddc84, #22b06b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 0 #178a52;
  margin-bottom: 4px;
}
.btn-wx:hover { background: linear-gradient(180deg, #38cf7c, #1fa663); }
.btn-wx svg { flex: 0 0 auto; }

.auth-or {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-3); font-size: 12px;
  margin: 14px 0 16px;
}
.auth-or::before, .auth-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ==========================================================
   单专区入口 / 分类页 / 商品详情 / 确认订单
   ========================================================== */

/* 首页单一大入口 */
.zone-wide {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #2a1010 0%, #4a1414 55%, #6b1a1a 100%);
  box-shadow: 0 8px 22px rgba(80, 10, 10, .22);
  text-align: left;
  margin-bottom: 18px;
}
.zone-wide .z-ico {
  font-size: 30px; line-height: 1;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 229, 0, .14);
  flex: 0 0 auto;
}
.zone-wide .z-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.zone-wide .z-title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.zone-wide .z-sub { font-size: 12px; color: rgba(255, 255, 255, .62); }
.zone-wide .z-btn {
  flex: 0 0 auto;
  background: var(--brand); color: #141414;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}

/* 分类网格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cat-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px 14px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: left;
  transition: .15s;
}
.cat-cell:active { transform: scale(.98); }
.cat-cell .cc-ico { font-size: 24px; line-height: 1; }
.cat-cell .cc-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cat-cell .cc-num { font-size: 11px; color: var(--text-3); }

@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 商品详情页 */
.pd-wrap { padding-bottom: 0; }
.pd-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 430px;
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-cover .emoji { font-size: 64px; }
.pd-cover .tip {
  position: absolute; left: 14px; top: 14px;
  background: #fff; color: var(--price);
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
}

.pd-title {
  font-size: 20px; font-weight: 800; line-height: 1.45;
  color: var(--text);
  margin: 16px 0 10px;
}
.pd-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pd-block {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 14px;
  margin-top: 16px;
}
.pd-block-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.pd-block-h b { font-size: 15px; }
.pd-block-h i { font-size: 11px; color: var(--text-3); font-style: normal; }
.pd-detail {
  font-size: 13.5px; line-height: 1.85; color: var(--text-2);
  word-break: break-word;
}

/* 详情页底部购买条 */
.buy-bar, .pay-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.bb-cs {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px;
  font-size: 11px; color: var(--text-3);
}
.bb-cs .bb-ico { display: grid; place-items: center; }
.bb-cs .bb-ico svg { width: 22px; height: 22px; color: var(--text); stroke-width: 1.9; }
.bb-buy { flex: 1; height: 46px; font-size: 16px; }

/* 确认订单页 */
.cf-page { padding-bottom: 0; }
.cf-prod {
  display: flex; gap: 12px;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}
.cf-cover {
  width: 88px; height: 88px; flex: 0 0 88px;
  border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
}
.cf-cover img { width: 100%; height: 100%; object-fit: cover; }
.cf-cover .emoji { font-size: 30px; }
.cf-pinfo { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.cf-ptitle { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text); }
.cf-prow { display: flex; align-items: baseline; justify-content: space-between; }

.cf-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.cf-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}
.cf-head b { font-size: 15px; }
.cf-head i { font-size: 11px; color: var(--price); font-style: normal; }

.cf-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cf-row:last-child { border-bottom: none; }
.cf-label {
  flex: 0 0 auto;
  font-size: 13.5px; color: var(--text);
  display: flex; align-items: center; gap: 2px;
}
.cf-label em { color: var(--price); font-style: normal; margin-right: 2px; }
.cf-input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  text-align: right;
  font-size: 13.5px;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
}
.cf-input::placeholder { color: var(--text-3); }
.cf-radios { display: flex; gap: 16px; }
.cf-radio {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--text);
}
.cf-radio i {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: inline-block;
  position: relative;
}
.cf-radio.on i { border-color: #2f7cf6; }
.cf-radio.on i::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: #2f7cf6;
}
.cf-right { font-size: 13px; background: none; border: none; }
.cf-textarea {
  width: 100%; min-height: 110px;
  border: none; outline: none; resize: none;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  margin: 12px 0 16px;
}

.pay-bar .pb-total { flex: 1; font-size: 13px; color: var(--text-2); }
.pay-bar .pb-total b { margin-left: 6px; }
.pay-bar .btn { flex: 0 0 auto; min-width: 128px; height: 46px; }

/* 分类卡片：去掉图标后更紧凑 */
.cat-cell {
  padding: 16px 14px 15px;
  gap: 5px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 66px;
}
.cat-cell::before {
  content: '';
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.cat-cell .cc-name { font-size: 15px; font-weight: 700; }
.cat-cell .cc-num { font-size: 11.5px; }

@media (min-width: 900px) {
  .cat-cell { padding: 18px 16px; min-height: 72px; }
  .cat-cell .cc-name { font-size: 15.5px; }
}

/* ==========================================================
   分类页：左边分类，右边单子
   ========================================================== */

.shop {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 56px);
  background: var(--bg);
}

.shop-side {
  width: 104px;
  flex: 0 0 104px;
  align-self: stretch;
  background: #f7f2de;
  border-right: 1px solid var(--line);
  padding: 6px 0 30px;
}
.shop-cat {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 13px 8px 13px 9px;
  font-size: 12.5px; line-height: 1.35;
  color: var(--text-2);
  text-align: left;
  border-left: 3px solid transparent;
  transition: .15s;
}
.shop-cat span { flex: 1; }
.shop-cat i {
  flex: 0 0 auto;
  font-style: normal; font-size: 10px;
  color: var(--text-3);
}
.shop-cat.on {
  background: #fff;
  color: var(--text);
  font-weight: 700;
  border-left-color: var(--brand);
}
.shop-cat.on i { color: var(--text-2); }

.shop-main {
  flex: 1;
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-row {
  display: flex; gap: 10px;
  padding: 10px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: left;
  transition: .15s;
}
.prod-row:active { transform: scale(.99); }
.pr-cover {
  width: 88px; height: 88px; flex: 0 0 88px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
}
.pr-cover img { width: 100%; height: 100%; object-fit: cover; }
.pr-cover .emoji { font-size: 26px; }
.pr-cover .tip {
  position: absolute; left: 0; top: 0;
  background: #fff; color: var(--price);
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 0 0 8px 0;
}
.pr-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 2px 0;
}
.pr-title {
  font-size: 14px; font-weight: 700; line-height: 1.4;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-sub {
  font-size: 11.5px; color: var(--text-3);
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-foot {
  margin-top: auto;
  display: flex; align-items: baseline; justify-content: space-between;
}
.pr-sales { font-size: 11px; color: var(--text-3); }
.pr-foot .price { font-size: 17px; }

@media (min-width: 900px) {
  .shop-side { width: 180px; flex: 0 0 180px; }
  .shop-cat { font-size: 13.5px; padding: 15px 14px; }
  .shop-main {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
  }
  .pr-cover { width: 104px; height: 104px; flex: 0 0 104px; }
  .pr-title { font-size: 15px; }
}

/* 专区入口配图 */
.zone-wide .z-img {
  width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

/* 确认订单页：数量加减 */
.cf-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.cf-qty .q-btn {
  width: 34px; height: 30px;
  display: grid; place-items: center;
  font-size: 17px; line-height: 1;
  color: var(--text);
  background: var(--surface-2);
}
.cf-qty .q-btn:active { background: var(--brand-soft); }
.cf-qty b {
  min-width: 40px; text-align: center;
  font-size: 14px; font-weight: 700;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 30px;
}

/* 指定打手选择 */
.hitter-pick {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0 4px;
  -webkit-overflow-scrolling: touch;
}
.hitter-pick::-webkit-scrollbar { display: none; }
.hp-item {
  flex: 0 0 auto;
  width: 78px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px 8px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: .15s;
}
.hp-item.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.hp-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd60a, #ffb703);
  color: #141414; font-size: 16px; font-weight: 700;
  overflow: hidden;
}
.hp-av img { width: 100%; height: 100%; object-fit: cover; }
.hp-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hp-lv { font-size: 10.5px; color: var(--text-3); }

/* 可点击头像 */
.avatar-btn { position: relative; flex: 0 0 auto; }
.avatar-tip {
  position: absolute; right: -4px; bottom: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #141414;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
