:root {
  --bg: #0c0d12;
  --card: #161821;
  --card2: #1f2230;
  --line: #2a2e3c;
  --text: #eef1f6;
  --sub: #9499a8;
  --accent: #7c5cff;          /* 品牌主色：电竞紫 */
  --accent-rgb: 124, 92, 255;
  --accent2: #ff5c8a;         /* 次要色：热粉 */
  --accent2-rgb: 255, 92, 138;
  --gold: #ffce4f;            /* 金额/价值：暖金 */
  --gold-rgb: 255, 206, 79;
  --warn: #ffb020;
  --danger: #ff4d4f;
  --danger-rgb: 255, 77, 79;
  --grad: linear-gradient(135deg, #7c5cff, #ff5c8a);
  --grad-gold: linear-gradient(135deg, #ffce4f, #ff9f43);
  --fg: #eef1f6;              /* profile 弹窗引用的前景色 */
  --border: #2a2e3c;          /* profile 弹窗引用的边框色 */
  --shadow: 0 6px 22px rgba(0,0,0,.38);
  --shadow-sm: 0 3px 12px rgba(0,0,0,.28);
  /* 背景柔光：顶部紫→粉轻晕染，避免纯平黑 */
  --bg-glow: radial-gradient(1100px 520px at 50% -12%, rgba(124,92,255,.14), transparent 60%),
             radial-gradient(820px 460px at 100% -4%, rgba(255,92,138,.10), transparent 55%);
}

/* 金额/价格统一暖金，强化“价值感”，与交互色(紫)区分 */
.g-price, .p-price > span:nth-child(2), .p-price .cur,
.price #totalPrice, .price .cur, .moi-price,
.bs-pprice, .bs-total b, .order-no, .pay-amount b,
.wallet-card .w-amount {
  color: var(--gold) !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* 顶部 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,22,31,.80);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.shop { font-size: 17px; font-weight: 700; }
.track-btn {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 20px;
  padding: 5px 14px; font-size: 13px; cursor: pointer;
}
.track-btn:active { background: rgba(var(--accent-rgb),.12); }

.notice {
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  color: var(--text); padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.nt-tag {
  flex-shrink: 0; background: var(--grad); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
}

/* 步骤 */
.step { padding: 20px 16px 4px; }
.step h2 {
  font-size: 15px; font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.num {
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent2); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid.svc { grid-template-columns: 1fr; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.card:active { transform: scale(.98); }
.card.on {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),.08);
}
.card .t { font-size: 15px; font-weight: 600; }
.card .d { font-size: 12px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.card .p {
  font-size: 13px; color: var(--accent); margin-top: 7px; font-weight: 600;
}
.svc .card { display: flex; justify-content: space-between; align-items: center; }
.svc .card .left { flex: 1; }
.svc .card .p { margin-top: 0; flex-shrink: 0; margin-left: 10px; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; color: var(--sub);
  margin-bottom: 7px; font-weight: 500;
}
.req { color: var(--danger); font-size: 11px; margin-left: 3px; }
.hint { font-size: 12px; color: var(--warn); margin-top: 6px; }

input, select, textarea {
  width: 100%; background: var(--card2);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 12px; font-size: 15px;
  font-family: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0a6' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 34px;
}
textarea { resize: vertical; }
::placeholder { color: #5f6672; }

.pad { height: 10px; }

/* 底栏 */
.bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
}
.price { flex: 1; }
.price .cur { font-size: 14px; color: var(--accent); margin-right: 2px; }
.price #totalPrice { font-size: 26px; font-weight: 700; color: var(--accent); }
.price-detail { font-size: 12px; color: var(--sub); margin-top: 1px; }

.submit-btn, .btn-primary {
  background: var(--grad); color: #fff;
  border: none; border-radius: 24px;
  padding: 13px 30px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  letter-spacing: .5px;
  box-shadow: 0 8px 20px rgba(124,92,255,.38);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.submit-btn:active, .btn-primary:active { transform: translateY(1px) scale(.99); filter: brightness(.96); }
.submit-btn:disabled { background: var(--card2); color: #5f6672; box-shadow: none; cursor: not-allowed; filter: none; }

/* 成功页 */
.done-box { padding: 60px 24px; text-align: center; animation: doneIn .4s ease both; }
@keyframes doneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.done-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 26px rgba(124,92,255,.45);
  position: relative;
}
.done-icon::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(124,92,255,.35);
}
.done-icon svg { width: 40px; height: 40px; }
.done-icon svg .ck { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ckDraw .5s .18s ease forwards; }
@keyframes ckDraw { to { stroke-dashoffset: 0; } }
.done-box h3 { font-size: 19px; margin-bottom: 14px; }
.order-no {
  font-size: 21px; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 12px;
  font-family: ui-monospace, monospace;
}
.done-tip { font-size: 13px; color: var(--sub); margin-bottom: 26px; line-height: 1.7; }
.btn-ghost {
  display: block; width: 100%; margin-top: 10px;
  background: transparent; color: var(--sub);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 12px; font-size: 14px; cursor: pointer; font-family: inherit;
}

/* 弹层 */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: var(--card); border-radius: 16px;
  padding: 22px; width: 100%; max-width: 360px;
}
.modal-box h3 { font-size: 16px; margin-bottom: 14px; }
.modal-box input { margin-bottom: 12px; }

/* 订单进度 */
.timeline { margin-top: 16px; text-align: left; }
.tl-item {
  padding: 9px 0 9px 20px; position: relative;
  font-size: 13px; color: var(--sub);
  border-left: 2px solid var(--line);
}
.tl-item:last-child { border-left-color: transparent; }
.tl-item::before {
  content: ''; position: absolute; left: -5px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.tl-item .s { color: var(--text); font-weight: 600; }
.tl-item .t { font-size: 11px; color: #6b7280; margin-left: 6px; }

.track-info {
  background: var(--card2); border-radius: 10px;
  padding: 14px; margin-top: 14px; font-size: 13px;
}
.track-info div { display: flex; justify-content: space-between; padding: 4px 0; }
.track-info .k { color: var(--sub); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}
.badge.pending { background: rgba(255,176,32,.15); color: var(--warn); }
.badge.accepted { background: rgba(108,92,231,.18); color: #b8a9ff; }
.badge.working { background: rgba(var(--accent-rgb),.15); color: var(--accent); }
.badge.done { background: rgba(154,160,166,.15); color: var(--sub); }
.badge.cancelled { background: rgba(255,92,92,.15); color: var(--danger); }

/* 桌面端居中 */
@media (min-width: 700px) {
  body { max-width: 560px; margin: 0 auto; }
  .bottombar { max-width: 560px; left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
}

/* ---------- 分段选择器 ---------- */
.seg { display: flex; gap: 8px; }
.seg-item {
  flex: 1; text-align: center;
  background: var(--card2); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px; font-size: 15px;
  cursor: pointer; color: var(--sub); transition: all .15s;
}
.seg-item.on {
  border-color: var(--accent); color: var(--accent);
  background: rgba(var(--accent-rgb),.08); font-weight: 600;
}

/* ---------- 支付页 ---------- */
.pay-amount {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; text-align: center; margin-bottom: 8px;
}
.pay-amount span { font-size: 13px; color: var(--sub); margin-right: 8px; }
.pay-amount b { font-size: 30px; color: var(--accent); font-weight: 700; }
.pay-tip {
  font-size: 12px; color: var(--sub); text-align: center;
  margin-bottom: 18px; line-height: 1.6;
}

.qr-box {
  background: #fff; border-radius: 12px; padding: 16px;
  text-align: center; margin-bottom: 18px; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box img { max-width: 100%; max-height: 280px; border-radius: 6px; }
.qr-empty { color: #6b7280; font-size: 13px; }

.upload {
  border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 20px; text-align: center; cursor: pointer;
  background: var(--card2); transition: border-color .15s;
}
.upload:active { border-color: var(--accent); }
.upload span { color: var(--sub); font-size: 14px; }
.upload img { max-width: 100%; max-height: 200px; border-radius: 8px; }

.btn-primary.full { display: block; width: 100%; margin-bottom: 4px; }

/* ---------- 分类 tab ---------- */
.cats {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex-shrink: 0; padding: 7px 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: var(--sub); cursor: pointer;
}
.cat.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(124,92,255,.4); }

/* ---------- 商品列表 ---------- */
.goods-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 11px; padding: 14px 16px;
}
.goods {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.goods:active { transform: scale(.98); box-shadow: var(--shadow); }
.goods:active { transform: scale(.98); }

/* 桌面端悬停微抬升 + 列表入场淡入（增加"设计感"而非模板感） */
@media (hover: hover) {
  .goods:hover, .player-card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.my-order-item { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.g-cover {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.g-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-cover .ph {
  font-size: 30px; font-weight: 700; color: rgba(255,255,255,.85);
  letter-spacing: 2px;
}

.g-body { padding: 10px 11px 12px; }
.g-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 39px;
}
.g-pid {
  font-size: 11px; color: var(--sub); margin-top: 2px;
  font-family: -apple-system, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .3px;
}
.g-desc {
  font-size: 12px; color: var(--sub); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 34px; line-height: 1.45;
}
.g-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.g-tags span {
  font-size: 10px; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),.35); border-radius: 3px;
  padding: 1px 5px;
}
.g-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 9px;
}
.g-price { color: var(--accent); font-size: 18px; font-weight: 700; }
.g-price i { font-size: 11px; font-style: normal; font-weight: 400; margin-left: 1px; }
.g-sales { font-size: 11px; color: #6b7280; }

.loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 50px 20px; color: var(--sub); font-size: 14px;
}
.loading::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-goods {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px;
  color: var(--sub); font-size: 14px;
}

@media (min-width: 700px) {
  .goods-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 商品详情 ---------- */
.p-cover {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-cover .ph { font-size: 52px; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: 3px; }

.p-info { padding: 16px; background: var(--card); }
.p-price { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
.p-price .cur { color: var(--accent); font-size: 15px; }
.p-price > span:nth-child(2) { font-size: 30px; font-weight: 700; color: var(--accent); }
.p-price i { font-style: normal; font-size: 13px; color: var(--sub); margin-left: 2px; }
.p-sales { margin-left: auto; font-size: 12px; color: #6b7280; }

.p-title { font-size: 17px; font-weight: 600; line-height: 1.45; margin-top: 8px; }
.p-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.p-tags span {
  font-size: 11px; color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),.35); border-radius: 3px; padding: 2px 7px;
}
.p-desc { font-size: 13px; color: var(--sub); margin-top: 10px; line-height: 1.6; }

.p-detail-box, .p-players, .p-form { padding: 16px; margin-top: 9px; background: var(--card); }
.p-detail-box h3, .p-players h3, .p-form h3 { font-size: 14px; margin-bottom: 11px; }
.p-detail { font-size: 13px; color: var(--sub); line-height: 1.8; }
.p-detail p { margin-bottom: 3px; }

/* 打手卡片，横向滚动 */
.pl-list {
  display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.pl-list::-webkit-scrollbar { display: none; }
.pl {
  flex-shrink: 0; width: 92px; text-align: center;
  background: var(--card2); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 7px; cursor: pointer;
  transition: all .15s;
}
.pl.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.pl-av {
  width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 7px;
  background: linear-gradient(135deg, var(--accent2), #9b8bf5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 600; overflow: hidden;
}
.pl-av img { width: 100%; height: 100%; object-fit: cover; }
.pl-n { font-size: 13px; font-weight: 600; }
.pl-t { font-size: 11px; color: var(--accent); margin-top: 2px; }
.pl-r { font-size: 10px; color: #6b7280; margin-top: 3px; }
.pl-x {
  font-size: 11px; margin-top: 6px; color: var(--warn);
  border-top: 1px solid var(--line); padding-top: 5px;
}
.pl-x.free { color: var(--sub); }

.pay-break {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; margin-bottom: 9px; font-size: 13px;
}
.pay-break div { display: flex; justify-content: space-between; padding: 3px 0; }
.pay-break span:last-child { color: var(--text); }

/* ---------- 后台：商品/打手管理 ---------- */
.mgmt-bar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.mgmt-bar button {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 9px 15px; font-size: 13px; cursor: pointer;
}
.mgmt-bar button.on { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.mgmt-bar button.add { background: var(--accent); border-color: var(--accent); color: #0b0d11; font-weight: 600; margin-left: auto; }

.row {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.row .thumb {
  width: 52px; height: 52px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent2), #9b8bf5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600; overflow: hidden;
}
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .info { flex: 1; min-width: 0; }
.row .nm { font-size: 14px; font-weight: 600; }
.row .sb { font-size: 12px; color: var(--sub); margin-top: 2px; }
.row .acts { display: flex; gap: 6px; flex-shrink: 0; }
.row.off { opacity: .5; }

.form-grid { display: grid; gap: 12px; }
.form-grid label { font-size: 12px; color: var(--sub); display: block; margin-bottom: 5px; }
.form-grid input, .form-grid select, .form-grid textarea { font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.badge.paid { background: rgba(255,176,32,.15); color: var(--warn); }

/* ========== 首页：搜索 + 区域网格 ========== */
.search-bar {
  padding: 10px 16px; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.search-bar input {
  background: var(--card2); border-radius: 20px;
  padding: 9px 16px 9px 36px; font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4' stroke='%236b7280' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}

.zone-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 18px 16px 14px;
}
.zone-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform .15s;
}
.zone-item:active { transform: scale(.93); }
.zone-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 6px; color: var(--accent);
  border: 2px solid transparent;
  transition: all .15s;
}
.zone-icon svg { width: 24px; height: 24px; }
.zone-item.on .zone-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.15);
}
.zone-name { font-size: 12px; color: var(--sub); }
.zone-item.on .zone-name { color: var(--accent); font-weight: 600; }

.banner-area { padding: 0 16px; margin-bottom: 4px; }
.banner-img {
  width: 100%; height: 80px; border-radius: 11px;
  object-fit: cover; display: block;
}

.section-title {
  font-size: 15px; font-weight: 700; padding: 18px 16px 10px;
  display: flex; align-items: center; gap: 7px;
}
.section-title::before {
  content: ''; width: 4px; height: 16px;
  border-radius: 3px; background: var(--grad);
}

/* 首页品牌 Hero */
.home-hero {
  background-color: #7c5cff;
  background-image: var(--grad), radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: cover, 18px 18px;
  color: #fff;
  padding: 28px 18px 30px; position: relative; overflow: hidden;
}
.home-hero::after {
  content: ''; position: absolute; right: -36px; top: -44px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12);
}
.home-hero::before {
  content: ''; position: absolute; left: -28px; bottom: -52px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08);
}
.hh-word {
  font-size: 36px; font-weight: 800; letter-spacing: 3px;
  position: relative; z-index: 1;
  background: linear-gradient(135deg, #ffffff, #ffd9ea);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hh-tag {
  font-size: 13px; margin-top: 8px; opacity: .94; line-height: 1.6;
  position: relative; z-index: 1;
}

/* ========== TabBar 底部导航 ========== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(20,22,31,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 0);
  max-width: 700px; margin: 0 auto;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 0; min-width: 56px; cursor: pointer;
  color: var(--sub); text-decoration: none; font-size: 10px;
  transition: color .15s; position: relative;
}
.tab-item.on { color: var(--accent); }
.tab-item svg { width: 23px; height: 23px; margin-bottom: 2px; fill: currentColor; }
.tab-item .lbl { font-weight: 500; }

/* 有底部导航时，body 不需要额外的 padding-bottom */
body.has-tabbar { padding-bottom: 70px; }

/* ========== 挑人页 ========== */
.player-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  background: var(--card);
}
.player-tab {
  flex: 1; text-align: center; padding: 13px 0;
  font-size: 15px; color: var(--sub); cursor: pointer;
  position: relative; font-weight: 500;
}
.player-tab.on { color: var(--danger); font-weight: 700; }
.player-tab.on::after {
  content: ''; position: absolute; bottom: 0; left: 30%; right: 30%;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--danger);
}

.player-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; margin: 10px 16px;
  display: flex; gap: 12px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.player-card:active { transform: scale(.98); box-shadow: var(--shadow); }
.player-card:active { transform: scale(.98); }
.pc-left {
  position: relative; flex-shrink: 0;
}
.pc-av {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), #9b8bf5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 600; overflow: hidden;
}
.pc-av img { width: 100%; height: 100%; object-fit: cover; }
.pc-status {
  position: absolute; bottom: 1px; right: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bg);
}
.pc-status.online { background: #22c55e; }
.pc-status.voice { background: var(--accent); }
.pc-status.offline { background: #6b7280; }

.pc-body { flex: 1; min-width: 0; }
.pc-row1 { display: flex; align-items: center; gap: 7px; }
.pc-name { font-size: 16px; font-weight: 700; }
.pc-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 8px;
  font-weight: 600;
}
.pc-badge.gold { background: rgba(255,176,32,.18); color: var(--warn); }
.pc-badge.silver { background: rgba(154,160,166,.18); color: var(--sub); }
.pc-stats { font-size: 12px; color: var(--sub); margin-top: 3px; }
.pc-stats span { margin-right: 10px; }
.pc-desc {
  font-size: 13px; color: var(--sub); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45;
}
.pc-zones { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.pc-zones span {
  font-size: 10px; padding: 2px 8px; border-radius: 8px;
  background: rgba(var(--danger-rgb),.12); color: #ff8a8a;
}
.pc-voice {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: #ff8a8a; margin-top: 6px;
  padding: 3px 8px; border-radius: 8px;
  background: rgba(var(--danger-rgb),.1);
}
.pc-right {
  display: flex; flex-direction: column; justify-content: center;
  flex-shrink: 0;
}
.pc-order-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff; border: none; border-radius: 20px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.pc-order-btn.off {
  background: var(--card2); color: var(--sub);
  cursor: not-allowed;
}

/* ========== 我的页面 ========== */
.profile-header {
  background: linear-gradient(135deg, #1a1d28, #252932);
  padding: 30px 20px 20px; text-align: center;
}
.ph-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 26px; color: #fff; font-weight: 700;
}
.ph-phone { font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.ph-info { font-size: 12px; color: var(--sub); margin-top: 4px; }
.ph-info span { margin: 0 8px; }

.order-tabs {
  display: flex; gap: 0; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.otab {
  flex: 1; text-align: center; padding: 14px 0;
  font-size: 14px; color: var(--sub); cursor: pointer; position: relative;
}
.otab.on { color: var(--accent); font-weight: 600; }
.otab.on::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--accent);
}

.menu-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; background: var(--card); margin-top: 9px;
}
.menu-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 6px; cursor: pointer; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.menu-item:nth-child(4n) { border-right: none; }
.menu-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px; position: relative;
  background: color-mix(in srgb, currentColor 14%, var(--card));
}
.menu-icon svg { width: 22px; height: 22px; }
.menu-label { font-size: 12px; color: var(--sub); }
.menu-label { font-size: 12px; color: var(--sub); }
.menu-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ff4757; color: #fff; border-radius: 9px;
  font-size: 10px; line-height: 16px; text-align: center;
  font-weight: 700; box-shadow: 0 1px 3px rgba(255,71,87,.5);
}

/* 详情页收藏按钮 */
.fav-btn {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--sub);
  font-size: 22px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all .15s;
}
.fav-btn.on { color: #ff4757; border-color: #ff4757; background: rgba(255,71,87,.08); }

.my-order-list { padding: 10px 16px; }
.my-order-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px; margin-bottom: 9px;
  box-shadow: var(--shadow-sm);
}
.moi-row { display: flex; justify-content: space-between; align-items: center; }
.moi-title { font-size: 14px; font-weight: 600; }
.moi-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.moi-sub { font-size: 12px; color: var(--sub); margin-top: 5px; }

/* ========== 规则弹窗 ========== */
.rules-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.8);
  display: flex; align-items: flex-end; justify-content: center;
}
.rules-box {
  background: #fff; color: #222;
  border-radius: 18px 18px 0 0;
  width: 100%; max-width: 560px;
  max-height: 85vh; overflow-y: auto;
  padding: 24px 20px 30px;
}
.rules-header {
  text-align: center; margin-bottom: 18px;
}
.rules-header h2 { font-size: 20px; color: #c0392b; }
.rules-header p { font-size: 12px; color: #888; margin-top: 4px; }
.rule-item {
  display: flex; gap: 10px; margin-bottom: 12px;
  font-size: 14px; line-height: 1.65;
}
.rule-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #c0392b; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.rules-warn {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 10px; padding: 12px; margin-top: 14px;
  font-size: 13px; color: #991b1b; line-height: 1.6;
}
/* 联系客服悬浮按钮 */
.kf-fab{position:fixed;right:14px;bottom:84px;z-index:200;display:flex;align-items:center;gap:6px;background:var(--accent);color:#fff;border:none;border-radius:24px;padding:10px 15px;font-size:13px;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.28);cursor:pointer}
.kf-fab svg{width:18px;height:18px}
.kf-line{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}
.kf-line b{font-size:12px;color:var(--sub);min-width:64px}
.kf-line span{flex:1;font-size:15px;word-break:break-all}
.kf-tip{font-size:12px;color:var(--sub);margin-top:10px;line-height:1.6}

.rules-confirm {
  display: block; width: 100%; margin-top: 20px;
  background: #c0392b; color: #fff; border: none;
  border-radius: 25px; padding: 14px; font-size: 16px;
  font-weight: 600; cursor: pointer;
}

/* ========== 购买底部弹窗 ========== */
.buy-sheet {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
}
.buy-mask {
  flex: 1; background: rgba(0,0,0,.55);
}
.buy-panel {
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 20px 16px calc(10px + env(safe-area-inset-bottom, 0));
  max-height: 85vh; overflow-y: auto;
}
.bs-product {
  display: flex; gap: 12px; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.bs-thumb {
  width: 64px; height: 64px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent2), #9b8bf5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0;
  overflow: hidden;
}
.bs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bs-pinfo { flex: 1; }
.bs-pname { font-size: 15px; font-weight: 600; }
.bs-pprice { font-size: 18px; font-weight: 700; color: var(--accent); margin-top: 4px; }
.bs-qty-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
}
.bs-qty-row label { font-size: 14px; color: var(--sub); }
.qty-ctrl {
  display: flex; align-items: center; gap: 14px;
}
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card2); border: 1px solid var(--line);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-num { font-size: 18px; font-weight: 600; min-width: 28px; text-align: center; }
.bs-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 14px;
}
.bs-total b { font-size: 22px; color: var(--accent); }
.bs-confirm {
  display: block; width: 100%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: #fff; border: none; border-radius: 25px;
  padding: 14px; font-size: 16px; font-weight: 600;
  cursor: pointer; letter-spacing: .5px;
  box-shadow: 0 8px 20px rgba(238,90,90,.4);
  transition: transform .12s ease, filter .12s ease;
}
.bs-confirm:active { transform: translateY(1px) scale(.99); filter: brightness(.96); }

/* ========== 商品原价划线 ========== */
.g-price .orig {
  font-size: 11px; color: #6b7280; text-decoration: line-through;
  margin-left: 4px; font-weight: 400;
}

/* ========== 功能模块：优惠券 / 收藏 / 钱包 / 通知 / 入驻 / 关于 ========== */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box {
  background: var(--bg); color: var(--fg);
  border-radius: 14px; width: 100%; max-width: 400px;
  max-height: 85vh; overflow-y: auto;
  padding: 22px 18px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.modal-box h3 { font-size: 17px; margin-bottom: 14px; }
.modal-box h4 { font-size: 14px; color: var(--sub); }
.modal-box .field { margin-bottom: 10px; }
.modal-box .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--fg); opacity:.85; }
.modal-box .field input, .modal-box .field select, .modal-box .field textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--card); color: var(--fg);
  font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.modal-box .field input::placeholder, .modal-box .field textarea::placeholder { color: var(--sub); }

