:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: rgba(10, 18, 29, 0.76);
  --panel-strong: rgba(13, 27, 43, 0.92);
  --text: #f4f8fb;
  --muted: #8fa1b5;
  --line: rgba(130, 236, 220, 0.2);
  --line-strong: rgba(130, 236, 220, 0.52);
  --accent: #5eead4;
  --accent-blue: #38bdf8;
  --danger: #f87171;
  --shadow: rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 22%, rgba(94, 234, 212, 0.12), transparent 24rem),
    linear-gradient(135deg, #05080d 0%, #07111d 48%, #030609 100%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-blue); }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(143, 161, 181, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar nav { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: 0 22px 60px var(--shadow);
}
.card + .card { margin-top: 24px; }
.card h1, .card h2 { margin: 0 0 8px; letter-spacing: -0.04em; }

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.grid-layout .col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* 在 grid 布局的 col 内部，由 gap 控制间距，取消 card 自身的 margin-top */
.grid-layout .col .card + .card { margin-top: 0; }
.card h1 { font-size: 28px; }
.card h2 { font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; }
.card .desc { margin-top: 6px; }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form .row { display: grid; gap: 6px; }
.form label { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.form input, .form textarea, .form select {
  height: 44px; padding: 0 14px;
  border: 1px solid rgba(143, 161, 181, 0.28);
  border-radius: 12px;
  background: rgba(8, 14, 23, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.form textarea { padding: 10px 14px; height: auto; min-height: 80px; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18);
}

.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa1b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}

.form input[type="file"] {
  padding: 8px 14px;
}
.form input[type="file"]::file-selector-button {
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(143, 161, 181, 0.28);
  background: rgba(143, 161, 181, 0.1);
  color: var(--text);
  margin-right: 12px;
  cursor: pointer;
  transition: 180ms ease;
}
.form input[type="file"]::file-selector-button:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  border-color: rgba(94, 234, 212, 0.55);
  color: #052920;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(143, 161, 181, 0.28); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-strong); color: var(--accent); }
.btn-danger { border-color: rgba(248, 113, 113, 0.5); color: var(--danger); }
.btn-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.msg { margin-top: 10px; min-height: 20px; font-size: 13px; color: var(--muted); }
.msg[data-kind="error"] { color: var(--danger); }
.msg[data-kind="success"] { color: var(--accent); }

/* Premium Tag and Button (UID Verification) */
.premium-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 6px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
  animation: pulse-border 2s infinite ease-in-out;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
  70% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.premium-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: rgba(251, 191, 36, 0.6);
  color: #451a03;
}
.premium-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item {
  padding: 14px;
  border-radius: 12px;
  background: rgba(8, 14, 23, 0.5);
  border: 1px solid rgba(143, 161, 181, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.history-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.history-item-date {
  font-size: 12px;
  color: var(--muted);
}
.history-item-uid {
  font-size: 13px;
  color: var(--muted);
}
.history-item-reason {
  font-size: 12px;
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

/* 限定高度的滚动列表 */
.scrollable-list {
  max-height: 180px; /* 大约容纳 2~3 个 item 的高度 */
  overflow-y: auto;
  padding-right: 4px;
}
.scrollable-list-large {
  max-height: 280px; /* 大约容纳 3~4 个 item 的高度 */
  overflow-y: auto;
  padding-right: 4px;
}

/* 交易所 Tab 按钮 */
.exchange-tab {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.exchange-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.exchange-tab.active {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 500;
}

/* 提示图标 Tooltip 样式 */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  color: var(--text-light);
  font-size: 12px;
  font-style: normal;
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
  z-index: 1;
}

.tooltip-icon:hover {
  background: var(--text-light);
  color: var(--bg);
  z-index: 200;
}

/* Tooltip 气泡框 */
.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  width: 240px;
  padding: 8px 12px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 200;
  font-family: system-ui, -apple-system, sans-serif;
  text-align: left;
}

/* Tooltip 气泡小箭头 */
.tooltip-icon::before {
  content: '';
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 201;
}

/* 悬停时显示 Tooltip */
.tooltip-icon:hover::after,
.tooltip-icon:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-icon.tooltip-right::after {
  left: calc(100% + 10px);
  bottom: 50%;
  transform: translateX(-6px) translateY(50%);
}

.tooltip-icon.tooltip-left::after {
  left: auto;
  right: calc(100% + 10px);
  bottom: 50%;
  transform: translateX(6px) translateY(50%);
}

.tooltip-icon.tooltip-right::before,
.tooltip-icon.tooltip-left::before {
  display: none;
}

.tooltip-icon.tooltip-right:hover::after {
  transform: translateX(0) translateY(50%);
}

.tooltip-icon.tooltip-left:hover::after {
  transform: translateX(0) translateY(50%);
}
/* 认证记录列表（限制高度并滚动） */
.scrollable-list-large {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* 自定义滚动条样式，使其在暗色主题下更协调 */
.scrollable-list::-webkit-scrollbar,
.scrollable-list-large::-webkit-scrollbar {
  width: 4px;
}
.scrollable-list::-webkit-scrollbar-track,
.scrollable-list-large::-webkit-scrollbar-track {
  background: transparent;
}
.scrollable-list::-webkit-scrollbar-thumb,
.scrollable-list-large::-webkit-scrollbar-thumb {
  background: rgba(143, 161, 181, 0.2);
  border-radius: 4px;
}
.scrollable-list::-webkit-scrollbar-thumb:hover,
.scrollable-list-large::-webkit-scrollbar-thumb:hover {
  background: rgba(143, 161, 181, 0.4);
}

.kv { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 14px; }
.kv > div { display: flex; flex-direction: column; gap: 4px; }
.kv span:first-child { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.kv span:last-child { color: var(--text); font-weight: 650; font-size: 15px; }

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(143, 161, 181, 0.14);
}
.table th { color: var(--muted); font-weight: 700; }
.table tbody tr:hover { background: rgba(94, 234, 212, 0.05); }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(143, 161, 181, 0.28);
  color: var(--muted);
}
.tag.ok { color: var(--accent); border-color: rgba(94, 234, 212, 0.4); }
.tag.warn { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
.tag.bad { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }

/* 胶囊按钮 (Pill) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.pill:hover {
  background: rgba(45, 212, 191, 0.2);
  transform: translateY(-1px);
}
.pill:active {
  transform: translateY(0);
}

.code-list {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(8, 14, 23, 0.7);
  border: 1px dashed rgba(143, 161, 181, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  transition: all 0.2s ease;
}
a.code-list:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.copy-btn {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}
.copy-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
}

.muted-link { color: var(--muted); }
.muted-link:hover { color: var(--accent); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toolbar input, .toolbar select { height: 36px; padding: 0 10px; border: 1px solid rgba(143, 161, 181, 0.28); border-radius: 10px; background: rgba(8, 14, 23, 0.7); color: var(--text); }

/* 侧边抽屉 (Drawer) */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  justify-content: flex-end;
}
.drawer-content {
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-top: 16px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal {
  width: min(800px, calc(100% - 32px));
  max-height: 85vh;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 22px 60px var(--shadow);
  overflow: hidden;
  color: var(--text);
}
.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 0 28px 28px;
  overflow-y: auto;
}

/* Chat Bubbles */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.chat-row {
  display: flex;
  width: 100%;
}
.chat-row.user { justify-content: flex-end; }
.chat-row.system, .chat-row.admin { justify-content: flex-start; }

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
.chat-row.user .chat-bubble {
  background: rgba(94, 234, 212, 0.15);
  color: var(--accent);
  border-bottom-right-radius: 4px;
}
.chat-row.system .chat-bubble, .chat-row.admin .chat-bubble {
  background: rgba(8, 14, 23, 0.7);
  border: 1px solid rgba(143, 161, 181, 0.15);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-align: right;
}
.chat-row.system .chat-meta, .chat-row.admin .chat-meta {
  text-align: left;
}

/* 密码可见切换 */
.password-wrap {
  position: relative;
}
.password-wrap input {
  width: 100%;
  padding-right: 44px;
}
.eye-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 12px 12px 0;
  transition: color 180ms ease;
  line-height: 0;
}
.eye-btn:hover { color: var(--text); }
.eye-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 字段提示（密码强度 / 两次密码一致性） */
.field-hint {
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
  transition: color 180ms;
}
.field-hint.ok { color: var(--accent); }
.field-hint.bad { color: var(--danger); }

/* === 沉浸式分屏 Auth 布局（方案 A）=== */
.auth-split {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
  overflow: hidden;
}

/* 左：品牌幕布 */
.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(circle at 22% 28%, rgba(56, 189, 248, 0.22), transparent 52%),
    radial-gradient(circle at 78% 72%, rgba(94, 234, 212, 0.16), transparent 50%),
    linear-gradient(150deg, #04070c 0%, #0a1626 58%, #04070c 100%);
}
/* 发光网格 */
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 32% 42%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 32% 42%, #000, transparent 78%);
  pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }

