/* ═══════════ Onyx 设计系统（v2.26，三端同构，与 Clean Light 完全独立） ═══════════
   深色底 #0B1020 · 面板 #121A2E · 主色青 #22D3EE · 辅色紫 #A78BFA · 文字 #E6EAF2/#8B96AB
   结构：顶栏分组导航 → 二级页签 → 页头 → 内容；按钮 6px 方角、徽章方角描边、分段式时间选择、底部居中 Toast。
   对比度：正文/次要文字在面板底上均 ≥ 4.5:1。 */
:root {
  --bg: #0B1020;
  --bg-2: #0F172A;
  --panel: #121A2E;
  --panel-2: #182238;
  --field: #0C1324;
  --hover: rgba(148, 163, 184, .07);
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .3);
  --text: #E6EAF2;
  --muted: #B6C0D1;
  --dim: #8B96AB;
  --brand: #22D3EE;
  --brand-hover: #67E8F9;
  --brand-deep: #06B6D4;
  --brand-soft: rgba(34, 211, 238, .12);
  --brand-ring: rgba(34, 211, 238, .28);
  --accent: #A78BFA;
  --ok: #34D399;
  --ok-text: #6EE7B7;
  --warn: #FBBF24;
  --warn-text: #FCD34D;
  --danger: #F87171;
  --danger-text: #FCA5A5;
  --info: #60A5FA;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --font: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "SF Mono", monospace;
  --wrap: 1440px;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, .10), transparent 60%), radial-gradient(700px 400px at -10% 100%, rgba(167, 139, 250, .10), transparent 60%); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .25); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .45); }
h1, h2, h3, h4 { font-weight: 600; }
::selection { background: rgba(34, 211, 238, .3); }

/* ── 卡片 ── */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; position: relative; }
.card.hoverable:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card-pad { padding: 20px 22px; }

/* ── 框架：顶栏 ── */
.ox-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ox-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 16, 32, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.ox-header-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 18px; }
.ox-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: .2px; white-space: nowrap; }
.ox-brand-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #06111F; background: linear-gradient(135deg, var(--brand) 0%, #38BDF8 55%, var(--accent) 100%); box-shadow: 0 6px 18px rgba(34, 211, 238, .3); flex-shrink: 0; }
.ox-brand-mark.sm { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 3px 10px rgba(34, 211, 238, .28); }
.ox-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; }
.ox-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.ox-nav-item { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; transition: color .15s, background .15s, border-color .15s; white-space: nowrap; }
.ox-nav-item:hover { color: var(--text); background: var(--hover); }
.ox-nav-item.active { color: var(--brand); background: var(--brand-soft); border-color: rgba(34, 211, 238, .25); font-weight: 600; }
.ox-iconbtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.ox-iconbtn:hover { color: var(--text); background: var(--hover); border-color: var(--border-strong); }
.ox-burger { display: none; }
.ox-user { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; max-width: 260px; }
.ox-user:hover { border-color: var(--border-strong); background: var(--panel-2); }
.ox-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #06111F; background: linear-gradient(135deg, #FDE68A, #F59E0B); flex-shrink: 0; }
.ox-user-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.ox-user-text b { font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ox-user-text i { font-style: normal; font-size: 11px; color: var(--dim); }

/* ── 二级页签 ── */
.ox-tabs { background: rgba(15, 23, 42, .6); border-bottom: 1px solid var(--border); }
.ox-tabs-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ox-tabs-in::-webkit-scrollbar { display: none; }
.ox-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px 11px; border: none; background: none; color: var(--dim); cursor: pointer; font-weight: 500; white-space: nowrap; transition: color .15s; }
.ox-tab:hover { color: var(--text); }
.ox-tab.active { color: var(--text); font-weight: 600; }
.ox-tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.ox-tab .ox-ico { color: var(--dim); } .ox-tab.active .ox-ico { color: var(--brand); }

