/* =============================================================================
 * 墨趣文具 · 学习用品采购交易平台 —— 全局设计系统
 * 风格：深空霓虹科技（Deep Space Neon）
 * -----------------------------------------------------------------------------
 * 重要约束：本文件是「视觉重构」而非「结构重构」。
 *   下列类名被 app/ 下全部既有模板引用，名称与层级一律不得变更，
 *   只允许替换其取值，以保证未改动的模板自动获得新视觉：
 *   布局   .topbar .inner .logo .nav .right .container .container-narrow
 *          .layout .sidebar .main .page-head .member-layout .member-main
 *   容器   .card .grid .grid-2 .grid-3 .grid-4 .stat
 *   商品   .product .cover .body .title .price .meta
 *   按钮   .btn .btn-primary .btn-accent .btn-ghost .btn-danger .btn-sm .btn-block
 *   表单   .form-item .hint  input / select / textarea
 *   表格   .table .num
 *   标签   .tag .tag-gray .tag-blue .tag-green .tag-orange .tag-red .tag-yellow
 *   其它   .row .between .muted .right .center .mt .mb .divider .empty
 *          .pagination .jump-* .detail .gallery .pay-channel .price-lg
 * ========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. 设计令牌
 * ------------------------------------------------------------------------ */
:root {
  color-scheme: dark;                 /* 让原生控件 / 滚动条走深色 */

  /* 底色层：由深到浅 */
  --bg-deep:  #04060d;
  --bg:       #070b15;
  --bg-soft:  #0b1120;
  --card:     #0d1526;
  --card-hi:  #111d33;

  /* 玻璃面板 */
  --glass:    rgba(255, 255, 255, .038);
  --glass-hi: rgba(255, 255, 255, .07);

  /* 描边 */
  --border:    rgba(122, 152, 208, .16);
  --border-hi: rgba(34, 211, 238, .40);

  /* 文字 */
  --text:   #e9eefb;
  --text-2: #b3c0d8;
  --muted:  #7b8aa3;

  /* 主题色 */
  --primary:      #22d3ee;   /* 霓虹青 */
  --primary-dark: #0ea5b7;
  --primary-2:    #8b5cf6;   /* 星云紫 */
  --accent:       #ffb02e;   /* 高亮琥珀（价格 / 主 CTA） */
  --accent-dark:  #e09000;
  --ok:           #34d399;
  --err:          #fb7185;
  --warn:         #fbbf24;

  /* 渐变 */
  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #6366f1 52%, #8b5cf6 100%);
  --grad-accent:  linear-gradient(135deg, #ffc247 0%, #ff8a3d 100%);
  --grad-surface: linear-gradient(160deg, rgba(34,211,238,.10) 0%, rgba(139,92,246,.06) 46%, rgba(255,255,255,0) 100%);

  /* 圆角 */
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;

  /* 阴影与光晕 */
  --shadow:      0 10px 34px rgba(0, 0, 0, .48);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, .34);
  --glow:        0 0 26px rgba(34, 211, 238, .34);
  --glow-soft:   0 0 40px rgba(34, 211, 238, .16);
  --glow-accent: 0 0 26px rgba(255, 176, 46, .32);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------------------
 * 2. 基础重置与页面底色
 * ------------------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* 深空光晕 + 科技网格背景（固定定位，随滚动保持） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 620px at 10% -10%, rgba(34, 211, 238, .18), transparent 62%),
    radial-gradient(980px 560px at 92% 2%,  rgba(139, 92, 246, .18), transparent 64%),
    radial-gradient(760px 520px at 50% 108%, rgba(34, 211, 238, .08), transparent 68%),
    linear-gradient(rgba(122, 152, 208, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 152, 208, .045) 1px, transparent 1px);
  background-size: auto, auto, auto, 46px 46px, 46px 46px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: #67e8f9; text-decoration: none; }

img { max-width: 100%; }

/* 焦点可见性（无障碍：键盘导航必须有明确焦点环） */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34,211,238,.42), rgba(139,92,246,.42));
  border-radius: 8px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #22d3ee, #8b5cf6); }

