/* ============================================================
   云语文件图床 v1.22 · 全站样式
   Author: 云语饺子 · yykbk.com
   ============================================================ */

:root {
    --brand: #2563eb;
    --brand-2: #0ea5e9;
    --brand-3: #06b6d4;
    --brand-soft: rgba(37, 99, 235, .1);
    --brand-softer: rgba(37, 99, 235, .06);
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #22d3ee 100%);
    --bg: #f6f7fb;
    --bg-2: #eef1f8;
    --surface: #ffffff;
    --surface-2: #fbfcff;
    --surface-3: #f2f4fa;
    --text: #101426;
    --text-2: #4b5268;
    --text-3: #8a91a8;
    --border: rgba(16, 20, 38, .08);
    --border-strong: rgba(16, 20, 38, .14);
    --shadow-sm: 0 1px 2px rgba(16, 20, 38, .05);
    --shadow: 0 10px 30px -12px rgba(16, 20, 38, .16);
    --shadow-lg: 0 26px 60px -24px rgba(16, 20, 38, .28);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, .1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, .12);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, .1);
    --info: #0ea5e9;
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --header-h: 68px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
    --bg: #0b0d17;
    --bg-2: #0f1220;
    --surface: #141828;
    --surface-2: #181d30;
    --surface-3: #1f2438;
    --text: #eef1f8;
    --text-2: #b3bad0;
    --text-3: #7c849c;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --brand: #60a5fa;
    --brand-2: #22d3ee;
    --brand-soft: rgba(96, 165, 250, .16);
    --brand-softer: rgba(96, 165, 250, .09);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 12px 32px -14px rgba(0, 0, 0, .65);
    --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .8);
    --success-soft: rgba(16, 185, 129, .16);
    --warning-soft: rgba(245, 158, 11, .16);
    --danger-soft: rgba(239, 68, 68, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

[data-theme="dark"] body { color-scheme: dark; }

h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; stroke-width: 1.9; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(37, 99, 235, .24); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }

/* 背景光晕 */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 12% -8%, rgba(37, 99, 235, .14), transparent 60%),
        radial-gradient(1000px 520px at 92% 0%, rgba(6, 182, 212, .12), transparent 62%),
        radial-gradient(900px 600px at 50% 108%, rgba(14, 165, 233, .1), transparent 60%);
}

[data-theme="dark"] .bg-aurora {
    background:
        radial-gradient(1200px 620px at 10% -10%, rgba(37, 99, 235, .26), transparent 62%),
        radial-gradient(1000px 520px at 95% 2%, rgba(6, 182, 212, .18), transparent 60%),
        radial-gradient(900px 620px at 50% 110%, rgba(14, 165, 233, .18), transparent 62%);
}

.aurora {
    position: absolute;
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    animation: float 18s ease-in-out infinite;
}

.aurora-1 { top: -18vw; left: -10vw; background: #60a5fa; }
.aurora-2 { top: 8vw; right: -16vw; background: #22d3ee; animation-delay: -6s; }
.aurora-3 { bottom: -24vw; left: 30vw; background: #38bdf8; animation-delay: -12s; }

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(3vw, 3vw, 0) scale(1.08); }
}

/* 布局 */
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.page-main { min-height: calc(100vh - var(--header-h) - 320px); padding-bottom: 80px; }
.page-main.user-main { padding-top: 32px; }
.section { padding: 64px 0 0; }
.section-tight { padding-top: 28px; padding-bottom: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.section-head > p { color: var(--text-2); max-width: 440px; }
.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}
.section-eyebrow.light { color: rgba(255, 255, 255, .72); }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted { color: var(--text-3); }
.text-sm-strong { font-size: 15px; letter-spacing: -.01em; }
.hint { color: var(--text-3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.hint.center { justify-content: center; }
.dot-sep { opacity: .4; margin: 0 6px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 13px; white-space: nowrap; }

/* 按钮 */
.btn {
    --btn-bg: var(--surface);
    --btn-color: var(--text);
    --btn-border: var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-color); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
    --btn-bg: var(--brand-gradient);
    --btn-color: #fff;
    --btn-border: transparent;
    box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .8);
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .9); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-color: var(--brand); --btn-border: transparent; }
.btn-soft:hover { background: rgba(37, 99, 235, .16); }
.btn-ghost { --btn-bg: transparent; --btn-color: var(--text-2); --btn-border: var(--border); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger-soft { --btn-bg: var(--danger-soft); --btn-color: var(--danger); --btn-border: transparent; }
.btn-danger-soft:hover { background: rgba(239, 68, 68, .17); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn-xs svg { width: 14px; height: 14px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.danger-text { color: var(--danger) !important; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-2);
    transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn svg { width: 19px; height: 19px; }

/* 表单 */
.input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input:disabled, .input[readonly] { background: var(--surface-3); color: var(--text-2); }
.textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.65; }
.code-input { font-family: var(--mono); font-size: 12.5px; }
.select-sm { height: 36px; width: auto; padding-right: 32px; font-size: 12.5px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field-label small { font-weight: 500; color: var(--text-3); }
.field-hint { font-size: 12px; color: var(--text-3); }
.form-row { display: grid; gap: 16px; }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.inline-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.form-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.form-divider::before, .form-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.form-error {
    padding: 10px 13px;
    border-radius: var(--radius-xs);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, .2);
}
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.input-action { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: var(--text-3); border-radius: 8px; display: grid; place-items: center; }
.input-action:hover { background: var(--surface-3); color: var(--text); }
.input-icon .input-action + .input, .input-icon .input[type="password"] { padding-right: 40px; }
.input-with-btn { display: flex; gap: 8px; align-items: center; }
.input-with-btn .input { flex: 1; min-width: 0; }
.copy-line { display: flex; gap: 8px; align-items: center; }
.copy-line .input { flex: 1; min-width: 0; }

.search-box { position: relative; }
.search-box > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; }
.search-box .input { padding-left: 35px; height: 36px; font-size: 12.5px; min-width: 190px; }
.filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 开关 */
.switch { position: relative; display: inline-flex; width: 44px; height: 25px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch span { width: 100%; height: 100%; border-radius: 99px; background: var(--border-strong); transition: background .25s var(--ease); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(19px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.switch-row.compact { padding: 8px 0; border: 0; background: transparent; font-size: 12.5px; color: var(--text-2); }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text strong { font-size: 13.5px; }
.switch-text small { color: var(--text-3); font-size: 12px; }
.switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* 徽章 / 标签 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: var(--surface-3);
    color: var(--text-2);
}
.badge svg { width: 13px; height: 13px; }
.badge-soft { background: var(--surface-3); color: var(--text-2); }
.badge-primary { background: var(--brand-soft); color: var(--brand); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; border: 1px solid rgba(37, 99, 235, .16); }
.pill-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .22); }
.avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex: 0 0 auto;
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6);
}
.avatar-lg { width: 54px; height: 54px; font-size: 21px; }
.code-badge { background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); padding: 2px 7px; border-radius: 6px; font-size: 11.5px; }

