/* ═══════════════ VMeet 管理后台 · 设计系统「Aurora Light」（SPEC §8.1） ═══════════════
   背景 #F5F7FB · 卡片白 + 细阴影 · 主色靛蓝 #4F46E5 · 成功 #16A34A · 警告 #F59E0B · 危险 #DC2626
   文字 #111827 / 次级 #6B7280 · 侧栏深色 #0F172A 渐变 + 激活项发光 · 无外网字体/图标 */
:root {
  --bg: #F5F7FB; --panel: #FFFFFF; --panel-2: #F9FAFB; --hover: #F3F4F6;
  --border: #E5E7EB; --border-strong: #D1D5DB;
  --text: #111827; --muted: #4B5563; --dim: #6B7280; --faint: #9CA3AF;
  --brand: #4F46E5; --brand-hover: #4338CA; --brand-soft: #EEF2FF; --brand-ring: rgba(79, 70, 229, .22);
  --ok: #16A34A; --ok-soft: #DCFCE7; --ok-text: #166534;
  --warn: #F59E0B; --warn-soft: #FEF3C7; --warn-text: #92400E;
  --danger: #DC2626; --danger-soft: #FEE2E2; --danger-text: #991B1B;
  --info: #0284C7; --info-soft: #E0F2FE; --info-text: #075985;
  --violet: #7C3AED; --violet-soft: #F3E8FF; --pink: #EC4899; --cyan: #06B6D4; --gold: #D97706;
  --side-w: 236px; --top-h: 60px;
  --radius: 14px; --radius-sm: 9px; --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .16);
  --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SF Mono", "Roboto Mono", monospace;
}
* { 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: 13.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
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; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
b, strong { font-weight: 600; }

/* ── 极光背景（浅色、低饱和、缓慢流动） ── */
.aurora-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(60% 50% at 8% 0%, rgba(99, 102, 241, .13) 0, transparent 60%),
  radial-gradient(50% 45% at 90% 5%, rgba(236, 72, 153, .09) 0, transparent 60%),
  radial-gradient(45% 40% at 60% 100%, rgba(6, 182, 212, .08) 0, transparent 60%);
  animation: auroraShift 18s ease-in-out infinite alternate; }