::selection { background: rgba(34, 211, 238, .32); color: #fff; }

/* ---------------------------------------------------------------------------
 * 3. 顶部导航（玻璃拟态 + 霓虹底边）
 * ------------------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 21, .78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
/* 霓虹流光线 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.85), rgba(139,92,246,.85), transparent);
  opacity: .75;
}
.topbar .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(96deg, #ffffff 0%, #a5f3fc 42%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}
.logo:hover { -webkit-text-fill-color: transparent; }
.logo::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary), 0 0 26px rgba(34,211,238,.6);
  flex-shrink: 0;
}
.logo small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-left: 2px;
}
.nav { display: flex; gap: 20px; flex: 1; }
.nav a {
  position: relative;
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.topbar .right { display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.topbar .right a { color: var(--text-2); }
.topbar .right a:hover { color: var(--primary); }

/* ---------------------------------------------------------------------------
 * 4. 布局容器
 * ------------------------------------------------------------------------ */
.container { max-width: 1240px; margin: 24px auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 34px auto; padding: 0 20px; }

/* ---------------------------------------------------------------------------
 * 5. 卡片 / 面板
 * ------------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
/* 顶部渐变发丝线 */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.55), rgba(139,92,246,.45), transparent);
  opacity: .85;
}
.card h2, .card h3 { margin: 0 0 14px; font-size: 16px; color: var(--text); }
.card h3 { font-size: 15px; }

/* 玻璃与网格工具类 */
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
 * 6. 栅格
 * ------------------------------------------------------------------------ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * 6.1 商品卡（.product）
 *      契约类名：.product .cover .body .title .price .meta
 *      这四个子元素此前缺失定义，会导致封面塌陷、卡体错位
 * ------------------------------------------------------------------------ */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow), var(--glow-soft);
  color: inherit;
}

/* 封面：固定 1:1 比例，保证无图 / 有图都不塌陷 */
.product .cover {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgba(6, 10, 20, .72);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}
.product .cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 13, .55));
  pointer-events: none;
}
/* 无图占位：分类名水印，避免出现空白破格 */
.product .cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--grad-surface);
  background-size: auto;
}
.product .cover-ph::after {
  background: none;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  content: attr(data-cat);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
  text-align: center;
  padding: 0 12px;
  color: rgba(233, 238, 251, .34);
}

.product .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 13px 14px 15px;
}
.product .title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product:hover .title { color: var(--primary); }
.product .price {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 176, 46, .26);
}
.product .price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.product .meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 7. 按钮
 * ------------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass-hi);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.5;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--border-hi);
  background: rgba(34, 211, 238, .10);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--glow-soft);
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-primary);
  border-color: transparent;
  color: #04121b;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(34, 211, 238, .24);
}
.btn-primary:hover {
  background: var(--grad-primary);
  color: #04121b;
  box-shadow: var(--glow), 0 8px 26px rgba(99, 102, 241, .34);
}

.btn-accent {
  background: var(--grad-accent);
  border-color: transparent;
  color: #2b1800;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 138, 61, .24);
}
.btn-accent:hover {
  background: var(--grad-accent);
  color: #2b1800;
  box-shadow: var(--glow-accent), 0 8px 26px rgba(255, 138, 61, .34);
}

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(34, 211, 238, .08); }

.btn-danger {
  background: rgba(251, 113, 133, .10);
  border-color: rgba(251, 113, 133, .42);
  color: #fda4af;
}
.btn-danger:hover {
  background: rgba(251, 113, 133, .20);
  border-color: var(--err);
  color: #fff;
  box-shadow: 0 0 22px rgba(251, 113, 133, .3);
}

.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled,
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------------------
 * 8. 表单
 * ------------------------------------------------------------------------ */
.form-item { margin-bottom: 16px; }
.form-item label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 7px;
  color: var(--text-2);
}
.form-item .hint { color: var(--muted); font-size: 12px; margin-top: 5px; }

input[type=text],
input[type=password],
input[type=number],
input[type=email],
input[type=tel],
input[type=search],
input[type=date],
input[type=url],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: rgba(6, 10, 20, .72);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input::placeholder, textarea::placeholder { color: #6f7f99; } /* 对比度 4.6:1，达 WCAG AA */
input:hover, select:hover, textarea:hover { border-color: rgba(122, 152, 208, .3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(6, 10, 20, .92);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14), var(--glow-soft);
}
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: auto; }
select option { background: var(--card); color: var(--text); }
textarea { min-height: 112px; resize: vertical; line-height: 1.7; }

/* 禁用态 */
input:disabled, select:disabled, textarea:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: rgba(6, 10, 20, .5);
}

