/* ================================================================
   NEXUS 发卡 · 视觉系统
   深色底 + 网格光晕 + 青色/靛蓝霓虹点缀
   ================================================================ */

:root {
  --bg: #04070e;
  --bg-soft: #070c16;
  --panel: #0a1220;
  --panel-2: #0c1626;
  --ink: #e8f1ff;
  --muted: #8296b8;
  --dim: #56688a;
  --cyan: #2ee6ff;
  --indigo: #4f7dff;
  --violet: #a07bff;
  --green: #2fe3a4;
  --amber: #ffc861;
  --red: #ff5d7a;
  --line: rgba(96, 178, 255, .12);
  --line-2: rgba(96, 178, 255, .26);
  --radius: 14px;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(46, 230, 255, .28); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060b14; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1d3a5c, #14263c);
  border-radius: 8px;
  border: 2px solid #060b14;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ---------------- 背景装饰 ---------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 160, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 72%);
}

.orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .55;
}
.orb.a { width: 520px; height: 520px; top: -180px; left: -140px; background: rgba(24, 92, 255, .30); animation: drift 18s ease-in-out infinite; }
.orb.b { width: 480px; height: 480px; top: 80px; right: -180px; background: rgba(140, 60, 255, .22); animation: drift 22s ease-in-out infinite reverse; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, 40px, 0) scale(1.08); }
}