/* 头部导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
}
.header-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.brand:hover { color: var(--text); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .8);
    flex: 0 0 auto;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link { padding: 8px 13px; border-radius: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 650; }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.active { background: var(--brand-soft); color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-toggle .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: inline-flex; }
.mobile-menu-btn { display: none; }

/* 用户下拉 */
.dropdown { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.user-chip:hover { border-color: var(--border-strong); }
.user-chip-name { font-size: 13px; font-weight: 650; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    padding: 7px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    z-index: 70;
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; flex-direction: column; }
.dropdown-head strong { font-size: 13.5px; }
.dropdown-head span { font-size: 11.5px; color: var(--text-3); }
.dropdown-menu a, .dropdown-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.dropdown-menu a:hover, .dropdown-logout:hover { background: var(--surface-3); color: var(--text); }
.dropdown-menu svg { width: 17px; height: 17px; color: var(--text-3); }

/* Flash / Toast */
.flash-container { position: relative; z-index: 40; }
.flash-stack { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    animation: slideDown .35s var(--ease);
}
.flash-success { border-color: rgba(16, 185, 129, .25); background: var(--success-soft); color: var(--success); }
.flash-error { border-color: rgba(239, 68, 68, .25); background: var(--danger-soft); color: var(--danger); }
.flash-info { border-color: rgba(14, 165, 233, .25); background: rgba(14, 165, 233, .08); color: var(--info); }
.flash-icon { display: inline-flex; }
.flash-text { flex: 1; }
.flash-close { border: 0; background: transparent; color: inherit; opacity: .6; display: inline-flex; padding: 2px; }
.flash-close:hover { opacity: 1; }

.toast-root { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border-radius: 99px;
    background: #111528;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7);
    animation: toastIn .3s var(--ease);
}
[data-theme="dark"] .toast { background: #eef1f8; color: #101426; }
.toast.success svg { color: #34d399; }
.toast.error svg { color: #f87171; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

/* 页脚 */
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding: 52px 0 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-3); font-size: 13px; max-width: 320px; margin-top: 14px; }
.footer-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer-col a, .footer-version { color: var(--text-2); font-size: 13px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; width: min(1180px, calc(100% - 40px)); margin-inline: auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; }
.footer-bottom a { color: var(--text-3); }

/* 公告 */
.announcement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    border: 1px solid rgba(37, 99, 235, .16);
    color: var(--brand);
    font-size: 13px;
    font-weight: 650;
}
.announcement svg { width: 17px; height: 17px; }

/* 首页 Hero */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding: 60px 0 20px; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -.045em; margin: 18px 0 20px; }
.hero-desc { color: var(--text-2); font-size: 15.5px; line-height: 1.85; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: 12px; color: var(--text-3); }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--text-3); font-size: 12.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--success); }

/* 上传卡片 */
.upload-card {
    position: relative;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}
.upload-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(37, 99, 235, .45), transparent 38%, transparent 62%, rgba(6, 182, 212, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.upload-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.upload-card-head h2 { font-size: 19px; }
.upload-card-head p { color: var(--text-3); font-size: 12.5px; }
.upload-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--success-soft); color: var(--success); font-size: 11.5px; font-weight: 750; }
.upload-badge svg { width: 13px; height: 13px; }

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 245px;
    padding: 28px 20px;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .25s, background .25s, transform .2s var(--ease);
    outline: none;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover { border-color: var(--brand); background: var(--brand-softer); }
