/* ===== Reset & Base ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #f0e8f2;
  --bg-card: #ffffffee;
  --bg-sidebar: #2d2240;
  --bg-sidebar-hover: #3d3250;
  --accent: #9b6dff;
  --accent-light: #c4a6ff;
  --accent-dark: #6b3fd4;
  --pink: #e85d8a;
  --pink-light: #f5a0c0;
  --text: #2d2240;
  --text-secondary: #7a6d8a;
  --text-light: #b0a4c0;
  --text-sidebar: #d4c8f0;
  --border: #e0d4e8;
  --hover-row: #f5f0fa;
  --shadow: 0 2px 12px rgba(80,40,120,.12);
  --radius: 28px;
}
html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg) url('/img/bg-home.jpg') center/cover fixed no-repeat;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
/* 壁纸可读性遮罩：浅色半透明，保证深色文字可读 + 壁纸透出 */
body::after{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
  background:rgba(245,240,250,.18);
}
/* 流光点缀叠加 */
body::before{content:'';position:fixed;inset:-50%;width:200%;height:200%;
  background:linear-gradient(45deg,#8b5cf6 0%,#a855f7 25%,#ec4899 50%,#60a5fa 75%,#8b5cf6 100%);
  background-size:400% 400%;pointer-events:none;z-index:0;animation:grad2 24s ease infinite;
  opacity:.16;mix-blend-mode:soft-light}
@keyframes grad2{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}100%{transform:rotate(360deg) scale(1)}}
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
input, select { font-family: inherit; }