/* ---------------- 顶栏 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 7, 14, .74);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; flex: 0 0 auto; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font: 900 13px/1 var(--mono);
  color: #03121c;
  background: conic-gradient(from 200deg, #2ee6ff, #4f7dff 45%, #a07bff 75%, #2ee6ff);
  box-shadow: 0 0 24px -6px rgba(46, 230, 255, .8);
}
.brand-tag {
  font: 600 9px/1 var(--mono);
  letter-spacing: 2px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a, .nav-links button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links button:hover { color: var(--ink); background: rgba(96, 178, 255, .07); }
.nav-links .on {
  color: #bff6ff;
  background: rgba(46, 230, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 255, .18);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 11px var(--mono);
  color: var(--muted);
}
.live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(46, 230, 255, .12), rgba(46, 230, 255, .03));
  color: #d7f6ff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s, box-shadow .22s, border-color .18s, background .18s;
  white-space: nowrap;
}
.btn:hover {
  border-color: rgba(46, 230, 255, .5);
  box-shadow: 0 0 0 1px rgba(46, 230, 255, .16), 0 16px 40px -22px rgba(46, 230, 255, .9);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #2ee6ff 0%, #4f7dff 52%, #8f7bff 100%);
  border-color: transparent;
  color: #04121c;
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 18px 44px -20px rgba(79, 125, 255, .95); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: rgba(255, 93, 122, .1); border-color: rgba(255, 93, 122, .35); color: #ffb3c1; }
.btn-danger:hover { box-shadow: 0 12px 30px -18px rgba(255, 93, 122, .9); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 56px;
  align-items: center;
  padding: 74px 0 58px;
}
.eyebrow {
  font: 600 11px/1 var(--mono);
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: .9;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 6px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, #2ee6ff, #6d8dff 46%, #c08bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { color: var(--muted); max-width: 460px; font-size: 15px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats { display: grid; gap: 12px; width: 100%; max-width: 400px; justify-self: end; }
.stat {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(16, 26, 46, .82), rgba(8, 13, 24, .5));
  overflow: hidden;
  transition: border-color .2s;
}
.stat:hover { border-color: var(--line-2); }
.stat::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent 90%);
}
.stat b { font: 700 24px var(--mono); color: #dbf7ff; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: .5px; }

/* ---------------- 商品区 ---------------- */
.section { position: relative; z-index: 1; padding: 18px 0 70px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 20px; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.section-head h2::before {
  content: "";
  width: 3px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--indigo));
  box-shadow: 0 0 14px rgba(46, 230, 255, .8);
}
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search {
  position: relative;
}
.search input {
  width: 210px;
  padding: 9px 12px 9px 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(6, 11, 22, .8);
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search input:focus { border-color: rgba(46, 230, 255, .5); box-shadow: 0 0 0 3px rgba(46, 230, 255, .08); }
.search svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--dim);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip.on {
  color: #bff6ff;
  border-color: rgba(46, 230, 255, .45);
  background: rgba(46, 230, 255, .1);
  box-shadow: 0 0 20px -10px rgba(46, 230, 255, .9);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: 16px;
  align-items: start;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 26, 46, .92), rgba(9, 15, 27, .92));
  transition: transform .22s, border-color .22s, box-shadow .28s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 255, .55), transparent);
  opacity: .55;
}
.product { display: flex; flex-direction: column; gap: 11px; padding: 18px; }
.product:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 230, 255, .34);
  box-shadow: 0 24px 50px -34px rgba(46, 230, 255, .95);
}
.p-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  font: 800 16px/1 var(--mono);
  color: #bff6ff;
  background: linear-gradient(140deg, rgba(46, 230, 255, .2), rgba(160, 123, 255, .16));
  border: 1px solid var(--line-2);
  text-shadow: 0 0 14px rgba(46, 230, 255, .6);
}
.p-name { font-size: 15px; font-weight: 650; letter-spacing: .2px; line-height: 1.45; }
.p-desc {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.p-meta { display: flex; gap: 14px; font: 500 11px var(--mono); color: var(--dim); }
.p-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed rgba(96, 178, 255, .12);
}
.price { font: 700 19px var(--mono); color: #c8f6ff; }
.price .cur { font-size: 12px; opacity: .6; margin-right: 3px; }
.product.is-out { opacity: .62; }
.product.is-out .price { color: var(--dim); }
.product.has-cover { padding-top: 0; }
.product.has-cover .p-top { justify-content: flex-end; margin-top: 12px; }
.product.has-cover .p-icon { display: none; }
.p-cover {
  height: 132px;
  margin: 0 -18px 12px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 600 10px/1 var(--mono);
  letter-spacing: .6px;
  color: var(--muted);
  white-space: nowrap;
}
.pill-cat { color: #a9d8ff; background: rgba(59, 130, 246, .1); }
.pill-ok { color: #8ff0c8; background: rgba(47, 227, 164, .1); border-color: rgba(47, 227, 164, .3); }
.pill-warn { color: #ffd79a; background: rgba(255, 200, 97, .1); border-color: rgba(255, 200, 97, .32); }
.pill-off { color: var(--dim); background: rgba(120, 140, 170, .08); }
.pill-cyan { color: #a9f3ff; background: rgba(46, 230, 255, .1); border-color: rgba(46, 230, 255, .32); }

.empty {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-size: 13px;
}

/* ---------------- 特性条 ---------------- */
.features {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 10px 0 72px;
}
.feat {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 18, 32, .5);
}
.feat-ico {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(46, 230, 255, .07);
  color: var(--cyan);
}
.feat-ico svg { width: 18px; height: 18px; }
.feat h4 { font-size: 13.5px; margin-bottom: 3px; }
.feat p { font-size: 12px; color: var(--dim); line-height: 1.55; }

/* ---------------- 页脚 ---------------- */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 500 11.5px var(--mono);
  color: var(--dim);
  letter-spacing: .4px;
}
.foot a:hover { color: var(--cyan); }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 11, .76);
  backdrop-filter: blur(9px);
}
.modal.open { display: grid; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #0c1626, #080f1b);
  box-shadow: 0 50px 120px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-panel::before, .modal-panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(46, 230, 255, .6);
  pointer-events: none;
}
.modal-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.modal-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
.modal-x:hover { color: var(--ink); border-color: var(--line-2); }
.m-head { margin-bottom: 18px; }
.m-head h3 { font-size: 18px; margin-top: 10px; letter-spacing: .3px; }

.buy-row, .total-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.buy-row span { color: var(--muted); font-size: 13px; }
.buy-row b { font-family: var(--mono); font-size: 14px; color: #d7eaff; }
.total-row {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed rgba(96, 178, 255, .16);
}
.total-row span { color: var(--muted); }
.total-row b { font: 700 24px var(--mono); color: var(--cyan); text-shadow: 0 0 20px rgba(46, 230, 255, .45); }

.stepper {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(6, 11, 22, .9);
}
.stepper button {
  width: 40px; height: 40px;
  border: 0;
  background: rgba(96, 178, 255, .05);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: background .16s;
}
.stepper button:hover { background: rgba(46, 230, 255, .12); }
.stepper input {
  width: 62px; height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: 600 14px var(--mono);
  outline: none;
}

.pay-box {
  position: relative;
  margin: 8px 0 18px;
  padding: 26px 20px;
  text-align: center;
  border: 1px solid rgba(46, 230, 255, .28);
  border-radius: 12px;
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(46, 230, 255, .12), transparent 70%),
    repeating-linear-gradient(0deg, rgba(96, 178, 255, .05) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(96, 178, 255, .05) 0 1px, transparent 1px 20px),
    #060d18;
  overflow: hidden;
}
.pay-amount { font: 800 34px var(--mono); color: #e6fbff; text-shadow: 0 0 26px rgba(46, 230, 255, .5); }
.pay-no { margin-top: 8px; font: 500 12px var(--mono); color: var(--dim); letter-spacing: .6px; }
.scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(46, 230, 255, .12), transparent);
  animation: scan 2.6s linear infinite;
  pointer-events: none;
}
@keyframes scan { 0% { transform: translateY(-120%); } 100% { transform: translateY(320%); } }

