/* ==========================================================================
   独立授权系统 · 管理后台样式
   亮色系 / 高对比 / 圆角卡片
   ========================================================================== */

:root {
    --bg: #f3f7fc;
    --bg-soft: #eaf2fb;
    --card: #ffffff;
    --text: #16233a;
    --text-soft: #3d4f6b;
    --muted: #64748b;
    --line: #e2ebf6;
    --line-strong: #cfdced;
    --primary: #1a73e8;
    --primary-dark: #0f5bc4;
    --primary-soft: #e8f1fe;
    --ok: #0f9d63;
    --ok-soft: #e6f7ef;
    --warn: #c47c00;
    --warn-soft: #fff4e0;
    --bad: #d23c32;
    --bad-soft: #fdecea;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(22, 42, 74, .04), 0 8px 24px rgba(22, 42, 74, .06);
    --shadow-sm: 0 1px 2px rgba(22, 42, 74, .05);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

code, .mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    background: #f1f6fc;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    color: #24507f;
}

h1, h2, h3, h4 {
    margin: 0 0 12px;
    font-weight: 650;
    letter-spacing: .2px;
    color: var(--text);
}

h1 { font-size: 26px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

p { margin: 0 0 12px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ---------------------------------------------------------------- 布局 */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 236px;
    flex: 0 0 236px;
    background: var(--card);
    border-right: 1px solid var(--line);
    padding: 22px 16px 28px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3a8ef6, #1466d6);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(20, 102, 214, .28);
    flex: 0 0 38px;
}

.brand-text strong {
    display: block;
    font-size: 14.5px;
    letter-spacing: .3px;
}

.brand-text span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .6px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.nav-item:hover {
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
}

.nav-item.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 650;
}

.nav-item .ico {
    width: 22px;
    text-align: center;
    font-size: 15px;
    opacity: .85;
}

.nav-group-title {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 16px 12px 6px;
}

.sidebar-foot {
    margin-top: 22px;
    padding: 12px 10px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 26px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title {
    font-size: 16px;
    font-weight: 650;
}

.topbar-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #cfe3fc;
}

.content {
    padding: 24px 26px 48px;
}

/* ---------------------------------------------------------------- 卡片 */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.card.tight { padding: 14px 16px; }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card-head h2, .card-head h3 { margin: 0; }

.card-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 统计卡 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -22px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--primary-soft);
    opacity: .55;
}

.stat .label {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.stat .value {
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -.5px;
    line-height: 1.25;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.stat .sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.stat.ok .value { color: var(--ok); }
.stat.warn .value { color: var(--warn); }
.stat.bad .value { color: var(--bad); }
.stat.ok::after { background: var(--ok-soft); }
.stat.warn::after { background: var(--warn-soft); }
.stat.bad::after { background: var(--bad-soft); }

/* ---------------------------------------------------------------- 表格 */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

table.table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5b6f8c;
    font-weight: 650;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-strong);
    background: #f8fbfe;
    white-space: nowrap;
}

table.table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--text-soft);
}

table.table tr:last-child td { border-bottom: none; }

table.table tbody tr:hover {
    background: #fbfdff;
}

table.table.compact td,
table.table.compact th {
    padding: 8px 10px;
}

table.table .empty {
    text-align: center;
    color: var(--muted);
    padding: 34px 12px;
}

/* ---------------------------------------------------------------- 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}

.badge.ok { color: #0b7a4d; background: var(--ok-soft); }
.badge.wait { color: #4d6280; background: #eef3fa; }
.badge.warn { color: #9c6200; background: var(--warn-soft); }
.badge.bad { color: #a72c24; background: var(--bad-soft); }
.badge.info { color: #0f5bc4; background: var(--primary-soft); }
.badge.muted { color: #5b6f8c; background: #eef3fa; }

.tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 5px;
    background: #f1f6fc;
    border: 1px solid var(--line);
    color: #33557d;
    font-size: 12px;
    margin: 2px 4px 2px 0;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 550;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

.btn:hover {
    border-color: #b9cde6;
    color: var(--text);
    background: #fbfdff;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(180deg, #2c86f4, #1466d6);
    border-color: #1466d6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 102, 214, .22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #2a80ea, #0f5bc4);
    border-color: #0f5bc4;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--primary);
    padding: 5px 7px;
}

.btn-ghost:hover {
    background: var(--primary-soft);
    border-color: transparent;
}

.btn-danger {
    color: var(--bad);
    border-color: #f3c6c1;
    background: #fff7f6;
}

.btn-danger:hover {
    background: var(--bad-soft);
    border-color: #eba9a1;
    color: #a72c24;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 7px;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 15px;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------------------------------------------------------------- 表单 */
.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.field .desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:hover, select:hover, textarea:hover {
    border-color: #b9cde6;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .14);
}

textarea {
    min-height: 84px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 8px 0 2px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--text-soft);
    cursor: pointer;
}

.check input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.grid {
    display: grid;
    gap: 0 16px;
}

.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)); }

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.section-title {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7b8ba6;
    font-weight: 700;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--line);
}

