:root {
    --bg: #eef3fb;
    --panel: #fff;
    --text: #10233d;
    --muted: #5d7394;
    --line: rgba(16, 35, 61, .08);
    --primary: #1f6feb;
    --ok: #15803d;
    --warn: #b45309;
    --bad: #dc2626;
    --cf: #0369a1;
    --shadow: 0 14px 40px rgba(16, 50, 102, .08);
    --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: radial-gradient(900px 400px at 0 0, rgba(31,111,235,.12), transparent 55%), var(--bg);
}
a { color: var(--primary); text-decoration: none; }
.top {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 22px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand b { display: block; font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.mark {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; font-weight: 800; background: linear-gradient(135deg, #3b8bff, #1f6feb);
    box-shadow: 0 8px 16px rgba(31,111,235,.28);
}
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 13px; }
.warn-bar {
    background: #fff7ed; color: #9a3412; text-align: center; padding: 10px 16px;
    font-weight: 700; border-bottom: 1px solid #fed7aa;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 18px 60px; }
.hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.hero h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.3px; }
.hero p { margin: 0; color: var(--muted); max-width: 640px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 10px; box-shadow: var(--shadow); }
.step span {
    width: 28px; height: 28px; border-radius: 50%; background: #e8f1ff; color: var(--primary);
    display: grid; place-items: center; font-weight: 800; flex: none;
}
.step b { display: block; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.panel-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-hd h3 { margin: 0; font-size: 15px; }
.panel-bd { padding: 18px; }
.ip-box { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px; }
.k { color: var(--muted); font-size: 12px; font-weight: 700; }
.ip { font-size: 28px; font-weight: 800; letter-spacing: .4px; margin-top: 4px; }
.ip-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ip-form { display: flex; gap: 8px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; padding: 9px 14px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.btn-primary { background: linear-gradient(110deg, #2f7bff, #59a6ff); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: #fff; border: 1px solid #fecaca; color: var(--bad); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-block { width: 100%; padding: 12px; }
.btn:disabled { opacity: .55; }
.input, select.input {
    width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
    font: inherit; outline: none; background: #fff;
}
.input:focus { border-color: rgba(31,111,235,.5); box-shadow: 0 0 0 4px rgba(31,111,235,.12); }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; color: var(--muted); background: #f8fbff; }
.sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.muted { color: var(--muted); }
.ops { white-space: nowrap; }
.ops .btn { margin-left: 4px; }
code { background: #eef4ff; padding: 2px 6px; border-radius: 8px; font-weight: 700; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-ok { background: #dcfce7; color: var(--ok); }
.pill-none { background: #f1f5f9; color: #64748b; }
.pill-other { background: #fee2e2; color: var(--bad); }
.pill-cf { background: #e0f2fe; color: var(--cf); }
.pill-nobind { background: #fef3c7; color: #b45309; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.form-item { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-item label, .login-card label { font-size: 12px; font-weight: 700; color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13px; }
.callout { background: #fff7ed; color: #9a3412; padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; }
.mask { position: fixed; inset: 0; background: rgba(16,35,61,.4); display: none; z-index: 40; }
.mask.show { display: block; }
.modal {
    position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: #fff;
    z-index: 50; transform: translateX(110%); transition: .25s ease; display: flex; flex-direction: column;
    box-shadow: -20px 0 50px rgba(16,50,102,.16);
}
.modal.show { transform: none; }
.modal-hd, .modal-ft { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.modal-hd { border-bottom: 1px solid var(--line); }
.modal-ft { border-top: 1px solid var(--line); gap: 8px; justify-content: flex-end; }
.modal-bd { padding: 18px; overflow: auto; flex: 1; }
.modal-hd h3 { margin: 0; }
.toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: #10233d; color: #fff;
    padding: 10px 16px; border-radius: 12px; display: none; z-index: 80; font-weight: 700;
}
.toast.show { display: block; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
    width: 420px; max-width: 100%; background: #fff; border-radius: 22px; padding: 28px;
    box-shadow: 0 24px 60px rgba(16,50,102,.12);
}
.login-card .input { margin: 6px 0 14px; }
.login-card h1 { margin: 0 0 8px; }
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .ip-box, .hero, .top { flex-direction: column; align-items: stretch; }
    .ip { font-size: 22px; }
}
@media (max-width: 640px) {
    .steps { grid-template-columns: 1fr; }
}
