:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0d111b;
  --panel: #111722;
  --panel-2: #151c29;
  --panel-glass: rgba(15, 20, 31, .82);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f4f6fb;
  --muted: #8992a5;
  --muted-2: #697386;
  --accent: #8065ff;
  --accent-2: #a58cff;
  --accent-glow: rgba(128, 101, 255, .28);
  --cyan: #34c9d6;
  --amber: #e9ad4c;
  --ok: #47c998;
  --err: #f06f7c;
  --shadow: 0 24px 60px rgba(0, 0, 0, .3);
  --radius: 18px;
  --max: 1420px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5fa;
  --bg-soft: #e9edf5;
  --panel: #fff;
  --panel-2: #f5f7fb;
  --panel-glass: rgba(255, 255, 255, .86);
  --line: rgba(20, 27, 44, .09);
  --line-strong: rgba(20, 27, 44, .16);
  --text: #171b27;
  --muted: #687187;
  --muted-2: #8b93a5;
  --accent-glow: rgba(128, 101, 255, .17);
  --shadow: 0 24px 60px rgba(42, 48, 71, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::selection { background: var(--accent); color: #fff; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(128, 101, 255, .26); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--panel-2); color: var(--text); font-weight: 600; cursor: pointer; transition: .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { border-color: var(--accent); background: linear-gradient(135deg, var(--accent), #6849eb); color: #fff; box-shadow: 0 10px 28px var(--accent-glow); }
.btn.small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.btn.danger { color: var(--err); border-color: rgba(240, 111, 124, .28); background: rgba(240, 111, 124, .08); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; transition: .2s ease; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-2); }

.logo-lockup, .mobile-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 16px; font-weight: 500; letter-spacing: .08em; }
.logo-lockup b, .mobile-brand b { color: var(--accent-2); }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #9c84ff, #6747e8); color: #fff; box-shadow: 0 10px 25px var(--accent-glow); }
.logo-mark svg { width: 19px; height: 19px; fill: currentColor; stroke: none; margin-left: 2px; }

