* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: #0f1420;
    color: #e6e9f0;
    font-size: 14px;
    line-height: 1.6;
}

a { color: #6ea8fe; }

.page-narrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 400px;
    background: #1a2130;
    border: 1px solid #2a3448;
    border-radius: 12px;
    padding: 28px;
}

.card h1 { font-size: 20px; margin: 0 0 20px; }

.section-title { font-size: 15px; margin: 20px 0 10px; color: #9aa4b8; }

label {
    display: block;
    margin-bottom: 14px;
    color: #b7bfce;
}
label.grow { flex: 1; }

input[type=text], input[type=password], input[type=file] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 12px;
    border: 1px solid #2a3448;
    border-radius: 8px;
    background: #0f1420;
    color: #e6e9f0;
    font-size: 14px;
}
input:focus { outline: none; border-color: #4a6fa5; }

.btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #2f6fe0; }
.btn-small { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; border: 1px solid #2a3448; color: #b7bfce; }
.btn-ghost:hover { border-color: #4a6fa5; background: transparent; }
.btn-danger { background: #b33939; }
.btn-danger:hover { background: #992e2e; }

.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; margin: 0; }

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    word-break: break-all;
}
.alert.ok { background: #14351f; border: 1px solid #2c5a3a; color: #8fdca4; }
.alert.error { background: #3a1d1d; border: 1px solid #6b2c2c; color: #f0a0a0; }

.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li { padding: 4px 0; }
.check-list .ok { color: #8fdca4; }
.check-list .fail { color: #f0a0a0; }

/* 主界面 */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: #1a2130;
    border-bottom: 1px solid #2a3448;
}
.topbar-title { font-size: 17px; font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 12px; color: #b7bfce; }

.page { max-width: 1200px; margin: 0 auto; padding: 24px 28px 60px; }

.panel {
    background: #1a2130;
    border: 1px solid #2a3448;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 24px;
}
.panel h2 { font-size: 16px; margin: 0 0 16px; }

.status-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
}
.status-item .status-label { color: #9aa4b8; font-size: 12px; }
.status-item .status-value { font-size: 20px; font-weight: 600; }
.status-hint { flex-basis: 100%; color: #6b7587; font-size: 12px; margin: 0; }

td input[type=text] { margin-top: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #232c3f;
    vertical-align: middle;
}
th { color: #9aa4b8; font-weight: 500; font-size: 12px; white-space: nowrap; }
.nowrap { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #2a3448;
    color: #9aa4b8;
    font-size: 12px;
}
.badge.active { background: #14351f; color: #8fdca4; border: 1px solid #2c5a3a; }

.link-cell { display: flex; gap: 6px; min-width: 320px; }
.link-input {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #2a3448;
    border-radius: 6px;
    background: #0f1420;
    color: #b7bfce;
}

.inline-form { display: inline-block; margin-right: 6px; }

.password-form { max-width: 320px; }

.muted { color: #6b7587; }