/* ── 页头 / 内容 ── */
.ox-page-head { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(18, 26, 46, .6), transparent); }
.ox-page-head-in { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 18px; display: flex; align-items: center; gap: 16px; }
.ox-page-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(34, 211, 238, .22); flex-shrink: 0; }
.ox-crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); letter-spacing: .3px; }
.ox-crumb i { font-style: normal; color: var(--border-strong); }
.ox-page-title { font-size: 21px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; margin-top: 2px; }
.ox-page-desc { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.ox-main { flex: 1; }
.content { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px 70px; animation: pageIn .32s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }

/* ── 移动端全屏菜单 ── */
.ox-mnav { position: fixed; inset: 0; z-index: 120; background: rgba(11, 16, 32, .97); padding: 0 20px 30px; overflow-y: auto; animation: fadeIn .18s ease; }
.ox-mnav-head { display: flex; align-items: center; gap: 10px; height: 60px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.ox-mnav-group { margin-bottom: 14px; }
.ox-mnav-gname { font-size: 11.5px; letter-spacing: 1px; color: var(--dim); padding: 8px 10px 4px; text-transform: uppercase; }
.ox-mnav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border-radius: 10px; border: none; background: none; color: var(--muted); font-size: 15px; cursor: pointer; text-align: left; }
.ox-mnav-item:hover, .ox-mnav-item.active { color: var(--brand); background: var(--brand-soft); }
.ox-mnav-item.danger { color: var(--danger-text); margin-top: 10px; }

/* ── 按钮（方角 6px；涟漪保留） ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; line-height: 1.4; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:hover { color: var(--brand); border-color: rgba(34, 211, 238, .55); background: var(--brand-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #38BDF8); border-color: transparent; color: #06111F; font-weight: 600; box-shadow: 0 4px 14px rgba(34, 211, 238, .25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-hover), #7DD3FC); color: #06111F; border-color: transparent; box-shadow: 0 6px 18px rgba(34, 211, 238, .35); }
.btn-danger { border-color: rgba(248, 113, 113, .5); color: var(--danger-text); }
.btn-danger:hover { background: rgba(248, 113, 113, .12); border-color: var(--danger); color: var(--danger-text); }
.btn-ok { border-color: rgba(52, 211, 153, .5); color: var(--ok-text); }
.btn-ok:hover { background: rgba(52, 211, 153, .12); border-color: var(--ok); color: var(--ok-text); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 5px; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }
.ripple { position: absolute; border-radius: 50%; background: rgba(34, 211, 238, .18); transform: scale(0); animation: ripple .55s ease-out; pointer-events: none; }
.btn-primary .ripple { background: rgba(255, 255, 255, .4); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ── 表单 ── */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: .2px; }
.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--field); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.input::placeholder { color: #5F6B82; }
.input:hover { border-color: rgba(148, 163, 184, .5); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); background: #0D1527; }
.input.err { border-color: var(--danger); }
.input.err:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }
.input[readonly] { background: var(--panel-2); color: var(--muted); }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 4px; }
.field .hint.error { color: var(--danger-text); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%238B96AB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
select.input option { background: var(--panel); color: var(--text); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ── 表格（无斑马纹，悬停左侧青色指示） ── */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 11px 14px; color: var(--dim); font-size: 11.5px; font-weight: 600; background: rgba(15, 23, 42, .9); border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .6px; }
td { padding: 11px 14px; border-bottom: 1px solid rgba(148, 163, 184, .08); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { animation: rowIn .3s ease both; transition: background .12s, box-shadow .12s; }
tbody tr:hover { background: rgba(34, 211, 238, .05); box-shadow: inset 2px 0 0 var(--brand); }
@keyframes rowIn { from { opacity: 0; } }
.empty { text-align: center; padding: 48px 0; color: var(--dim); }
.empty .empty-icon { font-size: 32px; margin-bottom: 10px; opacity: .5; filter: grayscale(.4); }

/* ── 徽章（方角描边） ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 5px; font-size: 12px; font-weight: 500; line-height: 1.7; border: 1px solid transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.badge-ok { color: var(--ok-text); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); } .badge-ok .dot { background: var(--ok); color: var(--ok); }
.badge-warn { color: var(--warn-text); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); } .badge-warn .dot { background: var(--warn); color: var(--warn); animation: breathe 1.6s ease-in-out infinite; }
.badge-danger { color: var(--danger-text); border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); } .badge-danger .dot { background: var(--danger); color: var(--danger); }
.badge-dim { color: var(--dim); border-color: var(--border); background: rgba(148, 163, 184, .06); } .badge-dim .dot { background: var(--dim); color: transparent; }
.badge-info { color: #93C5FD; border-color: rgba(96, 165, 250, .4); background: rgba(96, 165, 250, .08); } .badge-info .dot { background: var(--info); color: var(--info); }
@keyframes breathe { 50% { opacity: .35; transform: scale(.8); } }

/* ── 统计卡（左侧色条 + 右上图标方块 + 等宽数字） ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 18px 18px 16px 20px; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.stat-label { color: var(--dim); font-size: 12.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; font-weight: 500; padding-right: 44px; }
.stat-label > span:first-child { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: var(--panel-2); border: 1px solid var(--border); }
.stat-value { font-size: 27px; font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.5px; line-height: 1.15; }
.stat-value.plain { color: var(--text); }
.stat-sub { font-size: 12px; color: var(--dim); margin-top: 6px; }
.stats-tint > .stat-card:nth-child(6n+1)::before { background: var(--brand); }
.stats-tint > .stat-card:nth-child(6n+2)::before { background: var(--ok); }
.stats-tint > .stat-card:nth-child(6n+3)::before { background: var(--danger); }
.stats-tint > .stat-card:nth-child(6n+4)::before { background: var(--warn); }
.stats-tint > .stat-card:nth-child(6n+5)::before { background: var(--info); }
.stats-tint > .stat-card:nth-child(6n+6)::before { background: var(--accent); }
.stats-tint > .stat-card:nth-child(6n+1) { background: linear-gradient(135deg, var(--panel), rgba(34, 211, 238, .06)); }
.stats-tint > .stat-card:nth-child(6n+2) { background: linear-gradient(135deg, var(--panel), rgba(52, 211, 153, .07)); }
.stats-tint > .stat-card:nth-child(6n+3) { background: linear-gradient(135deg, var(--panel), rgba(248, 113, 113, .07)); }
.stats-tint > .stat-card:nth-child(6n+4) { background: linear-gradient(135deg, var(--panel), rgba(251, 191, 36, .07)); }
.stats-tint > .stat-card:nth-child(6n+5) { background: linear-gradient(135deg, var(--panel), rgba(96, 165, 250, .07)); }
.stats-tint > .stat-card:nth-child(6n+6) { background: linear-gradient(135deg, var(--panel), rgba(167, 139, 250, .08)); }

/* ── 图表 ── */
.chart-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 20px; }
.chart-box canvas { width: 100%; height: 240px; display: block; }
.chart-title { font-size: 13.5px; font-weight: 600; color: var(--text); padding: 16px 20px 0; display: flex; align-items: center; gap: 8px; }
.chart-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--accent)); }

