/* ==========================================================================
   星卡铺 · 卡密商城
   设计语言：深空玻璃 + 霓虹渐变，移动优先
   ========================================================================== */

:root {
  --bg: #06070e;
  --bg-soft: #0b0d18;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4fb;
  --muted: #8d92ad;
  --muted-2: #666b85;
  --brand: #7b6cff;
  --brand-2: #38e0c6;
  --brand-soft: rgba(123, 108, 255, 0.16);
  --warn: #ffbf66;
  --danger: #ff7a8a;
  --ok: #46e0a8;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Helvetica Neue", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(123, 108, 255, 0.30), transparent 62%),
    radial-gradient(760px 520px at 100% 4%, rgba(56, 224, 198, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(255, 122, 138, 0.10), transparent 65%),
    linear-gradient(180deg, #06070e 0%, #05060c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(123, 108, 255, 0.45); }

:focus-visible {
  outline: 2px solid rgba(123, 108, 255, 0.8);
  outline-offset: 2px;
}

.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 118px;
  position: relative;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px 12px;
  background: linear-gradient(180deg, rgba(6, 7, 14, 0.94) 60%, rgba(6, 7, 14, 0));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #8f7bff 0%, #6a5bff 45%, #33d9c4 130%);
  box-shadow: 0 8px 22px rgba(110, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex: none;
}

.brand-text { min-width: 0; }
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, background 0.18s ease;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn:hover { background: var(--panel-strong); }

.topnav { display: none; gap: 4px; margin-left: 18px; }
.topnav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  transition: 0.2s;
}
.topnav a:hover { color: var(--text); background: var(--panel); }
.topnav a.active { color: var(--text); background: var(--brand-soft); }

/* ---------- 搜索 ---------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  margin: 4px 0 14px;
  border-radius: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.searchbar input::placeholder { color: var(--muted-2); }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 224, 198, 0.22), transparent 55%),
    radial-gradient(120% 130% at 0% 0%, rgba(123, 108, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #171a35 0%, #0c0e1c 72%);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 224, 198, 0.45), transparent 65%);
  filter: blur(6px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9c3ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 9px;
  border-radius: 999px;
}

.hero h1 {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 750;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #b9aeff, #5ff0d8 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0;
  font-size: 13px;
  color: rgba(232, 233, 250, 0.72);
  max-width: 34em;
}

.hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.hero-stat strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.hero-stat span { font-size: 11px; color: rgba(232, 233, 250, 0.55); }

/* ---------- 公告 ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 191, 102, 0.22);
  background: rgba(255, 191, 102, 0.08);
  color: #ffd9a0;
  font-size: 12.5px;
  margin-bottom: 18px;
}
.notice svg { flex: none; }
.notice span { min-width: 0; }

/* ---------- 分类 ---------- */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin: 0 -2px 14px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  white-space: nowrap;
  transition: 0.2s;
}
.cat:hover { color: var(--text); }
.cat.active {
  color: #0b0716;
  font-weight: 600;
  background: linear-gradient(120deg, #a99cff, #7b6cff 45%, #56e6cf);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(123, 108, 255, 0.35);
}

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 20px 2px 12px;
}
.section-title { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.section-sub { font-size: 12px; color: var(--muted); }
.section-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ---------- 商品卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}
.product-card:active { transform: scale(0.985); }

.cover {
  position: relative;
  height: 108px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 20%, transparent 78%);
}
.cover::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  filter: blur(26px);
  top: -60px;
  right: -40px;
}
.cover-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(6px);
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.product-card:hover .cover-icon { transform: rotate(0deg) scale(1.05); }

