/* ==========================================================================
   灵兔图床 更新中心 · 自设计主题层（基于 Bootstrap 5.3）
   加载顺序：bootstrap.min.css → bootstrap-icons → theme.css
   ========================================================================== */

:root {
    /* 品牌色（覆盖 Bootstrap） */
    --bs-primary: #2f6bff;
    --bs-primary-rgb: 47, 107, 255;
    --bs-link-color: #2f6bff;
    --bs-link-hover-color: #1d4fd8;
    --bs-body-bg: #f5f7fb;
    --bs-body-color: #1f2733;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;

    /* 设计 token */
    --ink: #1f2733;
    --ink-soft: #5b6775;
    --ink-faint: #8a94a3;
    --line: #e6eaf2;
    --line-strong: #d5dbe6;
    --surface: #ffffff;
    --brand: #2f6bff;
    --brand-dark: #1d4fd8;
    --brand-soft: #eaf1ff;
    --brand-2: #7b5cff;
    --green: #0f8a5f;
    --green-soft: #e4f7ef;
    --amber: #a8630a;
    --amber-soft: #fdf1de;
    --red: #c2352f;
    --red-soft: #fdeceb;
    --purple: #5b4bd6;
    --purple-soft: #efedfd;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow: 0 4px 16px rgba(16, 24, 40, .06);
    --shadow-lg: 0 18px 44px rgba(20, 32, 64, .10);
}

* { box-sizing: border-box; }

body {
    background: var(--bs-body-bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }

/* ==========================================================================
   导航栏
   ========================================================================== */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
}

.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0;
    padding: 0 3px;
    box-shadow: 0 4px 12px rgba(47, 107, 255, .28);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.brand-text strong { font-size: 15px; font-weight: 600; }
.brand-text span { font-size: 11px; color: var(--ink-faint); }

.site-navbar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-navbar .nav-link {
    color: var(--ink-soft);
    font-size: 14px;
    padding: .5rem .85rem !important;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.site-navbar .nav-link:hover { color: var(--brand); background: var(--brand-soft); }
.site-navbar .nav-link.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 56px 40px;
    color: #fff;
    background:
        radial-gradient(900px 380px at 88% -12%, rgba(123, 92, 255, .55), transparent 60%),
        radial-gradient(700px 340px at 8% 108%, rgba(47, 107, 255, .50), transparent 62%),
        linear-gradient(128deg, #1c3fa8 0%, #2f6bff 46%, #6a4bff 100%);
    box-shadow: var(--shadow-lg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(760px 300px at 70% 0%, #000 0%, transparent 72%);
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 14px;
    line-height: 1.3;
}

.hero .hero-lead {
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    max-width: 640px;
}

.hero .hero-note {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    margin-top: 14px;
    max-width: 660px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 12.5px;
    margin-bottom: 18px;
}

.hero-pill .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .25);
}

.btn-light-soft {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .9);
    color: var(--brand-dark);
    font-weight: 600;
}
.btn-light-soft:hover { background: #fff; color: var(--brand-dark); }

.btn-ghost-light {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .38);
    color: #fff;
    font-weight: 500;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ==========================================================================
   金刚区
   ========================================================================== */
.kingkong {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 18px 10px;
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

.kk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 12px 6px;
    border-radius: 14px;
    color: var(--ink);
    transition: transform .18s ease, background .18s ease;
    text-align: center;
}

.kk-item:hover {
    background: #f7f9ff;
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--ink);
}

.kk-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(20, 32, 64, .12);
}