/* ── 弹窗 / 抽屉 ── */
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .72); backdrop-filter: blur(4px); z-index: 90; display: flex; align-items: center; justify-content: center; animation: fadeIn .18s ease; padding: 20px; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; padding: 22px 24px; box-shadow: var(--shadow-lg); border-color: var(--border-strong); animation: popIn .22s ease both; }
.modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.modal.wide { max-width: 700px; }
.modal.xwide { max-width: 960px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-10px); } }
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.modal-close { background: none; border: 1px solid transparent; color: var(--dim); font-size: 16px; cursor: pointer; line-height: 1; padding: 5px 8px; border-radius: 6px; transition: background .12s, color .12s, border-color .12s; }
.modal-close:hover { color: var(--text); background: var(--hover); border-color: var(--border); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .72); backdrop-filter: blur(4px); z-index: 90; animation: fadeIn .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 94vw); background: var(--panel); border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); z-index: 95; overflow-y: auto; padding: 22px 24px; animation: slideIn .26s cubic-bezier(.3, 1, .4, 1) both; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }

/* ── Toast（底部居中） ── */
.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast { min-width: 240px; max-width: 420px; padding: 11px 18px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); animation: toastIn .3s cubic-bezier(.3, 1.2, .5, 1) both; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text); pointer-events: auto; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(24px); } }
.toast-ok { border-color: rgba(52, 211, 153, .5); } .toast-err { border-color: rgba(248, 113, 113, .55); } .toast-info { border-color: rgba(34, 211, 238, .5); }

/* ── 骨架屏 ── */
.skeleton { border-radius: 8px; background: linear-gradient(100deg, #141D33 40%, #1B2540 50%, #141D33 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-row { height: 42px; margin-bottom: 8px; }

/* ── 分页 ── */
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 14px 4px 2px; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ── 登录页：左品牌区 + 右表单区 ── */
.ox-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.ox-login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 60px 8vw; background: linear-gradient(160deg, #0B1020 0%, #0F1B3A 50%, #111827 100%); border-right: 1px solid var(--border); }
.ox-login-brand::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -160px; top: -200px; background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.ox-login-brand::after { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -200px; bottom: -240px; background: radial-gradient(circle, rgba(167, 139, 250, .26), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px); } }
.ox-login-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.ox-login-brand-inner { position: relative; z-index: 1; max-width: 480px; }
.ox-login-h1 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin: 26px 0 8px; line-height: 1.15; }
.ox-login-sub { color: var(--brand); font-size: 12.5px; letter-spacing: 3px; font-weight: 600; }
.ox-login-points { list-style: none; margin-top: 38px; display: flex; flex-direction: column; gap: 14px; }
.ox-login-points li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.ox-login-points .ox-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(34, 211, 238, .22); }
.ox-login-foot { position: absolute; left: 8vw; bottom: 28px; color: var(--dim); font-size: 12px; z-index: 1; }
.ox-login-form { display: grid; place-items: center; padding: 40px 24px; }
.ox-form-card { width: 100%; max-width: 400px; }
.ox-form-head { margin-bottom: 26px; }
.ox-form-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 6px; }
.ox-form-card .input { padding: 12px 14px; font-size: 15px; border-radius: 8px; }
.ox-form-card .field label { font-size: 13px; }
.ox-form-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--dim); font-size: 12.5px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; } /* 兼容兜底（皮肤接管后不再使用） */
.login-card { width: 100%; max-width: 400px; padding: 30px; }