/* 支付方式选择 */
.pay-channels { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-ch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(6, 11, 22, .8);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
}
.pay-ch:hover { color: var(--ink); border-color: rgba(46, 230, 255, .35); }
.pay-ch.on {
  color: #d8f8ff;
  border-color: rgba(46, 230, 255, .55);
  background: rgba(46, 230, 255, .1);
  box-shadow: 0 0 0 3px rgba(46, 230, 255, .08);
}
.pay-dot { width: 9px; height: 9px; border-radius: 50%; }
.pay-dot.wechat { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .8); }
.pay-dot.alipay { background: #2f8bff; box-shadow: 0 0 10px rgba(47, 139, 255, .8); }

/* 支付设置（总控） */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 26, .55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pay-card .banner-preview { height: 200px; background-size: contain; background-repeat: no-repeat; }

/* 扫码收银台 */
.qr-box {
  margin: 8px 0 18px;
  padding: 20px 16px 16px;
  text-align: center;
  border: 1px solid rgba(46, 230, 255, .28);
  border-radius: 12px;
  background: #060d18;
}
.qr-box img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
.qr-amount { margin-top: 12px; font: 800 26px var(--mono); color: #e6fbff; text-shadow: 0 0 22px rgba(46, 230, 255, .45); }
.qr-tip { margin-top: 4px; font-size: 12px; color: var(--muted); }
.qr-remark { margin-top: 8px; font-size: 12px; color: var(--dim); }
.qr-remark b { color: var(--cyan); font: 700 14px var(--mono); letter-spacing: 2px; }

.cards {
  margin: 0 0 16px;
  padding: 16px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #060d18;
  color: #a9f3ff;
  font: 500 13px/1.9 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { margin-top: 12px; font-size: 11.5px; color: var(--dim); line-height: 1.6; }
.hint .mono { color: var(--muted); }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field > label { font-size: 12.5px; color: var(--muted); letter-spacing: .2px; }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(5, 10, 20, .92);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: #3f5273; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(46, 230, 255, .55);
  box-shadow: 0 0 0 3px rgba(46, 230, 255, .09);
}
.textarea { min-height: 130px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.select option { background: #0b1422; }
textarea.textarea { font-family: var(--mono); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-row .btn { min-width: 118px; }

/* ---------------- 提示 ---------------- */
.toasts {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 120;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  max-width: 330px;
  padding: 12px 15px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--cyan);
  border-radius: 10px;
  background: rgba(9, 16, 29, .97);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: #d5e7ff;
  animation: toastIn .22s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
@keyframes toastIn { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }

/* ---------------- 认证页 ---------------- */
.auth {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(620px 420px at 18% 18%, rgba(46, 230, 255, .1), transparent 68%),
    radial-gradient(520px 420px at 88% 88%, rgba(160, 123, 255, .1), transparent 66%);
}
.auth-side h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.3px; }
.auth-side p { color: var(--muted); max-width: 400px; font-size: 14px; }
.feat-list { display: grid; gap: 12px; margin-top: 4px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #b6c9e6; }
.feat-list i {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: rgba(47, 227, 164, .12);
  border: 1px solid rgba(47, 227, 164, .35);
  color: var(--green);
  font-size: 10px;
  font-style: normal;
}
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 24, 42, .95), rgba(8, 14, 25, .95));
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(96, 178, 255, .06);
}
.tabs button {
  flex: 1;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.tabs button.on {
  color: #d8f8ff;
  background: rgba(46, 230, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 255, .24);
}
.auth-tip {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.65;
}

/* ---------------- 商户后台 ---------------- */
.shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: rgba(5, 9, 17, .66);
  backdrop-filter: blur(12px);
}
.rail .brand { padding: 0 6px 6px; }
.rail nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.rail nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: all .18s;
}
.rail nav button:hover { color: var(--ink); background: rgba(96, 178, 255, .06); }
.rail nav button.on {
  color: #d5f8ff;
  background: linear-gradient(90deg, rgba(46, 230, 255, .14), transparent 92%);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.rail nav svg { width: 16px; height: 16px; }
.rail-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.shop-badge { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  font: 700 13px var(--mono);
  color: #04121c;
  background: linear-gradient(135deg, #2ee6ff, #8f7bff);
}
.shop-meta { min-width: 0; }
.shop-meta b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-meta span { font: 500 10.5px var(--mono); color: var(--dim); }

.dash { padding: 26px 30px 60px; min-width: 0; }
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.dash-head h2 { font-size: 21px; letter-spacing: .3px; }
.dash-head p { color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.head-actions { display: flex; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; }
.stat-card {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(17, 28, 49, .78), rgba(8, 13, 24, .6));
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 255, .16), transparent 70%);
}
.stat-card .k { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.stat-card .v { font: 700 26px var(--mono); margin-top: 6px; color: #dcf7ff; }
.stat-card .d { font: 500 11px var(--mono); color: var(--dim); margin-top: 4px; }

.panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 15, 28, .62);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel-head h3 { font-size: 14px; letter-spacing: .3px; }
.panel-body { padding: 16px; }

.table-wrap { width: 100%; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  padding: 10px 14px;
  text-align: left;
  font: 600 10.5px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(96, 178, 255, .06);
  color: #cfe0f7;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s; }
.table tbody tr:hover { background: rgba(46, 230, 255, .028); }
.table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table .name { font-weight: 600; color: #e3efff; }
.table .sub { font-size: 11.5px; color: var(--dim); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.acts button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(96, 178, 255, .05);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all .16s;
}
.acts button:hover { color: var(--ink); border-color: var(--line-2); background: rgba(46, 230, 255, .1); }
.acts button.danger:hover { color: #ffb3c1; border-color: rgba(255, 93, 122, .4); background: rgba(255, 93, 122, .1); }

.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); color: #cfe6ff; word-break: break-all; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px dashed rgba(46, 230, 255, .26);
  border-radius: 10px;
  background: rgba(46, 230, 255, .045);
  font-size: 12.5px;
  color: #a9c6e8;
  line-height: 1.65;
}
.notice b { color: var(--cyan); font-weight: 600; }

.empty-row { padding: 40px 16px; text-align: center; color: var(--dim); font-size: 13px; }

/* ---------------- 独立店铺页 ---------------- */
.shop-top { padding: 30px 0 0; }
.shop-banner {
  position: relative;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(620px 240px at 12% -10%, rgba(46, 230, 255, .18), transparent 70%),
    radial-gradient(520px 220px at 92% 110%, rgba(160, 123, 255, .16), transparent 72%),
    linear-gradient(135deg, #0b1526, #080e1a);
  background-size: cover;
  background-position: center;
}
.shop-profile {
  position: relative;
  margin: -46px 22px 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(9, 15, 27, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -40px #000;
}
.shop-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 34px 30px;
}
.shop-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font: 800 30px/1 var(--mono);
  color: #04121c;
  background: linear-gradient(140deg, #2ee6ff, #8f7bff);
  box-shadow: 0 18px 44px -24px rgba(46, 230, 255, .95);
}
.shop-info .eyebrow { margin-bottom: 10px; }
.shop-info h1 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 8px; letter-spacing: -.3px; }
.shop-info p { color: var(--muted); font-size: 13px; max-width: 560px; }
.shop-stats { display: flex; gap: 10px; }
.shop-stats > div {
  min-width: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 18, 32, .55);
  text-align: center;
}
.shop-stats b { display: block; font: 700 20px var(--mono); color: #dcf7ff; }
.shop-stats span { font-size: 11px; color: var(--dim); }

.notice-bar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px dashed rgba(46, 230, 255, .28);
  border-radius: 12px;
  background: rgba(46, 230, 255, .05);
  color: #b9d6f2;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.notice-tag {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--cyan);
  color: #04121c;
  font: 700 10px/1.4 var(--mono);
  letter-spacing: 1px;
}

/* 店招编辑器（商户后台） */
.banner-edit { display: flex; flex-direction: column; gap: 10px; }
.banner-preview {
  height: 132px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: linear-gradient(135deg, #0b1526, #080e1a) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 12px;
  overflow: hidden;
}
.banner-preview.has-img { border-style: solid; }
.banner-preview.has-img span { display: none; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mobile-only { display: none; }

/* ---------------- 响应式 ---------------- */

/* 平板 */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 40px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); max-width: none; justify-self: stretch; }
  .stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .features { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .shell { display: block; }
  .dash { padding: 20px 16px 50px; }
  .shop-profile { grid-template-columns: auto 1fr; gap: 16px; margin: -40px 16px 0; }
  .shop-stats { grid-column: 1 / -1; }
}

/* 手机 / 窄屏：控制台改为底部标签栏，表格改为卡片 */
@media (max-width: 760px) {
  .nav-in { height: 56px; gap: 8px; }
  .brand-tag { display: none; }
  .nav-links {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a, .nav-links button { padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
  .nav-right { gap: 8px; }
  .nav-right .live { display: none; }

  .rail {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    z-index: 70;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(6, 11, 20, .96);
    backdrop-filter: blur(14px);
  }
  .rail .brand, .rail-foot { display: none; }
  .rail nav {
    flex-direction: row;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rail nav::-webkit-scrollbar { display: none; }
  .rail nav button {
    flex: 0 0 auto;
    min-width: 58px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 2px;
    font-size: 10px;
    border-radius: 10px;
    white-space: nowrap;
  }
  .rail nav button.on { box-shadow: none; background: rgba(46, 230, 255, .1); }
  .rail-admin nav button.on { background: rgba(255, 200, 97, .12); }
  .rail nav svg { width: 18px; height: 18px; }

  .dash { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
  .dash-head h2 { font-size: 19px; }
  .head-actions { width: 100%; flex-wrap: wrap; }
  .mobile-only { display: inline-flex; }

  .table-wrap { overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 18, 32, .55);
    margin-bottom: 10px;
    padding: 6px 14px;
  }
  .table tbody tr:hover { background: rgba(10, 18, 32, .55); }
  .table td {
    border: 0;
    padding: 7px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
  }
  .table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--dim);
    font: 600 10.5px var(--mono);
    letter-spacing: .6px;
    text-align: left;
  }
  .table td.empty-row { display: block; text-align: center; }
  .table td.empty-row::before { content: ""; }

  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 13px 14px; }
  .stat-card .v { font-size: 20px; }

  .panel-head { gap: 10px; }
  .filters { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .kv, .kv-2, .kv-4 { grid-template-columns: 92px 1fr; }
  .kv dd { word-break: break-all; }
}

/* 小屏：留白收紧，弹窗改底部抽屉 */
@media (max-width: 620px) {
  .brand-name { display: none; }
  .hide-sm { display: none !important; }
  .nav-in { height: auto; flex-wrap: wrap; padding: 9px 0 7px; row-gap: 2px; }
  .brand { order: 1; }
  .nav-right { order: 2; margin-left: auto; gap: 6px; }
  .nav-links { order: 3; flex: 1 0 100%; min-width: 0; margin: 0; padding: 2px 0 0; }
  .hero { padding: 30px 0 28px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 18px; }
  .stat span { font-size: 10px; }
  .grid { grid-template-columns: 1fr; }
  .p-cover { height: 168px; }
  .section-head { gap: 12px; }
  .section-head h2 { font-size: 17px; }
  .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
  .row-2 { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .modal-panel::before, .modal-panel::after { display: none; }
  .admin-card { padding: 26px 20px; }
  .btn { padding: 12px 18px; }
  .btn-sm { padding: 9px 13px; }
  .shop-banner { height: 150px; border-radius: 16px; }
  .shop-profile { grid-template-columns: auto 1fr; gap: 12px; margin: -34px 10px 0; padding: 14px 16px; }
  .shop-logo { width: 56px; height: 56px; border-radius: 15px; font-size: 22px; }
  .shop-top { padding: 16px 0 0; }
  .shop-stats { width: 100%; }
  .shop-stats > div { flex: 1; min-width: 0; padding: 10px 8px; }
  .shop-stats b { font-size: 17px; }
}

/* ---------------- 平台总控（管理员） ---------------- */
.admin-auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(680px 420px at 50% 8%, rgba(255, 200, 97, .08), transparent 66%),
    radial-gradient(520px 380px at 82% 92%, rgba(255, 93, 122, .07), transparent 68%);
}
.admin-card {
  position: relative;
  width: min(400px, 100%);
  padding: 32px 28px 26px;
  border: 1px solid rgba(255, 200, 97, .22);
  border-radius: 16px;
  background: linear-gradient(180deg, #0d1526, #080d17);
  box-shadow: 0 50px 120px -50px #000;
  overflow: hidden;
}
.admin-card-bar {
  position: absolute; inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #ffc861, #ff8a5c 55%, #ff5d7a);
}
.admin-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 200, 97, .3);
  border-radius: 999px;
  background: rgba(255, 200, 97, .08);
  color: #ffd79a;
  font: 600 10px/1 var(--mono);
  letter-spacing: 1.4px;
}
.admin-badge svg { width: 12px; height: 12px; }
.admin-card h1 { margin: 16px 0 8px; font-size: 24px; letter-spacing: .3px; }
.admin-sub { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.admin-card .auth-tip b { color: #ffd79a; font-weight: 600; }

.btn-gold {
  background: linear-gradient(135deg, #ffc861, #ff9a5c 55%, #ff7a6a);
  border-color: transparent;
  color: #2a1404;
  font-weight: 700;
}
.btn-gold:hover { box-shadow: 0 18px 44px -20px rgba(255, 200, 97, .85); }

.mark-gold {
  background: conic-gradient(from 200deg, #ffd79a, #ffc861 40%, #ff7a6a 78%, #ffd79a);
  box-shadow: 0 0 24px -6px rgba(255, 200, 97, .8);
}
.tag-admin { color: #ffd79a; border-color: rgba(255, 200, 97, .32); background: rgba(255, 200, 97, .07); }

.rail-admin {
  background: linear-gradient(180deg, rgba(32, 14, 22, .5), rgba(5, 9, 17, .7));
}
.rail-admin nav button.on {
  color: #ffe3ad;
  background: linear-gradient(90deg, rgba(255, 200, 97, .16), transparent 92%);
  box-shadow: inset 2px 0 0 var(--amber);
}
.avatar-admin { background: linear-gradient(135deg, #ffc861, #ff5d7a); color: #2a1004; }

.stat-card.hl { border-color: rgba(255, 200, 97, .26); }
.stat-card.hl::after { background: radial-gradient(circle, rgba(255, 200, 97, .18), transparent 70%); }
.stat-card.hl .v { color: #ffe3ad; }

.kv-2 { grid-template-columns: 96px 1fr; }
.kv-4 { grid-template-columns: 96px 1fr; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field { margin-bottom: 14px; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .kv-2 { grid-template-columns: 100px 1fr 120px 1fr; }
  .kv-4 { grid-template-columns: 100px 1fr 100px 1fr; }
}


/* 悬浮客服 */
.cs-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid rgba(46, 230, 255, .4);
  border-radius: 999px;
  background: rgba(9, 16, 29, .92);
  color: #bff6ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px -22px rgba(46, 230, 255, .9);
  transition: all .18s;
}
.cs-fab:hover { border-color: rgba(46, 230, 255, .75); transform: translateY(-1px); }
.cs-fab svg { width: 16px; height: 16px; }
.cs-info { font-size: 13px; color: #b6c9e6; }
.cs-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(96, 178, 255, .12); }
.cs-row span { color: var(--muted); }
.cs-row b { font-family: var(--mono); color: #dcf7ff; }
.cs-qr { display: block; width: 160px; height: 160px; object-fit: contain; margin: 12px auto 0; border-radius: 10px; background: #fff; padding: 6px; }

@media (max-width: 620px) {
  .cs-fab { right: 14px; bottom: 16px; padding: 10px 14px; }
}
/* 在线客服对话 */
.cs-chat { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(6, 11, 22, .7); }
.cs-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.cs-messages { height: 220px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cs-empty { color: var(--dim); font-size: 12px; text-align: center; margin: auto 0; }
.cs-msg { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.cs-msg.me { align-self: flex-end; align-items: flex-end; }
.cs-msg.them { align-self: flex-start; }
.cs-bubble { padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; word-break: break-word; }
.cs-msg.me .cs-bubble { background: linear-gradient(135deg, #2ee6ff, #4f7dff); color: #04121c; border-bottom-right-radius: 4px; }
.cs-msg.them .cs-bubble { background: rgba(46, 230, 255, .1); border: 1px solid var(--line-2); color: #d8ecff; border-bottom-left-radius: 4px; }
.cs-time { font-size: 10px; color: var(--dim); font-family: var(--mono); }
.cs-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cs-input .input { flex: 1; }
.shop-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; }
.shop-badges .pill { font-size: 10.5px; }
/* 保证金缴纳：收款码 */
.deposit-pay {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 26, .5);
}
.deposit-pay-left { display: flex; flex-direction: column; gap: 10px; }
.deposit-pay .qr-box { margin: 0; padding: 12px; }
.deposit-pay .qr-box img { width: 150px; height: 150px; }
@media (max-width: 720px) {
  .deposit-pay { grid-template-columns: 1fr; }
}
/* 商品卡上的保证金标记 */
.dep-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(120, 240, 190, .35);
  background: rgba(120, 240, 190, .1);
  color: #8ff0c8;
  font-size: 10.5px;
  font-family: var(--mono);
  line-height: 1.7;
}
/* 登录地理 */
.geo-body { display: flex; gap: 22px; flex-wrap: wrap; }
.geo-canvas-box { position: relative; flex: 0 0 auto; }
#geoCanvas { display: block; width: 380px; height: 380px; max-width: 72vw; }
.geo-hint { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 11px; color: var(--dim); font-family: var(--mono); }
.geo-side { flex: 1 1 240px; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.geo-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed rgba(96, 178, 255, .12); font-size: 13px; color: var(--muted); }
.geo-kv b { color: #dcf7ff; font-family: var(--mono); font-size: 15px; }
.geo-sub { margin: 12px 0 4px; font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.geo-regions { display: flex; flex-direction: column; gap: 7px; }
.geo-region { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.geo-bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(96, 178, 255, .12); overflow: hidden; }
.geo-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2ee6ff, #4f7dff); }
.geo-region b { font-family: var(--mono); color: #9fd8ff; font-size: 11px; }