:root {
  --bg: #0b1220;
  --bg-soft: #111827;
  --panel: #151c2c;
  --panel-2: #1a2336;
  --line: rgba(255,255,255,.08);
  --text: #e8eefc;
  --muted: #93a0b8;
  --primary: #5b8cff;
  --primary-2: #3d6df0;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --shop-bg: #f4f6fb;
  --shop-text: #0f172a;
  --shop-muted: #64748b;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.28);
  --font: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* ===== Admin shell ===== */
body.admin {
  background: radial-gradient(1200px 600px at 10% -10%, #1a2a4a 0%, transparent 50%),
              radial-gradient(900px 500px at 100% 0%, #1b3a35 0%, transparent 45%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: rgba(10,14,24,.9);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; padding: 0 8px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #5b8cff, #22d3ee);
  display:grid; place-items:center; font-weight:800; color:#041018;
}
.brand h1 { font-size: 15px; margin: 0; letter-spacing: .2px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; color: var(--muted);
  margin-bottom: 4px; transition: .15s ease;
}
.nav a:hover, .nav a.active { background: rgba(91,140,255,.12); color: var(--text); }
.main { padding: 28px 32px 48px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 22px; }
.topbar h2 { margin: 0; font-size: 22px; font-weight: 650; }
.topbar .user { color: var(--muted); font-size: 13px; }

.grid { display:grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .grid.stats { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: 12px; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 8px; }
.stat .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align:left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 550; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: rgba(255,255,255,.02); }

.btn {
  border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer;
  background: var(--primary); color: white; font-weight: 600;
  transition: .15s ease;
}
.btn:hover { background: var(--primary-2); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: rgba(248,113,113,.15); color: var(--danger); border: 1px solid rgba(248,113,113,.25); }
.btn.sm { padding: 7px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display:flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display:flex; justify-content:space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

input, select, textarea {
  width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 11px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(91,140,255,.55); box-shadow: 0 0 0 3px rgba(91,140,255,.15); }
label { display:block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } }

.badge {
  display:inline-flex; align-items:center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .02em;
}
.badge.pending { background: rgba(251,191,36,.15); color: var(--warn); }
.badge.paid { background: rgba(52,211,153,.15); color: var(--ok); }
.badge.closed, .badge.expired { background: rgba(147,160,184,.12); color: var(--muted); }
.badge.paid_orphan { background: rgba(248,113,113,.15); color: var(--danger); }
.badge.k2 { background: rgba(91,140,255,.15); color: #93b4ff; }
.badge.shop { background: rgba(34,211,238,.12); color: #67e8f9; }

.login-wrap {
  min-height: 100vh; display:grid; place-items:center; padding: 24px;
}
.login-card { width: min(400px, 100%); }
.login-card h2 { margin: 0 0 6px; }
.login-card p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.alert.err { background: rgba(248,113,113,.12); color: var(--danger); }
.alert.ok { background: rgba(52,211,153,.12); color: var(--ok); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* ===== Commercial shop (卡卡基地 · 毛玻璃 / 3D 层次) ===== */
body.shop {
  --ink: #0b1220;
  --muted2: #5b6b84;
  --line2: rgba(255, 255, 255, 0.45);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-1: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-3: 0 24px 56px rgba(15, 23, 42, 0.14), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 28px 60px rgba(15, 23, 42, 0.2), 0 10px 24px rgba(37, 99, 235, 0.12);
  --accent: #3b82f6;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 8% -8%, rgba(96, 165, 250, 0.55) 0%, transparent 55%),
    radial-gradient(900px 520px at 92% 4%, rgba(244, 114, 182, 0.42) 0%, transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(167, 139, 250, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, #e8eefc 0%, #f3e8ff 42%, #e0f2fe 100%);
  background-attachment: fixed;
}
body.shop::before,
body.shop::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}
body.shop::before {
  width: 420px; height: 420px; top: 12%; left: -80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  animation: shop-blob 18s ease-in-out infinite alternate;
}
body.shop::after {
  width: 360px; height: 360px; bottom: 8%; right: -60px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 70%);
  animation: shop-blob 22s ease-in-out infinite alternate-reverse;
}
@keyframes shop-blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}

/* 通用毛玻璃卡片 */
.shop .glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.shop .btn {
  border: 0; border-radius: 14px; padding: 10px 16px; cursor: pointer;
  font-weight: 650; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, filter .15s ease;
  text-decoration: none;
  position: relative;
}
.shop .btn.primary {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #1d4ed8 160%);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 -2px 0 rgba(0, 0, 0, 0.15) inset;
}
.shop .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.14) inset;
  filter: brightness(1.06);
}
.shop .btn.outline {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.shop .btn.outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-2);
}
.shop .btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 16px; }
.shop .btn.block { width: 100%; }
.shop .btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.shop input, .shop textarea, .shop select {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.shop input:focus, .shop textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.shop .field { margin-bottom: 14px; }
.shop .field label { display:block; font-size: 12px; color: var(--muted2); margin-bottom: 6px; font-weight: 600; }
.shop .alert.err {
  background: rgba(254, 242, 242, 0.75);
  backdrop-filter: blur(10px);
  color: #b91c1c; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.shop .hidden { display: none !important; }
.shop .muted { color: var(--muted2); }
.shop .price { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.shop .price.xl { font-size: 32px; margin: 12px 0 16px; }
.shop .price small { font-size: 13px; color: var(--muted2); font-weight: 500; }

/* 顶栏毛玻璃 */
.nx-top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}
.nx-top-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nx-logo { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.nx-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 50%, #2563eb 140%);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.18) inset,
    0 -3px 8px rgba(0, 0, 0, 0.2) inset;
  flex-shrink: 0;
  transform: perspective(200px) rotateX(4deg);
}
.nx-brand { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.nx-logo b {
  display: block; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.nx-logo small { display: none; }
.nx-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted2);
  font-weight: 600;
  transition: .18s ease;
}
.nav-link:hover, .nav-link.on {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.nav-link.ghost { border: 1px solid var(--line2); }

/* Hero */
.nx-hero { padding: 28px 20px 10px; perspective: 1200px; }
.nx-hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch;
}
.nx-hero-copy {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 28px 26px;
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateZ(0);
}
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(145deg, #0f172a, #1e3a5f);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pill.soft {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-1), inset 0 1px 0 #fff;
}
.nx-hero-copy h1 {
  margin: 0 0 12px; font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -.04em; line-height: 1.1;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
}
.nx-hero-copy > p { margin: 0 0 16px; color: var(--muted2); font-size: 16px; line-height: 1.65; max-width: 34em; }
.hero-points { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
  font-size: 12.5px; padding: 7px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #334155;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.nx-hero-art {
  position: relative; min-height: 300px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.75) 48%, rgba(14, 165, 233, 0.65));
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    var(--shadow-float),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -20px 40px rgba(0, 0, 0, 0.15);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transform-style: preserve-3d;
}
.nx-hero-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.25), transparent 45%);
  pointer-events: none;
}
.float-card {
  position: absolute; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px; padding: 12px 14px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  min-width: 170px;
  color: #fff;
  transform: translateZ(40px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.float-card:hover {
  transform: translateZ(56px) scale(1.04);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.float-card span { font-size: 22px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
.float-card b { display:block; font-size: 13px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.float-card small { color: rgba(255, 255, 255, 0.78); font-size: 11px; }
.float-card.c1 { top: 16%; left: 8%; animation: shop-float 5.5s ease-in-out infinite; }
.float-card.c2 { top: 36%; right: 8%; animation: shop-float 6.2s ease-in-out infinite .4s; }
.float-card.c3 { bottom: 26%; left: 12%; animation: shop-float 5.8s ease-in-out infinite .8s; }
.float-card.c4 { bottom: 10%; right: 12%; animation: shop-float 6.5s ease-in-out infinite 1.1s; }
@keyframes shop-float {
  0%, 100% { transform: translateY(0) translateZ(40px); }
  50% { transform: translateY(-8px) translateZ(48px); }
}

.nx-section { max-width: 1120px; margin: 0 auto; padding: 28px 20px 20px; }
.nx-section.narrow { max-width: 920px; }
.nx-section.dim { padding-bottom: 48px; }
.section-head { display:flex; justify-content:space-between; align-items:end; margin-bottom: 14px; }
.section-head h2 {
  margin: 0 0 4px; font-size: 24px; letter-spacing: -.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.chip-row { display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #475569;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chip:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.65); }
.chip.on {
  background: linear-gradient(145deg, #0f172a, #1e3a5f);
  color: #fff; border-color: transparent;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* 商品卡 · 毛玻璃 + 3D 悬停 */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
  perspective: 1000px;
}
.p-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow:
    var(--shadow-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  transform-style: preserve-3d;
}
.p-card:hover {
  transform: translateY(-8px) rotateX(2deg) scale(1.015);
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.16),
    0 12px 24px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.p-cover {
  position: relative; height: 138px; display:grid; place-items:center;
  background: linear-gradient(145deg, rgba(226, 232, 240, 0.9), rgba(248, 250, 252, 0.7));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}
.cat-apple_id .p-cover, .buy-visual.cat-apple_id { background: linear-gradient(145deg, #111827, #334155); color: #fff; }
.cat-apple_gc .p-cover, .buy-visual.cat-apple_gc { background: linear-gradient(145deg, #1d4ed8, #60a5fa); color: #fff; }
.cat-google .p-cover, .buy-visual.cat-google { background: linear-gradient(145deg, #dc2626, #fbbf24); color: #fff; }
.cat-netflix .p-cover, .buy-visual.cat-netflix { background: linear-gradient(145deg, #7f1d1d, #e50914); color: #fff; }
.cat-streaming .p-cover, .buy-visual.cat-streaming { background: linear-gradient(145deg, #5b21b6, #a78bfa); color: #fff; }
.cat-other .p-cover, .buy-visual.cat-other { background: linear-gradient(145deg, #0f172a, #2563eb); color: #fff; }
.cat-data .p-cover, .buy-visual.cat-data { background: linear-gradient(145deg, #0e7490, #38bdf8); color: #fff; }
.p-icon { font-size: 42px; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)); }
.p-icon.xl { font-size: 72px; }
.badge-tag {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #111; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.p-cover-meta { position: absolute; right: 12px; bottom: 12px; }
.region {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.p-body { padding: 14px 16px 16px; display:flex; flex-direction:column; flex:1; }
.p-cat { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.p-body h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.02em; line-height: 1.35; }
.p-desc {
  margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-foot { display:flex; justify-content:space-between; align-items:end; gap: 10px; margin-top: 14px; }
.stock { font-size: 11px; font-weight: 700; }
.stock.ok { color: #059669; }
.stock.no { color: #dc2626; }
.empty-box {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  border: 1px dashed rgba(148, 163, 184, 0.5); border-radius: 20px; color: var(--muted2);
  box-shadow: var(--shadow-1);
}

.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.trust {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.trust b {
  color: transparent;
  background: linear-gradient(145deg, #94a3b8, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 22px;
  text-shadow: none;
}
.trust h3 { margin: 8px 0 6px; font-size: 15px; }
.trust p { margin: 0; color: var(--muted2); font-size: 13px; line-height: 1.55; }

.nx-foot {
  margin-top: 32px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12);
}
.nx-foot-inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 20px 12px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.nx-foot b { color: #fff; font-size: 16px; }
.nx-foot p { margin: 6px 0 0; font-size: 13px; max-width: 360px; line-height: 1.5; }
.nx-foot-meta { display:flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nx-foot-meta span {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.nx-copy {
  max-width: 1120px; margin: 0 auto; padding: 0 20px 22px;
  font-size: 11px; color: #64748b;
}

.back {
  display:inline-block; margin-bottom: 14px; color: var(--muted2); font-size: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.buy-layout { display:grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.buy-visual {
  border-radius: 26px; min-height: 280px; display:grid; place-items:center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: perspective(800px) rotateY(-2deg);
}
.buy-tags { position: absolute; top: 16px; left: 16px; display:flex; gap: 8px; }
.buy-panel {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px; padding: 24px;
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.buy-panel h1 { margin: 4px 0 10px; font-size: 26px; letter-spacing: -.03em; }
.lead { color: var(--muted2); line-height: 1.65; margin: 0 0 8px; font-size: 14.5px; }
.feat-list { margin: 0 0 18px; padding-left: 18px; color: #334155; font-size: 13.5px; line-height: 1.7; }
.fineprint { color: #94a3b8; font-size: 12px; line-height: 1.55; margin: 12px 0 0; }

.order-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px; padding: 24px;
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.order-head { display:flex; justify-content:space-between; align-items:center; gap: 10px; }
.order-head h1 { margin: 0; font-size: 22px; }
.deliver-wrap h3 { margin: 18px 0 8px; font-size: 14px; }
.deliver-box {
  background: linear-gradient(160deg, #0f172a, #1e293b);
  color: #e2e8f0; border-radius: 16px; padding: 16px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; white-space: pre-wrap;
  word-break: break-all; margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.shop .badge {
  display:inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.shop .badge.paid { background: rgba(209, 250, 229, 0.85); color: #047857; }
.shop .badge.pending { background: rgba(254, 243, 199, 0.85); color: #b45309; }
.shop .badge.closed, .shop .badge.expired { background: rgba(241, 245, 249, 0.85); color: #64748b; }

@media (max-width: 900px) {
  .nx-hero-inner, .buy-layout, .trust-grid { grid-template-columns: 1fr; }
  .nx-nav { display: none; }
  .nx-hero-art {
    min-height: 220px;
    transform: none;
  }
  .p-card:hover { transform: translateY(-4px) scale(1.01); }
  body.shop::before, body.shop::after { opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  body.shop::before, body.shop::after,
  .float-card.c1, .float-card.c2, .float-card.c3, .float-card.c4 {
    animation: none !important;
  }
}

/* Cashier · 与商城统一的毛玻璃层次 */
body.cashier {
  background:
    radial-gradient(900px 480px at 20% -10%, rgba(96, 165, 250, 0.45), transparent 55%),
    radial-gradient(700px 400px at 90% 10%, rgba(244, 114, 182, 0.28), transparent 50%),
    linear-gradient(165deg, #e8eefc, #f3e8ff 50%, #e0f2fe);
  min-height: 100vh; display:grid; place-items:center; padding: 24px;
  color: var(--shop-text);
}
.cashier-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.14),
    0 8px 20px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.cashier-card h1 { font-size: 18px; margin: 0 0 6px; }
.cashier-card .amt { font-size: 36px; font-weight: 800; margin: 18px 0; letter-spacing: -.03em; }
.cashier-card .meta { color: var(--shop-muted); font-size: 13px; line-height: 1.7; }
.cashier-card .btn { width: 100%; margin-top: 12px; padding: 14px; border:0; border-radius: 12px; cursor:pointer; font-weight:700; }
.cashier-card .btn-mock { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.cashier-card .btn-ali { background: linear-gradient(135deg, #1677ff, #0958d9); color: white; }
.cashier-card .btn-epay { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: white; }
.cashier-card .btn:disabled { opacity: .5; cursor: not-allowed; }
.cashier-card .badge { display:inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.cashier-card .badge.pending { background: #fef3c7; color: #b45309; }
.cashier-card .badge.paid { background: #d1fae5; color: #047857; }