.auth-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 15px;
  margin-bottom: 38px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-tagline {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  background: linear-gradient(115deg, #f4f8fb 20%, #5eead4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-sub {
  max-width: 430px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 40px;
}

/* 工具矩阵 */
.auth-matrix-title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 24px;
  background: linear-gradient(115deg, #f4f8fb 30%, #5eead4 110%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
}
.auth-tool {
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(8, 14, 23, 0.5);
  border: 1px solid rgba(94, 234, 212, 0.14);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.auth-tool:hover {
  border-color: rgba(94, 234, 212, 0.42);
  transform: translateY(-2px);
}
.auth-tool-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.auth-tool-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.auth-tool-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.auth-tool-data {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.auth-tool-data b {
  color: var(--accent);
  font-weight: 700;
}

.auth-motto {
  margin-top: 42px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.auth-motto strong { color: var(--accent); font-weight: 600; }

/* 右：表单区 */
.auth-form-side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(28px, 4vw, 64px);
  overflow-y: auto;
}
.auth-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-form-main {
  flex: 1;
  display: flex;
  align-items: center;
}
.auth-form-main .card {
  width: 100%;
  max-width: 420px;
  margin: 24px auto;
}

@media (max-width: 860px) {
  .auth-split {
    position: static;
    display: block;
    min-height: 100vh;
  }
  .auth-hero { display: none; }
  .auth-form-side { min-height: 100vh; padding: 24px 18px; }
  .auth-form-main .card { margin: 16px auto; }
}

/* 推荐码副标签 */
.sub-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px; /* 给滚动条留点空间 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
  }
  .topbar nav::-webkit-scrollbar { display: none; /* Chrome 隐藏滚动条 */ }
  .topbar nav .btn { flex-shrink: 0; }
  .grid-layout { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px; border-radius: 20px; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover:not(:disabled),
  .pill:hover { transform: none; }
}
