@font-face { font-family: 'KJSerif'; src: url('/assets/fonts/KJSerif.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DINNext'; src: url('/assets/fonts/DINNextBold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root {
  --bg: #05070d; --bg-2: #070b16; --panel: rgba(11, 16, 28, .78); --panel-2: rgba(15, 22, 38, .82);
  --panel-solid: #0b101c; --line: #1b2438; --line-2: #283453; --line-soft: rgba(148, 163, 184, .14);
  --text: #eef2ff; --muted: #9aa7c4; --faint: #64748b; --accent: #818cf8; --accent-2: #a78bfa; --cyan: #22d3ee;
  --blue: #3b82f6; --violet: #8b5cf6; --green: #34d399; --amber: #fbbf24; --red: #fb7185;
  --grad: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 45%, #a5b4fc 100%);
  --grad-2: linear-gradient(135deg, #22d3ee, #818cf8 55%, #a78bfa);
  --shadow: 0 18px 50px rgba(2, 6, 23, .55);
  --radius: 16px; --radius-sm: 10px; --radius-lg: 22px;
  --font-sans: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'KJSerif', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font-sans); line-height: 1.6;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(79, 70, 229, .18), transparent 62%),
    radial-gradient(900px 620px at 88% 8%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(139, 92, 246, .12), transparent 65%),
    linear-gradient(180deg, #05070d 0%, #060913 45%, #04060b 100%);
  background-attachment: fixed; overflow-x: hidden;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 18% 32%, rgba(199,210,254,.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 28% 8%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 36% 22%, rgba(165,180,252,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 47% 14%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 58% 28%, rgba(199,210,254,.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 69% 9%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px at 78% 24%, rgba(165,180,252,.65), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 16%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 94% 34%, rgba(199,210,254,.6), transparent 60%),
    radial-gradient(1px 1px at 12% 58%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 84% 66%, rgba(199,210,254,.35), transparent 60%);
}
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 360px at 50% 12%, rgba(99,102,241,.10), transparent 70%),
    radial-gradient(500px 300px at 82% 28%, rgba(34,211,238,.055), transparent 70%);
  filter: blur(2px);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(129,140,248,.35); }
:focus-visible { outline: 2px solid rgba(129,140,248,.7); outline-offset: 2px; }
.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(1480px, calc(100% - 40px)); margin-inline: auto; }
.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.icon-lg { width: 24px; height: 24px; }
.icon-sm { width: 15px; height: 15px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card-hover { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(2,6,23,.65); }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 18px 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(15,23,42,.72); font-size: 12.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.badge-member { color: #bfdbfe; background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.28); }
.badge-moderator { color: #a5f3fc; background: rgba(34,211,238,.13); border-color: rgba(34,211,238,.28); }
.badge-admin { color: #ddd6fe; background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.32); }
.badge-owner { color: #fef3c7; background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.32); }
.badge-active { color: #bbf7d0; background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.28); }
.badge-banned { color: #fecdd3; background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.3); }
.badge-pending { color: #fde68a; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.25); }
.badge-approved { color: #bbf7d0; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.25); }
.badge-rejected { color: #fecdd3; background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.25); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14.5px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #f8fafc, #c7d2fe 48%, #a5b4fc); color: #111827; box-shadow: 0 12px 30px rgba(129,140,248,.28); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(129,140,248,.4); }
.btn-accent { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; box-shadow: 0 12px 30px rgba(99,102,241,.3); }
.btn-ghost { background: rgba(15,23,42,.72); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-2); background: rgba(20,29,48,.85); }
.btn-outline { background: transparent; border-color: rgba(199,210,254,.35); color: #dbeafe; }
.btn-danger { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.32); color: #fecdd3; }
.btn-sm { min-height: 34px; padding: 7px 13px; font-size: 13px; }
.btn-icon { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 12px; }
.btn-block { width: 100%; }
.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8,12,23,.78); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); background: rgba(8,12,23,.95); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.error-text { font-size: 12.5px; color: #fda4af; margin-top: 6px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.check-row:last-child { border-bottom: 0; }
.check-row input { width: 17px; height: 17px; margin-top: 3px; accent-color: #818cf8; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .04em; color: var(--faint); font-weight: 600; padding: 13px 14px; border-bottom: 1px solid var(--line); background: rgba(8,12,23,.5); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(99,102,241,.06); }
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(99,102,241,.1); color: #a5b4fc; border: 1px solid rgba(99,102,241,.2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(148,163,184,.25); border-top-color: #a5b4fc; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; background: rgba(148,163,184,.1); border-radius: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10,15,28,.94); box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: toast-in .25s ease; font-size: 13.5px; }
.toast-success { border-color: rgba(52,211,153,.35); }
.toast-error { border-color: rgba(251,113,133,.35); }
.toast-info { border-color: rgba(129,140,248,.35); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(2,6,23,.72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: fade-in .2s ease; }
.modal { width: min(560px, 100%); max-height: min(88vh, 900px); overflow: auto; border-radius: 20px; border: 1px solid var(--line-2); background: #0b101c; box-shadow: var(--shadow); animation: modal-in .24s cubic-bezier(.2,.8,.2,1); }
.modal-lg { width: min(820px, 100%); }
.modal-head { display: flex; align-items center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,16,28,.96); backdrop-filter: blur(10px); z-index: 2; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: rgba(11,16,28,.96); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251,191,36,.25); background: rgba(251,191,36,.08); color: #fde68a; font-size: 13px; }
.notice-info { border-color: rgba(129,140,248,.25); background: rgba(129,140,248,.08); color: #c7d2fe; }
.copy-row { display: flex; align-items: center; gap: 8px; }
.copy-row code { flex: 1; overflow-x: auto; white-space: nowrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(2,6,23,.7); color: #c7d2fe; font-size: 12.5px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #263350; border-radius: 999px; border: 2px solid #05070d; }
::-webkit-scrollbar-thumb:hover { background: #35466b; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .container { width: min(100% - 24px, 1240px); } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