/* ---------------------------------------------------------------- 提示条 */
.alert {
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
    border: 1px solid;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.alert-success { background: var(--ok-soft); border-color: #bfe6d2; color: #0b6b45; }
.alert-warn { background: var(--warn-soft); border-color: #f3dcaa; color: #8a5600; }
.alert-danger { background: var(--bad-soft); border-color: #f2c2bc; color: #a02a22; }
.alert-info { background: var(--primary-soft); border-color: #c6ddfb; color: #14509c; }

/* ---------------------------------------------------------------- 搜索条 */
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 16px;
}

.toolbar .field {
    margin: 0;
    min-width: 130px;
}

.toolbar .field.grow {
    flex: 1;
    min-width: 200px;
}

/* ---------------------------------------------------------------- 分页 */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.pager-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pager-links a,
.pager-links span {
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text-soft);
    background: #fff;
    text-decoration: none;
    font-size: 13px;
}

.pager-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.pager-links .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 650;
}

/* ---------------------------------------------------------------- 空状态 */
.empty-state {
    text-align: center;
    padding: 52px 20px;
    color: var(--muted);
}

.empty-state .big {
    font-size: 34px;
    opacity: .35;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------- 详情 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.detail-item {
    background: #fff;
    padding: 12px 16px;
}

.detail-item .k {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 3px;
}

.detail-item .v {
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
}

/* ---------------------------------------------------------------- 迷你图 */
.trend {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 112px;
    padding: 8px 4px 0;
}

.trend .bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.trend .bar i {
    display: block;
    width: 100%;
    max-width: 34px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #67aefb, #1a73e8);
    min-height: 3px;
    transition: height .2s ease;
}

.trend .bar span {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- 密钥块 */
.keybox {
    position: relative;
    background: #f8fbfe;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 12.5px;
    color: #24507f;
    word-break: break-all;
    line-height: 1.6;
    margin-bottom: 10px;
}

.keybox .copy {
    position: absolute;
    right: 6px;
    top: 6px;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.keybox .copy:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.keybox.secret { color: #b0441f; background: #fffaf7; }

/* ---------------------------------------------------------------- 登录页 */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    background:
        radial-gradient(1000px 520px at 12% -8%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
        radial-gradient(760px 480px at 96% 8%, #e0f2fe 0%, rgba(224, 242, 254, 0) 58%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 402px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(22, 42, 74, .12);
    padding: 32px 32px 26px;
}

.auth-head {
    text-align: center;
    margin-bottom: 22px;
}

.auth-head .brand-mark {
    margin: 0 auto 12px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 17px;
}

.auth-head h1 {
    font-size: 19px;
    margin-bottom: 4px;
}

.auth-head p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
}

.auth-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ---------------------------------------------------------------- 安装页 */
.install-body {
    background:
        radial-gradient(900px 460px at 8% -6%, #e3efff 0%, rgba(227, 239, 255, 0) 60%),
        radial-gradient(700px 420px at 100% 4%, #e7f7f1 0%, rgba(231, 247, 241, 0) 55%),
        var(--bg);
    padding: 40px 18px 64px;
}

.install-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.install-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.install-head h1 {
    font-size: 22px;
    margin: 0 0 2px;
}

.install-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

.install-wrap .card h2 {
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}

.plain-list {
    margin: 8px 0 14px;
    padding-left: 18px;
    color: var(--text-soft);
}

.plain-list li {
    margin-bottom: 5px;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .sidebar {
        width: auto;
        flex: none;
        height: auto;
        position: static;
        padding: 14px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .brand { padding-bottom: 12px; margin-bottom: 10px; }
    .nav { flex-direction: row; overflow-x: auto; gap: 6px; }
    .nav-item { white-space: nowrap; padding: 7px 10px; }
    .nav-group-title { display: none; }
    .sidebar-foot { display: none; }
    .content { padding: 18px 14px 40px; }
    .topbar { padding: 12px 14px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .detail-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 26px 20px 20px; }
    .toolbar .field, .toolbar .field.grow { min-width: 100%; }
}

@media print {
    .sidebar, .topbar, .btn, .pager { display: none; }
    .content { padding: 0; }
}

/* ==========================================================================
   一键生成授权码
   ========================================================================== */

.quick-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.quick-form .qf-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-form .qf-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .2px;
}

.quick-form .qf-item select,
.quick-form .qf-item input {
    height: 38px;
    min-width: 120px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    outline: none;
}

.quick-form .qf-item select:focus,
.quick-form .qf-item input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.quick-form .qf-narrow input,
.quick-form .qf-narrow select {
    min-width: 92px;
    width: 92px;
}

.quick-form .qf-grow { flex: 1 1 200px; }
.quick-form .qf-grow input { width: 100%; min-width: 0; }
.quick-form .qf-label-empty { visibility: hidden; }

.quick-gen { border-left: 3px solid var(--primary); }
.quick-result { border-left: 3px solid var(--ok); }

.key-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
    gap: 10px;
}

.key-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px 9px 13px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.key-item code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: .6px;
    color: var(--text);
    white-space: nowrap;
}

/* ==========================================================================
   源码植入
   ========================================================================== */

.hint-box {
    background: var(--primary-soft);
    border: 1px solid #cfe0fb;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.hint-box strong { color: var(--text); }

.file-list {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.file-list .table { margin: 0; }

.file-list .table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.file-list .table tbody tr:hover { background: var(--bg-soft); }

/* ---------------------------------------------------------------- 源码植入：子页签 */
.subtabs {
    display: flex;
    gap: 6px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.subtabs a {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #5b6b85;
    text-decoration: none;
    white-space: nowrap;
}

.subtabs a:hover {
    background: var(--bg-soft);
    color: #16233a;
}

.subtabs a.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}