.theme-violet { background: linear-gradient(140deg, #8b7bff 0%, #5c4bdb 55%, #2b2350 100%); }
.theme-cyan { background: linear-gradient(140deg, #45e6cf 0%, #1b9fb8 55%, #103344 100%); }
.theme-amber { background: linear-gradient(140deg, #ffcb6b 0%, #e08a3c 55%, #3d2415 100%); }
.theme-rose { background: linear-gradient(140deg, #ff8fa8 0%, #d94f86 55%, #3c1430 100%); }
.theme-blue { background: linear-gradient(140deg, #6ba8ff 0%, #3a6ee0 55%, #14213f 100%); }
.theme-lime { background: linear-gradient(140deg, #b6f06b 0%, #63b23f 55%, #1c3218 100%); }
.theme-indigo { background: linear-gradient(140deg, #8f8bff 0%, #4a45c9 55%, #191735 100%); }
.theme-teal { background: linear-gradient(140deg, #5eead4 0%, #159c8e 55%, #0c2f2c 100%); }

.badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 7px;
  color: #fff;
  background: rgba(8, 8, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.product-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-foot {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.price {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.price small { font-size: 11px; font-weight: 500; margin-right: 1px; }
.price-old {
  font-size: 11px;
  color: var(--muted-2);
  text-decoration: line-through;
  padding-bottom: 2px;
}
.stock {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.stock.low { color: #ffca8a; border-color: rgba(255, 191, 102, 0.28); }

/* ---------- 空状态 ---------- */
.empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}
.empty h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); font-weight: 600; }
.empty p { margin: 0; font-size: 12.5px; }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(calc(100% - 28px), 420px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 7px;
  border-radius: 20px;
  background: rgba(14, 16, 30, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.bottom-nav a, .bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 2px 6px;
  border: 0;
  background: transparent;
  border-radius: 13px;
  color: var(--muted);
  font-size: 10.5px;
  transition: 0.2s;
}
.bottom-nav a.active, .bottom-nav button.active {
  color: #fff;
  background: linear-gradient(160deg, rgba(123, 108, 255, 0.30), rgba(56, 224, 198, 0.12));
}
.bottom-nav a:active { transform: scale(0.95); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-strong); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  border: 0;
  color: #0a0716;
  background: linear-gradient(115deg, #b3a7ff 0%, #7b6cff 42%, #4fe4cd 100%);
  box-shadow: 0 12px 30px rgba(110, 92, 255, 0.38);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > label { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 13px;
  font-size: 14px;
  outline: 0;
  transition: border-color 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(123, 108, 255, 0.65);
  background: rgba(123, 108, 255, 0.06);
}
.textarea { min-height: 110px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.select { appearance: none; background-image: none; }

/* ---------- 面板 ---------- */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}
.panel-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }

/* ---------- 商品详情 ---------- */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}
.page-back:hover { color: var(--text); }

.detail-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 22px 20px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}
.detail-hero .glyph {
  position: absolute;
  right: 14px;
  top: 18px;
  opacity: 0.24;
  transform: rotate(-8deg);
}
.detail-hero h1 {
  margin: 0 0 4px;
  font-size: 23px;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.detail-hero p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.detail-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}

.detail-price {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 4px 2px 16px;
}
.detail-price .price { font-size: 30px; }
.detail-price .price small { font-size: 15px; }

.sku-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sku-item { position: relative; display: block; }
.sku-item input { position: absolute; opacity: 0; pointer-events: none; }
.sku-item .sku-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: 0.18s;
  cursor: pointer;
}
.sku-item .sku-name { font-size: 13px; font-weight: 600; }
.sku-item .sku-price { font-size: 12px; color: var(--muted); }
.sku-item input:checked + .sku-inner {
  border-color: rgba(123, 108, 255, 0.75);
  background: linear-gradient(140deg, rgba(123, 108, 255, 0.20), rgba(56, 224, 198, 0.08));
  box-shadow: 0 8px 22px rgba(90, 76, 230, 0.18);
}
.sku-item input:checked + .sku-inner .sku-price { color: #c9c3ff; }
.sku-item input:disabled + .sku-inner { opacity: 0.35; cursor: not-allowed; }

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.qty button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
}
.qty button:hover { background: rgba(255, 255, 255, 0.06); }
.qty input {
  width: 48px;
  height: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: 0;
}

.buy-row { display: flex; align-items: center; gap: 12px; }
.buy-row .field { flex: 1; margin: 0; }

.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6, 7, 14, 0), rgba(6, 7, 14, 0.94) 32%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.page-detail .bottom-nav { display: none; }
.page-detail .app { padding-bottom: 96px; }
.page-detail .sticky-buy-inner { gap: 10px; }
.sticky-buy .sticky-btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  font-size: 15px;
}
.buy-spacer { height: 18px; }
.sticky-buy-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 17, 32, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.sticky-total { min-width: 0; }
.sticky-total span { display: block; font-size: 10.5px; color: var(--muted); }
.sticky-total strong { font-size: 21px; letter-spacing: -0.01em; }
.sticky-buy .btn { margin-left: auto; min-width: 132px; }

.meta-list { display: grid; gap: 9px; }
.meta-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
}
.meta-item svg { flex: none; color: var(--brand-2); margin-top: 1px; }
.meta-item b { color: var(--text); font-weight: 600; }

.desc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.desc-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.8px;
  color: #c3c6d8;
  line-height: 1.65;
}
.desc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ---------- 收银台 ---------- */
.pay-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(123, 108, 255, 0.20), rgba(15, 17, 32, 0.9) 55%);
  padding: 20px;
  margin-bottom: 14px;
}
.pay-amount-label { font-size: 11.5px; color: var(--muted); }
.pay-amount {
  font-size: 38px;
  font-weight: 750;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 6px;
}
.pay-amount small { font-size: 18px; font-weight: 600; }
.pay-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--warn);
  background: rgba(255, 191, 102, 0.10);
  border: 1px solid rgba(255, 191, 102, 0.24);
  padding: 4px 9px;
  border-radius: 999px;
}

.pay-methods { display: grid; gap: 9px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}
.pay-method .pm-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(123, 108, 255, 0.16);
  color: #cabfff;
  flex: none;
}
.pay-method .pm-main { min-width: 0; }
.pay-method .pm-main b { display: block; font-size: 13.5px; font-weight: 600; }
.pay-method .pm-main span { font-size: 11px; color: var(--muted); }
.pay-method input { margin-left: auto; accent-color: #7b6cff; }
.pay-method.active { border-color: rgba(123, 108, 255, 0.6); background: rgba(123, 108, 255, 0.10); }

.demo-hint {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(56, 224, 198, 0.07);
  border: 1px solid rgba(56, 224, 198, 0.18);
  font-size: 11.5px;
  color: #a9efe4;
  line-height: 1.6;
}

/* ---------- 订单 ---------- */
.order-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}
.status-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill.ok { color: #7ff0c6; background: rgba(70, 224, 168, 0.12); border-color: rgba(70, 224, 168, 0.28); }
.status-pill.warn { color: #ffd39b; background: rgba(255, 191, 102, 0.12); border-color: rgba(255, 191, 102, 0.28); }
.status-pill.info { color: #bdb3ff; background: rgba(123, 108, 255, 0.14); border-color: rgba(123, 108, 255, 0.3); }
.status-pill.muted { color: var(--muted); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

.kv { display: grid; gap: 8px; }
.kv-row { display: flex; gap: 12px; font-size: 12.5px; }
.kv-row span { color: var(--muted); flex: none; width: 68px; }
.kv-row b { font-weight: 500; word-break: break-all; }

.code-block {
  border-radius: 14px;
  border: 1px dashed rgba(56, 224, 198, 0.34);
  background: rgba(56, 224, 198, 0.05);
  padding: 13px 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #b9f7ec;
  word-break: break-all;
  white-space: pre-wrap;
}
.code-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.success-banner {
  text-align: center;
  padding: 18px 10px 6px;
}
.success-ring {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #06251c;
  background: linear-gradient(140deg, #8bf3cf, #38e0c6);
  box-shadow: 0 12px 32px rgba(56, 224, 198, 0.35);
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.success-banner h2 { margin: 0 0 4px; font-size: 19px; }
.success-banner p { margin: 0; font-size: 12.5px; color: var(--muted); }

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.timeline { display: grid; gap: 0; margin-top: 4px; }
.tl-item { display: flex; gap: 11px; }
.tl-dot-wrap { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 5px;
  flex: none;
}
.tl-item.done .tl-dot { background: linear-gradient(140deg, #b3a7ff, #38e0c6); box-shadow: 0 0 0 4px rgba(123, 108, 255, 0.14); }
.tl-line { width: 1px; flex: 1; background: var(--line); min-height: 20px; }
.tl-body { padding-bottom: 13px; }
.tl-body b { display: block; font-size: 12.5px; font-weight: 600; }
.tl-body span { font-size: 11px; color: var(--muted); }

/* ---------- 提示 / Toast ---------- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  margin-bottom: 14px;
  border: 1px solid;
}
.flash.error { color: #ffc2c9; background: rgba(255, 122, 138, 0.10); border-color: rgba(255, 122, 138, 0.30); }
.flash.success { color: #a8f3dc; background: rgba(70, 224, 168, 0.10); border-color: rgba(70, 224, 168, 0.26); }
.flash.info { color: #cfc8ff; background: rgba(123, 108, 255, 0.12); border-color: rgba(123, 108, 255, 0.28); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: min(90vw, 360px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 20, 36, 0.96);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 30px;
  padding: 18px 4px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.foot a { color: var(--muted); }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 5, 10, 0.62);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: #10121f;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: sheet 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes sheet {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .icon-btn { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; }

.contact-list { display: grid; gap: 10px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.contact-row .ci {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #c9c0ff;
  background: rgba(123, 108, 255, 0.16);
  flex: none;
}
.contact-row b { display: block; font-size: 12.5px; }
.contact-row span { font-size: 11px; color: var(--muted); }

/* ---------- 桌面端 ---------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover { height: 122px; }
}

@media (min-width: 960px) {
  .app {
    max-width: 1080px;
    padding: 0 28px 40px;
  }
  .topbar { padding: 18px 0 14px; }
  .topnav { display: flex; }
  .bottom-nav { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .hero { display: grid; grid-template-columns: 1.25fr 0.85fr; align-items: center; gap: 26px; padding: 30px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { margin: 0; padding: 0 0 0 26px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 16px; }
  .section-head { margin-top: 28px; }
  .detail-hero { min-height: 220px; padding: 30px; }
  .detail-hero h1 { font-size: 30px; }
  .sticky-buy { position: static; padding: 0; background: none; backdrop-filter: none; }
  .sticky-buy-inner { max-width: 100%; position: static; }
  .page-detail .app { padding-bottom: 40px; }
  .buy-inline { position: static; }
  .product-card .cover { height: 132px; }
  .cat { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 购买区（详情页兜底按钮） ---------- */
.agree-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.agree-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
  accent-color: #7b6cff;
}

.buy-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(123, 108, 255, 0.28);
  background: linear-gradient(150deg, rgba(123, 108, 255, 0.14), rgba(56, 224, 198, 0.05));
}
.buy-inline-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.buy-inline-total span { font-size: 11.5px; color: var(--muted); }
.buy-inline-total strong { font-size: 24px; letter-spacing: -0.02em; }
.buy-inline-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  border-radius: 14px;
}
.buy-inline-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 2px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted-2);
}
.buy-inline-note svg { flex: none; margin-top: 1px; }

/* ---------- 码支付收银台 ---------- */
.cp-card {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(123, 108, 255, 0.26);
  background:
    radial-gradient(420px 220px at 110% -10%, rgba(56, 224, 198, 0.12), transparent 65%),
    linear-gradient(165deg, rgba(123, 108, 255, 0.16), rgba(255, 255, 255, 0.03));
  text-align: center;
  margin-bottom: 12px;
}
.cp-card .cp-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }
.cp-amount {
  margin: 6px 0 4px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cp-amount small { font-size: 17px; font-weight: 600; margin-right: 2px; color: var(--muted); }
.cp-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--theme-rgb, 123, 108, 255), 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--muted);
}
.cp-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 102, 0.28);
  background: rgba(255, 191, 102, 0.10);
  color: #ffcf8c;
  font-size: 11.5px;
}

.cp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.cp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.cp-tab.active {
  color: var(--text);
  border-color: rgba(123, 108, 255, 0.55);
  background: rgba(123, 108, 255, 0.14);
}
.cp-tab .dotmark { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }

.cp-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 12px;
}
.cp-qr {
  width: min(62vw, 220px);
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cp-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.cp-qr.empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  padding: 16px;
  gap: 6px;
}
.cp-qr.empty svg { color: var(--muted-2); }
.cp-qr.empty p { margin: 0; font-size: 12px; line-height: 1.6; }
.cp-qr-tip { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.7; }
.cp-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.cp-account b { color: var(--text); font-family: var(--mono); font-size: 12px; word-break: break-all; }

.cp-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.2px;
  color: var(--muted);
  line-height: 1.65;
}
.cp-steps .n {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #cfc8ff;
  background: rgba(123, 108, 255, 0.18);
  margin-top: 1px;
}
.cp-steps b { color: var(--text); font-weight: 600; }

.cp-amount-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(56, 224, 198, 0.12);
  border: 1px solid rgba(56, 224, 198, 0.24);
  color: #8ff0cf;
  font-size: 11.5px;
  font-weight: 600;
}

.cp-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 191, 102, 0.26);
  background: rgba(255, 191, 102, 0.06);
}
.cp-pending .ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffcf8c;
  background: rgba(255, 191, 102, 0.14);
  border: 1px solid rgba(255, 191, 102, 0.3);
}
.cp-pending h3 { margin: 0; font-size: 15px; }
.cp-pending p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

