/* 自动脚本发布中心 */
:root {
    --bg: #0f172a;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --ok: #16a34a;
    --warn: #f59e0b;
    --danger: #dc2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f1f5f9;
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    color: #fff;
    padding: 28px 20px 56px;
}

.topbar .inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.topbar p { margin: 6px 0 0; color: #c7d2fe; font-size: 13px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, .15);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, .25);
}

.wrap {
    max-width: 920px;
    margin: -36px auto 40px;
    padding: 0 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    margin-bottom: 18px;
}

.card h2 {
    margin: 0 0 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.version-row .num { font-size: 40px; font-weight: 700; color: var(--brand); line-height: 1; }
.version-row .meta { color: var(--muted); font-size: 13px; }

.notes {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    white-space: normal;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background .15s;
}

.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.ghost:hover { background: #eff6ff; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: var(--danger); }

.actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr:last-child td { border-bottom: 0; }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    background: #ecfdf5;
    color: var(--ok);
    border: 1px solid #bbf7d0;
}

.tag.old { background: #f8fafc; color: var(--muted); border-color: var(--line); }

.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--muted); }

.tip {
    border-left: 3px solid var(--warn);
    background: #fffbeb;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 16px;
}

.code {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px;
    overflow-x: auto;
    white-space: pre;
}

.muted { color: var(--muted); font-size: 13px; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

input[type="text"], input[type="password"], input[type="file"], textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

input:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--brand); }

.alert { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 16px; }
.alert.ok { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.login-card h1 { margin: 0 0 4px; font-size: 20px; }
.login-card p.sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}

.stat .label { color: var(--muted); font-size: 12px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; }

footer { text-align: center; color: #94a3b8; font-size: 12px; padding-bottom: 30px; }

@media (max-width: 640px) {
    .topbar { padding: 22px 16px 50px; }
    .card { padding: 18px 16px; }
    th:nth-child(4), td:nth-child(4) { display: none; }
}