@keyframes auroraShift { to { transform: translate3d(0, -2%, 0) scale(1.04); filter: hue-rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── 全局 Loading 条 ── */
.loading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 500; background: linear-gradient(90deg, var(--brand), var(--pink), var(--cyan)); background-size: 200% 100%; opacity: 0; transition: width .3s ease, opacity .3s; box-shadow: 0 0 10px rgba(79, 70, 229, .5); }
.loading-bar.on { opacity: 1; animation: loadingHue 1.2s linear infinite; }
@keyframes loadingHue { to { background-position: -200% 0; } }

/* ── 壳：侧栏 + 顶栏 + 内容 ── */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; color: #C7D2E4;
  background: linear-gradient(180deg, #0F172A 0%, #111C3A 55%, #0F1E3F 100%); border-right: 1px solid rgba(255, 255, 255, .06); z-index: 40; }
.side::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 30% at 50% 0%, rgba(99, 102, 241, .28) 0, transparent 70%); }
.logo { position: relative; display: flex; align-items: center; gap: 11px; padding: 18px 18px 14px; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #6366F1, #EC4899); display: grid; place-items: center; color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(99, 102, 241, .45); }
.logo-mark svg { width: 20px; height: 20px; }
.logo-tx { color: #F8FAFC; font-weight: 600; font-size: 15px; letter-spacing: .2px; line-height: 1.2; }
.logo-sub { font-size: 10.5px; color: #7C8BAA; letter-spacing: 1.4px; margin-top: 2px; }
.nav { position: relative; flex: 1; overflow-y: auto; padding: 4px 12px 14px; scrollbar-width: thin; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); }
.nav-sec { font-size: 10.5px; color: #64748B; letter-spacing: 1.2px; padding: 14px 10px 6px; text-transform: uppercase; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 2px; border-radius: 9px; color: #A9B6CE; cursor: pointer; font-weight: 500; transition: background .15s, color .15s; overflow: hidden; user-select: none; }
.nav-item svg { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #F1F5F9; }
.nav-item.on { color: #fff; background: linear-gradient(90deg, rgba(99, 102, 241, .32), rgba(99, 102, 241, .10)); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .25), 0 0 18px rgba(99, 102, 241, .22); }
.nav-item.on::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: #A5B4FC; box-shadow: 0 0 10px #818CF8; }
.nav-item .chev { margin-left: auto; width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(90deg); }
.nav-sub { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.nav-sub.open { max-height: 200px; }
.nav-sub .nav-item { padding: 7px 11px 7px 38px; font-size: 13px; font-weight: 400; }
.nav-sub .nav-item::after { content: ''; position: absolute; left: 21px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; transform: translateY(-50%); }
.nav-sub .nav-item.on::after { opacity: 1; background: #A5B4FC; box-shadow: 0 0 8px #818CF8; }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.side-foot { position: relative; padding: 12px 18px; font-size: 11.5px; color: #64748B; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; justify-content: space-between; align-items: center; }
.mock-badge { padding: 1px 7px; border-radius: 6px; background: rgba(245, 158, 11, .2); color: #FCD34D; font-weight: 600; font-size: 10.5px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.crumb b { color: var(--text); font-size: 16px; font-weight: 600; }
.crumb .sep { color: var(--faint); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-hover); font-size: 12.5px; font-weight: 500; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font-weight: 500; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #6366F1, #EC4899); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.role-tag { font-size: 11px; color: var(--dim); font-weight: 400; }
.view { padding: 24px 28px 64px; animation: pageIn .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ── 卡片 / 工具条 ── */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card, .card + .toolbar, .toolbar + .card { margin-top: 16px; }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.card-head svg { width: 17px; height: 17px; color: var(--brand); }
.card-head .sub { font-weight: 400; color: var(--dim); font-size: 12.5px; }
.card-body { padding: 18px 20px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.toolbar .inp { width: auto; min-width: 130px; }
.toolbar .inp.w200 { width: 200px; } .toolbar .inp.w160 { width: 160px; } .toolbar .inp.w120 { width: 120px; min-width: 0; }
.toolbar .date { width: 150px; min-width: 0; }
.toolbar .sep { color: var(--faint); }
.grow { flex: 1; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 22px 0 10px; letter-spacing: .3px; }
.section-title:first-child { margin-top: 0; }
.section-title svg { width: 15px; height: 15px; color: var(--brand); }

/* ── 按钮 ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel); color: #374151; font-weight: 500; line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.btn svg { width: 15px; height: 15px; }
.btn:hover { background: var(--panel-2); border-color: #9CA3AF; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #5B54F0, #4F46E5); border-color: #4F46E5; color: #fff; box-shadow: 0 2px 6px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-ok { border-color: #86EFAC; color: var(--ok-text); background: #F0FDF4; }
.btn-ok:hover { background: #DCFCE7; border-color: var(--ok); }
.btn-danger { border-color: #FCA5A5; color: var(--danger-text); background: #FEF2F2; }
.btn-danger:hover { background: #FEE2E2; border-color: var(--danger); }
.btn-danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-lg { height: 42px; font-size: 14.5px; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--dim); transition: background .15s, color .15s; position: relative; overflow: hidden; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn.sm { width: 28px; height: 28px; }
.ripple { position: absolute; border-radius: 50%; background: rgba(79, 70, 229, .16); transform: scale(0); animation: ripple .55s ease-out forwards; pointer-events: none; }
.btn-primary .ripple, .nav-item .ripple { background: rgba(255, 255, 255, .3); }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.actions { display: flex; gap: 4px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn-primary) .spin { border-color: rgba(79, 70, 229, .25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 表单 ── */
.field { margin-bottom: 14px; min-width: 0; }
.field > label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: #374151; font-size: 12.5px; font-weight: 500; }
.field > label .req { color: var(--danger); }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 5px; line-height: 1.45; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-row.c3 { grid-template-columns: 1fr 1fr 1fr; }
.field-row.c4 { grid-template-columns: repeat(4, 1fr); }
.inp { width: 100%; height: 36px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.inp::placeholder { color: var(--faint); }
.inp:hover { border-color: #9CA3AF; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.inp[readonly], .inp:disabled { background: var(--panel-2); color: var(--muted); }
.inp.err { border-color: var(--danger); }
textarea.inp { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.5; }
select.inp { 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='%236B7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.inp.mono { font-family: var(--mono); font-size: 12.5px; }
.inp-group { display: flex; align-items: stretch; }
.inp-group .inp { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.inp-group .addon { display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--panel-2); color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.inp-group .addon.pre { border-left: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.inp-group .addon.pre + .inp { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .tk { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D1D5DB; transition: background .2s; flex-shrink: 0; }
.switch .tk::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, 1.3, .5, 1); }
.switch input:checked + .tk { background: var(--brand); }
.switch input:checked + .tk::after { transform: translateX(16px); }
.switch input:focus-visible + .tk { box-shadow: 0 0 0 3px var(--brand-ring); }
.switch.sm .tk { width: 32px; height: 18px; } .switch.sm .tk::after { width: 12px; height: 12px; } .switch.sm input:checked + .tk::after { transform: translateX(14px); }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: #374151; user-select: none; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); }
.seg { display: inline-flex; padding: 3px; background: var(--hover); border-radius: 9px; gap: 2px; }
.seg-item { padding: 6px 14px; border-radius: 7px; border: 0; background: transparent; color: var(--dim); font-weight: 500; font-size: 12.5px; position: relative; overflow: hidden; transition: background .15s, color .15s; }
.seg-item.on { background: var(--panel); color: var(--brand-hover); box-shadow: var(--shadow); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { position: relative; overflow: hidden; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel); color: #374151; cursor: pointer; font-size: 12.5px; font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.form-sep { border: 0; border-top: 1px dashed var(--border); margin: 6px 0 16px; }
.form-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-hover); font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.form-note svg { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.form-note.warn { background: var(--warn-soft); color: var(--warn-text); }
.form-note.danger { background: var(--danger-soft); color: var(--danger-text); }
.star-input { display: inline-flex; gap: 3px; }
.star-input .st { width: 26px; height: 26px; color: #D1D5DB; cursor: pointer; transition: transform .12s, color .12s; }
.star-input .st svg { width: 100%; height: 100%; }
.star-input .st.on { color: #F59E0B; }
.star-input .st:hover { transform: scale(1.15); }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars .off { color: #D1D5DB; }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type=color] { width: 40px; height: 36px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--panel); cursor: pointer; }
.color-field .inp { flex: 1; }
.color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); vertical-align: -2px; margin-right: 6px; }

/* ── 动态列表行（公告 / 联系方式） ── */
.dyn-list { display: flex; flex-direction: column; gap: 8px; }
.dyn-row { display: grid; gap: 8px; align-items: center; }
.dyn-row.c2 { grid-template-columns: 1fr 1fr 32px; }
.dyn-row.c3 { grid-template-columns: 1fr 1fr 1fr 32px; }
.dyn-add { align-self: flex-start; }

/* ── 上传组件 ── */
.img-pick { display: flex; gap: 12px; align-items: center; }
.img-pick .thumb { width: 96px; height: 72px; border-radius: 9px; border: 1px dashed var(--border-strong); background: var(--panel-2); display: grid; place-items: center; overflow: hidden; color: var(--faint); cursor: pointer; transition: border-color .15s, background .15s; position: relative; flex-shrink: 0; }
.img-pick .thumb.sq { width: 72px; height: 72px; }
.img-pick .thumb.wide { width: 128px; height: 72px; }
.img-pick .thumb:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.img-pick .thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .thumb svg { width: 22px; height: 22px; }
.img-pick .thumb .busy { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.img-pick .ops { display: flex; flex-direction: column; gap: 6px; }
.img-pick .ops .hint { font-size: 11.5px; color: var(--dim); }
.img-pick input[type=file] { display: none; }
.multi-img { display: flex; flex-wrap: wrap; gap: 10px; }
.multi-img .mi { position: relative; width: 92px; height: 92px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); background: var(--panel-2); cursor: grab; }
.multi-img .mi img { width: 100%; height: 100%; object-fit: cover; }
.multi-img .mi.dragging { opacity: .4; }
.multi-img .mi.drag-over { outline: 2px solid var(--brand); outline-offset: -2px; }
.multi-img .mi .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(17, 24, 39, .7); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.multi-img .mi .rm svg { width: 12px; height: 12px; }
.multi-img .mi:hover .rm { opacity: 1; }
.multi-img .mi .idx { position: absolute; left: 4px; bottom: 4px; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(17, 24, 39, .6); color: #fff; }
.multi-img .add { width: 92px; height: 92px; border-radius: 9px; border: 1px dashed var(--border-strong); background: var(--panel-2); display: grid; place-items: center; color: var(--faint); cursor: pointer; transition: all .15s; }
.multi-img .add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.multi-img .add svg { width: 22px; height: 22px; }
.multi-img input[type=file] { display: none; }
.video-pick .seg { margin-bottom: 10px; }
.video-pick .drop { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 16px; background: var(--panel-2); text-align: center; color: var(--dim); cursor: pointer; transition: all .15s; }
.video-pick .drop:hover, .video-pick .drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.video-pick .drop svg { width: 26px; height: 26px; margin: 0 auto 6px; }
.video-pick input[type=file] { display: none; }
.video-pick .cur { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 9px; background: var(--ok-soft); color: var(--ok-text); font-size: 12.5px; }
.video-pick .cur code { font-family: var(--mono); word-break: break-all; }
.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 10px; }
.progress .bar { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width .2s; }
.progress-text { font-size: 12px; color: var(--dim); margin-top: 5px; display: flex; justify-content: space-between; }

/* ── 富文本编辑器 ── */
.rte { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.rte:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.rte-bar { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--panel-2); flex-wrap: wrap; }
.rte-bar button { height: 28px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.rte-bar button svg { width: 15px; height: 15px; }
.rte-bar button:hover { background: var(--brand-soft); color: var(--brand); }
.rte-bar .vsep { width: 1px; background: var(--border); margin: 4px 4px; }
.rte-body { min-height: 260px; max-height: 520px; overflow-y: auto; padding: 14px 16px; outline: none; line-height: 1.7; font-size: 14px; }
.rte-body:empty::before { content: attr(data-placeholder); color: var(--faint); }
.rte-body h1, .rte-body h2, .rte-body h3 { margin: 14px 0 8px; line-height: 1.3; }
.rte-body h1 { font-size: 22px; } .rte-body h2 { font-size: 18px; } .rte-body h3 { font-size: 15.5px; }
.rte-body p { margin: 0 0 8px; }
.rte-body ul, .rte-body ol { padding-left: 22px; margin: 0 0 8px; }
.rte-body img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.rte-body a { text-decoration: underline; }
.rte-html { font-family: var(--mono); font-size: 12px; min-height: 260px; }
.html-preview { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; background: var(--panel-2); line-height: 1.7; max-height: 420px; overflow-y: auto; }
.html-preview img { max-width: 100%; border-radius: 8px; }
.html-preview h1, .html-preview h2, .html-preview h3 { margin: 12px 0 8px; }
.html-preview ul, .html-preview ol { padding-left: 22px; }

/* ── 权限勾选树 ── */
.perm-tree { display: flex; flex-direction: column; gap: 10px; }
.perm-group { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.perm-group-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--panel-2); font-weight: 600; font-size: 12.5px; }
.perm-group-head .cnt { color: var(--dim); font-weight: 400; margin-left: auto; }
.perm-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; padding: 10px 12px; }
.perm-item { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 7px; cursor: pointer; user-select: none; transition: background .12s; font-size: 12.5px; }
.perm-item:hover { background: var(--hover); }
.perm-item.on { background: var(--brand-soft); color: var(--brand-hover); }
.perm-item input { accent-color: var(--brand); width: 14px; height: 14px; }
.perm-item code { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ── 表格 ── */
.tbl-wrap { overflow: auto; max-height: calc(100vh - 250px); border-radius: var(--radius) var(--radius) 0 0; }
.tbl-wrap.plain { max-height: none; border-radius: 0; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); }
.tbl th { position: sticky; top: 0; z-index: 2; text-align: left; padding: 11px 14px; color: var(--dim); font-size: 12px; font-weight: 600; background: var(--panel-2); border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .2px; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #F1F3F7; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.tbl tbody tr { transition: background .12s; animation: rowIn .3s ease both; }
.tbl tbody tr:nth-child(even) { background: #FBFCFD; }
.tbl tbody tr:hover { background: var(--brand-soft); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl th.c, .tbl td.c { text-align: center; }
.tbl .ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.tbl .ellip.w160 { max-width: 160px; }
.tbl .wrap { white-space: normal; min-width: 200px; }
.tbl td.thumb-cell { padding: 6px 14px; }
.tbl .thumb-img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--border); cursor: zoom-in; }
.tbl .thumb-img.sq { width: 40px; height: 40px; }
.tbl .thumb-img.tall { width: 40px; height: 52px; }
.tbl .drag-handle { cursor: grab; color: var(--faint); }
.tbl tr.dragging { opacity: .45; }
.tbl tr.drag-over td { border-top: 2px solid var(--brand); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px); } }
.tbl tr.sel { background: #EEF2FF !important; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .faint { color: var(--faint); }
.ok-text { color: var(--ok-text); } .danger-text { color: var(--danger-text); } .warn-text { color: var(--warn-text); } .brand-text { color: var(--brand); }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money.plus { color: var(--ok-text); } .money.minus { color: var(--danger-text); }
.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-user .avatar { width: 30px; height: 30px; font-size: 12px; }
.cell-user .nm { font-weight: 600; line-height: 1.2; }
.cell-user .sub { font-size: 11.5px; color: var(--dim); }
.empty { text-align: center; padding: 48px 0; color: var(--dim); }
.empty .e-ic { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; color: var(--faint); }
.empty .e-ic svg { width: 22px; height: 22px; }
.sk { height: 14px; border-radius: 6px; background: linear-gradient(100deg, #EEF0F4 40%, #F7F8FA 50%, #EEF0F4 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.sk.tall { height: 220px; border-radius: 10px; }
.sk.block { height: 40px; margin-bottom: 8px; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pager { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--dim); font-size: 12.5px; flex-wrap: wrap; }
.pager .info { margin-right: auto; }
.pager .info b { color: var(--text); }
.page-btn { min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 500; user-select: none; position: relative; overflow: hidden; transition: all .12s; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn.dis { opacity: .4; pointer-events: none; }
.pager select.inp { height: 30px; width: auto; min-width: 0; padding: 0 28px 0 10px; font-size: 12.5px; margin-left: 8px; }
.pager .jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.pager .jump .inp { width: 56px; height: 30px; padding: 0 8px; text-align: center; }

/* ── 徽章 / 标签 ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill-ok { background: var(--ok-soft); color: var(--ok-text); }
.pill-warn { background: var(--warn-soft); color: var(--warn-text); }
.pill-warn .dot { animation: breathe 1.6s ease-in-out infinite; }
.pill-err { background: var(--danger-soft); color: var(--danger-text); }
.pill-off { background: #F3F4F6; color: var(--muted); }
.pill-info { background: var(--info-soft); color: var(--info-text); }
.pill-brand { background: var(--brand-soft); color: var(--brand-hover); }
.pill-violet { background: var(--violet-soft); color: #6D28D9; }
@keyframes breathe { 50% { opacity: .3; transform: scale(.75); } }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.tag-gold { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.tag-brand { background: var(--brand-soft); color: var(--brand-hover); border: 1px solid #C7D2FE; }
.tag-dim { background: #F3F4F6; color: var(--muted); border: 1px solid var(--border); }
.tag-ok { background: var(--ok-soft); color: var(--ok-text); }
.tag-err { background: var(--danger-soft); color: var(--danger-text); }
.tag-info { background: var(--info-soft); color: var(--info-text); }
.tag-violet { background: var(--violet-soft); color: #6D28D9; }
.vip-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: .3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }

/* ── 统计卡 ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { position: relative; overflow: hidden; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; cursor: default; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--sc, var(--brand)); opacity: .07; }
.stat.link { cursor: pointer; }
.stat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stat-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--sc, var(--brand)); background: color-mix(in srgb, var(--sc, var(--brand)) 12%, #fff); }
.stat-ic svg { width: 18px; height: 18px; }
.stat-lbl { color: var(--dim); font-size: 12.5px; font-weight: 500; }
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--text); }
.stat-num .unit { font-size: 13px; color: var(--dim); font-weight: 500; margin-left: 2px; }
.stat-sub { margin-top: 6px; font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.stat-sub b { color: var(--text); font-weight: 600; }
.stat.pending { background: linear-gradient(135deg, #FFF7ED, #FFFBEB); border-color: #FDE68A; }
.stat.pending .stat-num { color: var(--warn-text); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chart-box { position: relative; padding: 14px 16px 10px; }
.chart-box canvas { display: block; width: 100%; height: 240px; }
.chart-box .chart-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: rgba(17, 24, 39, .92); color: #fff; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; z-index: 3; line-height: 1.5; }
.chart-box .chart-tip.on { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12px; color: var(--dim); font-weight: 400; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row .who { font-weight: 600; }
.mini-row .when { margin-left: auto; color: var(--faint); font-size: 11.5px; white-space: nowrap; }

/* ── 弹窗 ── */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .18s ease; }
.overlay.closing { animation: fadeOut .18s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); animation: popIn .26s cubic-bezier(.34, 1.3, .64, 1) both; }
.modal.w420 { max-width: 420px; } .modal.w640 { max-width: 640px; } .modal.w760 { max-width: 760px; } .modal.w900 { max-width: 900px; } .modal.w1000 { max-width: 1000px; }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(10px); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.modal-title svg { width: 18px; height: 18px; color: var(--brand); }
.modal-sub { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--panel-2); border-radius: 0 0 16px 16px; }
.modal-foot .left { margin-right: auto; }
.confirm-box .modal-body { padding: 22px 22px 6px; }
.confirm-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.confirm-ic svg { width: 22px; height: 22px; }
.confirm-ic.danger { background: var(--danger-soft); color: var(--danger); }
.confirm-ic.ok { background: var(--ok-soft); color: var(--ok); }
.confirm-ic.info { background: var(--brand-soft); color: var(--brand); }
.confirm-ic.warn { background: var(--warn-soft); color: var(--warn); }
.confirm-msg { color: var(--muted); line-height: 1.6; white-space: pre-line; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── 抽屉 ── */
.drawer-ov { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 100; animation: fadeIn .18s; }
.drawer-ov.closing { animation: fadeOut .2s forwards; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 92vw); background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .3s cubic-bezier(.3, 1, .4, 1) both; }
.drawer.w900 { width: min(900px, 94vw); }
.closing .drawer { animation: slideOut .2s ease forwards; }
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } }
@keyframes slideOut { to { transform: translateX(60px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--panel); border-bottom: 1px solid var(--border); }
.drawer-head .modal-title { font-size: 16px; }
.drawer-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.drawer-body .card { margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; }
.kv .k { font-size: 11.5px; color: var(--dim); margin-bottom: 2px; }
.kv .v { font-weight: 500; word-break: break-all; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .nm { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.profile-head .acc { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.profile-stats .ps { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }
.profile-stats .ps .k { font-size: 11.5px; color: var(--dim); }
.profile-stats .ps .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ── Toast ── */
.toasts { position: fixed; top: 16px; right: 18px; z-index: 600; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 250px; max-width: 400px; padding: 11px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.3, 1.2, .5, 1) both; display: flex; gap: 10px; align-items: flex-start; position: relative; overflow: hidden; }
.toast.leaving { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }
.toast .t-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.toast .t-ic svg { width: 14px; height: 14px; }
.toast.ok .t-ic { background: var(--ok-soft); color: var(--ok); }
.toast.err .t-ic { background: var(--danger-soft); color: var(--danger); }
.toast.warn .t-ic { background: var(--warn-soft); color: var(--warn); }
.toast.info .t-ic { background: var(--brand-soft); color: var(--brand); }
.toast .t-bd { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toast .t-bd span { color: var(--dim); font-size: 12px; word-break: break-all; }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--brand); animation: toastBar linear forwards; }
.toast.ok .bar { background: var(--ok); } .toast.err .bar { background: var(--danger); } .toast.warn .bar { background: var(--warn); }
@keyframes toastBar { from { width: 100%; } to { width: 0; } }

/* ── body 层下拉菜单（fixed，不被表格裁切） ── */
.dd-menu { position: fixed; min-width: 150px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 24, 40, .14), 0 1px 3px rgba(16, 24, 40, .06); z-index: 400; overflow: hidden; padding: 4px; animation: ddIn .14s ease both; transform-origin: top right; }
.dd-menu.up { transform-origin: bottom right; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-5px) scale(.97); } }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: #374151; text-align: left; font-size: 13px; transition: background .1s, color .1s; position: relative; overflow: hidden; }
.menu-item svg { width: 14px; height: 14px; color: var(--dim); }
.menu-item:hover { background: var(--brand-soft); color: var(--brand-hover); }
.menu-item:hover svg { color: var(--brand); }
.menu-item.danger { color: var(--danger-text); }
.menu-item.danger:hover { background: var(--danger-soft); color: var(--danger); }
.menu-item.danger:hover svg { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: 4px 6px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 16px; background: none; border: 0; color: var(--dim); font-weight: 500; position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--brand); font-weight: 600; }
.tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.tab .cnt { font-size: 11px; padding: 0 6px; border-radius: 8px; background: var(--hover); color: var(--dim); }
.tab.on .cnt { background: var(--brand-soft); color: var(--brand); }

/* ── 图片预览 ── */
.lightbox { position: fixed; inset: 0; z-index: 700; background: rgba(15, 23, 42, .88); display: flex; align-items: center; justify-content: center; animation: fadeIn .18s; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: popIn .25s cubic-bezier(.34, 1.3, .64, 1); }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; border: 0; display: grid; place-items: center; }
.lightbox .lb-close svg { width: 18px; height: 18px; }
.lightbox .lb-nav { position: absolute; top: 50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transform: translateY(-50%); }
.lightbox .lb-nav svg { width: 20px; height: 20px; }
.lightbox .lb-prev { left: 22px; } .lightbox .lb-next { right: 22px; }
.lightbox .lb-cnt { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 12.5px; opacity: .8; }

/* ── 登录页 ── */
.login-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-wrap::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 45% at 20% 20%, rgba(99, 102, 241, .22) 0, transparent 60%), radial-gradient(45% 40% at 80% 30%, rgba(236, 72, 153, .16) 0, transparent 60%), radial-gradient(40% 40% at 55% 90%, rgba(6, 182, 212, .16) 0, transparent 60%); animation: auroraShift 14s ease-in-out infinite alternate; }
.login-card { position: relative; width: 100%; max-width: 400px; padding: 36px 36px 30px; border-radius: 22px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 24px 60px rgba(79, 70, 229, .16), inset 0 1px 0 rgba(255, 255, 255, .9); animation: popIn .4s cubic-bezier(.34, 1.3, .64, 1) both; }
.login-logo { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; background: linear-gradient(135deg, #6366F1, #EC4899); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px rgba(99, 102, 241, .38); animation: floatY 4s ease-in-out infinite; }
.login-logo svg { width: 30px; height: 30px; }
@keyframes floatY { 50% { transform: translateY(-6px); } }
.login-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.login-sub { text-align: center; color: var(--dim); font-size: 12px; letter-spacing: 2px; margin: 4px 0 26px; }
.login-card .inp { height: 42px; background: rgba(255, 255, 255, .9); }
.login-card .field { margin-bottom: 12px; }
.cap-row { display: flex; gap: 10px; }
.cap-img { width: 128px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #fff; display: grid; place-items: center; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.cap-img svg { width: 100%; height: 100%; }
.cap-img .cap-loading { font-size: 12px; color: var(--dim); }
.login-card .btn-primary { margin-top: 8px; }
.login-foot { text-align: center; margin-top: 18px; font-size: 11.5px; color: var(--faint); }

/* ── 403 / 状态页 ── */
.state-page { text-align: center; padding: 80px 20px; color: var(--dim); }
.state-page .e-ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; color: var(--warn); box-shadow: var(--shadow); }
.state-page .e-ic svg { width: 34px; height: 34px; }
.state-page h2 { color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ── VIP 等级编辑表 ── */
.vip-tbl td { padding: 8px 10px; }
.vip-tbl .inp { height: 32px; padding: 0 9px; font-size: 12.5px; }
.vip-tbl textarea.inp { min-height: 60px; padding: 6px 9px; width: 220px; }
.vip-tbl .w60 { width: 60px; } .vip-tbl .w90 { width: 90px; } .vip-tbl .w110 { width: 110px; } .vip-tbl .w130 { width: 130px; }
.vip-tbl input[type=color] { width: 34px; height: 32px; padding: 2px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; }
.vip-preview { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 11.5px; }

/* ── 设置页网格 ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-grid .card { margin: 0; }
.icon-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-pick .ic { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); display: grid; place-items: center; background: var(--panel); color: var(--muted); cursor: pointer; transition: all .12s; }
.icon-pick .ic svg { width: 20px; height: 20px; }
.icon-pick .ic:hover { border-color: var(--brand); color: var(--brand); }
.icon-pick .ic.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); }
.media-item .mp { height: 96px; background: var(--panel-2); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.media-item .mp img { width: 100%; height: 100%; object-fit: cover; }
.media-item .mp svg { width: 26px; height: 26px; }
.media-item .mb { padding: 8px 10px; font-size: 11.5px; }
.media-item .mb .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; }
.media-item .mb .mt { display: flex; justify-content: space-between; align-items: center; color: var(--dim); margin-top: 3px; }
.code-box { padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; font-family: var(--mono); font-size: 12px; word-break: break-all; }
.wallet-box { padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; line-height: 1.5; display: inline-block; white-space: normal; min-width: 180px; }
.wallet-box b { display: block; color: var(--text); }
.wallet-box .mono { color: var(--muted); }
.proof-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); cursor: zoom-in; }

/* ── 补充（第二轮）：网格内卡片间距归零、操作列右侧吸附、VIP 表列宽 ── */
.dash-grid > .card, .dash-3 > .card, .stats > .card, .settings-grid .card + .card { margin-top: 0; }
.tbl th.act, .tbl td.act { position: sticky; right: 0; background: var(--panel); box-shadow: -8px 0 10px -8px rgba(16, 24, 40, .12); }
.tbl th.act { background: var(--panel-2); z-index: 3; }
.tbl tbody tr:nth-child(even) td.act { background: #FBFCFD; }
.tbl tbody tr:hover td.act { background: var(--brand-soft); }
.vip-tbl .inp-group .inp { min-width: 0; }
.field > label .btn { margin-left: auto; }

@media (max-width: 1280px) {
  :root { --side-w: 210px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .settings-grid { grid-template-columns: 1fr; }
  .dash-3 { grid-template-columns: 1fr; }
  .view { padding: 18px 18px 60px; }
}