/* ===== Layout ===== */
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ===== Sidebar ===== */
.sidebar {
  width: 240px; min-width: 240px;
  color: var(--text-sidebar);
  display: flex; flex-direction: column;
  position: sticky; top: 0; left: 0;
  height: 100vh; flex-shrink: 0;
  z-index: 10; overflow-y: auto;
  background-image: linear-gradient(160deg, rgba(58,40,86,.88) 0%, rgba(45,34,64,.82) 40%, rgba(30,21,48,.88) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.logo {
  padding: 28px 24px 24px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 17px; font-weight: 700; color: #fff; }
.logo-sub { font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,.4); margin-top: 2px; }

.side-nav { padding: 16px 12px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 14px;
  color: var(--text-sidebar); font-size: 14px;
  transition: all .2s; margin-bottom: 4px;
  cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover, .nav-item.active { background: var(--bg-sidebar-hover); color: #fff; }
.nav-item.active { background: linear-gradient(135deg, rgba(155,109,255,.3), rgba(232,93,138,.2)); }

.side-stats {
  padding: 16px 24px;
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 18px; font-weight: 700; color: var(--accent-light); }
.stat-label { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

.side-footer { padding: 16px 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot-text { padding: 10px 16px; font-size: 12px; color: rgba(255,255,255,.35); text-align: center; line-height: 1.6; }

/* ===== Main Content ===== */
.main {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh; position: relative;
  overflow-x: hidden;
}
.main::before {
  content: '';
  position: fixed; top: 0; right: 0;
  width: 520px; height: 100vh;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(200,160,240,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 60%, rgba(232,93,138,.08) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

.header {
  padding: 24px 36px 16px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 2px; display: block; }

.search-box {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 18px; width: 280px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155,109,255,.12); }
.search-box svg { width: 16px; height: 16px; stroke: var(--text-secondary); fill: none; stroke-width: 2; flex-shrink: 0; margin-right: 8px; }
.search-box input { border: none; outline: none; background: none; font-size: 13px; color: var(--text); width: 100%; }
.search-box input::placeholder { color: var(--text-light); }

.breadcrumb {
  padding: 0 36px 12px;
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--accent); transition: color .2s; cursor: pointer; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: var(--text-light); }

.notice {
  margin: 0 36px 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(155,109,255,.06), rgba(232,93,138,.04));
  border: 1px solid rgba(155,109,255,.15);
  border-radius: var(--radius);
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
  position: relative; z-index: 1; display: none;
}
.notice.visible { display: block; }

.file-section { flex: 1; padding: 0 36px 24px; position: relative; z-index: 1; }
.file-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.file-count { font-size: 13px; color: var(--text-secondary); }

.file-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.file-table thead {
  background: linear-gradient(135deg, rgba(155,109,255,.05), rgba(232,93,138,.03));
  border-bottom: 1px solid var(--border);
}
.file-table th {
  padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); text-align: left;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.col-icon { width: 48px; }
.col-size { width: 100px; text-align: right !important; }
.col-date { width: 180px; }
.col-action { width: 90px; }

.file-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid rgba(0,0,0,.04); vertical-align: middle; }
.file-table tbody tr { transition: background .15s; }
.file-table tbody tr:hover { background: var(--hover-row); }
.file-table tbody tr:last-child td { border-bottom: none; }

.file-icon {
  width: 36px; height: 36px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.file-icon.folder { background: linear-gradient(135deg, var(--accent), #7c4dff); }
.file-icon.zip { background: linear-gradient(135deg, #f093fb, #f5576c); }
.file-icon.exe { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.file-icon.video { background: linear-gradient(135deg, #fa709a, #fee140); color:#8a5a00; }
.file-icon.audio { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.file-icon.image { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: #c44; }
.file-icon.pdf { background: linear-gradient(135deg, #ff5858, #f09819); }
.file-icon.word { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.file-icon.excel { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #2a7a2a; }
.file-icon.ppt { background: linear-gradient(135deg, #fa709a, #fee140); color:#8a5a00; }
.file-icon.code { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); color: #336; }
.file-icon.apk { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #2a7a2a; }
.file-icon.iso { background: linear-gradient(135deg, #f093fb, #f5576c); }
.file-icon.file { background: linear-gradient(135deg, #d4c0f0, #e8d8f8); color: var(--accent); }

.file-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.file-name { display: flex; flex-direction: column; gap: 2px; }
.file-name-main { font-weight: 500; color: var(--text); cursor: pointer; transition: color .2s; }
.file-name-main:hover { color: var(--accent); }
.file-name-sub { font-size: 11px; color: var(--text-light); }

.file-size { text-align: right; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.file-date { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.btn-dl {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 500;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; transition: all .2s; white-space: nowrap;
}
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(155,109,255,.3); }
.btn-dl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--text-light); }
.empty-icon svg { width: 48px; height: 48px; stroke: var(--text-light); fill: none; stroke-width: 1.5; margin-bottom: 12px; }

.footer { padding: 24px 36px; text-align: center; position: relative; z-index: 1; }
.footer-info { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.footer-donate {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-block;
}
.donate-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; display: block; }
.donate-qrs { display: flex; gap: 24px; justify-content: center; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-item img {
  width: 118px; max-height: 168px; object-fit: contain;
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(80,40,120,.10);
  background: #fff; padding: 6px;
}
.qr-item span { font-size: 11px; color: var(--text-secondary); }

.modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,15,50,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s;
}
.modal {
  background: #fff; border-radius: 16px;
  padding: 36px 32px 28px;
  width: 380px; max-width: 90vw;
  text-align: center; position: relative;
  box-shadow: 0 20px 60px rgba(80,40,120,.3);
  animation: slideUp .25s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; font-size: 24px; color: var(--text-light);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: #f5f0fa; color: var(--text); }
.modal-icon svg { width: 48px; height: 48px; stroke: var(--accent); fill: none; stroke-width: 1.5; margin-bottom: 12px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-file { font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 6px; word-break: break-all; }
.modal-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.modal-btns { display: flex; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 16px;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-primary:hover { box-shadow: 0 4px 16px rgba(155,109,255,.4); transform: translateY(-1px); }
.btn-ghost { background: #f5f0fa; color: var(--text-secondary); }
.btn-ghost:hover { background: #ebe4f0; }

.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-sidebar); color: #fff;
  padding: 12px 24px; border-radius: 16px;
  font-size: 13px; z-index: 2000;
  transition: transform .3s ease; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .sidebar { width: 64px; min-width: 64px; }
  .logo-text, .nav-item span, .stat-label, .side-foot-text, .side-stats { display: none; }
  .logo { padding: 20px 10px; justify-content: center; }
  .nav-item { justify-content: center; padding: 11px; }
  .side-footer { padding: 12px 10px; }
  main { margin-left: 0; }
  .sidebar { width: 64px; min-width: 64px; height: 100vh; position: sticky; top: 0; }
  .header, .breadcrumb, .file-section, .footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .sidebar { display: none; }
  main { margin-left: 0; }
  .search-box { width: 160px; }
  .col-date, .col-action { display: none; }
}
/* ===== 页面布局补充 ===== */
.page-header { padding: 28px 36px 8px; position: relative; z-index: 1; }
.page-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-info { flex: 1; min-width: 200px; }
.content { padding: 0 36px 24px; flex: 1; position: relative; z-index: 1; }
.content-top { display: flex; justify-content: space-between; align-items: center; padding: 0 0 12px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-size: 14px; color: var(--text-light); }
.file-table-wrap { margin-top: 0; }

.back-home:hover { color: #fff !important; }




/* ===== 毛玻璃 · 流光效果 ===== */
/* 1. 背景彩色光斑 + 缓慢色相流动（流光） */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  animation: auroraShift 30s ease-in-out infinite alternate;
  background:
    radial-gradient(ellipse at 10% 12%, rgba(155,109,255,.42) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 8%,  rgba(232,93,138,.34) 0%, transparent 50%),
    radial-gradient(ellipse at 93% 62%, rgba(79,172,254,.30) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(232,93,138,.24) 0%, transparent 52%),
    radial-gradient(ellipse at 55% 40%, rgba(216,170,255,.38) 0%, transparent 60%),
    radial-gradient(ellipse at 72% 88%, rgba(120,200,255,.28) 0%, transparent 50%);
  pointer-events: none;
}
@keyframes auroraShift {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(10deg); }
}
.main { position: relative; z-index: 1; }
.app { position: relative; }

/* 2. 侧边栏：厚毛玻璃 */
.sidebar {
  background: linear-gradient(165deg, rgba(58,40,86,.50) 0%, rgba(45,34,64,.44) 40%, rgba(30,21,48,.50) 100%);
  -webkit-backdrop-filter: blur(34px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(34px) saturate(190%) brightness(1.06);
  border-right: 1px solid rgba(255,255,255,.14);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.12), inset -6px 0 24px rgba(155,109,255,.10);
}

/* 3. 文件列表面板：通透折射毛玻璃 */
.file-table-wrap {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,.34) 100%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(200%) brightness(1.06);
  backdrop-filter: blur(26px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -2px 8px rgba(255,255,255,.18),
    inset 0 0 28px rgba(155,109,255,.08),
    0 14px 44px rgba(80,40,120,.15);
  transition: transform .3s ease, box-shadow .3s ease;
}
.file-table-wrap:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.32),
    inset 0 1px 0 rgba(255,255,255,.9),
    0 20px 56px rgba(80,40,120,.20);
}
/* 顶部折射亮线 */
.file-table-wrap::before {
  content: '';
  position: absolute; top: 0; left: 3%; right: 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
  opacity: .9; pointer-events: none; z-index: 2;
}
/* 斜向流光（缓慢滑过玻璃表面） */
.file-table-wrap::after {
  content: '';
  position: absolute; top: -70%; right: -18%; width: 62%; height: 240%;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.20) 42%, rgba(255,255,255,.05) 55%, transparent 78%);
  transform: rotate(7deg);
  pointer-events: none; z-index: 1;
  animation: sheetShift 10s ease-in-out infinite;
}
@keyframes sheetShift {
  0%, 100% { opacity: .5; transform: rotate(7deg) translateX(0); }
  50%      { opacity: .95; transform: rotate(7deg) translateX(-16px); }
}

/* 4. 表头：半透明磨砂 */
.file-table thead {
  background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.16));
  -webkit-backdrop-filter: blur(12px) saturate(190%);
  backdrop-filter: blur(12px) saturate(190%);
  border-bottom: 1px solid rgba(255,255,255,.60);
}
.file-table th { text-shadow: 0 1px 0 rgba(255,255,255,.6); }

/* 5. 行悬停：光泽扫过（流光） */
.file-table tbody tr { position: relative; transition: background .2s; }
.file-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(155,109,255,.12), rgba(232,93,138,.07) 55%, rgba(155,109,255,.12));
}
.file-table tbody tr:hover td { box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
@keyframes glassShine {
  0%   { transform: translateX(-90%); }
  100% { transform: translateX(180%); }
}
.file-table tbody tr:hover::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: glassShine .6s ease forwards;
  pointer-events: none; z-index: 1;
}
.file-table td { border-bottom: 1px solid rgba(255,255,255,.36); }

/* 6. 图标：玻璃质感 */
.file-icon {
  position: relative; overflow: hidden; border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 10px rgba(255,255,255,.2), 0 4px 14px rgba(80,40,120,.18);
}
.file-icon::after {
  content: '';
  position: absolute; top: 1.5px; left: 3px; right: 3px; height: 46%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.15) 62%, rgba(255,255,255,0));
  pointer-events: none;
}
.file-icon.folder { background: linear-gradient(135deg, rgba(155,109,255,.9), rgba(124,77,255,.84)); }
.file-icon.zip  { background: linear-gradient(135deg, rgba(240,147,251,.9), rgba(245,87,108,.84)); }
.file-icon.exe  { background: linear-gradient(135deg, rgba(79,172,254,.9), rgba(0,242,254,.84)); }
.file-icon.video{ background: linear-gradient(135deg, rgba(250,113,154,.9), rgba(254,225,64,.84)); color:#8a5a00; }
.file-icon.audio{ background: linear-gradient(135deg, rgba(161,140,209,.9), rgba(251,194,235,.84)); }
.file-icon.image{ background: linear-gradient(135deg, rgba(255,236,210,.9), rgba(252,182,159,.84)); color:#c44; }
.file-icon.pdf  { background: linear-gradient(135deg, rgba(255,88,88,.9), rgba(240,152,25,.84)); }
.file-icon.word { background: linear-gradient(135deg, rgba(79,172,254,.9), rgba(0,242,254,.84)); }
.file-icon.excel{ background: linear-gradient(135deg, rgba(67,233,123,.9), rgba(56,249,215,.84)); color:#2a7a2a; }
.file-icon.ppt  { background: linear-gradient(135deg, rgba(250,113,154,.9), rgba(254,225,64,.84)); color:#8a5a00; }
.file-icon.code { background: linear-gradient(135deg, rgba(161,196,253,.9), rgba(194,233,251,.84)); color:#336; }
.file-icon.apk  { background: linear-gradient(135deg, rgba(67,233,123,.9), rgba(56,249,215,.84)); color:#2a7a2a; }
.file-icon.iso  { background: linear-gradient(135deg, rgba(240,147,251,.9), rgba(245,87,108,.84)); }
.file-icon.file { background: linear-gradient(135deg, rgba(212,192,240,.9), rgba(232,216,248,.84)); color: var(--accent); }
.file-icon svg { position: relative; z-index: 1; }

/* 7. 搜索框：通透毛玻璃 */
.search-box {
  background: linear-gradient(165deg, rgba(255,255,255,.58), rgba(255,255,255,.28));
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.06);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 18px rgba(155,109,255,.06), 0 4px 16px rgba(80,40,120,.09);
}

/* 8. 公告 + 打赏卡片 */
.notice {
  background: linear-gradient(165deg, rgba(255,255,255,.52), rgba(255,255,255,.24));
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  backdrop-filter: blur(22px) saturate(200%);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.footer-donate {
  background: linear-gradient(165deg, rgba(255,255,255,.55), rgba(255,255,255,.28));
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.06);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 0 24px rgba(155,109,255,.06), 0 14px 44px rgba(80,40,120,.13);
}

/* 9. 弹窗毛玻璃 */
.modal-mask { background: rgba(30,15,50,.40); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal {
  background: linear-gradient(170deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(32px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 24px 70px rgba(80,40,120,.28);
}

/* 10. 提示条毛玻璃 */
.toast {
  background: rgba(45,34,64,.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px rgba(30,15,50,.35);
}

/* 11. 下载按钮微光 */
.btn-dl { box-shadow: 0 3px 10px rgba(155,109,255,.28); }
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(155,109,255,.4); }


/* ===== 在线音乐播放器（Material 3） ===== */
.music-panel{
  margin: 4px 12px 12px; padding: 16px 14px 12px;
  border-radius: 20px; position: relative;
  background: rgba(30,22,48,.78);
  -webkit-backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  backdrop-filter: blur(22px) saturate(170%) brightness(1.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.16), 0 10px 28px rgba(0,0,0,.3);
  display: none;
}
.music-panel.open{ display: block; animation: musicIn .28s ease both; }
@keyframes musicIn{ from{ opacity:0; transform: translateY(-8px);} to{ opacity:1; transform: translateY(0);} }
.music-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.music-title{ font-size:14px; font-weight:700; color:#fff; letter-spacing:1px; display:flex; align-items:center; gap:7px; }
.music-title::before{ content:''; width:3px; height:14px; border-radius:99px;
  background: linear-gradient(180deg,#a78bfa,#ec4899); }
.music-close{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#d4c8f0;
  width:26px; height:26px; border-radius:50%; font-size:15px; line-height:1; cursor:pointer; transition:all .2s; }
.music-close:hover{ background:rgba(236,73,153,.25); color:#fff; }
.music-now{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.music-cover{ width:52px; height:52px; border-radius:16px; flex-shrink:0;
  background: linear-gradient(135deg,#8b5cf6,#ec4899);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:24px; box-shadow: 0 4px 14px rgba(139,92,246,.35);
  animation: coverSpin 6s linear infinite paused; }
.music-panel.playing .music-cover{ animation-play-state: running; }
@keyframes coverSpin{ to{ transform: rotate(360deg); } }
.music-info{ min-width:0; flex:1; }
.music-name{ font-size:14.5px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.music-artist{ font-size:12px; color:rgba(255,255,255,.55); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.music-progress{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.music-time{ font-size:11px; color:rgba(255,255,255,.55); font-family:Consolas,monospace; min-width:36px; text-align:center; }
.music-bar{ flex:1; height:5px; border-radius:99px; background:rgba(255,255,255,.14); cursor:pointer; position:relative; }
.music-bar-fill{ height:100%; border-radius:99px; width:0%;
  background: linear-gradient(90deg,#a78bfa,#ec4899); position:relative; }
.music-bar-fill::after{ content:''; position:absolute; right:-4px; top:50%; transform:translateY(-50%);
  width:11px; height:11px; border-radius:50%; background:#fff; box-shadow:0 0 6px rgba(236,73,153,.6); }
.music-ctrl{ display:flex; justify-content:center; align-items:center; gap:14px; margin-bottom:12px; }
.music-ctrl button{ cursor:pointer; transition:all .2s; }
.music-prev,.music-next{ width:34px; height:34px; border-radius:50%; font-size:15px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); color:#d4c8f0; }
.music-prev:hover,.music-next:hover{ background:rgba(167,139,250,.3); color:#fff; }
.music-play{ width:46px; height:46px; border-radius:50%; font-size:18px; color:#fff;
  background: linear-gradient(135deg,#8b5cf6,#ec4899); border:none;
  box-shadow: 0 6px 18px rgba(139,92,246,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.music-play:hover{ transform: scale(1.06); filter: brightness(1.1); }
.music-list{ max-height:132px; overflow-y:auto; display:flex; flex-direction:column; gap:4px; }
.music-list::-webkit-scrollbar{ width:4px; }
.music-list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:99px; }
.music-track{ display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:12px;
  font-size:12.5px; color:rgba(255,255,255,.75); cursor:pointer; transition:all .18s; }
.music-track:hover{ background:rgba(255,255,255,.08); }
.music-track.active{ background:rgba(167,139,250,.18); color:#fff; }
.music-track .mt-name{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.music-track .mt-dur{ font-size:11px; color:rgba(255,255,255,.4); font-family:Consolas,monospace; }
.music-list-empty{ font-size:12px; color:rgba(255,255,255,.5); text-align:center; padding:12px 4px; line-height:1.7; }
#music-nav.active{ background: linear-gradient(135deg, rgba(155,109,255,.3), rgba(232,93,138,.2)); color:#fff; }

.music-ctrl button svg{ width:18px; height:18px; fill:currentColor; display:block; margin:0 auto; }
.music-play svg{ width:22px; height:22px; }

/* ===== 动态背景层 + 毛玻璃模糊开关（后台可切换） ===== */
#pg-bg{position:fixed;inset:-6%;z-index:0;pointer-events:none;opacity:0;transition:opacity .7s ease;
  background-position:center;background-size:cover;background-repeat:no-repeat}
#pg-bg.pg-on{opacity:1}
body.pg-blur #pg-bg{-webkit-filter:blur(22px) saturate(1.05) brightness(.82);filter:blur(22px) saturate(1.05) brightness(.82);transform:scale(1.05)}
body.pg-sharp #pg-bg{-webkit-filter:none;filter:none;transform:none}
/* 选了自定义背景时不再加载默认背景图 */
body.pg-wall{background-image:none!important}
/* 关闭模糊：取消所有 UI 的毛玻璃，界面浮于清晰背景之上 */
body.pg-sharp *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