/* 登录 */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(440px, .92fr); background: var(--bg); }
.auth-showcase { position: relative; min-height: 650px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 22% 22%, rgba(128,101,255,.18), transparent 33%), radial-gradient(circle at 82% 76%, rgba(52,201,214,.09), transparent 32%), linear-gradient(145deg, #0c1019, #080b12 68%); }
[data-theme="light"] .auth-showcase { background: radial-gradient(circle at 22% 22%, rgba(128,101,255,.19), transparent 35%), radial-gradient(circle at 82% 76%, rgba(52,201,214,.11), transparent 33%), linear-gradient(145deg, #eef0f8, #e7ebf4 68%); }
.auth-showcase::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.showcase-content { position: relative; z-index: 2; display: flex; min-height: 100%; height: 100vh; height: 100dvh; flex-direction: column; max-width: 760px; margin: auto; padding: clamp(34px, 5vw, 68px); }
.showcase-copy { margin: auto 0; max-width: 620px; padding: 60px 0 40px; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 25px; height: 1px; margin: 0 9px 3px 0; background: currentColor; }
.showcase-copy h1 { margin: 0; font-size: clamp(48px, 5.4vw, 78px); line-height: 1.13; letter-spacing: -.055em; }
.showcase-copy h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, #a68eff, #6ed8df); background-clip: text; -webkit-background-clip: text; }
.showcase-copy > p:last-child { max-width: 500px; margin: 25px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.showcase-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.showcase-features > div { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); backdrop-filter: blur(10px); }
.showcase-features svg { flex: 0 0 auto; color: var(--accent-2); }
.showcase-features span { min-width: 0; }
.showcase-features b, .showcase-features small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showcase-features b { font-size: 12px; }
.showcase-features small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.showcase-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .7; }
.orb-one { top: 20%; right: -120px; width: 310px; height: 310px; border: 1px solid rgba(128,101,255,.14); box-shadow: inset 0 0 70px rgba(128,101,255,.06); }
.orb-two { bottom: -80px; left: 24%; width: 190px; height: 190px; border: 1px solid rgba(52,201,214,.12); }
.auth-panel { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 70px clamp(28px, 6vw, 90px); background: var(--bg); }
.auth-theme { position: absolute; top: 28px; right: 30px; }
.auth-card { width: min(420px, 100%); }
.mobile-brand { display: none; margin-bottom: 35px; }
.auth-heading { margin-bottom: 31px; }
.auth-kicker { display: block; margin-bottom: 11px; color: var(--accent-2); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.auth-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.auth-heading p { margin: 8px 0 0; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 25px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.auth-tab { height: 39px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: .2s ease; }
.auth-tab.active { background: var(--panel); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.auth-form input, .panel-body textarea { width: 100%; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text); outline: none; transition: .2s ease; }
.auth-form input { height: 47px; padding: 0 14px; border-radius: 11px; }
.auth-form input::placeholder, .panel-body textarea::placeholder { color: var(--muted-2); }
.auth-form input:focus, .panel-body textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(128,101,255,.11); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 39px; height: 39px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle svg { width: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { min-height: 18px; margin: -4px 0 0; color: var(--err); font-size: 12px; }
.form-msg.ok { color: var(--ok); }
.auth-submit { justify-content: space-between; width: 100%; height: 49px; margin-top: 1px; padding: 0 17px 0 21px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 25px 0 0; color: var(--muted-2); font-size: 10px; }
.privacy-note svg { width: 13px; color: var(--ok); }

/* 主界面 */
.app-shell { min-height: 100vh; background: radial-gradient(circle at 90% 7%, rgba(128,101,255,.07), transparent 26%), var(--bg); }
.topbar { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 10px max(22px, calc((100vw - var(--max)) / 2 + 28px)); border-bottom: 1px solid var(--line); background: var(--panel-glass); backdrop-filter: blur(22px); }
.app-logo { justify-self: start; }
.top-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-soft); }
.nav-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: .2s ease; }
.nav-btn svg { width: 16px; }
.nav-btn:hover { color: var(--text); }
.nav-btn.active { background: var(--panel); color: var(--text); box-shadow: 0 5px 14px rgba(0,0,0,.13); }
.nav-btn.active svg { color: var(--accent-2); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, rgba(128,101,255,.26), rgba(52,201,214,.17)); color: var(--accent-2); font-size: 13px; font-weight: 700; }
.user-copy { display: flex; flex-direction: column; min-width: 70px; line-height: 1.2; }
.user-copy b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.user-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.logout { width: 36px; height: 36px; }
.content { width: min(var(--max), 100%); margin: 0 auto; padding: 38px 28px 80px; }
.welcome-strip { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; padding: 15px 0 34px; border-bottom: 1px solid var(--line); }
.welcome-strip h1 { margin: 0; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.04em; }
.welcome-strip > div:first-child > p:last-child { margin: 8px 0 0; color: var(--muted); }
.library-stats { display: grid; grid-template-columns: repeat(3, minmax(135px, 1fr)); gap: 10px; }
.stat-card { display: flex; align-items: center; gap: 12px; min-width: 145px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-align: left; cursor: pointer; transition: .2s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; }
.stat-icon.violet { color: var(--accent-2); background: rgba(128,101,255,.13); }
.stat-icon.cyan { color: var(--cyan); background: rgba(52,201,214,.12); }
.stat-icon.amber { color: var(--amber); background: rgba(233,173,76,.12); }
.stat-icon svg { width: 17px; }
.stat-card > span:last-child { display: flex; align-items: baseline; gap: 5px; }
.stat-card b { font-size: 20px; }
.stat-card small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.view { animation: view-in .32s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-kicker { margin-bottom: 5px; color: var(--accent-2); font-size: 9px; }
.view-head h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.view-head > div:first-child > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.search-row { position: relative; width: min(290px, 100%); }
.search-row > svg { position: absolute; top: 50%; left: 13px; width: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-row input { width: 100%; height: 42px; padding: 0 38px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); outline: none; transition: .2s ease; -webkit-appearance: none; }
.search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(128,101,255,.1); }
.search-row input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; top: 5px; right: 6px; width: 31px; height: 31px; border: 0; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; pointer-events: none; }
.search-row input:not(:placeholder-shown) + .search-clear { opacity: 1; pointer-events: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.media-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.media-card:hover { transform: translateY(-5px); border-color: rgba(128,101,255,.4); box-shadow: 0 20px 40px rgba(0,0,0,.24); }
.media-poster { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9.4; overflow: hidden; background: linear-gradient(145deg, #25233c, #111b2b); }
.media-poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 65% 35%, rgba(128,101,255,.45), transparent 34%), linear-gradient(120deg, transparent 44%, rgba(52,201,214,.09)); }
.media-poster::after { content: ""; position: absolute; inset: auto -10% -55% 20%; height: 100%; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; transform: rotate(-14deg); }
.poster-letter { position: relative; z-index: 1; color: rgba(255,255,255,.12); font-size: 48px; font-weight: 700; text-transform: uppercase; }
.play-badge { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; background: rgba(9,11,18,.58); color: #fff; opacity: 0; transform: scale(.84); backdrop-filter: blur(9px); transition: .22s ease; }
.play-badge svg { width: 18px; fill: currentColor; stroke: none; margin-left: 2px; }
.media-card:hover .play-badge, .media-card:focus-visible .play-badge { opacity: 1; transform: scale(1); }
.media-card-body { padding: 14px 15px 15px; }
.media-card h3 { margin: 0; overflow: hidden; color: var(--text); font-size: 13px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.media-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.file-type { padding: 2px 6px; border-radius: 5px; background: rgba(128,101,255,.1); color: var(--accent-2); font-weight: 700; text-transform: uppercase; }
.skeleton-card { height: 225px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(100deg, var(--panel) 25%, var(--panel-2) 38%, var(--panel) 52%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.photo-grid { columns: 5 190px; column-gap: 14px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.album-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); color: var(--text); text-align: left; cursor: pointer; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.album-card:hover { transform: translateY(-4px); border-color: rgba(128,101,255,.42); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.album-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #25233c, #111b2b); }
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.album-card:hover .album-cover img { transform: scale(1.035); }
.album-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,6,12,.62), transparent 55%); pointer-events: none; }
.album-count { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(5,7,12,.7); color: #fff; font-size: 9px; font-weight: 700; backdrop-filter: blur(8px); }
.album-count svg { width: 12px; }
.album-info { display: block; min-width: 0; padding: 13px 14px 15px; }
.album-info b, .album-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-info b { font-size: 13px; }
.album-info small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.album-toolbar { display: flex; align-items: center; gap: 13px; margin: -5px 0 20px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.album-back { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 6px 9px; border: 0; border-radius: 8px; background: rgba(128,101,255,.1); color: var(--accent-2); font-size: 11px; font-weight: 700; cursor: pointer; }
.album-back svg { width: 14px; }
.album-divider { width: 1px; height: 28px; flex: 0 0 auto; background: var(--line); }
.album-toolbar > div { min-width: 0; }
.album-toolbar b, .album-toolbar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-toolbar b { font-size: 12px; }
.album-toolbar small { color: var(--muted); font-size: 9px; }
.photo-item { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); cursor: pointer; }
.photo-item:nth-child(4n+1) { aspect-ratio: 1 / 1.15; }
.photo-item:nth-child(4n+2) { aspect-ratio: 1.25 / 1; }
.photo-item:nth-child(4n+3) { aspect-ratio: 1 / 1; }
.photo-item:nth-child(4n) { aspect-ratio: 1 / 1.35; }
.photo-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.photo-item::after { content: "查看"; position: absolute; inset: auto 10px 10px auto; padding: 5px 9px; border-radius: 7px; background: rgba(7,9,14,.72); color: #fff; font-size: 9px; opacity: 0; transform: translateY(4px); backdrop-filter: blur(8px); transition: .2s ease; }
.photo-item:hover img { transform: scale(1.035); filter: brightness(.82); }
.photo-item:hover::after { opacity: 1; transform: none; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 11px; background: rgba(128,101,255,.1); color: var(--accent-2); }
.panel-icon svg { width: 18px; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { display: flex; flex-direction: column; gap: 15px; padding: 20px; }
.panel-body label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.panel-body label > span { display: flex; align-items: center; gap: 7px; }
.panel-body label svg { width: 14px; color: var(--accent-2); }
.panel-body textarea { min-height: 77px; padding: 10px 12px; border-radius: 10px; resize: vertical; font: 12px/1.5 Consolas, monospace; }
.form-actions { display: flex; gap: 9px; }
.form-actions .btn { flex: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: var(--panel-2); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: rgba(128,101,255,.025); }
.software-name, .member-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.software-icon, .member-avatar { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 10px; background: rgba(128,101,255,.1); color: var(--accent-2); font-size: 11px; font-weight: 700; }
.software-name b, .member-cell b { display: block; max-width: 340px; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.software-name small, .member-cell small { color: var(--muted); font-size: 9px; }
.download-link { justify-content: center; width: 34px; height: 34px; padding: 0; }
.download-link svg { width: 15px; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; font-size: 9px; font-weight: 700; }
.status-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-tag.ok { color: var(--ok); background: rgba(71,201,152,.1); }
.status-tag.off { color: var(--err); background: rgba(240,111,124,.1); }
.status-tag.admin { color: var(--accent-2); background: rgba(128,101,255,.1); }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.admin-grid { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(530px, 1.28fr); align-items: start; gap: 18px; }
.empty-state { display: grid; place-items: center; min-height: 300px; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state.compact { border: 0; border-radius: 0; }
.empty-state > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--panel-2); color: var(--muted); }
.empty-state > span svg { width: 23px; }
.empty-state h3 { margin: 14px 0 0; font-size: 15px; }
.empty-state p { max-width: 340px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.pager-info { padding: 0 8px; color: var(--muted); font-size: 11px; }

/* 弹窗 */
.modal-overlay, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3,5,9,.86); backdrop-filter: blur(12px); animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } }
.modal-box { width: min(1040px, 100%); overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: #0d111a; color: #f4f6fb; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.modal-head p { margin: 0 0 2px; color: #a58cff; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.modal-head h2 { max-width: 700px; margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.player-tools { display: flex; align-items: center; gap: 8px; }
.player-tools .icon-btn { color: #8992a5; border-color: rgba(255,255,255,.1); }
.video-stage { display: grid; place-items: center; background: #000; }
.player-box video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 73vh; background: #000; object-fit: contain; }
.player-note { margin: 0; padding: 11px 18px; color: #8992a5; font-size: 10px; }
.lightbox { grid-template-columns: 70px minmax(0, 1fr) 70px; grid-template-rows: auto 1fr; gap: 10px; }
.lightbox-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1300px; color: #fff; }
.lightbox-bar b, .lightbox-bar span { display: block; max-width: min(70vw, 800px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-bar b { font-size: 13px; }
.lightbox-bar span { color: #8992a5; font-size: 10px; }
.lightbox img { grid-column: 2; max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 12px; box-shadow: 0 25px 80px rgba(0,0,0,.5); }
.lightbox-nav { display: grid; place-items: center; width: 48px; height: 48px; justify-self: center; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255,255,255,.12); }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 230px; max-width: 360px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel-glass); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(18px); animation: toast-in .25s ease both; }
.toast.ok svg { color: var(--ok); }
.toast.error svg { color: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .showcase-features { grid-template-columns: 1fr; max-width: 260px; }
  .showcase-features > div:nth-child(n+3) { display: none; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .top-nav { justify-self: center; }
  .nav-btn { padding: 0 11px; }
  .library-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-card { min-width: 0; }
  .stat-card small { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .auth-shell { display: block; }
  .auth-showcase { display: none; }
  .auth-panel { padding: 80px 24px 50px; background: radial-gradient(circle at 20% 15%, rgba(128,101,255,.14), transparent 35%), var(--bg); }
  .mobile-brand { display: inline-flex; }
  .topbar { grid-template-columns: 1fr auto; min-height: 64px; padding: 8px 15px; background: var(--panel); backdrop-filter: none; }
  .app-logo > span:last-child { display: none; }
  .top-nav { position: fixed; z-index: 50; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); width: auto; padding: 5px; border-color: var(--line-strong); background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.3); justify-self: stretch; }
  .nav-btn { flex-direction: column; gap: 1px; height: 48px; padding: 0 6px; font-size: 9px; }
  .nav-btn svg { width: 18px; }
  .top-actions { grid-column: 2; }
  #refreshBtn { display: none; }
  .user-copy { display: none; }
  .user-menu { margin-left: 0; padding-left: 8px; }
  .avatar { width: 34px; height: 34px; }
  .content { padding: 28px 16px 105px; }
  .welcome-strip { display: block; margin-bottom: 38px; padding-bottom: 28px; }
  .library-stats { margin-top: 24px; }
  .stat-card { justify-content: center; padding: 10px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-card b { font-size: 16px; }
  .view-head { align-items: stretch; flex-direction: column; }
  .search-row { width: 100%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-grid { columns: 3 140px; }
  .lightbox { grid-template-columns: 45px minmax(0, 1fr) 45px; padding: 14px 8px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .modal-overlay { padding: 10px; }
}

@media (max-width: 480px) {
  .auth-panel { place-items: start center; }
  .auth-heading h2 { font-size: 29px; }
  .form-grid { grid-template-columns: 1fr; }
  .library-stats { gap: 6px; }
  .stat-card { flex-direction: column; gap: 5px; min-width: 0; }
  .stat-card > span:last-child { display: block; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-card { border-radius: 14px; }
  .media-card-body { padding: 11px; }
  .media-card h3 { font-size: 11px; }
  .media-meta { gap: 5px; font-size: 9px; }
  .photo-grid { columns: 2 130px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .album-info { padding: 10px 11px 12px; }
  .album-info b { font-size: 11px; }
  .software-panel { border-right: 0; border-left: 0; border-radius: 0; margin-inline: -16px; }
  th, td { padding: 12px 13px; }
  .software-panel th:nth-child(2), .software-panel td:nth-child(2), .software-panel th:nth-child(4), .software-panel td:nth-child(4) { display: none; }
  .members-panel th:nth-child(4), .members-panel td:nth-child(4) { display: none; }
  .row-actions { flex-wrap: wrap; min-width: 110px; }
  .player-tools .btn span { display: none; }
  .toast-region { right: 12px; bottom: 86px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
}

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