:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

  --shop-primary: #c9920a;
  --shop-primary-dark: #9a6f06;
  --shop-accent: #f59e0b;
  --shop-bg: #080e1c;
  --shop-surface: rgba(255, 255, 255, 0.97);
  --shop-text: #1e293b;
  --shop-muted: #64748b;
  --shop-glow: rgba(245, 158, 11, 0.35);
  --shop-border: rgba(226, 232, 240, 0.6);

  --admin-sidebar: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-accent: #3b82f6;
  --admin-bg: #f1f5f9;
  --admin-surface: #fff;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.14);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--shop-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   前台商城
   ======================================== */
body.shop-body {
  background: var(--shop-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.06), transparent);
}

/* ---- 导航栏 ---- */
.shop-nav {
  background: rgba(8, 14, 28, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff !important;
  letter-spacing: 0.02em;
}

.shop-nav .navbar-brand span { color: var(--shop-accent); }

.shop-nav .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.shop-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* ---- 主内容区 ---- */
.shop-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ---- Hero ---- */
.shop-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  color: #fff;
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-hero p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto;
}

.shop-trust {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin: 1.25rem auto 2rem;
  flex-wrap: wrap;
}

.shop-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 500;
}

.shop-trust-item i {
  color: var(--shop-accent);
  font-size: 0.95rem;
}

/* ---- 通用面板 ---- */
.panel {
  background: var(--shop-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.panel-body { padding: 1.75rem; }

/* ---- 商品卡片 ---- */
.product-card {
  background: var(--shop-surface);
  border-radius: var(--radius);
  border: 1px solid var(--shop-border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card .card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--shop-primary), var(--shop-accent));
}

.product-card .card-body { padding: 1.5rem; }

.product-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.product-card .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--shop-primary-dark);
  margin: 0.75rem 0;
  letter-spacing: -0.01em;
}

.product-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--shop-muted);
}

/* ---- 按钮 ---- */
.btn-shop {
  background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-accent) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 12px var(--shop-glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-shop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 100%);
  opacity: 0;
  transition: var(--transition);
}

.btn-shop:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px var(--shop-glow);
  color: #fff;
}

.btn-shop:hover::after { opacity: 1; }

.btn-shop:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--shop-glow);
}

.btn-shop-outline {
  border: 1.5px solid var(--shop-primary);
  color: var(--shop-primary-dark);
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  transition: var(--transition);
}

.btn-shop-outline:hover {
  background: var(--shop-primary);
  color: #fff;
  border-color: var(--shop-primary);
}

/* ---- 徽章 ---- */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.stock-badge.in-stock { background: #dbeafe; color: #1d4ed8; }
.stock-badge.sold-out { background: #fee2e2; color: #b91c1c; }

.status-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-badge.paid { background: #d1fae5; color: #047857; }
.status-badge.pending { background: #fef3c7; color: #b45309; }
.status-badge.available { background: #dbeafe; color: #1d4ed8; }
.status-badge.sold { background: #f1f5f9; color: #64748b; }
.status-badge.expired { background: #ffedd5; color: #c2410c; }
.status-badge.failed { background: #fee2e2; color: #b91c1c; }

/* ---- 空状态 ---- */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--shop-muted);
}

.empty-state i {
  font-size: 2.5rem;
  opacity: 0.35;
  display: block;
  margin-bottom: 0.75rem;
}

/* ---- 激活码 ---- */
.code-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px dashed var(--shop-primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-all;
  color: #92400e;
  position: relative;
}

.btn-copy {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.78rem;
}

/* ---- 成功/等待图标 ---- */
.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.pending-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  animation: pulse-icon 2s ease infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---- 底部 ---- */
.shop-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

.shop-footer p { margin-bottom: 0.3rem; }
.shop-footer a { color: rgba(255, 255, 255, 0.55); }

/* ---- 表单 ---- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.9rem;
  font-size: 0.925rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* ---- 提示条 ---- */
.alert-toast {
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* ---- 悬浮订单条 ---- */
.pending-pay-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(8, 14, 28, 0) 0%, rgba(8, 14, 28, 0.92) 35%);
  pointer-events: none;
}

.pending-pay-banner-inner {
  pointer-events: auto;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--shop-text);
}

.pending-pay-banner-inner span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.4;
}

/* ========================================
   管理后台
   ======================================== */
body.admin-body {
  background: var(--admin-bg);
  display: flex;
  min-height: 100vh;
}

/* ---- 侧边栏 ---- */
.admin-sidebar {
  width: 230px;
  min-height: 100vh;
  background: var(--admin-sidebar);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
}

.admin-sidebar .brand {
  padding: 1.25rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  display: block;
}

.admin-sidebar .brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.15rem;
}

.admin-nav { padding: 0.75rem 0.65rem; flex: 1; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.15rem;
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--admin-sidebar-hover);
  color: #fff;
}

.admin-nav a.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), transparent);
  border-left: 3px solid var(--admin-accent);
  padding-left: calc(0.85rem - 3px);
}

