* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #1a1a1a;
  overflow-x: hidden;
}

/* ===== 背景层 ===== */
.bg-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(6px);
  transition: background-image 0.6s ease, filter 0.3s ease;
  pointer-events: none;
}

/* ===== 加载动画 ===== */
.loading-screen {
  position: fixed; inset: 0; z-index: 999;
  background: #0d0d0f;
  display: flex; align-items: center; justify-content: center;
}
.loading-box { text-align: center; }
.spinner {
  width: 50px; height: 50px; margin: 0 auto 20px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: #ff6b9d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #ff6b9d; font-size: 0.9rem; }
.hidden { display: none !important; }

/* ===== 主容器 ===== */
.app {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  animation: app-enter 0.6s cubic-bezier(0.16, 1, 0.30, 1) both;
}
@keyframes app-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   iOS 26 液态玻璃容器（透明度更通透）
   ============================================ */

/* 卡片和面板：低不透明度 + 高模糊 */
.top-bar, .storage-bar, .file-panel {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.25);
}

/* 顶部栏 */
.top-bar { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.1rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.user-area { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* 存储条 */
.storage-bar { padding: 14px 20px; display: flex; gap: 20px; flex-wrap: wrap; }
.storage-item { display: flex; flex-direction: column; gap: 4px; position: relative; min-width: 80px; }
.storage-item .label { font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.storage-item .value { font-size: 0.9rem; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.storage-item::after {
  content: '';
  position: absolute; bottom: -6px; left: 0;
  height: 3px; width: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #ff6b9d, #a18cd1);
  transform: scaleX(0); transform-origin: left;
  animation: progress-grow 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ============================================
   按钮：轻量液态玻璃
   ============================================ */
.action-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  padding: 10px 16px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 0.82rem; font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-primary {
  background: rgba(255, 107, 157, 0.65);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 12px rgba(255,107,157,0.25);
}
.btn-primary:hover { background: rgba(255, 107, 157, 0.85); transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.1);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn:active { transform: scale(0.94); }

/* ============================================
   文件列表：继承面板的玻璃质感
   ============================================ */
.panel-header {
  padding: 14px 20px; font-size: 0.9rem; font-weight: 600;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease, box-shadow 0.3s ease;
  animation: item-stagger 0.5s cubic-bezier(0.16, 1, 0.30, 1) both;
}
.file-item:nth-child(1) { animation-delay: 0.05s; }
.file-item:nth-child(2) { animation-delay: 0.10s; }
.file-item:nth-child(3) { animation-delay: 0.15s; }
.file-item:nth-child(4) { animation-delay: 0.20s; }
.file-item:nth-child(5) { animation-delay: 0.25s; }
@keyframes item-stagger {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
.file-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(255,107,157,0.15);
}
.file-item:last-child { border-bottom: none; }
.file-name { font-weight: 500; color: #fff; font-size: 0.9rem; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.file-meta { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.file-actions { display: flex; gap: 6px; }
.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 10px; border-radius: 8px; cursor: pointer; font-size: 0.72rem;
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.28); }
.icon-btn:active { transform: scale(0.92); }
.empty { text-align: center; padding: 50px 20px; color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ============================================
   弹窗：整体液态玻璃
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
  animation: modal-overlay-in 0.3s ease both;
}
@keyframes modal-overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 22px;
  width: 100%; max-width: 400px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.35);
  animation: modal-content-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  color: #fff;
}
@keyframes modal-content-in {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-content h3 { margin-bottom: 16px; color: #fff; font-size: 1.05rem; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* 登录表单 */
.auth-modal { max-width: 340px; }
.auth-input {
  width: 100%; padding: 11px; margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.88rem; outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.2s;
}
.auth-input::placeholder { color: rgba(255,255,255,0.5); }
.auth-input:focus {
  border-color: rgba(255, 107, 157, 0.8);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255,107,157,0.18);
  transform: scale(1.01);
}
.btn-auth {
  width: 100%; padding: 11px; border: none; border-radius: 10px;
  background: rgba(255, 107, 157, 0.7);
  color: #fff; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; margin-bottom: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 12px rgba(255,107,157,0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-auth:hover { background: rgba(255, 107, 157, 0.9); }
.btn-auth:active { transform: scale(0.96); }
.auth-switch { text-align: center; margin-top: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.auth-switch a { color: #ff9fc0; cursor: pointer; text-decoration: underline; }
.auth-msg { text-align: center; margin-top: 8px; font-size: 0.78rem; }
.btn-close {
  width: 100%; margin-top: 14px; padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer; font-size: 0.88rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-close:hover { background: rgba(255, 255, 255, 0.22); }
.btn-close:active { transform: scale(0.96); }

/* 设置行 / 壁纸网格 / 购买行 */
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.settings-row:last-child { border-bottom: none; }
.settings-row span { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.wallpaper-grid button {
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer; font-size: 0.72rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.wallpaper-grid button:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.wallpaper-grid button:active { transform: scale(0.94); }

.shop-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #fff;
}
.shop-item button {
  padding: 6px 14px; border: none; border-radius: 8px;
  background: rgba(255, 107, 157, 0.7); color: #fff;
  cursor: pointer; font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.shop-item button:hover { background: rgba(255, 107, 157, 0.9); }
.shop-item button:active { transform: scale(0.94); }

/* 管理员面板 */
.admin-modal { max-width: 500px; max-height: 85vh; overflow-y: auto; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.admin-tabs .tab {
  padding: 7px 14px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  border-radius: 8px; cursor: pointer; font-size: 0.8rem; color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.admin-tabs .tab.active { background: rgba(255, 107, 157, 0.7); color: #fff; }
.admin-tabs .tab:active { transform: scale(0.94); }
.admin-panel { font-size: 0.85rem; color: #fff; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.form-row label { width: 70px; font-size: 0.78rem; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.form-row .auth-input { margin-bottom: 0; flex: 1; }
.gen-result {
  margin-top: 10px; padding: 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px; font-family: monospace; font-size: 0.78rem;
  max-height: 200px; overflow-y: auto; white-space: pre-wrap; color: #ffd1e3;
}
.user-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.user-row .name { font-weight: 600; color: #fff; }
.user-row .attrs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.user-row input { width: 70px; padding: 4px 6px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; font-size: 0.75rem; background: rgba(255,255,255,0.1); color: #fff; }
.user-row button { padding: 4px 10px; border: none; border-radius: 6px; background: rgba(255, 107, 157, 0.7); color: #fff; cursor: pointer; font-size: 0.72rem; }
.plan-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.plan-row input { padding: 6px 8px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; font-size: 0.78rem; background: rgba(255,255,255,0.1); color: #fff; }

/* 涟漪 */
.click-ripple {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,107,157,0.35) 0%, rgba(255,107,157,0) 70%);
  animation: ripple-expand 0.7s cubic-bezier(0.22, 0.9, 0.35, 1) forwards;
}
@keyframes ripple-expand {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* 响应式 */
@media (max-width: 480px) {
  .app { padding: 10px; gap: 10px; }
  .btn { padding: 9px 12px; font-size: 0.76rem; }
  .file-meta { display: none; }
  .storage-item { min-width: 60px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   新增模块样式
   ============================================ */

/* 用户信息卡 */
.user-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 32px rgba(0,0,0,0.25);
}
.avatar-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #a18cd1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}
.user-info { flex: 1; }
.user-name-big { font-size: 1.1rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.user-tag {
  display: inline-block; margin-top: 4px; padding: 2px 10px;
  font-size: 0.7rem; border-radius: 10px;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.user-stats { text-align: center; }
.stat-mini .stat-value { display: block; font-size: 0.9rem; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.stat-mini .stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); }

/* 快捷统计卡 */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 20px rgba(0,0,0,0.2);
}
.stat-number { font-size: 1.1rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.stat-desc { font-size: 0.68rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* 公告栏 */
.notice-panel {
  background: rgba(255, 107, 157, 0.12);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 20px rgba(0,0,0,0.15);
}
.notice-header {
  font-size: 0.78rem; font-weight: 600;
  color: #ff9fc0; margin-bottom: 6px;
}
.notice-content { font-size: 0.82rem; color: #fff; line-height: 1.5; }

/* 底部 */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: flex; justify-content: center; gap: 8px;
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* 移动端适配 */
@media (max-width: 480px) {
  .quick-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat-number { font-size: 0.95rem; }
  .stat-desc { font-size: 0.62rem; }
  .user-card { padding: 14px; }
  .avatar-circle { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* ============================================
   锁定布局：壁纸和主容器固定，内容内部滚动
   ============================================ */

/* 1. html/body 禁止滚动 */
html, body {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

/* 2. 壁纸固定，不跟随滚动 */
.bg-layer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-attachment: scroll !important;
  background-position: center center !important;
  z-index: -1;
}

/* 3. 主容器固定，内容内部滚动 */
.app {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 auto !important;
  max-width: 960px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 16px !important;
  -webkit-overflow-scrolling: touch;
}

/* 4. 底部删除 */
.footer {
  display: none !important;
}

/* ============================================
   性能优化：低端设备自动降级
   ============================================ */

/* 1. 全局开启 GPU 加速，但限制过度使用 */
.bg-layer, .app, .top-bar, .storage-bar, .file-panel,
.btn, .modal-content, .user-card, .stat-card {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* 2. 动画统一限制时长，避免过长动画堆积 */
.btn, .icon-btn, .file-item, .stat-card {
  animation-duration: 0.35s;
  transition-duration: 0.25s;
}

/* 3. 降低阴影复杂度 */
@media (max-width: 600px) {
  .top-bar, .storage-bar, .file-panel, .user-card, .stat-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  }
  .modal-content {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  }
}

/* 4. 低端设备：关闭模糊和动画 */
@media (prefers-reduced-motion: reduce), (max-resolution: 1dppx) {
  .top-bar, .storage-bar, .file-panel, .user-card, .stat-card,
  .btn, .modal-content, .auth-input, .icon-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .bg-layer {
    filter: none !important;
  }
}

/* ============================================
   低端设备降级（由 perf.js 添加 class）
   ============================================ */
.low-end .top-bar,
.low-end .storage-bar,
.low-end .file-panel,
.low-end .user-card,
.low-end .stat-card,
.low-end .btn,
.low-end .modal-content,
.low-end .auth-input,
.low-end .icon-btn {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.85) !important;
}

.low-end .bg-layer {
  filter: none !important;
}

.low-end .file-item,
.low-end .btn,
.low-end .icon-btn {
  animation: none !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

.low-end .storage-item::after {
  animation: none !important;
  transform: scaleX(1) !important;
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ============================================
   强制降级：所有设备统一走轻量模式
   ============================================ */

/* 1. 关闭所有毛玻璃模糊，改用纯色半透明 */
.top-bar, .storage-bar, .file-panel, .user-card, .stat-card,
.btn, .modal-content, .auth-input, .icon-btn,
.admin-tabs .tab, .wallpaper-grid button, .shop-item button {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.top-bar, .storage-bar, .file-panel, .user-card, .stat-card {
  background: rgba(20, 20, 25, 0.75) !important;
}

.btn-secondary, .icon-btn, .admin-tabs .tab {
  background: rgba(255, 255, 255, 0.12) !important;
}

.modal-content {
  background: rgba(20, 20, 25, 0.9) !important;
}

/* 2. 关闭背景模糊，保证低端机也能流畅滚动 */
/* 3. 关闭所有复杂动画，只保留基础反馈 */
.file-item, .btn, .icon-btn, .stat-card,
.user-card, .notice-panel, .modal-content {
  animation: none !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

/* 4. 关掉进度条动画，直接显示 */
.storage-item::after {
  animation: none !important;
  transform: scaleX(1) !important;
}

/* 5. 关掉点击涟漪 */
.click-ripple {
  display: none !important;
}

/* 6. 关掉卡片悬浮抬升，只保留背景变化 */
.file-item:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.btn:hover, .btn-secondary:hover {
  transform: none !important;
}

/* 7. 阴影简化，减少 GPU 负担 */
.top-bar, .storage-bar, .file-panel, .user-card, .stat-card,
.modal-content {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 8. 去掉 will-change，减少合成层 */
* {
  will-change: auto !important;
}