/* 优惠券卡片 */
.coupon-card {
  display: flex; gap: 10px; padding: 12px;
  border: 1px dashed var(--border); border-radius: 10px; margin-bottom: 8px;
  align-items: center;
}
.coupon-value {
  min-width: 64px; text-align: center;
  background: linear-gradient(135deg, #ff9f43, #ee5253);
  border-radius: 8px; color: #fff; padding: 8px 4px;
  display: flex; flex-direction: column; justify-content: center; flex-shrink: 0;
}
.coupon-value .amount { font-size: 20px; font-weight: 700; }
.coupon-value .condition { font-size: 10px; opacity: .8; }

/* 钱包卡片 */
.wallet-cards { display: flex; gap: 12px; }
.wallet-card {
  flex: 1; text-align: center; background: var(--card);
  padding: 14px 8px; border-radius: 10px;
}
.wallet-card .w-amount { font-size: 22px; font-weight: 700; }
.wallet-card .w-label { font-size: 11px; color: var(--sub); margin-top: 3px; }

/* 通知开关 */
.notif-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.notif-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

/* 商家入驻 - 游戏标签 */
.game-tag {
  cursor: pointer; padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 16px; font-size: 12px; user-select: none;
  transition: all .15s;
}
.game-tag:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* 关于我们 */
.about-svc-tag, .about-game-tag {
  padding: 3px 10px; background: var(--card); border-radius: 12px; font-size: 12px;
}