/* ---------------------------------------------------------------------------
 * 9. 表格
 * ------------------------------------------------------------------------ */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 13.5px;
}
.table th, .table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.table th {
  background: rgba(34, 211, 238, .055);
  font-weight: 600;
  color: var(--text-2);
  font-size: 12.5px;
  letter-spacing: .4px;
  white-space: nowrap;
}
.table tr:hover td { background: rgba(34, 211, 238, .045); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.table a { color: var(--primary); }

/* ---------------------------------------------------------------------------
 * 10. 标签 / 徽标
 * ------------------------------------------------------------------------ */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.85;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-gray   { background: rgba(148, 163, 184, .14); color: #b6c2d6; border-color: rgba(148,163,184,.26); }
.tag-blue   { background: rgba(34, 211, 238, .14);  color: #67e8f9; border-color: rgba(34,211,238,.34); }
.tag-green  { background: rgba(52, 211, 153, .14);  color: #6ee7b7; border-color: rgba(52,211,153,.32); }
.tag-orange { background: rgba(255, 176, 46, .14);  color: #fcd34d; border-color: rgba(255,176,46,.34); }
.tag-red    { background: rgba(251, 113, 133, .14); color: #fda4af; border-color: rgba(251,113,133,.34); }
.tag-yellow { background: rgba(250, 204, 21, .14);  color: #fde047; border-color: rgba(250,204,21,.32); }

/* ---------------------------------------------------------------------------
 * 11. 数据统计卡
 * ------------------------------------------------------------------------ */
.stat {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stat::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), transparent);
}
.stat:hover {
  border-color: var(--border-hi);
  box-shadow: var(--glow-soft);
  transform: translateY(-2px);
}
.stat .label { color: var(--muted); font-size: 12.5px; letter-spacing: .3px; }
.stat .value {
  font-size: 27px;
  font-weight: 800;
  margin-top: 7px;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat .value.accent  { color: var(--accent);  text-shadow: 0 0 22px rgba(255,176,46,.34); }
.stat .value.primary { color: var(--primary); text-shadow: 0 0 22px rgba(34,211,238,.34); }
.stat .value.ok      { color: var(--ok);      text-shadow: 0 0 22px rgba(52,211,153,.30); }

/* ---------------------------------------------------------------------------
 * 12. 登录 / 注册
 * ------------------------------------------------------------------------ */
.auth-wrap { max-width: 430px; margin: 56px auto; }
.auth-wrap .card { padding: 30px; }
.auth-wrap h1 { font-size: 21px; text-align: center; margin: 0 0 6px; }
.auth-wrap .sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 13px; }

/* ---------------------------------------------------------------------------
 * 13. 侧边布局（平台后台 / 商家中心）
 * ------------------------------------------------------------------------ */
.layout { display: flex; min-height: calc(100dvh - 66px); }

.sidebar {
  width: 224px;
  flex-shrink: 0;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, .96) 0%, rgba(7, 11, 21, .96) 100%);
  border-right: 1px solid var(--border);
  color: var(--text-2);
}
.sidebar .brand {
  padding: 0 20px 16px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .4px;
  color: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar .brand::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  flex-shrink: 0;
}
.sidebar a {
  display: block;
  padding: 11px 20px;
  color: var(--text-2);
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sidebar a:hover {
  background: rgba(34, 211, 238, .08);
  color: #fff;
  border-left-color: rgba(34, 211, 238, .5);
}
.sidebar a.active {
  background: rgba(34, 211, 238, .12);
  color: #fff;
  border-left-color: var(--primary);
  box-shadow: inset 0 0 22px rgba(34, 211, 238, .08);
}
.sidebar .spacer { flex: 1; }

.main { flex: 1; min-width: 0; padding: 22px 26px; overflow: auto; }

@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 0; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar .brand { display: none; }
  .sidebar a { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .sidebar a.active { border-left: none; border-bottom-color: var(--primary); }
}

/* ---------------------------------------------------------------------------
 * 14. 页头 / 面包屑
 * ------------------------------------------------------------------------ */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-head h1 {
  font-size: 21px;
  margin: 0;
  font-weight: 800;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.page-head h1::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: var(--grad-primary);
  box-shadow: 0 0 14px rgba(34, 211, 238, .5);
  flex-shrink: 0;
}
.page-head select,
.page-head input[type="text"] {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 20, .72);
  color: var(--text);
  font-size: 13.5px;
}
.page-head .btn { height: 38px; }

/* ---------------------------------------------------------------------------
 * 15. 工具类
 * ------------------------------------------------------------------------ */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.empty { text-align: center; color: var(--muted); padding: 46px 0; }
.empty a { color: var(--primary); font-weight: 600; }

/* 数字/编号等宽显示 */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
 * 16. 分页
 * ------------------------------------------------------------------------ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  list-style: none;
  padding: 20px 0 6px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}
.pagination li { list-style: none; }
.pagination li span,
.pagination li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--text-2);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: all .18s ease;
}
.pagination li a:hover {
  border-color: var(--border-hi);
  color: #fff;
  background: rgba(34, 211, 238, .12);
  box-shadow: var(--glow-soft);
  text-decoration: none;
}
.pagination li.active span {
  background: var(--grad-primary);
  border-color: transparent;
  color: #04121b;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(34, 211, 238, .38);
}
.pagination li.disabled span {
  color: #4d5a6e;
  background: rgba(6, 10, 20, .5);
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
 * 17. 跳转提示页
 * ------------------------------------------------------------------------ */
.jump-body { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 20px; }
.jump-box {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 52px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.jump-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  line-height: 68px;
  font-size: 34px;
  margin: 0 auto 18px;
  color: #04121b;
  font-weight: 700;
}
.jump-icon.is-ok  { background: var(--grad-primary); box-shadow: 0 0 34px rgba(34,211,238,.45); }
.jump-icon.is-err { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; box-shadow: 0 0 34px rgba(251,113,133,.42); }
.jump-msg { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.jump-tip { color: var(--muted); margin: 0; font-size: 13px; }

/* ---------------------------------------------------------------------------
 * 18. 商品详情页
 * ------------------------------------------------------------------------ */
.detail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), rgba(139,92,246,.5), transparent);
}
/* 主图：完整展示（contain 不裁剪），容器给足高度 */
.detail .gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(34,211,238,.10), transparent 68%),
    rgba(6, 10, 20, .74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail .gallery img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.detail .gallery .gallery-empty { color: var(--muted); }
.detail-title { font-size: 23px; line-height: 1.45; margin: 0 0 12px; font-weight: 700; }
.detail-desc { color: var(--text-2); white-space: pre-line; line-height: 1.85; }
.detail-actions { gap: 10px; }

@media (max-width: 780px) {
  .detail { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .detail .gallery { height: 380px; padding: 12px; }
}

/* 大号价格 */
.price-lg {
  color: var(--accent);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-shadow: 0 0 24px rgba(255, 176, 46, .32);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
 * 19. 收银台 / 支付方式
 * ------------------------------------------------------------------------ */
.pay-channel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 11px;
  cursor: pointer;
  background: var(--glass);
  transition: all .18s ease;
}
.pay-channel:hover {
  border-color: var(--border-hi);
  background: rgba(34, 211, 238, .08);
  box-shadow: var(--glow-soft);
}
.pay-channel input[type="radio"] { flex-shrink: 0; }
.pay-channel .pay-info { display: flex; flex-direction: column; gap: 2px; }
.pay-channel.disabled { opacity: .45; cursor: not-allowed; background: rgba(6,10,20,.5); }
.pay-channel.disabled:hover { border-color: var(--border); background: rgba(6,10,20,.5); box-shadow: none; }
.pay-price {
  color: var(--accent);
  font-size: 29px;
  font-weight: 800;
  text-shadow: 0 0 24px rgba(255, 176, 46, .32);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
 * 20. 页脚（多栏结构 + 霓虹顶边）
 *     旧版只有三行居中文字，行距被压扁、备案号容易被挤出视口，
 *     这里改为「品牌栏 + 4 组链接栏 + 底部条」，并保证有独立内边距。
 * ------------------------------------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: 46px;
  background: linear-gradient(180deg, rgba(11, 17, 32, .92) 0%, rgba(4, 6, 13, .96) 100%);
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), rgba(139, 92, 246, .5), transparent);
}
.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 20px 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px 24px;
}
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .5px;
}
.footer-brand .footer-logo small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-brand .footer-desc {
  margin: 12px 0 14px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 30em;
}
.footer-brand .footer-contact {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-2);
}
.footer-brand .footer-contact b { color: var(--primary); font-size: 15px; }

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
}
.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .beian { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .beian .dot-mark {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--grad-primary);
  opacity: .75;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer-inner { padding: 28px 16px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 兼容旧模板里的 .site-footer-links（若还有页面沿用） */
.site-footer-links a { color: var(--muted); }
.site-footer-links a:hover { color: var(--primary); }

/* ---------------------------------------------------------------------------
 * 20.1 商品详情：多图缩略图条（图集 images 字段驱动）
 * ------------------------------------------------------------------------ */
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.detail-thumbs .th {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: rgba(6, 10, 20, .72);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.detail-thumbs .th:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.detail-thumbs .th.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .5), 0 0 18px rgba(34, 211, 238, .28);
}

/* 头像首字母占位 */
.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #04060d;
  font-weight: 800;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------------------
 * 21. Toast / 弹层深色适配（layer.js 使用）
 * ------------------------------------------------------------------------ */
.layui-layer, .layer-anim { border-radius: var(--radius) !important; }
.layui-layer-msg {
  background: rgba(13, 21, 38, .96) !important;
  border: 1px solid var(--border-hi) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow), var(--glow-soft) !important;
  backdrop-filter: blur(12px);
}

/* ---------------------------------------------------------------------------
 * 22. 动效与无障碍
 * ------------------------------------------------------------------------ */
@keyframes xph-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes xph-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
@keyframes xph-sheen {
  from { background-position: -140% 0; }
  to   { background-position: 240% 0; }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