.admin-sidebar .sidebar-foot {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- 主区域 ---- */
.admin-wrap {
  flex: 1;
  margin-left: 230px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #fff;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.admin-content { padding: 1.5rem; flex: 1; }

/* ---- 统计卡片 ---- */
.stat-card {
  background: var(--admin-surface);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--admin-accent);
  height: 100%;
  transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-card.stat-green { border-left-color: #10b981; }
.stat-card.stat-amber { border-left-color: #f59e0b; }
.stat-card.stat-violet { border-left-color: #8b5cf6; }
.stat-card.stat-blue { border-left-color: #3b82f6; }
.stat-card.stat-danger { border-left-color: #ef4444; }

.stat-card .label {
  font-size: 0.73rem;
  color: var(--shop-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.15rem;
}

.stat-card .stat-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--shop-muted);
}

.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--shop-muted);
  margin-top: 0.2rem;
}

/* ---- 仪表盘小节 ---- */
.dash-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mini-stat {
  background: var(--admin-surface);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.mini-stat .mini-label {
  display: block;
  font-size: 0.7rem;
  color: var(--shop-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-stat .mini-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.1rem;
}

.dash-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  font-size: 0.83rem;
  color: #92400e;
}

.dash-alert a { color: #b45309; font-weight: 600; }

/* ---- 库存卡片 ---- */
.inventory-card {
  background: var(--admin-surface);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-xs);
  padding: 1.1rem;
  height: 100%;
  transition: var(--transition);
}

.inventory-card:hover { box-shadow: var(--shadow); }

.inventory-card.inventory-out {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

.inventory-card.inventory-low {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.inventory-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.inventory-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.inventory-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.inventory-tag.tag-ok { background: #d1fae5; color: #047857; }
.inventory-tag.tag-low { background: #fef3c7; color: #b45309; }
.inventory-tag.tag-out { background: #fee2e2; color: #b91c1c; }

.inventory-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.inv-metric { text-align: center; }

.inv-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.inv-num.inv-available { color: #2563eb; }

.inv-label {
  display: block;
  font-size: 0.65rem;
  color: var(--shop-muted);
  margin-top: 0.05rem;
}

.inventory-bar-wrap { margin-bottom: 0.6rem; }

.inventory-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--shop-muted);
  margin-bottom: 0.25rem;
}

.inventory-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.inventory-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.inventory-out .inventory-bar-fill { background: #ef4444; width: 0 !important; }
.inventory-low .inventory-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.inventory-empty-hint { font-size: 0.78rem; color: var(--shop-muted); }

.inventory-warn {
  font-size: 0.78rem;
  color: #b45309;
  background: #fffbeb;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-xs);
}

.inventory-actions {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

/* ---- 管理卡片 ---- */
.admin-card {
  background: var(--admin-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.admin-card .card-head {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card .card-body { padding: 1.25rem; }

/* ---- 表格 ---- */
.table-admin {
  margin: 0;
  font-size: 0.85rem;
}

.table-admin thead th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--shop-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.7rem 0.85rem;
  white-space: nowrap;
}

.table-admin tbody td {
  padding: 0.75rem 0.85rem;
  vertical-align: middle;
  border-color: #f1f5f9;
}

.table-admin tbody tr { transition: background var(--transition); }
.table-admin tbody tr:hover { background: #f8fafc; }

/* ---- 筛选栏 ---- */
.filter-bar {
  background: var(--admin-surface);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}

/* ---- 管理按钮 ---- */
.btn-admin {
  background: var(--admin-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-admin:hover { background: #2563eb; color: #fff; }

/* ---- Modal ---- */
.modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header { border-bottom: 1px solid #f1f5f9; }
.modal-footer { border-top: 1px solid #f1f5f9; }

/* ---- 管理后台消息提示 ---- */
.admin-msg {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-msg-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.admin-msg-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.admin-msg-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ---- 登录页 ---- */
body.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shop-bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245, 158, 11, 0.06), transparent);
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--shop-surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.login-card .login-head {
  background: linear-gradient(135deg, var(--admin-sidebar) 0%, #1e3a5f 100%);
  color: #fff;
  padding: 1.75rem;
  text-align: center;
}

.login-card .login-head h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.login-card .login-body-inner { padding: 1.75rem; }

/* ---- 响应式 ---- */
@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-wrap { margin-left: 0; }
  .admin-menu-btn { display: inline-flex !important; }
}

.admin-menu-btn { display: none; }

@media (max-width: 576px) {
  .shop-main { padding: 1rem 0.85rem 3rem; }
  .panel-body { padding: 1.25rem; }
  .inventory-metrics { grid-template-columns: repeat(2, 1fr); }
  .shop-trust { gap: 1rem; }
  .shop-trust-item { font-size: 0.73rem; }
  .admin-content { padding: 1rem; }
  .stat-card .value { font-size: 1.3rem; }
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---- 加载按钮 ---- */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.stock-low { color: #dc2626; font-weight: 700; }
.font-monospace { font-family: var(--font-mono) !important; }