.kk-icon.i-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.kk-icon.i-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.kk-icon.i-green  { background: linear-gradient(135deg, #34d399, #059669); }
.kk-icon.i-amber  { background: linear-gradient(135deg, #fbbf24, #d97706); }
.kk-icon.i-rose   { background: linear-gradient(135deg, #fb7185, #e11d48); }
.kk-icon.i-cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.kk-icon.i-indigo { background: linear-gradient(135deg, #818cf8, #4338ca); }
.kk-icon.i-slate  { background: linear-gradient(135deg, #94a3b8, #475569); }

.kk-label { font-size: 13px; font-weight: 600; }

/* ==========================================================================
   区块与卡片
   ========================================================================== */
.section-head { margin-bottom: 22px; }
.section-head .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.section-head h2 { font-size: 24px; margin: 0 0 6px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 14px; }

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    background: var(--surface);
}

.card-head,
.card-header.card-head {
    padding: 15px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.card-title { font-size: 15px; font-weight: 600; margin: 0; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #dbe3f5;
}

/* 特性卡 */
.feature {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px 22px;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #dbe3f5;
}
.feature .f-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.feature h5 { font-size: 15px; margin: 0 0 7px; font-weight: 600; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* 步骤条 */
.step-item { position: relative; padding-left: 46px; padding-bottom: 22px; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
    content: "";
    position: absolute;
    left: 15px; top: 34px; bottom: 0;
    width: 2px;
    background: var(--line);
}
.step-item:last-child::before { display: none; }
.step-num {
    position: absolute;
    left: 0; top: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(47, 107, 255, .25);
}
.step-item h6 { font-size: 14.5px; font-weight: 600; margin: 5px 0 5px; }
.step-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ==========================================================================
   统计块
   ========================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: "";
    position: absolute;
    right: -18px; top: -18px;
    width: 74px; height: 74px;
    border-radius: 50%;
    background: var(--brand-soft);
    opacity: .7;
}
.stat > * { position: relative; }
.stat-label { font-size: 12px; color: var(--ink-faint); margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.stat.is-danger .stat-value { color: var(--red); }
.stat.is-warn .stat-value { color: var(--amber); }
.stat.is-good .stat-value { color: var(--green); }

.stat .stat-ico {
    position: absolute;
    right: 16px; top: 16px;
    font-size: 20px;
    color: var(--brand);
    opacity: .55;
}

/* ==========================================================================
   表格
   ========================================================================== */
.table-wrap { overflow-x: auto; }

.table {
    margin-bottom: 0;
    font-size: 13.5px;
}
.table > thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
    background: #fafbfe;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    padding: 11px 14px;
}
.table > tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.table > tbody tr:last-child td { border-bottom: none; }
.table-hover > tbody > tr:hover { background: #f8faff; }

/* ==========================================================================
   徽标 / 徽章
   ========================================================================== */
.badge {
    font-weight: 500;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--brand-soft); color: var(--brand); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-gray { background: #eef1f6; color: var(--ink-soft); }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn { border-radius: var(--radius-sm); font-size: 13.5px; }
.btn-sm { border-radius: 7px; font-size: 12.5px; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    box-shadow: 0 3px 10px rgba(47, 107, 255, .25);
}
.btn-primary:hover { background: linear-gradient(135deg, #2559e0, #1740ad); }
.btn-outline {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--ink);
}
.btn-outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-outline:disabled { opacity: .6; cursor: not-allowed; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #a92a25; border-color: #a92a25; color: #fff; }

.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ==========================================================================
   表单
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.field label,
.form-label {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 6px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea,
.form-control,
.form-select {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    padding: .48rem .7rem;
    background: var(--surface);
}

.form-control:focus,
.form-select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.field-hint, .form-text { font-size: 12px; color: var(--ink-faint); }

.input-group { gap: 8px; align-items: stretch; }
.input-group input { min-width: 0; }

/* ==========================================================================
   提示条
   ========================================================================== */
.alert {
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    padding: 11px 15px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert-success { background: var(--green-soft); border-color: #bfe8d6; color: var(--green); }
.alert-danger, .alert-error { background: var(--red-soft); border-color: #f5c9c7; color: var(--red); }
.alert-info { background: var(--brand-soft); border-color: #c6daff; color: var(--brand-dark); }
.alert-warn, .alert-warning { background: var(--amber-soft); border-color: #f4ddb3; color: var(--amber); }
.alert-list { margin: 0; padding-left: 18px; }

/* ==========================================================================
   版本 / 授权码 / 域名
   ========================================================================== */
.mono, .code-cell, .order-no, .amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.empty {
    padding: 52px 20px;
    text-align: center;
    color: var(--ink-faint);
}
.empty i { font-size: 30px; display: block; margin-bottom: 10px; opacity: .5; }

.release-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    transition: background .15s;
}
.release-item:hover { background: #fafbff; }
.release-item:last-child { border-bottom: none; }

.version-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
}

.changelog {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ink-soft);
    white-space: pre-wrap;
}

.code-box {
    background: var(--brand-soft);
    border: 1px solid #c6daff;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.code-list {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 2;
    max-height: 240px;
    overflow-y: auto;
    word-break: break-all;
}

.license-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.license-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--brand);
    word-break: break-all;
}

.domain-chip {
    display: inline-block;
    padding: 3px 11px;
    margin: 3px 5px 3px 0;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 999px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.domain-chip.is-empty { background: #eef1f6; color: var(--ink-faint); }

/* ==========================================================================
   套餐卡
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.plan:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.is-selected {
    border-color: var(--brand);
    background: #f6f9ff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}
.plan input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.plan-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.plan-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--brand);
    margin: 8px 0 2px;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.plan-price small { font-size: 14px; font-weight: 400; }
.plan-desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.plan-features { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ink-soft); }
.plan-features li { padding: 4px 0; display: flex; gap: 7px; align-items: flex-start; }
.plan-features li i { color: var(--green); font-size: 14px; }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.auth-wrap { padding: 40px 0 60px; }

.auth-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 32px;
}

.auth-card h1 { font-size: 20px; font-weight: 600; margin: 0 0 5px; }
.auth-card .sub { color: var(--ink-faint); font-size: 13.5px; margin: 0 0 24px; }

.auth-side {
    border-radius: 18px;
    padding: 32px;
    color: #fff;
    height: 100%;
    background:
        radial-gradient(600px 260px at 90% 0%, rgba(123, 92, 255, .5), transparent 60%),
        linear-gradient(140deg, #2246b8 0%, #2f6bff 55%, #6a4bff 100%);
    box-shadow: var(--shadow-lg);
}
.auth-side h2 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.auth-side p { color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-side li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 9px 0; font-size: 13.5px; color: rgba(255, 255, 255, .92);
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.auth-side li:first-child { border-top: none; }
.auth-side li i { font-size: 16px; }

/* 人机验证 */
.captcha-box { margin-top: 4px; }
.captcha-box > label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-input { flex: 1; min-width: 0; }
.captcha-img {
    height: 40px; width: 124px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
}
.captcha-img:hover { border-color: var(--brand); }
.captcha-tip { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }

/* ==========================================================================
   后台布局
   ========================================================================== */
.admin-shell { min-height: 100vh; }

.admin-sidebar {
    width: 232px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #101a34 0%, #17233f 100%);
    color: #c9d3e6;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .brand {
    padding: 18px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar .brand-name { color: #fff; font-weight: 600; font-size: 14px; }
.admin-sidebar .brand-sub { font-size: 11.5px; color: rgba(201, 211, 230, .6); }

.admin-sidebar .nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 10px; flex-wrap: nowrap; }
.admin-sidebar .nav-group {
    font-size: 11px;
    color: rgba(201, 211, 230, .45);
    padding: 13px 10px 6px;
    letter-spacing: .5px;
}
.admin-sidebar .nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 9px;
    color: rgba(201, 211, 230, .85);
    font-size: 13.5px;
    margin-bottom: 2px;
}
.admin-sidebar .nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.admin-sidebar .nav a.active {
    background: linear-gradient(135deg, rgba(47, 107, 255, .9), rgba(123, 92, 255, .85));
    color: #fff;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(47, 107, 255, .3);
}
.admin-sidebar .nav a i { font-size: 15px; width: 18px; text-align: center; }

.admin-sidebar .sidebar-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }

.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.admin-topbar h1 { font-size: 19px; font-weight: 600; margin: 0; }
.admin-topbar .subtitle { color: var(--ink-faint); font-size: 13px; margin: 3px 0 0; }

.admin-main { padding: 22px 26px 48px; min-width: 0; }

/* ===== 侧栏收起/抽屉切换 ===== */
.sb-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: background .15s ease;
}
.sb-toggle:hover { background: #f1f4f9; }
body.sb-lock { overflow: hidden; }

.sidebar-backdrop {
    display: none;
}

/* 桌面收起态：只留图标 */
.admin-shell.sb-collapsed .admin-sidebar { width: 68px; }
.admin-shell.sb-collapsed .admin-sidebar .brand { justify-content: center; padding: 18px 6px; }
.admin-shell.sb-collapsed .admin-sidebar .brand > div { display: none; }
.admin-shell.sb-collapsed .admin-sidebar .nav-group {
    text-align: center;
    padding: 10px 4px 4px;
    font-size: 10px;
    letter-spacing: 0;
}
.admin-shell.sb-collapsed .admin-sidebar .nav a { justify-content: center; padding: 9px 0; }
.admin-shell.sb-collapsed .admin-sidebar .nav a span { display: none; }
.admin-shell.sb-collapsed .admin-sidebar .nav a i { width: auto; font-size: 17px; }
.admin-shell.sb-collapsed .admin-sidebar .sidebar-foot .d-flex { justify-content: center; }
.admin-shell.sb-collapsed .admin-sidebar .sidebar-foot .d-flex > div { display: none; }
.admin-shell.sb-collapsed .admin-sidebar .sidebar-foot .btn span { display: none; }
.admin-shell.sb-collapsed .admin-sidebar .sidebar-foot .btn { padding-left: 0; padding-right: 0; }

/* ==========================================================================
   详情页描述列表
   ========================================================================== */
.dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px 14px;
    font-size: 13.5px;
}
.dl dt { color: var(--ink-faint); font-weight: 400; }
.dl dd { margin: 0; word-break: break-all; }

/* ==========================================================================
   驱动配置 / 人工转账 / 资料
   ========================================================================== */
.driver-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.driver-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fafbfe;
}
.driver-body { padding: 20px; }
.secrets-note { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

.manual-pay {
    background: var(--amber-soft);
    border: 1px solid #f4ddb3;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
}
.manual-pay dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 14px; }
.manual-pay dt { color: var(--amber); }
.manual-pay dd { margin: 0; word-break: break-all; }

.profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.avatar {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(47, 107, 255, .28);
}

/* 进度条（更新任务） */
.progress { width: 110px; height: 6px; background: #eef1f6; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 3px; }
.progress-fill.is-done { background: var(--green); }
.progress-fill.is-fail { background: var(--red); }

/* 趋势条 */
.trend { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trend-bar { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; height: 84px; gap: 1px; }
.trend-ok { background: var(--green); border-radius: 2px 2px 0 0; min-height: 2px; }
.trend-fail { background: var(--red); border-radius: 0 0 2px 2px; min-height: 2px; }
.trend-label { font-size: 10px; color: var(--ink-faint); }

/* 分页 */
.pagination { margin: 0; }
.pagination { padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ==========================================================================
   账户中心子导航
   ========================================================================== */
.account-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.account-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}
.account-nav a {
    padding: 13px 15px;
    font-size: 13.5px;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.account-nav a:hover { color: var(--brand); text-decoration: none; }
.account-nav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
    background: #101a34;
    color: #9fadc6;
    margin-top: 56px;
    padding: 48px 0 24px;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}
.site-footer .footer-brand strong { color: #fff; font-size: 15px; }
.site-footer .footer-desc { font-size: 13px; line-height: 1.8; max-width: 320px; }

.site-footer h6 {
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a { color: #9fadc6; font-size: 13px; }
.site-footer .footer-links a:hover { color: #fff; text-decoration: none; }

.site-footer .footer-contact { font-size: 13px; }
.site-footer .footer-contact i { color: #6d86b5; margin-right: 7px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 32px;
    padding-top: 20px;
    font-size: 12.5px;
    color: #7c8aa6;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 991.98px) {
    /* 侧栏转为抽屉：默认移出屏幕，汉堡按钮唤出 */
    .admin-shell.sb-collapsed .admin-sidebar { width: 264px; }
    .admin-shell.sb-collapsed .admin-sidebar .brand > div,
    .admin-shell.sb-collapsed .admin-sidebar .nav-group,
    .admin-shell.sb-collapsed .admin-sidebar .nav a span,
    .admin-shell.sb-collapsed .admin-sidebar .sidebar-foot .d-flex > div { display: revert; }
    .admin-shell.sb-collapsed .admin-sidebar .sidebar-foot .btn span { display: inline; }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 264px !important;
        height: 100vh;
        min-height: 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
        z-index: 1100;
        box-shadow: 0 0 40px rgba(10, 16, 32, .35);
    }
    .admin-shell.drawer-open .admin-sidebar { transform: none; }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 16, 32, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
        z-index: 1050;
    }
    .admin-shell.drawer-open .sidebar-backdrop { opacity: 1; visibility: visible; }

    .admin-sidebar .nav {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 12px 10px;
    }
    .admin-sidebar .nav-group { width: auto; padding: 13px 10px 6px; letter-spacing: .5px; }
    .admin-sidebar .nav a { margin-bottom: 2px; padding: 8px 11px; background: none; font-size: 13.5px; }
    .admin-sidebar .sidebar-foot { display: block; }

    .admin-main { padding: 16px; overflow-x: auto; }
    .admin-topbar { padding: 12px 16px; }
    .hero { padding: 40px 24px; }
    .hero h1 { font-size: 27px; }
    .kingkong { margin-top: -24px; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl dd { margin-bottom: 8px; }
}

@media (max-width: 575.98px) {
    .auth-card { padding: 24px 20px; }
    .hero h1 { font-size: 23px; }
    .kk-icon { width: 46px; height: 46px; font-size: 19px; }
}

/* ===== 产品截图展示框 ===== */
.shot {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(23, 32, 52, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(23, 32, 52, .13);
}
.shot-main { box-shadow: 0 20px 48px rgba(47, 107, 255, .14); }
.shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: linear-gradient(180deg, #f7f9fc, #eef2f7);
    border-bottom: 1px solid var(--line);
}
.shot-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4dbe6;
}
.shot-bar span:first-child { background: #f6a9a4; }
.shot-bar span:nth-child(2) { background: #f5d58e; }
.shot-bar span:nth-child(3) { background: #9fd8ac; }
.shot-bar em {
    margin-left: 8px;
    font-style: normal;
    font-size: 12px;
    color: #8a94a3;
}
.shot img {
    display: block;
    width: 100%;
    height: auto;
}
.shot-main img { max-height: 460px; object-fit: cover; object-position: top; }
.shot:not(.shot-main) img { max-height: 220px; object-fit: cover; object-position: top; }

/* ---- 复选框/单选框基线：防止被 flex 容器压缩成细条（驱动启用/默认开关等） ---- */
input.form-check-input[type="checkbox"],
input.form-check-input[type="radio"]{
    flex: 0 0 auto;
    width: 16px !important;
    height: 16px !important;
    margin: 5px 0 0;
    padding: 0;
    cursor: pointer;
}