/* ── Tabs（页内） ── */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 18px; }
.tab { padding: 7px 16px; background: none; border: none; color: var(--dim); cursor: pointer; font-weight: 500; position: relative; border-radius: 6px; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); font-weight: 600; background: var(--panel-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* ── 工具条 / 杂项 ── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 150px; }
.spacer { flex: 1; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .ok-text { color: var(--ok-text); } .danger-text { color: var(--danger-text); } .warn-text { color: var(--warn-text); }
.strong { font-weight: 600; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--dim); } .kv dd { word-break: break-all; color: var(--text); }
.section-title { font-size: 12px; font-weight: 600; color: var(--dim); margin: 22px 0 10px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.copy-chip { cursor: pointer; border: 1px dashed var(--border-strong); padding: 2px 8px; border-radius: 5px; transition: border-color .15s, color .15s, background .15s; }
.copy-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.log-item { padding: 9px 12px; border-left: 3px solid var(--border-strong); margin-bottom: 8px; background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 12.5px; }
.log-item.lv-error { border-left-color: var(--danger); } .log-item.lv-warn { border-left-color: var(--warn); } .log-item.lv-info { border-left-color: var(--info); } .log-item.lv-security { border-left-color: var(--accent); }
.log-time { color: var(--dim); font-size: 11.5px; margin-right: 8px; font-variant-numeric: tabular-nums; font-family: var(--mono); }
pre.code { background: #070B16; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow-y: auto; color: #CBD5E1; font-family: var(--mono); }
details.fold { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--panel); }
details.fold summary { padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 500; background: var(--bg-2); list-style: none; }
details.fold summary:hover { color: var(--text); }
details.fold[open] summary { border-bottom: 1px solid var(--border); }
details.fold .fold-body { padding: 12px 14px; }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; overflow: hidden; padding: 6px 15px; border-radius: 6px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip .ripple { background: rgba(34, 211, 238, .18); }
.hidden { display: none !important; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(6, 17, 31, .3); border-top-color: #06111F; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn-primary) .spin { border-color: rgba(34, 211, 238, .25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--warn-text); font-family: var(--mono); }

/* ── 产品拉单卡（会员端） ── */
.pull-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pull-card .stat-value { font-size: 20px; }
.pull-card .stat-sub { margin-bottom: 6px; }
.pull-card .pull-rule { color: var(--text); font-weight: 500; margin-bottom: 12px; }
.pull-action .btn { width: 100%; min-height: 42px; font-size: 15px; }
.last-order { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.last-order .mono { color: var(--text); }
.last-order a, .last-order button.link { color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.last-order a:hover, .last-order button.link:hover { color: var(--brand-hover); }

/* ── 我的收款链接卡（会员端） ── */
.paylink-card { border-color: rgba(34, 211, 238, .3); background: linear-gradient(135deg, var(--panel) 0%, rgba(34, 211, 238, .07) 100%); }
.paylink-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.paylink-title { padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.paylink-title::before { display: none; }
.paylink-desc { font-size: 12.5px; }
.paylink-row { display: flex; gap: 10px; align-items: center; }
.paylink-row .paylink-input { flex: 1; min-width: 0; font-size: 13px; color: var(--text); background: var(--field); cursor: text; }
.paylink-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── 订单归属核对卡（会员端 v2.3） ── */
.claim-card { border-left: 3px solid var(--warn); }
.claim-ta { width: 100%; resize: vertical; font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.claim-summary { margin: 6px 0 10px; }
.claim-result { margin-top: 10px; }
.claim-line { padding: 2px 0; }

/* ── body 层下拉菜单 ── */
.dd-menu { position: fixed; min-width: 160px; background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 150; overflow: hidden; animation: ddIn .14s ease both; padding: 5px; transform-origin: top right; }
.dd-menu.up { transform-origin: bottom right; animation-name: ddInUp; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-5px) scale(.97); } }
@keyframes ddInUp { from { opacity: 0; transform: translateY(5px) scale(.97); } }
.dd-menu button { display: block; width: 100%; padding: 8px 14px; text-align: left; background: none; border: none; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 13px; transition: background .1s, color .1s; }
.dd-menu button:hover { background: var(--brand-soft); color: var(--brand); }
.dd-menu button.danger { color: var(--danger-text); }
.dd-menu button.danger:hover { background: rgba(248, 113, 113, .12); color: var(--danger-text); }
.dd-btn { gap: 2px; }

/* ── 时间范围（分段式选择器） ── */
.range-bar { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); width: fit-content; }
.range-bar .chip { padding: 5px 13px; font-size: 12.5px; border: 1px solid transparent; border-radius: 6px; color: var(--dim); }
.range-bar .chip:not(.active):hover { color: var(--text); background: var(--hover); }
.range-bar .chip.active { background: var(--panel-2); color: var(--brand); border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.range-custom { display: flex; gap: 8px; align-items: center; padding-left: 6px; }
.range-custom .input.range-date { width: 150px; padding: 4px 10px; color-scheme: dark; }
.board-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.board-toolbar { margin-bottom: 0; }
.board-range { font-variant-numeric: tabular-nums; font-size: 12.5px; font-family: var(--mono); }

/* ── 看板 ── */
.board-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.board-table .rate { min-width: 110px; }
.board-title { padding: 0 0 12px; }
.board-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
.board-table th.num { text-align: right; }
.board-table td { white-space: nowrap; }
.board-code { font-weight: 600; color: var(--brand); }
.board-name { font-weight: 600; color: var(--text); }
.money { font-variant-numeric: tabular-nums; display: inline-block; text-align: right; width: 100%; }
.money.strong { font-weight: 600; }
.rate { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.rate-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(148, 163, 184, .18); overflow: hidden; }
.rate-fill { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .8s cubic-bezier(.3, 1, .4, 1); }
.rate-fill.ok { background: linear-gradient(90deg, var(--brand), var(--ok)); }
.rate-fill.warn { background: linear-gradient(90deg, #FDE68A, var(--warn)); }
.rate-fill.danger { background: linear-gradient(90deg, #FCA5A5, var(--danger)); }
.rate-text { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; white-space: nowrap; font-weight: 500; }
.detail-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.detail-card { padding: 12px 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); }
.detail-val { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--text); font-family: var(--mono); }
.agent-tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 5px; background: rgba(167, 139, 250, .12); border: 1px solid rgba(167, 139, 250, .35); color: #C4B5FD; font-size: 12px; }
.agent-tag .dim { color: #A78BFA; }
.drawer .board-table th, .drawer .board-table td { padding: 9px 9px; }
.drawer .rate { min-width: 96px; }

/* ── 接口文档 ── */
.apidoc-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.apidoc-url code { font-size: 13px; word-break: break-all; color: var(--text); font-family: var(--mono); }
.apidoc-pre { margin: 8px 0 16px; padding: 12px 14px; background: #070B16; border: 1px solid var(--border); color: #CBD5E1; border-radius: 8px; font-size: 12.5px; line-height: 1.6; overflow: auto; white-space: pre; font-family: var(--mono); }
.card-pad h4 { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }

/* ── 响应式 ── */
@media (max-width: 1024px) { .ox-login { grid-template-columns: 1fr; } .ox-login-brand { min-height: 38vh; padding: 48px 24px; border-right: none; border-bottom: 1px solid var(--border); } .ox-login-h1 { font-size: 28px; } .ox-login-points { display: none; } .ox-login-foot { display: none; } }
@media (max-width: 860px) {
  .ox-nav { display: none; }
  .ox-burger { display: inline-flex; }
  .ox-header-in, .ox-tabs-in, .ox-page-head-in, .content { padding-left: 14px; padding-right: 14px; }
  .ox-user-text { display: none; }
  .ox-user { padding: 3px; }
  .ox-page-head-in { padding-top: 16px; padding-bottom: 14px; }
  .ox-page-title { font-size: 18px; }
  .chart-grid { grid-template-columns: 1fr; }
  .content { padding-bottom: 50px; }
  .paylink-row { flex-direction: column; align-items: stretch; }
  .paylink-actions .btn { flex: 1; }
  .toasts { left: 14px; right: 14px; transform: none; align-items: stretch; }
  .toast { max-width: none; }
}