.dropzone.dragover { transform: scale(1.01); }
.dropzone-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .9);
    margin-bottom: 4px;
}
.dropzone-icon svg { width: 28px; height: 28px; }
.dropzone h3 { font-size: 15.5px; font-weight: 750; }
.dropzone h3 em { font-style: normal; color: var(--brand); }
.dropzone p { color: var(--text-3); font-size: 12.5px; }
.dropzone-tags { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.dropzone-tags span { padding: 4px 9px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; }
.dropzone-compact { min-height: 150px; flex-direction: row; text-align: left; gap: 18px; padding: 24px; }
.dropzone-compact .dropzone-icon { width: 52px; height: 52px; border-radius: 16px; margin: 0; }
.dropzone-compact h3 { font-size: 14px; }

.upload-options { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.mini-field { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.mini-field .input { height: 34px; font-size: 12.5px; width: auto; min-width: 130px; }
.upload-quota, .upload-note { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; }
.guest-note { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.upload-disabled { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--text-2); }
.upload-disabled > svg { width: 34px; height: 34px; color: var(--text-3); }
.upload-disabled h3 { font-size: 16px; }
.upload-disabled p { color: var(--text-3); font-size: 12.5px; max-width: 300px; }
.upload-disabled-actions { display: flex; gap: 10px; margin-top: 8px; }

.captcha-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.captcha-row .input { flex: 1; min-width: 0; }
.captcha-img { height: 44px; width: 122px; object-fit: fill; border-radius: var(--radius-xs); border: 1px solid var(--border); cursor: pointer; background: var(--surface-3); }
.auth-form .captcha-row .captcha-img { height: 44px; }

.upload-progress { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.progress-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.progress-head strong { color: var(--brand); font-size: 12px; }
.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); transition: width .3s var(--ease); }

.upload-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 310px; overflow-y: auto; }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); animation: slideDown .3s var(--ease); }
.queue-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.queue-info { flex: 1; min-width: 0; }
.queue-info strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-info small { color: var(--text-3); font-size: 11.5px; }
.queue-links { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.queue-links button { border: 0; background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 3px 7px; font-size: 10.5px; font-weight: 700; }
.queue-links button:hover { background: rgba(37, 99, 235, .18); }

/* 功能区 */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card {
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; }
.icon-indigo { background: rgba(37, 99, 235, .12); color: #2563eb; }
.icon-cyan { background: rgba(6, 182, 212, .12); color: #0891b2; }
.icon-violet { background: rgba(14, 165, 233, .12); color: #0ea5e9; }
.icon-emerald { background: rgba(16, 185, 129, .12); color: #059669; }
.feature-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature-card p { color: var(--text-3); font-size: 12.8px; line-height: 1.75; }

/* 图库 */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-item { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(8, 10, 20, .8)); color: #fff; display: flex; flex-direction: column; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.gallery-item:hover .gallery-overlay { opacity: 1; transform: none; }
.gallery-overlay strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-overlay small { font-size: 10.5px; opacity: .75; }

/* 步骤横条 */
.steps-band {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, #0f172a 0%, #123a52 48%, #0e3f52 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.steps-band::after { content: ""; position: absolute; width: 340px; height: 340px; right: -80px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 65%); }
.steps-copy { position: relative; z-index: 1; }
.steps-copy h2 { font-size: 27px; margin: 8px 0 10px; }
.steps-copy p { color: rgba(255, 255, 255, .66); font-size: 13.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.step { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.step-num { display: inline-block; font-size: 12px; font-weight: 800; color: #a5b4fc; letter-spacing: .1em; margin-bottom: 10px; }
.step h4 { font-size: 14.5px; margin-bottom: 6px; }
.step p { font-size: 12px; color: rgba(255, 255, 255, .6); line-height: 1.7; }

/* CTA */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .1));
    border: 1px solid rgba(37, 99, 235, .18);
    flex-wrap: wrap;
}
.cta-band h2 { font-size: 25px; margin-bottom: 8px; }
.cta-band p { color: var(--text-2); font-size: 13.5px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 页面标题 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 46px 0 6px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 10px; letter-spacing: -.04em; }
.page-head p { color: var(--text-2); font-size: 14px; max-width: 580px; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title-row h1 { font-size: 27px; margin: 4px 0 6px; letter-spacing: -.03em; }
.page-title-row p { color: var(--text-3); font-size: 13px; }
.page-title-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.quota-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 650; }

.segmented { display: inline-flex; padding: 4px; gap: 3px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); }
.segmented a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); padding: 4px 0 18px; flex-wrap: wrap; }
.breadcrumb svg { width: 13px; height: 13px; opacity: .55; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }

/* 面板 */
.panel {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16.5px; }
.panel-head h2 + p, .panel-head p { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.panel-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.sub-title { font-size: 13.5px; margin: 20px 0 10px; }
.panel.upload-panel { margin-bottom: 18px; }

/* 统计卡 */
.stat-grid { display: grid; gap: 14px; margin-bottom: 20px; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card > div { display: flex; flex-direction: column; }
.stat-card strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.stat-card span { font-size: 12px; color: var(--text-3); }
.stat-card small { font-size: 11px; color: var(--text-3); margin-top: 2px; opacity: .85; }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto; }
.stat-icon svg { width: 21px; height: 21px; }
.stat-card.admin-stat { align-items: flex-start; }

/* 用户中心外壳 */
.user-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 22px; align-items: start; }
.user-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.user-profile-card { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.user-profile-card h3 { font-size: 15px; margin-bottom: 4px; }
.sidebar-storage { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.storage-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.storage-head strong { color: var(--text); font-size: 13px; }
.sidebar-storage small { display: block; margin-top: 7px; font-size: 11px; color: var(--text-3); }
.side-nav { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-size: 13px; font-weight: 650; }
.side-link:hover { background: var(--surface-3); color: var(--text); }
.side-link.active { background: var(--brand-soft); color: var(--brand); }
.side-link svg { width: 18px; height: 18px; }
.side-link-admin { color: var(--brand); margin-top: 4px; border-top: 1px dashed var(--border); border-radius: 0 0 9px 9px; padding-top: 12px; }
.sidebar-tip { display: flex; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--brand-softer); border: 1px solid rgba(37, 99, 235, .12); color: var(--brand); }
.sidebar-tip svg { width: 18px; height: 18px; margin-top: 2px; }
.sidebar-tip p { font-size: 11.5px; line-height: 1.7; }
.user-content { min-width: 0; }

/* 仪表盘 */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dashboard-side { display: flex; flex-direction: column; gap: 18px; }
.dashboard-side .panel + .panel { margin-top: 0; }
.quota-panel { text-align: center; }
.quota-panel .panel-head { justify-content: center; }
.quota-ring {
    --pct: 0;
    width: 138px;
    height: 138px;
    margin: 6px auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--brand) calc(var(--pct) * 1%), var(--surface-3) 0);
    position: relative;
}
.quota-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.quota-ring > div { position: relative; display: flex; flex-direction: column; }
.quota-ring strong { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.quota-ring span { font-size: 11px; color: var(--text-3); }
.quota-detail { display: flex; justify-content: center; gap: 28px; }
.quota-detail div { display: flex; flex-direction: column; }
.quota-detail span { font-size: 11px; color: var(--text-3); }
.quota-detail strong { font-size: 13px; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-links a { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 650; }
.quick-links a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }
.quick-links svg { width: 18px; height: 18px; color: var(--brand); }
.quick-links.compact a { flex-direction: row; align-items: center; gap: 9px; }
.quick-links.compact svg { width: 16px; height: 16px; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 660px; }
.data-table thead th { text-align: left; padding: 11px 14px; background: var(--surface-2); color: var(--text-3); font-size: 11.5px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.cell-strong { font-weight: 700; color: var(--text); }
.cell-sub { display: block; color: var(--text-3); font-size: 11px; }
.cell-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cell-actions form { display: inline-flex; }
.table-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table-file img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.table-user { display: flex; align-items: center; gap: 9px; }
.table-user .avatar { width: 30px; height: 30px; font-size: 12px; }
.table-file > div, .table-user > div { min-width: 0; }
.table-empty { text-align: center; color: var(--text-3); padding: 26px; font-size: 12.5px; }
.log-table td { font-size: 12.5px; }
.log-detail { max-width: 430px; color: var(--text-2); }

/* 分页 */
.pagination { display: flex; align-items: center; gap: 5px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 650; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-btn svg { width: 15px; height: 15px; }
.page-ellipsis { color: var(--text-3); padding: 0 3px; }
.pagination-meta { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }

/* 文件夹 */
.folder-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.folder-create-form { display: flex; flex-direction: column; gap: 10px; }
.folder-create-form .btn { width: 100%; }
.folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.folder-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
.folder-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.folder-card-main { display: flex; align-items: center; gap: 12px; padding: 15px; color: var(--text); }
.folder-card-main:hover { color: var(--text); }
.folder-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(245, 158, 11, .12); color: #f59e0b; flex: 0 0 auto; }
.folder-icon svg { width: 20px; height: 20px; }
.folder-card-main strong { display: block; font-size: 13px; }
.folder-card-main small { color: var(--text-3); font-size: 11px; }
.folder-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.folder-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.folder-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; }
.folder-pill svg { width: 14px; height: 14px; color: #f59e0b; }
.folder-pill span { background: var(--surface-3); border-radius: 99px; padding: 0 6px; font-size: 10.5px; color: var(--text-3); }
.folder-pill:hover { border-color: var(--brand); color: var(--brand); }
.folder-pill.active { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

/* 文件卡片 */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 13px; }
.file-grid.mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.file-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.file-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.file-card-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; }
.file-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.file-card:hover .file-card-thumb img { transform: scale(1.04); }
.file-card-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 99px; background: rgba(10, 12, 22, .62); color: #fff; font-size: 10px; font-weight: 700; backdrop-filter: blur(6px); }
.file-card-badge svg { width: 11px; height: 11px; }
.file-card-body { padding: 10px 11px 8px; }
.file-card-name { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card-name:hover { color: var(--brand); }
.file-card-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--text-3); font-size: 10.5px; margin-top: 3px; }
.file-card-actions { display: flex; align-items: center; gap: 2px; padding: 5px 7px 7px; border-top: 1px solid var(--border); }
.file-card-actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.file-card-actions .icon-btn svg { width: 15px; height: 15px; }
.file-card-actions form { display: contents; }

/* 文件类型图标 */
.file-type-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 58px;
    border-radius: 9px;
    background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
    border: 1px solid var(--border);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    position: relative;
    flex: 0 0 auto;
}
.file-type-icon::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: transparent var(--surface) transparent transparent; }
.file-type-icon.file-type-xl { width: 92px; height: 104px; font-size: 17px; border-radius: 15px; }
.ext-jpg, .ext-jpeg, .ext-png, .ext-gif, .ext-webp, .ext-bmp, .ext-svg, .ext-ico { color: #2563eb; background: rgba(37, 99, 235, .1); border-color: rgba(37, 99, 235, .2); }
.ext-zip, .ext-rar, .ext-7z, .ext-tar, .ext-gz { color: #f59e0b; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .2); }
.ext-pdf { color: #ef4444; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .2); }
.ext-doc, .ext-docx { color: #2563eb; background: rgba(37, 99, 235, .1); border-color: rgba(37, 99, 235, .2); }
.ext-xls, .ext-xlsx, .ext-csv { color: #059669; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .2); }
.ext-ppt, .ext-pptx { color: #ea580c; background: rgba(234, 88, 12, .1); border-color: rgba(234, 88, 12, .2); }
.ext-mp4, .ext-webm, .ext-mp3, .ext-wav { color: #0ea5e9; background: rgba(14, 165, 233, .1); border-color: rgba(14, 165, 233, .2); }
.ext-apk { color: #10b981; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .2); }
.ext-txt, .ext-md { color: var(--text-2); }

/* 空状态 */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 54px 20px; }
.empty-state.compact { padding: 32px 16px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--surface-3); color: var(--text-3); margin-bottom: 4px; }
.empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 15.5px; }
.empty-state p { color: var(--text-3); font-size: 12.5px; max-width: 320px; }
.empty-state .btn { margin-top: 10px; }

/* 设置页 */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.settings-grid .panel + .panel { margin-top: 0; }
.meta-strip { display: flex; gap: 16px; flex-wrap: wrap; padding: 11px 13px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.tip-list { display: flex; flex-direction: column; gap: 11px; }
.tip-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); font-size: 12.8px; line-height: 1.7; }
.tip-list svg { width: 16px; height: 16px; color: var(--success); margin-top: 3px; flex: 0 0 auto; }
.tip-list code { background: var(--surface-3); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }

/* API 页 */
.api-endpoint-list { display: flex; flex-direction: column; gap: 7px; }
.api-endpoint { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; }
.api-endpoint code { color: var(--text); font-size: 12px; }
.api-endpoint > span:last-child { margin-left: auto; color: var(--text-3); font-size: 11.5px; }
.method { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 3px 7px; border-radius: 5px; font-family: var(--mono); font-size: 10px; font-weight: 800; font-style: normal; letter-spacing: .04em; }
.method.get { background: var(--success-soft); color: var(--success); }
.method.post { background: var(--brand-soft); color: var(--brand); }
.token-input { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.code-block { margin: 0; padding: 15px 17px; border-radius: var(--radius-sm); background: #111527; color: #dbe2f7; font-size: 12px; line-height: 1.7; overflow-x: auto; }
[data-theme="dark"] .code-block { background: #090b14; border: 1px solid var(--border); }
.doc-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.doc-steps li { position: relative; padding: 12px 14px 12px 44px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12.8px; line-height: 1.7; counter-increment: step; }
.doc-steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.doc-steps li strong { color: var(--text); }
.doc-steps code, .docs-card code, .api-docs code { background: var(--surface-3); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }
.docs-card pre code, .code-block code, .doc-steps pre code { background: transparent; border: 0; padding: 0; border-radius: 0; color: inherit; font-size: inherit; line-height: inherit; }
.code-block { color: #e8eeff; }
.code-block a, .docs-card pre a { color: #7dd3fc; }
.doc-steps.compact { gap: 9px; }
.doc-steps.compact li { padding: 9px 11px 9px 39px; font-size: 12px; }

/* 认证页 */
.auth-body { min-height: 100vh; overflow-x: hidden; }
.auth-shell { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }
.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 54px;
    color: #fff;
    background: linear-gradient(140deg, #0b1224 0%, #0f2c46 46%, #0b3550 100%);
    overflow: hidden;
}
.auth-visual::before { content: ""; position: absolute; width: 46vw; height: 46vw; right: -16vw; bottom: -16vw; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .4), transparent 62%); }
.auth-visual::after { content: ""; position: absolute; width: 30vw; height: 30vw; left: -10vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, .28), transparent 64%); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual-content { max-width: 520px; }
.auth-visual-content h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.22; letter-spacing: -.04em; margin: 20px 0 16px; }
.auth-visual-content > p { color: rgba(255, 255, 255, .66); font-size: 14px; line-height: 1.85; max-width: 440px; }
.auth-feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.auth-feature-list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .78); font-size: 13px; }
.auth-feature-list svg { width: 18px; height: 18px; color: #67e8f9; }
.auth-visual-foot { display: flex; gap: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.auth-visual-foot div { display: flex; flex-direction: column; }
.auth-visual-foot strong { font-size: 22px; font-weight: 800; }
.auth-visual-foot span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 46px 6vw; background: var(--bg); }
.auth-panel-inner { width: min(420px, 100%); margin-inline: auto; }
.auth-head { margin-bottom: 26px; }
.auth-head h1 { font-size: 27px; margin: 6px 0 9px; letter-spacing: -.03em; }
.auth-head p { color: var(--text-3); font-size: 13px; line-height: 1.75; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn-block { margin-top: 4px; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.auth-switch a { font-weight: 700; }
.auth-copyright { text-align: center; color: var(--text-3); font-size: 11.5px; margin-top: 34px; }
.auth-flash { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 28px)); z-index: 90; }
.auth-flash .flash-stack { padding-top: 0; }
.auth-tip-box { display: flex; gap: 9px; padding: 11px 13px; border-radius: var(--radius-xs); background: var(--brand-softer); border: 1px solid rgba(37, 99, 235, .14); color: var(--brand); font-size: 12px; line-height: 1.7; }
.auth-tip-box svg { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; }

/* 分享页 */
.share-body { background: var(--bg); }
.share-shell { width: min(1040px, calc(100% - 32px)); margin-inline: auto; padding: 44px 0 70px; }
.share-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.share-card { padding: 26px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.share-brand-row { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; font-weight: 650; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.share-brand-row .badge { margin-left: auto; }
.share-brand-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-gradient); color: #fff; }
.share-brand-icon svg { width: 16px; height: 16px; }
.share-file-hero { text-align: center; padding: 26px 0 20px; }
.share-thumb { width: 100%; max-width: 430px; margin: 0 auto 18px; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.share-thumb.is-locked img { filter: blur(18px) brightness(.85); transform: scale(1.06); }
.thumb-lock { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(10, 12, 22, .55); color: #fff; backdrop-filter: blur(4px); }
.thumb-lock svg { width: 24px; height: 24px; }
.share-file-hero .file-type-icon { margin: 6px auto 18px; }
.share-filename { font-size: clamp(18px, 2.4vw, 23px); word-break: break-all; }
.share-file-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--text-3); font-size: 11.5px; }
.share-file-meta span { display: inline-flex; align-items: center; gap: 4px; }
.share-file-meta svg { width: 13px; height: 13px; }
.share-locked { text-align: center; padding: 8px 0 6px; border-top: 1px solid var(--border); }
.share-lock-badge { display: grid; place-items: center; width: 52px; height: 52px; margin: 22px auto 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.share-lock-badge svg { width: 24px; height: 24px; }
.share-locked h2 { font-size: 18px; margin-bottom: 6px; }
.share-locked > p { color: var(--text-3); font-size: 12.5px; max-width: 380px; margin: 0 auto; }
.share-pwd-form { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 18px auto 0; }
.pwd-input { text-align: center; height: 50px; font-size: 19px; letter-spacing: .42em; font-weight: 800; text-transform: uppercase; padding-left: 22px; }
.share-hint { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-3); font-size: 11.5px; margin-top: 16px; }
.share-unlocked { border-top: 1px solid var(--border); padding-top: 20px; }
.share-success { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: var(--radius-xs); background: var(--success-soft); color: var(--success); font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
.share-image-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); margin-bottom: 16px; cursor: zoom-in; }
.share-image-preview img { width: 100%; max-height: 460px; object-fit: contain; }
.share-download { margin-bottom: 16px; }
.share-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.share-meta-grid div { padding: 10px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; gap: 3px; }
.share-meta-grid span { font-size: 10.5px; color: var(--text-3); }
.share-meta-grid strong { font-size: 12px; }
.share-link-copy label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-bottom: 6px; }
.share-tip { display: flex; gap: 7px; align-items: center; color: var(--text-3); font-size: 11.5px; margin-top: 14px; }
.share-side-note { display: flex; flex-direction: column; gap: 12px; }
.share-note-card { display: flex; gap: 11px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.share-note-card > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.share-note-card svg { width: 18px; height: 18px; }
.share-note-card strong { display: block; font-size: 13px; color: var(--text); }
.share-note-card p { font-size: 11.5px; color: var(--text-3); line-height: 1.65; }
.share-note-card.link:hover { border-color: var(--brand); }
.note-arrow { margin-left: auto; align-self: center; color: var(--text-3) !important; }
.share-foot { text-align: center; color: var(--text-3); font-size: 11.5px; margin-top: 26px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 20, .55); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.modal-dialog { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: modalIn .3s var(--ease); }
.modal-dialog.wide { width: min(620px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 17px; }
.modal-head p { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-file { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.modal-file img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: var(--surface-3); }
.modal-file strong { display: block; font-size: 13px; word-break: break-all; }
.modal-file small { color: var(--text-3); font-size: 11px; }
.share-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-group { display: flex; flex-direction: column; gap: 6px; }
.option-group > label { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.seg-options { display: flex; gap: 5px; flex-wrap: wrap; }
.seg-options label { cursor: pointer; }
.seg-options input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-options span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 11.5px; font-weight: 650; transition: .2s; }
.seg-options input:checked + span { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.pwd-generate { display: flex; gap: 7px; }
.pwd-generate .input { flex: 1; min-width: 0; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.share-result { display: none; flex-direction: column; gap: 13px; padding: 18px 22px 22px; }
.share-result.show { display: flex; }
.share-result strong { color: var(--success); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.share-result .copy-line .input { background: var(--surface); font-size: 11.5px; }
.modal-foot-note { font-size: 11px; color: var(--text-3); text-align: center; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(6, 8, 16, .9); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; animation: fadeIn .2s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-close { position: absolute; top: 20px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
img[data-lightbox] { cursor: zoom-in; }

/* 探索 / 瀑布流 */
.masonry { columns: 4; column-gap: 12px; }
.masonry-item { display: block; break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-3); border: 1px solid var(--border); }
.masonry-item img { width: 100%; transition: transform .45s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-overlay { position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(8, 10, 20, .82)); color: #fff; display: flex; flex-direction: column; opacity: 0; transition: .25s; }
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay strong { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.masonry-overlay span { font-size: 10.5px; opacity: .72; }
.file-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.file-list-card { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.file-list-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.file-list-info { flex: 1; min-width: 0; }
.file-list-info strong { display: block; font-size: 12.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-info small { font-size: 11px; color: var(--text-3); }
.muted-icon { color: var(--text-3); }

/* 文件详情 */
.file-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.file-preview { padding: 0; overflow: hidden; position: relative; display: grid; place-items: center; min-height: 380px; background: var(--surface-2); }
.file-preview > img { width: 100%; max-height: 72vh; object-fit: contain; cursor: zoom-in; }
.preview-size { position: absolute; bottom: 12px; left: 12px; padding: 4px 9px; border-radius: 99px; background: rgba(10, 12, 22, .6); color: #fff; font-size: 10.5px; }
.file-preview-icon { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; }
.file-preview-icon .file-type-icon { transform: scale(1.3); }
.file-preview-icon p { color: var(--text-3); font-size: 12.5px; }
.file-info { display: flex; flex-direction: column; gap: 14px; }
.file-info-card { padding: 20px; }
.file-info-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.file-info-head h1 { font-size: 18px; word-break: break-all; margin-bottom: 7px; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-list { display: flex; flex-direction: column; }
.meta-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.meta-list dt { color: var(--text-3); font-size: 11.5px; }
.meta-list dd { font-size: 11.5px; color: var(--text-2); text-align: right; word-break: break-all; }
.detail-actions { margin-top: 16px; }
.detail-owner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.copy-panel { padding: 18px 20px; }
.copy-panel h3 { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 10px; }
.copy-panel h3 svg { color: var(--brand); }
.copy-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }

/* API 文档 */
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.docs-toc a { padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.docs-toc a:hover { background: var(--surface-3); color: var(--brand); }
.docs-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.docs-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 20px); }
.docs-card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 12px; }
.docs-card h2 svg { color: var(--brand); }
.docs-card h3 { font-size: 13.5px; margin: 18px 0 8px; }
.docs-card p { color: var(--text-2); font-size: 12.8px; line-height: 1.85; }
.docs-card pre, .api-docs pre { margin: 12px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: #111527; color: #e6ecff; font-size: 11.8px; line-height: 1.7; overflow-x: auto; }
[data-theme="dark"] .docs-card pre, [data-theme="dark"] .api-docs pre { background: #090b14; border: 1px solid var(--border); }
.api-docs pre code, .docs-card pre code { background: transparent; border: 0; padding: 0; border-radius: 0; color: inherit; font-size: inherit; line-height: inherit; }
.api-docs pre a, .docs-card pre a { color: #7dd3fc; }
.api-table, .param-table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 14px; }
.api-row { display: grid; grid-template-columns: 80px 1.2fr 1.4fr; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--border); font-size: 12px; align-items: center; }
.api-row:last-child { border-bottom: 0; }
.api-row.api-head { background: var(--surface-2); color: var(--text-3); font-size: 11px; font-weight: 700; }
.param-table > div { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 11.8px; }
.param-table > div:last-child { border-bottom: 0; }
.param-table > div code { min-width: 100px; color: var(--brand); }
.param-table span { color: var(--text-2); }

/* 后台 */
.admin-body { background: var(--bg-2); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 14px 16px;
    background: linear-gradient(175deg, #151a2e 0%, #101426 60%, #0d1120 100%);
    color: #fff;
    z-index: 80;
    overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.admin-brand:hover { color: #fff; }
.admin-brand strong { display: block; font-size: 14px; line-height: 1.35; }
.admin-brand small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .45); margin-top: 2px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: rgba(255, 255, 255, .64); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.admin-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-link.active { background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(14, 165, 233, .82)); color: #fff; box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .9); }
.admin-link svg { width: 18px; height: 18px; }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-user-mini { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.admin-user-mini strong { display: block; font-size: 12px; }
.admin-user-mini small { color: rgba(255, 255, 255, .45); font-size: 10.5px; }
.admin-main { flex: 1; min-width: 0; margin-left: 248px; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 26px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.admin-topbar-left, .admin-topbar-right { display: flex; align-items: center; gap: 9px; }
.admin-page-title { font-size: 13.5px; font-weight: 750; color: var(--text-2); }
.admin-menu-btn { display: none; }
.admin-content { padding: 24px 26px 48px; }
.admin-content .flash-container { margin-bottom: 14px; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 26px; letter-spacing: -.035em; }
.admin-page-head p { color: var(--text-3); font-size: 12.5px; margin-top: 5px; max-width: 640px; }
.admin-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-stat div { gap: 1px; }

.admin-dash-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.admin-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.admin-two-col.narrow { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.admin-dash-grid .panel + .panel, .admin-two-col .panel + .panel { margin-top: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bar-value { font-size: 10.5px; color: var(--text-3); font-weight: 700; }
.bar-track { flex: 1; width: 100%; max-width: 42px; border-radius: 8px; background: var(--surface-3); display: flex; align-items: flex-end; overflow: hidden; }
.bar-track span { display: block; width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #0ea5e9, #2563eb); min-height: 5px; transition: height .6s var(--ease); }
.bar-col:nth-child(even) .bar-track span { background: linear-gradient(180deg, #22d3ee, #0891b2); }
.bar-label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stats > div { display: flex; flex-direction: column; padding: 13px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); }
.mini-stats span { font-size: 11px; color: var(--text-3); }
.mini-stats strong { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.user-mini-list { display: flex; flex-direction: column; gap: 4px; }
.user-mini-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-xs); }
.user-mini-row:hover { background: var(--surface-2); }
.user-mini-row > div { flex: 1; min-width: 0; }
.user-mini-row strong { display: block; font-size: 12.5px; }
.user-mini-row small { display: block; color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; display: flex; gap: 12px; padding: 0 0 16px 4px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 14px; bottom: 0; width: 1px; background: var(--border); }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); margin-top: 5px; flex: 0 0 auto; }
.timeline-item strong { font-size: 12.5px; }
.timeline-item p { font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.timeline-item small { font-size: 10.5px; color: var(--text-3); }

/* 站点卡片 */
.site-cards { display: flex; flex-direction: column; gap: 14px; }
.site-card { padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.site-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.site-identity { display: flex; align-items: center; gap: 11px; }
.site-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-gradient); color: #fff; }
.site-logo svg { width: 20px; height: 20px; }
.site-identity strong { display: block; font-size: 14px; }
.site-identity small { color: var(--text-3); font-size: 11px; }
.site-key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.key-box label { display: block; font-size: 10.5px; font-weight: 700; color: var(--text-3); margin-bottom: 4px; letter-spacing: .05em; }
.key-box .input { height: 36px; font-family: var(--mono); font-size: 11.5px; }
.site-meta { display: flex; flex-direction: column; gap: 4px; color: var(--text-3); font-size: 11.5px; }
.site-meta span { display: flex; align-items: center; gap: 5px; word-break: break-all; }
.site-meta svg { width: 13px; height: 13px; }
.site-edit { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 11px; }
.site-edit summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; font-weight: 650; color: var(--brand); list-style: none; }
.site-edit summary::-webkit-details-marker { display: none; }
.site-edit summary svg { width: 15px; height: 15px; }
.site-edit[open] summary { margin-bottom: 12px; }
.site-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.site-card-actions form { display: inline-flex; }

/* 设置 tabs */
.settings-tabs { display: flex; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.settings-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px; color: var(--text-2); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.settings-tab:hover { background: var(--surface-3); color: var(--text); }
.settings-tab.active { background: var(--brand-soft); color: var(--brand); }
.settings-tab svg { width: 16px; height: 16px; }
.admin-content > .panel { max-width: 100%; }

/* 系统信息 */
.info-list { display: flex; flex-direction: column; }
.info-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.info-list > div:last-child { border-bottom: 0; }
.info-list span { color: var(--text-3); }
.info-list strong { text-align: right; font-weight: 650; word-break: break-all; }
.ext-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.ext-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface-2); font-size: 12px; }
.ext-item strong { flex: 1; }
.ext-item small { font-size: 10.5px; }
.ext-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.ext-item.ok .ext-dot { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.ext-item.ok small { color: var(--success); }
.ext-item.miss { border-color: rgba(239, 68, 68, .22); }
.ext-item.miss .ext-dot { background: var(--danger); }
.ext-item.miss small { color: var(--danger); }

/* 安装向导 */
.install-body, .error-body { min-height: 100vh; background: var(--bg); position: relative; overflow-x: hidden; }
.install-bg, .error-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 12% -4%, rgba(37, 99, 235, .16), transparent 60%), radial-gradient(800px 460px at 92% 4%, rgba(6, 182, 212, .12), transparent 62%); }
.install-shell { width: min(860px, calc(100% - 32px)); margin-inline: auto; padding: 44px 0 36px; }
.install-head { margin-bottom: 22px; }
.install-head .brand { font-size: 18px; }
.install-head > p { color: var(--text-3); font-size: 13px; margin-top: 12px; }
.install-card { border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.install-section { padding: 28px 30px; border-bottom: 1px solid var(--border); }
.install-section:last-child { border-bottom: 0; }
.install-section-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.install-section-head .badge { margin-left: auto; }
.step-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-family: var(--mono); font-size: 11.5px; font-weight: 800; flex: 0 0 auto; }
.install-section-head h2 { font-size: 16.5px; }
.install-section-head p { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface-2); }
.check-item strong { display: block; font-size: 12.5px; }
.check-item small { color: var(--text-3); font-size: 10.5px; display: block; }
.check-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; }
.check-icon svg { width: 14px; height: 14px; }
.check-item.ok .check-icon { background: var(--success-soft); color: var(--success); }
.check-item.warn .check-icon { background: var(--warning-soft); color: var(--warning); }
.check-item.fail { border-color: rgba(239, 68, 68, .3); }
.check-item.fail .check-icon { background: var(--danger-soft); color: var(--danger); }
.install-section .form-row { margin-bottom: 14px; }
.install-section .form-divider { margin: 20px 0 14px; }
.install-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-3); font-size: 11.5px; padding: 20px 4px 0; }

/* 错误页 */
.error-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 10px; }
.error-code { font-size: clamp(84px, 16vw, 150px); font-weight: 850; line-height: .9; letter-spacing: -.06em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.error-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-top: -6px; }
.error-icon svg { width: 22px; height: 22px; }
.error-shell h1 { font-size: 26px; margin-top: 6px; }
.error-shell p { color: var(--text-2); font-size: 13.5px; max-width: 460px; line-height: 1.8; }
.error-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.error-brand { color: var(--text-3); font-size: 11px; margin-top: 26px; }

/* 工具类 */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.hidden, [hidden] { display: none !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.fw-700 { font-weight: 700; }
.full-span { grid-column: 1 / -1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 响应式 */
@media (max-width: 1120px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .masonry { columns: 3; }
    .hero { gap: 36px; }
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col:last-child { display: none; }
    .admin-dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 38px; }
    .hero-desc { max-width: 100%; }
    .hero-copy h1 { max-width: 640px; }
    .share-page { grid-template-columns: 1fr; }
    .share-side-note { order: 2; display: grid; grid-template-columns: repeat(2, 1fr); }
    .user-shell { grid-template-columns: 1fr; }
    .user-sidebar { position: static; }
    .side-nav { flex-direction: row; overflow-x: auto; }
    .side-link { white-space: nowrap; }
    .side-link-admin { border-top: 0; border-left: 1px dashed var(--border); margin: 0 0 0 4px; padding: 10px 12px; border-radius: 9px; }
    .sidebar-storage, .sidebar-tip { display: none; }
    .folder-layout { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .file-detail { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-toc { position: static; flex-direction: row; overflow-x: auto; }
    .docs-toc a { white-space: nowrap; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
    .admin-sidebar.open { transform: none; }
    .admin-main { margin-left: 0; }
    .admin-menu-btn { display: inline-flex; }
    .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-two-col { grid-template-columns: 1fr; }
    .admin-two-col.narrow { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; }
}

@media (max-width: 780px) {
    .container { width: calc(100% - 28px); }
    .header-inner { width: calc(100% - 24px); gap: 10px; }
    .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 10px 14px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .nav-link { padding: 11px 13px; }
    .mobile-menu-btn { display: inline-flex; }
    .brand-text { font-size: 14.5px; }
    .user-chip-name { display: none; }
    .section { padding-top: 44px; }
    .section-head { align-items: flex-start; }
    .steps-band { grid-template-columns: 1fr; padding: 26px; }
    .steps { grid-template-columns: 1fr; }
    .cta-band { padding: 26px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; padding: 36px 0 28px; width: calc(100% - 28px); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { width: calc(100% - 28px); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .file-list-grid { grid-template-columns: 1fr; }
    .masonry { columns: 2; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .folder-grid { grid-template-columns: 1fr; }
    .form-row.two, .form-row.three { grid-template-columns: 1fr; }
    .share-options { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .install-section { padding: 22px 18px; }
    .admin-content { padding: 18px 14px 40px; }
    .admin-topbar { padding: 0 14px; }
    .admin-topbar-right .btn-soft { display: none; }
    .page-title-row h1 { font-size: 23px; }
    .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card strong { font-size: 19px; }
    .stat-icon { width: 38px; height: 38px; border-radius: 11px; }
    .stat-icon svg { width: 18px; height: 18px; }
    .site-key-grid { grid-template-columns: 1fr; }
    .switch-grid { grid-template-columns: 1fr; }
    .settings-tabs { padding: 4px; }
    .settings-tab { padding: 8px 11px; }
    .share-meta-grid { grid-template-columns: 1fr; }
    .share-shell { padding-top: 22px; }
    .share-card { padding: 18px; }
    .auth-panel { padding: 30px 20px; }
    .toast-root { bottom: 18px; }
}

@media (max-width: 520px) {
    .hero-copy h1 { font-size: 34px; }
    .hero-stats { gap: 22px; }
    .hero-actions .btn { flex: 1; }
    .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .file-card-actions .icon-btn { width: 27px; height: 27px; }
    .stat-grid.four { grid-template-columns: 1fr 1fr; }
    .share-side-note { grid-template-columns: 1fr; }
    .dropzone { min-height: 200px; }
    .modal { padding: 10px; }
    .modal-body { padding: 14px 16px 18px; }
    .modal-head { padding: 16px 16px 0; }
    .docs-card { padding: 18px; }
    .admin-topbar-right { gap: 5px; }
    .admin-topbar-right .btn { padding: 0 9px; }
    .admin-page-head h1 { font-size: 22px; }
}

/* 分享页顶部 & 弹窗补充 */
.share-top { width: min(1040px, calc(100% - 32px)); margin-inline: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.share-top-right { display: flex; align-items: center; gap: 8px; }
.share-main { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }

.modal-share { width: min(560px, 100%); }
.share-file-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.share-file-preview .file-type-icon { width: 42px; height: 47px; }
.share-file-preview .share-file-meta { display: flex; flex-direction: column; gap: 2px; }
.share-file-preview strong { font-size: 13px; word-break: break-all; }
.share-file-preview span { color: var(--text-3); font-size: 11.5px; }

.radio-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card span { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 11.5px; font-weight: 650; transition: .2s; }
.radio-card input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.pwd-panel { display: flex; flex-direction: column; gap: 8px; padding: 13px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.pwd-panel .switch-row.compact { padding: 4px 0 0; }

.result-hero { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: var(--radius); background: var(--success-soft); border: 1px solid rgba(16, 185, 129, .22); }
.result-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--success-soft); color: var(--success); flex: 0 0 auto; }
.result-check svg { width: 21px; height: 21px; }
.result-hero h4 { font-size: 14.5px; }
.result-hero p { font-size: 11.5px; color: var(--text-3); }
.result-box { display: flex; flex-direction: column; gap: 5px; }
.result-box label { font-size: 11px; font-weight: 700; color: var(--text-3); }
.result-box .hint { margin-top: 2px; }
.pwd-display { font-family: var(--mono); letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.share-result[hidden] { display: none !important; }

[data-theme="dark"] .install-bg, [data-theme="dark"] .error-bg {
    background: radial-gradient(900px 500px at 12% -4%, rgba(37, 99, 235, .24), transparent 60%), radial-gradient(800px 460px at 92% 4%, rgba(6, 182, 212, .16), transparent 62%);
}

@media (max-width: 780px) {
    .share-top, .share-main { width: calc(100% - 28px); }
    .share-top { height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 加载指示 */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin .7s linear infinite;
    margin-right: 5px;
    vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