.cp-field-hint { font-size: 11px; color: var(--muted-2); margin: -6px 0 12px; line-height: 1.6; }

@media (max-width: 360px) {
  .cp-amount { font-size: 32px; }
  .cp-qr { width: min(66vw, 190px); }
}

/* ---------- 后台：码支付设置 ---------- */
.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qr-preview {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  flex: none;
}
.qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.qr-preview.empty { background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 11px; text-align: center; padding: 8px; }
.hint-list { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.hint-list code { color: #cfc8ff; font-family: var(--mono); font-size: 11px; }
.danger-panel { border-color: rgba(255, 122, 138, 0.30); background: rgba(255, 122, 138, 0.05); }
.danger-panel .panel-title .dot { background: var(--danger); }

/* ==========================================================================
   后台
   ========================================================================== */
body.admin-body { padding: 0; }

.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(10, 12, 22, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 40;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13.5px;
  transition: 0.18s;
}
.side-link:hover { color: var(--text); background: var(--panel); }
.side-link.active {
  color: #fff;
  background: linear-gradient(120deg, rgba(123, 108, 255, 0.26), rgba(56, 224, 198, 0.08));
  border: 1px solid rgba(123, 108, 255, 0.26);
}
.side-foot { margin-top: auto; font-size: 11px; color: var(--muted-2); padding: 0 6px; }

.admin-main { flex: 1; min-width: 0; margin-left: 232px; padding: 24px 28px 50px; }

.admin-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.admin-top h1 { margin: 0; font-size: 21px; letter-spacing: 0.01em; }
.admin-top .sub { font-size: 12px; color: var(--muted); }
.admin-top .spacer { margin-left: auto; }

.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
table.table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  vertical-align: middle;
}
table.table tr:last-child td { border-bottom: 0; }
table.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.td-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-cover {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.td-title b { display: block; font-size: 12.8px; font-weight: 600; }
.td-title span { font-size: 11px; color: var(--muted); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.stat-card .label { font-size: 11.5px; color: var(--muted); }
.stat-card .value { font-size: 25px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; }
.stat-card .delta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat-card .ic {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #cfc8ff;
  background: rgba(123, 108, 255, 0.16);
}
.stat-card.accent { background: linear-gradient(150deg, rgba(123, 108, 255, 0.22), rgba(15, 17, 32, 0.6)); border-color: rgba(123, 108, 255, 0.28); }

.admin-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .admin-grid { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.chip.on { color: #8ff0cf; border-color: rgba(70, 224, 168, 0.3); background: rgba(70, 224, 168, 0.10); }
.chip.off { color: var(--muted); }

.mobile-nav {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.mobile-nav a.active { color: #fff; background: var(--brand-soft); border-color: rgba(123, 108, 255, 0.35); }

@media (max-width: 899px) {
  .sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 18px 16px 40px; }
  .mobile-nav { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-top h1 { font-size: 18px; }
}

/* 后台登录 */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(123, 108, 255, 0.16), rgba(12, 14, 24, 0.92) 45%);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 16px 0 4px; font-size: 22px; }
.login-card .sub { margin: 0 0 22px; font-size: 12px; color: var(--muted); }
.login-tip {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.7;
}

/* ==========================================================================
   聚合支付 · 收银台 / 扫码页
   ========================================================================== */
.pay-channel-grid { display: grid; gap: 9px; margin-top: 14px; }
.pay-channel {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 12px 13px; border-radius: 15px; cursor: pointer;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.pay-channel input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pay-channel.active { border-color: rgba(123,108,255,.62); background: linear-gradient(135deg, rgba(123,108,255,.16), rgba(56,224,198,.07)); }
.pay-channel:active { transform: scale(.994); }
.pc-logo {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--c1, #7b6cff), var(--c2, #38e0c6));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c1, #7b6cff) 28%, transparent);
}
.pc-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pc-main b { font-size: 13.5px; font-weight: 650; letter-spacing: .01em; }
.pc-main span { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-check {
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong); color: transparent; flex: 0 0 auto; transition: all .18s ease;
}
.pay-channel.active .pc-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.pay-security {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
  padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.025); border: 1px solid var(--line);
}
.ps-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.ps-item svg { color: var(--brand-2); opacity: .9; }

.gw-head {
  display: flex; flex-direction: row; align-items: center; gap: 11px; margin-bottom: 13px;
  padding: 12px 13px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
}
.gw-badge {
  width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #fff; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--c1, #7b6cff), var(--c2, #38e0c6));
}
.gw-head-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gw-head-main b { font-size: 13.5px; }
.gw-head-main span { font-size: 10.5px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.gw-status {
  flex: 0 0 auto; font-size: 10px; padding: 4px 9px; border-radius: 20px;
  color: var(--warn); background: rgba(255,191,102,.12); border: 1px solid rgba(255,191,102,.22);
}
.gw-card { overflow: hidden; }
.gw-qr { position: relative; overflow: hidden; }
.gw-qr img { display: block; width: 100%; height: auto; }
.gw-scan-line {
  position: absolute; left: 8%; right: 8%; height: 2px; top: 10%;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  box-shadow: 0 0 12px rgba(56,224,198,.8); animation: gwScan 2.6s ease-in-out infinite;
}
@keyframes gwScan { 0%,100% { top: 10%; opacity: .2; } 50% { top: 86%; opacity: 1; } }
.gw-fallback { padding: 34px 16px 10px; text-align: center; color: var(--muted); }
.gw-fallback svg { color: var(--brand-2); opacity: .8; }
.gw-fallback p { font-size: 12px; line-height: 1.7; margin: 10px 0 14px; }
.gw-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.gw-poll {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--muted);
}
.gw-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(56,224,198,.6); animation: gwPulse 1.8s ease-out infinite; }
@keyframes gwPulse { 0% { box-shadow: 0 0 0 0 rgba(56,224,198,.55); } 100% { box-shadow: 0 0 0 9px rgba(56,224,198,0); } }

.channel-admin { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.channel-admin-item {
  display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 10px 11px;
  border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer;
}
.channel-admin-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.channel-admin-item.active { border-color: rgba(123,108,255,.55); background: rgba(123,108,255,.11); }
.channel-admin-item .pc-logo { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.channel-admin-item .pc-main b { font-size: 12px; }
.channel-admin-item .pc-main span { font-size: 10px; }
.pay-status-hero {
  display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 14px 15px;
  border-radius: 16px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel);
}
.pay-status-hero.ok { border-color: rgba(70,224,168,.3); background: rgba(70,224,168,.07); }
.pay-status-hero.warn { border-color: rgba(255,191,102,.28); background: rgba(255,191,102,.06); }
.psh-icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: var(--warn); flex: 0 0 auto;
}
.pay-status-hero.ok .psh-icon { color: var(--ok); }
.psh-main { display: flex; flex-direction: column; min-width: 0; }
.psh-main b { font-size: 13.5px; }
.psh-main span { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

@media (max-width: 420px) {
  .channel-admin { grid-template-columns: 1fr; }
  .pc-main span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-scan-line, .gw-pulse { animation: none; }
}
