  *, *::before, *::after {
  box-sizing: border-box;
}

 :root { --grid-icon-size: 64px; --grid-card-min-width: 96px; --primary: #3b82f6; --primary-hover: #2563eb; --border-color: #e2e8f0; --text-main: #1e293b; --text-muted: #64748b; --bg-main: #f8fafc; --bg-card: #ffffff; --shadow-sm: 0 1px 3px rgba(0,0,0,0.05); --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08); --radius-md: 12px; --radius-sm: 8px; }
  body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-main); color: var(--text-main); overflow-x: hidden; }
  button, input, textarea, select { font-family: inherit; }
  .hidden { display: none !important; }
  /* ===== 短信顶部弹窗 ===== */
  .sms-top-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .sms-top-alert.show { top: 20px; }
  .sms-top-alert.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px dashed #86efac;
    color: #166534;
  }
  .sms-top-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
  }
  /* ===== 登录页 ===== */
    #questionSelect {
    width: 100%;
    padding: 14px 40px 14px 16px; /* 右侧留出 40px 给箭头 */
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.2s;
    cursor: pointer;
    /* 移除系统原生的下拉箭头 */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    /* 添加自定义的 SVG 箭头 */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
  }
  
  #questionSelect:hover {
    border-color: #94a3b8;
  }
  
  #questionSelect:focus {
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  }
  
  /* 下拉展开后的选项样式 */
  #questionSelect option {
    padding: 12px;
    color: #1e293b;
    background: #fff;
    font-size: 14px;
  }
  
  #questionSelect option:disabled {
    color: #94a3b8;
  }
  #authView { position: fixed; inset: 0; display: block; padding: 100px 20px 40px; overflow: hidden; overscroll-behavior: contain; isolation: isolate; background: radial-gradient(1200px 800px at 15% 8%, rgba(56, 116, 255, .12), transparent 62%), radial-gradient(1000px 700px at 85% 92%, rgba(140, 80, 255, .10), transparent 62%), linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%); }
  #authView::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(100, 150, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 150, 255, .08) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 78%);animation: authGridBreath 8s ease-in-out infinite; }
  #authView::after { content: ""; position: absolute; left: 50%; top: 50%; width: 62vmax; height: 62vmax; z-index: 0; pointer-events: none; filter: blur(80px); background: radial-gradient(circle at 30% 30%, rgba(80, 140, 255, .18), transparent 55%), radial-gradient(circle at 70% 70%, rgba(170, 90, 255, .15), transparent 55%); transform: translate(-56%, -50%);animation: authOrbFloat 20s ease-in-out infinite; }
  
  /* 左上角 Logo */
  .login-logo-wrap {
    position: absolute;
    top: 30px;
    left: 36px;
    z-index: 10;
    animation: fadeInDown 1s cubic-bezier(0.22, 0.9, 0.28, 1) both;
  }

  .auth-card { position: relative; z-index: 2; width: min(600px, 100%); padding: 40px 36px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.9); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.1); backdrop-filter: blur(20px); animation: cardIn .5s both; margin: 0 auto; overflow: visible; transition: all 0.3s ease; }
  
    /* 补充一个幽灵按钮样式，给“返回登录”用 */
  .btn.ghost { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
  .btn.ghost:hover { background: #e2e8f0; }
  .form-row { display: flex; gap: 16px; }
  .form-row .field { flex: 1; min-width: 0; }
 @keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
  .brand { text-align: center; margin-bottom: 24px; }
  
  /* 登录框中间 Logo */
  .brand-logo-wrap { 
    height: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 12px; 
  }
  
  .tabs { display: flex; gap: 8px; margin-bottom: 24px; background: #f1f5f9; padding: 4px; border-radius: 12px; }
  .tab { flex: 1; padding: 10px; border: none; background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: 0.2s; }
  .tab.active { background: var(--bg-card); color: #0f172a; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  .pane { display: none; } .pane.active { display: block; }
  .field { display: block; margin-bottom: 16px; }
  .field span { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 500; }
  .field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid #cbd5e1; outline: none; transition: 0.2s; font-size: 15px; }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
  .captcha-row { display: flex; gap: 8px; align-items: center; }
  .captcha-row input { flex: 1; }
  .captcha-box { width: 110px;height: 44px;border-radius: 10px;border: 1px solid #cbd5e1;cursor: pointer;background: #f1f5f9;overflow: hidden;display: flex;align-items: center;justify-content: center;user-select: none;padding: 0;}
.captcha-box svg { display: block; width: 100%; height: 100%; }
  .captcha-box {
    transition: all 0.2s;
    position: relative;
  }
  .captcha-box:hover { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
  .captcha-box .captcha-loading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
  }
  .captcha-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: captchaSpin 0.8s linear infinite;
    flex-shrink: 0;
  }
  @keyframes captchaSpin { to { transform: rotate(360deg); } }
  .captcha-box .captcha-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
  }
  .captcha-box .captcha-error .err-icon {
    font-size: 14px;
    margin-bottom: 1px;
  }
  .captcha-box.captcha-pulse { animation: captchaPulse 0.6s ease; }
  @keyframes captchaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.92); }
  }
  .captcha-row.shake { animation: rowShake 0.45s; }
  @keyframes rowShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
  }
  /* 输入框抖动 */
  .field input.shake { animation: inputShake 0.45s; border-color: #fca5a5 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
  @keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
  }
  .input-group { display: flex; gap: 8px; }
  .input-group input { flex: 1; }
  .btn-code { padding: 0 10px; background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
  .btn-code:disabled { background: #f1f5f9; color: #94a3b8; border-color: var(--border-color); cursor: not-allowed; }
  .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
  .btn.primary { width: 100%; color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); box-shadow: 0 8px 20px -8px rgba(59,130,246,.6); margin-top: 8px; }
  .btn.primary:hover:not(:disabled) { transform: translateY(-1px); }
  .btn.primary:disabled { opacity: 0.7; cursor: not-allowed; }
  .link-row { margin-top: 16px; }
  .link { 
    background: none; 
    border: none; 
    color: #64748b; /* 默认使用浅灰色，不抢主按钮风头 */
    font-size: 13px; 
    cursor: pointer; 
    font-weight: 500; 
    transition: all 0.2s ease;
  }
  .link:hover { 
    color: var(--primary); /* 悬浮时变蓝 */
    text-decoration: underline; 
  }
  .question-tip { font-size: 14px; color: #475569; margin-bottom: 16px; background: #f1f5f9; padding: 12px; border-radius: 8px; line-height: 1.5; }
  .auth-footer { margin-top: 22px; padding-top: 15px; border-top: 1px dashed var(--border-color); text-align: center; font-size: 12.5px; color: #94a3b8; line-height: 1.8; }
  .auth-version-fixed { position: fixed; bottom: 20px; right: 20px; z-index: 10; font-size: 12px; color: var(--text-muted); background: rgba(255, 255, 255, 0.7); padding: 5px 12px; border-radius: 20px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.9); font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
  @keyframes fadeInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes authOrbFloat {
  0%, 100% { transform: translate(-56%, -50%) scale(1);     opacity: 0.9; }
  50%      { transform: translate(-44%, -52%) scale(1.15); opacity: 1;   }
}
@keyframes authGridBreath {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1;    }
}
/* ================= 深度移动端适配 (APP / 手机浏览器) ================= */
@media (max-width: 768px) {
  /* 1. 全局防溢出 */
  html, body, #authView, #driveView {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* 2. 登录页适配 */
  #authView { padding: 60px 16px 30px !important; }
  .login-logo-wrap { top: 20px !important; left: 50% !important; transform: translateX(-50%) !important; }
  .auth-card { width: 100% !important; max-width: 100% !important; padding: 24px 16px !important; border-radius: 16px !important; }
  .form-row { flex-direction: column !important; gap: 0 !important; }

  /* 3. 顶栏大改造（解决文字竖排和拥挤） */
  .topbar {
    flex-direction: column !important;
    padding: 12px !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
  .topbar-left {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
  /* 隐藏搜索框 */
  .topbar-search-box { display: none !important; }
  /* 欢迎语不允许换行 */
  .welcome-text { white-space: nowrap !important; font-size: 14px !important; margin-left: 6px !important; }
  /* 容量条独占一行 */
  .storage-bar-wrap { 
    order: 10 !important; 
    width: 100% !important; 
    justify-content: flex-start !important; 
    margin-left: 0 !important; 
    padding: 6px 12px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
  }
  .storage-bar { width: 100% !important; max-width: 120px !important; margin-right: 8px !important; }
  /* 退出/注销按钮 */
  .topbar-right { width: 100% !important; display: flex !important; justify-content: space-between !important; }
  .topbar-right-actions-row { gap: 8px !important; }

  /* 4. 应用中心卡片（改为横向排版，像原生APP） */
  .app-grid { 
    grid-template-columns: 1fr !important; 
    gap: 12px !important; 
  }
  .app-card { 
    flex-direction: row !important; 
    padding: 16px !important; 
    text-align: left !important; 
    align-items: center !important;
    border-radius: 16px !important;
  }
  .app-icon { 
    width: 52px !important; 
    height: 52px !important; 
    margin-bottom: 0 !important; 
    margin-right: 16px !important; 
    flex-shrink: 0 !important;
  }
  .app-card span { font-size: 16px !important; }
  .app-card small { font-size: 12px !important; margin-top: 4px !important; }

  /* 5. 文件夹卡片 */
  .category-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .module-card { padding: 16px 8px !important; }
  .module-icon { width: 40px !important; height: 40px !important; }
  .module-card span { font-size: 13px !important; }

  /* 6. 工具栏 */
  .module-toolbar { flex-direction: column !important; align-items: flex-start !important; }
  .module-actions { width: 100% !important; overflow-x: auto !important; white-space: nowrap !important; padding-bottom: 6px; }
  
  /* 7. 文件网格 */
  .file-grid.view-medium { grid-template-columns: repeat(3, 1fr) !important; }
  
  /* 8. 隐藏底部的版本号防遮挡 */
  .topbar-version { right: 12px !important; bottom: 12px !important; font-size: 10px !important; padding: 2px 8px !important; }
}

  /* ===== 主界面 ===== */
  #driveView { min-height: 100vh; }
  .topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 20; box-shadow: var(--shadow-sm); }
  .topbar-left { display: flex; align-items: center; gap: 20px; }
  .topbar-logo-wrap { height: 40px; display: flex; align-items: center; cursor: pointer; }
  .topbar-right-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .topbar-right-actions-row { display: flex; align-items: center; gap: 12px; }
  .welcome-text { font-size: 15px; font-weight: 600; color: #334155; display: flex; align-items: center; gap: 6px; }
  .welcome-text span { color: var(--primary); font-weight: 700; }
  .topbar-version { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #eff6ff; border: 1px solid #c7d2fe; color: #4f46e5; font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; position: fixed; right: 24px; bottom: 24px; z-index: 50; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

  /* 头像 */
  .user-avatar-wrap { position: relative; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 2px solid #c7d2fe; box-shadow: var(--shadow-sm); overflow: hidden; transition: 0.2s; flex-shrink: 0; margin-left: 10px; }
  .user-avatar-wrap:hover { transform: scale(1.05); border-color: var(--primary); }
  .user-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .topbar-right { display: flex; align-items: center; gap: 12px; }
  .btn-ghost { background: transparent; border: 1px solid #cbd5e1; color: #475569; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: 0.2s; }
  .btn-ghost:hover { background: #f8fafc; color: var(--text-main); }
  .btn-admin { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.2s; }
  .btn-admin:hover { background: #fee2e2; }
  .btn-close-account { background: transparent; border: 1px solid #fca5a5; color: #dc2626; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; transition: 0.2s; }
  .btn-close-account:hover { background: #fef2f2; }

  .content { max-width: 1080px; margin: 0 auto; padding: 24px; }
  .home-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 65vh; }
  .home-title { font-size: 22px; font-weight: 800; margin-bottom: 32px; color: var(--text-main); text-align: center; }
  
  .app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; width: 100%; }
  @media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; gap: 16px; } }
  .app-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 50px 30px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
  .app-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.3); }
  .app-icon { width: 80px; height: 80px; margin-bottom: 20px; }
  .app-icon svg { width: 100%; height: 100%; }
  .app-card span { font-size: 20px; font-weight: 800; color: #334155; }
  .app-card small { margin-top: 8px; font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.5; }

  .category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 650px; margin: 0 auto; width: 100%; }
  .module-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
  .module-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.2); }
  .module-icon { width: 56px; height: 56px; margin-bottom: 16px; }
  .module-icon svg { width: 100%; height: 100%; }
  .module-card span { font-size: 16px; font-weight: 700; color: #334155; }

  /* 资源互享 */
  .resource-tabs { display: flex; gap: 12px; margin-bottom: 24px; justify-content: center; }
  .res-tab { padding: 12px 24px; border-radius: 30px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-muted); transition: 0.2s; }
  .res-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
  .res-file-list { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-sm); }
  .res-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
  .res-item:last-child { border-bottom: none; }
  .res-item:hover { background: #f8fafc; }
  .res-info { display: flex; flex-direction: column; gap: 4px; }
  .res-name { font-size: 15px; font-weight: 600; color: var(--text-main); }
  .res-meta { font-size: 12px; color: var(--text-muted); }
  .btn-res-dl { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
  .btn-res-dl:hover { background: #dbeafe; }
  .btn-res-del { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
  .btn-res-del:hover { background: #fee2e2; border-color: #fca5a5; }

  /* 在线工具 */
  .tool-category { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .tool-category-title { padding: 16px 24px; background: #f8fafc; font-size: 16px; font-weight: 700; color: #1e293b; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; }
  .tool-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
  .tool-item:last-child { border-bottom: none; }
  .tool-item:hover { background: #f8fafc; }
  .tool-info { display: flex; flex-direction: column; gap: 4px; }
  .tool-name { font-size: 15px; font-weight: 600; color: var(--text-main); }
  .tool-desc { font-size: 12px; color: var(--text-muted); }
  .btn-tool { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
  .btn-tool:hover { background: #dcfce7; }
  .empty-tip { grid-column: 1/-1; width: 100%; box-sizing: border-box; text-align: center; padding: 40px; color: #94a3b8; font-size: 14px; background: var(--bg-card); 
    border-radius: var(--radius-md); 
    border: 1px dashed #cbd5e1; 
  }

  /* 文件及模块 */
  .module-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
  .module-title-area { display: flex; align-items: center; gap: 16px; }
  .btn-back { background: #f1f5f9; border: none; color: #475569; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
  .btn-back:hover { background: var(--border-color); color: #0f172a; }
  .module-title-area h2 { font-size: 20px; font-weight: 700; color: var(--text-main); }
  .module-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .btn-action { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .btn-upload { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; position: relative; overflow: hidden; }
  .btn-upload:hover { background: #dbeafe; }
  .btn-folder { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
  .btn-folder:hover { background: #fee2e2; }

  .view-menu-container { position: relative; }
  .btn-view { display: flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid #cbd5e1; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #334155; cursor: pointer; }
  .btn-view:hover { background: #f8fafc; }
  .view-dropdown { position: absolute; top: 100%; right: 0; margin-top: 4px; width: 200px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow-md); z-index: 50; padding: 6px 0; display: none; }
  .view-dropdown.show { display: block; }
  .view-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--text-main); cursor: pointer; transition: 0.1s; }
  .view-item:hover { background: #f1f5f9; }
  .view-item.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
  .view-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

  .breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .breadcrumb-back { background: #eff6ff; color: var(--primary); padding: 6px 14px; border-radius: 20px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: 0.2s; }
  .breadcrumb-back:hover { background: #dbeafe; }

  .batch-toolbar { display: flex; align-items: center; gap: 12px; background: #eff6ff; padding: 10px 16px; border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid #bfdbfe; flex-wrap: wrap; }
  .batch-toolbar span { font-size: 14px; color: #1e3a8a; font-weight: 600; }
  .batch-toolbar .btn-sm { padding: 6px 12px; border-radius: 6px; font-size: 13px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; }
  .btn-batch-dl { background: #10b981; color: #fff; }
  .btn-batch-dl:hover { background: #059669; }
  .btn-batch-fav { background: #f59e0b; color: #fff; }
  .btn-batch-fav:hover { background: #d97706; }
  .btn-batch-trash { background: #ef4444; color: #fff; }
  .btn-batch-trash:hover { background: #dc2626; }
  .btn-batch-move { background: #6366f1; color: #fff; }
  .btn-batch-move:hover { background: #4f46e5; }
  .btn-batch-cancel { background: var(--bg-card); color: #475569; border: 1px solid #cbd5e1 !important; }
  .btn-batch-cancel:hover { background: #f8fafc; }
  .btn-batch-restore { background: #6366f1; color: #fff; }
  .btn-batch-del-forever { background: #dc2626; color: #fff; }
  .btn-select-all { background: #e0e7ff; color: #4338ca; border: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
  .btn-select-all:hover { background: #c7d2fe; }

  /* 视图展示区核心 */
  .file-grid { width: 100%; display: grid; position: relative; }
  .file-card { display: flex; cursor: pointer; position: relative; border: 1px solid transparent; transition: background 0.1s; border-radius: var(--radius-sm); }
  .file-card:hover { background: #e5f3ff; }
  .file-card.selected { background: #cce8ff; border-color: #99d1ff; }
  .file-icon-wrap { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .file-icon-svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); }
  .file-name { color: var(--text-main); word-break: break-all; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .file-meta { color: var(--text-muted); font-size: 12px; }
  .file-checkbox { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; cursor: pointer; z-index: 5; accent-color: var(--primary); opacity: 0; }
  .file-card:hover .file-checkbox, .file-card.selected .file-checkbox { opacity: 1; }
  .favorite-btn { position: absolute; top: 4px; left: 4px; background: none; border: none; font-size: 16px; color: #cbd5e1; cursor: pointer; z-index: 5; opacity: 0; transition: 0.2s; }
  .file-card:hover .favorite-btn, .file-card.selected .favorite-btn, .favorite-btn.active { opacity: 1; }
  .favorite-btn.active { color: #fbbf24; }
  .download-btn { position: absolute; bottom: 4px; right: 4px; background: var(--bg-card); color: #0284c7; border: 1px solid var(--border-color); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 14px; z-index: 5; text-decoration: none; transition: 0.2s; }
  .download-btn:hover { background: #e0f2fe; }
  .file-card:hover .download-btn { display: flex; }
  .action-btns { display: none; position: absolute; bottom: 4px; left: 4px; gap: 4px; z-index: 5;}
  .file-card:hover .action-btns { display: flex; }
  .action-btns button { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; padding: 2px 6px; cursor: pointer; font-size: 12px; transition: 0.2s; }
  .action-btns button:hover { background: #f1f5f9; }

  .view-extra-large { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
  .view-extra-large .file-card { flex-direction: column; align-items: center; text-align: center; padding: 16px 8px; }
  .view-extra-large .file-icon-wrap { width: 96px; height: 96px; margin-bottom: 10px; }
  .view-extra-large .file-name { font-size: 13px; line-height: 1.3; -webkit-line-clamp: 2; }
  .view-extra-large .file-meta { display: none; }
  .view-large { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
  .view-large .file-card { flex-direction: column; align-items: center; text-align: center; padding: 12px 6px; }
  .view-large .file-icon-wrap { width: 64px; height: 64px; margin-bottom: 8px; }
  .view-large .file-name { font-size: 13px; line-height: 1.3; -webkit-line-clamp: 2; }
  .view-large .file-meta { display: none; }
  .view-medium { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; }
  .view-medium .file-card { flex-direction: column; align-items: center; text-align: center; padding: 12px 4px; }
  .view-medium .file-icon-wrap { width: 48px; height: 48px; margin-bottom: 6px; }
  .view-medium .file-name { font-size: 12px; line-height: 1.3; -webkit-line-clamp: 2; }
  .view-medium .file-meta { display: none; }
  .view-small { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
  .view-small .file-card { flex-direction: column; align-items: center; text-align: center; padding: 8px 2px; border-radius: 6px; }
  .view-small .file-icon-wrap { width: 32px; height: 32px; margin-bottom: 4px; }
  .view-small .file-name { font-size: 12px; line-height: 1.2; -webkit-line-clamp: 2; }
  .view-small .file-meta { display: none; }
  .view-list { display: flex; flex-direction: column; gap: 2px; }
  .view-list .file-card { flex-direction: row; align-items: center; padding: 6px 12px; gap: 10px; }
  .view-list .file-icon-wrap { width: 24px; height: 24px; margin: 0; }
  .view-list .file-name { font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; display: block; }
  .view-list .file-meta { display: none; }
  .view-list .file-checkbox { position: static; margin-right: 4px; }
  .view-list .favorite-btn { position: static; margin-left: 4px; font-size: 14px; }
  .view-list .download-btn { position: static; margin-left: 8px; display: flex; }
  .view-list .action-btns { position: static; margin-left: 8px; display: flex; }

  .view-details { display: flex; flex-direction: column; }
  .details-header { display: flex; padding: 8px 12px; border-bottom: 1px solid var(--border-color); font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .view-details .file-card { flex-direction: row; align-items: center; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; gap: 12px; border-radius: 0; border: none; }
  .view-details .file-card:hover { background: #e5f3ff; border-color: transparent; }
  .view-details .col-name { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
  .view-details .file-icon-wrap { width: 24px; height: 24px; }
  .view-details .file-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin: 0; }
  .view-details .col-size { width: 100px; text-align: right; font-size: 12px; color: var(--text-muted); }
  .view-details .col-date { width: 140px; text-align: right; font-size: 12px; color: var(--text-muted); }
  .view-details .file-checkbox { position: static; margin-right: 4px; }
  .view-details .favorite-btn { position: static; margin-left: 4px; font-size: 14px; }
  .view-details .action-btns, .view-details .download-btn { position: static; margin-left: 8px; }

  .view-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .view-tiles .file-card { flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
  .view-tiles .file-icon-wrap { width: 48px; height: 48px; }
  .view-tiles .file-name { font-size: 13px; line-height: 1.3; -webkit-line-clamp: 2; flex: 1; }
  .view-tiles .file-meta { display: none; }
  .view-tiles .file-checkbox { position: static; margin-right: 4px; }
  .view-tiles .favorite-btn { position: static; top: auto; left: auto; font-size: 14px; }

  .view-content { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
  .view-content .file-card { flex-direction: row; align-items: flex-start; padding: 12px; gap: 12px; }
  .view-content .file-icon-wrap { width: 48px; height: 48px; }
  .view-content .file-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .view-content .file-name { font-size: 13px; line-height: 1.3; -webkit-line-clamp: 2; }
  .view-content .file-meta { display: block; }

  .upload-progress { position: fixed; bottom: 20px; right: 20px; background: var(--bg-card); border: 1px solid var(--border-color); padding: 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); z-index: 9999; display: none; width: 300px; }
  .upload-progress .title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
  .progress-track { height: 8px; background: var(--border-color); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
  .progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), #6366f1); transition: width 0.2s ease; }
  .progress-text { font-size: 12px; color: var(--text-muted); text-align: right; }

  /* 弹窗与对话框 */
  .modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
  .modal-content { background: var(--bg-card); border-radius: var(--radius-md); width: 100%; max-width: 500px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
  .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border-color); }
  .modal-body { flex: 1; padding: 24px; overflow-y: auto; }
  .modal-foot { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 12px; }
  .icon-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); transition: 0.2s; }
  .icon-btn:hover { color: #ef4444; }
  .folder-select-list { display: flex; flex-direction: column; gap: 8px; }
  .folder-option { padding: 10px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s; }
  .folder-option:hover { background: #f8fafc; border-color: var(--primary); }
  .folder-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }

  .dialog-mask { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(8px); animation: maskIn .2s ease both; }
  @keyframes maskIn { from { opacity: 0 } to { opacity: 1 } }
  .dialog-box { width: min(420px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 30px 26px 22px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); animation: dialogIn .34s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.955) } to { opacity: 1; transform: none } }
  @keyframes dialogShake { 0%, 100% { transform: translateX(0) } 20% { transform: translateX(-7px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(4px) } }
  .dialog-box.shake { animation: dialogShake .38s cubic-bezier(.36, .07, .19, .97) both; }
  .dialog-icon { width: 62px; height: 62px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 20px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); box-shadow: 0 10px 24px -12px rgba(99, 102, 241, .55); }
  .dialog-title { font-size: 19px; font-weight: 800; color: #0f172a; text-align: center; }
  .dialog-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; text-align: center; margin-top: 8px; }
  .dialog-desc b { color: var(--primary); font-weight: 700; }
  .dialog-body { margin-top: 20px; }
  .dialog-actions { display: flex; gap: 10px; margin-top: 22px; }
  .dialog-btn { flex: 1; min-height: 46px; padding: 12px 16px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s ease; }
  .dialog-btn.primary { color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8); }
  .dialog-btn.primary:hover { transform: translateY(-1px); }
  .dialog-btn.ghost { background: #f1f5f9; color: #475569; }
  .dialog-btn.ghost:hover { background: #e9eef5; }
  .dialog-btn.danger { color: #fff; background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .85); }
  .dialog-btn.danger:hover { transform: translateY(-1px); }

  .choice-list { display: flex; flex-direction: column; gap: 10px; }
  .choice-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border-color); background: #fff; cursor: pointer; transition: all .18s ease; }
  .choice-card:hover { border-color: #93c5fd; background: #f8fbff; transform: translateY(-1px); }
  .choice-card.choice-primary { border-color: #c7d2fe; background: linear-gradient(135deg, #f6f8ff, #f2f4ff); }
  .choice-emoji { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .07); }
  .choice-text { display: flex; flex-direction: column; gap: 3px; }
  .choice-text b { font-size: 14.5px; font-weight: 700; color: var(--text-main); }
  .choice-text small { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
  .dialog-field { margin-bottom: 14px; }
  .dialog-field label { display: block; font-size: 12.5px; font-weight: 600; color: #475569; margin-bottom: 6px; }
  .dialog-input-wrap { position: relative; display: flex; align-items: center; }
  .dialog-input { width: 100%; padding: 12px 46px 12px 14px; border-radius: 12px; border: 1.5px solid #cbd5e1; background: #f8fafc; color: #0f172a; font-size: 15px; outline: none; transition: 0.2s; }
  .dialog-input:focus { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 4px rgba(99, 102, 241, .13); }
  .pwd-toggle { position: absolute; right: 6px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 9px; background: transparent; color: #94a3b8; cursor: pointer; }
  .pwd-toggle:hover { color: #4f46e5; background: rgba(99, 102, 241, .1); }
  .pwd-toggle svg { width: 18px; height: 18px; }
  .close-warn-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
  .close-warn-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; }
  .close-warn-row .warn-icon { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15); }
  .close-warn-row .warn-text { display: flex; flex-direction: column; gap: 3px; }
  .close-warn-row .warn-text b { font-size: 13.5px; color: #991b1b; font-weight: 700; }
  .close-warn-row .warn-text small { font-size: 12px; color: #b91c1c; line-height: 1.5; }
  .dialog-hint { min-height: 18px; margin-top: 2px; font-size: 12.5px; color: #dc2626; }

  /* 公告栏 */
  .notice-bar { position: relative; display: flex; align-items: center; gap: 10px; width: min(900px, calc(100% - 32px)); margin: 12px auto 0; padding: 9px 14px; background: linear-gradient(90deg, #eff6ff, #f5f3ff 50%, #eff6ff); border: 1px solid #c7d2fe; border-radius: 999px; box-shadow: 0 8px 22px -16px rgba(59, 130, 246, .9); overflow: hidden; animation: noticeIn .4s ease both; }
  @keyframes noticeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .notice-flag { flex-shrink: 0; font-size: 18px; line-height: 1; animation: flagPulse 2.2s ease-in-out infinite; }
  @keyframes flagPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
  .notice-viewport { position: relative; flex: 1; overflow: hidden; height: 26px; }
  .notice-text { position: absolute; left: 0; top: 50%; white-space: nowrap; font-size: 17px; font-weight: 700; color: #1e3a8a; letter-spacing: .3px; transform: translate(0, -50%); will-change: transform; }
  .notice-text.rolling { animation-name: noticeScroll; animation-timing-function: linear; animation-iteration-count: infinite; }
  @keyframes noticeScroll { from { transform: translate(var(--notice-start, 100%), -50%); } to { transform: translate(calc(var(--notice-txt-w, 100%) * -1), -50%); } }
  .notice-close { flex-shrink: 0; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(99, 102, 241, .12); color: #4f46e5; cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: .2s; }
  .notice-close:hover { background: #4f46e5; color: #fff; }
  .notice-reopen { position: fixed; top: 74px; right: 18px; z-index: 40; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #c7d2fe; background: #eff6ff; color: #4f46e5; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .8); animation: noticeIn .3s ease both; }
  .notice-reopen:hover { background: #e0e7ff; }

  /* 管理后台重写 */
  .admin-panel { position: fixed; inset: 0; z-index: 200; background: #f1f5f9; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; }
  .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-shrink: 0; }
  .admin-header h1 { font-size: 24px; color: #0f172a; font-weight: 800; letter-spacing: -0.5px; }
  .admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid #cbd5e1; padding-bottom: 12px; overflow-x: auto; flex-shrink: 0; }
  .admin-tab { padding: 10px 20px; border-radius: 8px; border: none; background: transparent; color: var(--text-muted); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: 0.2s; }
  .admin-tab:hover { background: #e2e8f0; color: #1e293b; }
  .admin-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15); }
  .admin-pane { display: none; flex: 1; }
  .admin-pane.active { display: block; animation: fadeIn .3s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .admin-section { background: var(--bg-card); border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -2px rgba(0,0,0,0.02); border: 1px solid var(--border-color); }
  .admin-section h2 { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
  .admin-table { width: 100%; border-collapse: collapse; }
  .admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 14px; color: #334155; }
  .admin-table th { background: #f8fafc; color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
  .admin-table tbody tr:hover { background: #f8fafc; }
  .admin-table tbody tr:last-child td { border-bottom: none; }
  .btn-action-admin { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; margin-right: 6px; transition: 0.2s; }
  .btn-stop { background: #fee2e2; color: #dc2626; }
  .btn-stop:hover { background: #fecaca; }
  .btn-start { background: #dcfce7; color: #16a34a; }
  .btn-start:hover { background: #bbf7d0; }
  .btn-del { background: #ef4444; color: #fff; }
  .btn-del:hover { background: #dc2626; }

  /* 图表 */
  .chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .chart-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; background: #fff; display: flex; flex-direction: column; }
  .chart-card h3 { font-size: 15px; font-weight: 600; color: #334155; margin-bottom: 16px; text-align: center; }
  .chart-canvas-wrap { position: relative; height: 260px; width: 100%; flex-shrink: 0; }
  @media (max-width: 800px) { .chart-grid { grid-template-columns: 1fr; } }

  /* 表单输入框美化 */
  .admin-form-row { margin-bottom: 16px; }
  .admin-form-row textarea, .admin-form-row input[type="text"], .version-form input[type="text"], .version-form select, .info-form input[type="text"] { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; background: #f8fafc; transition: all 0.2s; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
  .admin-form-row textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
  .admin-form-row textarea:focus, .admin-form-row input[type="text"]:focus, .version-form input[type="text"]:focus, .version-form select:focus, .info-form input[type="text"]:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
  .admin-form-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
  .admin-form-hint { font-size: 13px; color: var(--text-muted); }
  .version-form { display: grid; grid-template-columns: 200px 160px 1fr auto; gap: 12px; margin-bottom: 24px; align-items: start; }
  .info-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; margin-bottom: 24px; align-items: start; }
  @media (max-width: 900px) { .version-form, .info-form { grid-template-columns: 1fr; } }

  /* 美化时间选择框 */
  .log-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .log-filter span { font-size: 13px; color: var(--text-muted); }
  .btn-filter { padding: 9px 16px; border-radius: 8px; border: none; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s; }
  .btn-filter:hover { background: var(--primary-hover); }
  .btn-filter-reset { padding: 9px 16px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: 0.2s; }
  .btn-filter-reset:hover { background: #f1f5f9; color: #1e293b; }
  .admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
  .tag-status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
  .tag-active { background: #dcfce7; color: #16a34a; }
  .tag-deleted { background: #fee2e2; color: #dc2626; }

  /* 丝滑开关组件 */
  .switch { position: relative; display: inline-block; width: 50px; height: 28px; margin: 0; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
  .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
  input:checked + .slider { background-color: #10b981; }
  input:checked + .slider:before { transform: translateX(22px); }

  /* 悬浮球 */
  .floating-feedback { position: fixed; z-index: 999; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.6); animation: floatAndPulse 25s ease-in-out infinite alternate; transition: transform 0.2s, opacity 0.3s; opacity: 0; pointer-events: none; }
  .floating-feedback.show { opacity: 1; pointer-events: auto; }
  .floating-feedback:hover { transform: scale(1.1) !important; animation-play-state: paused; }
  .floating-feedback.paused { animation-play-state: paused !important; }
  @keyframes floatAndPulse { 0% { transform: translate(0, 0) scale(1); top: 75%; left: 10%; } 25% { transform: translate(10px, -15px) scale(1.02); top: 65%; left: 85%; } 50% { transform: translate(-10px, 10px) scale(0.98); top: 80%; left: 40%; } 75% { transform: translate(15px, 8px) scale(1.01); top: 60%; left: 15%; } 100% { transform: translate(-5px, -5px) scale(1); top: 70%; left: 80%; } }
  .floating-feedback .tooltip { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); background: rgba(15, 23, 42, 0.85); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: 0.2s; }
  .floating-feedback:hover .tooltip { opacity: 1; }

  /* 问卷弹窗 */
  .feedback-q { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--border-color); }
  .feedback-q:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .feedback-q-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; display: flex; align-items: center; }
  .feedback-q-title .req { color: #ef4444; margin-left: 4px; }
  .feedback-options { display: flex; flex-direction: column; gap: 8px; }
  .feedback-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #475569; cursor: pointer; padding: 6px 10px; border-radius: 6px; transition: 0.2s; }
  .feedback-opt:hover { background: #f1f5f9; }
  .feedback-opt input { accent-color: #6366f1; width: 16px; height: 16px; }
  .feedback-q input[type="text"], .feedback-q textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; outline: none; transition: 0.2s; }
  .feedback-q input[type="text"]:focus, .feedback-q textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

  /* 头像编辑弹窗 */
  .avatar-upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
  .avatar-preview-large { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #eff6ff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); background-color: #f8fafc; }
  .btn-upload-avatar { background: #eff6ff; color: var(--primary); border: 1px dashed var(--primary); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.2s; text-align: center; }
  .btn-upload-avatar:hover { background: #dbeafe; }

  .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 24px; border-radius: 30px; z-index: 9999; opacity: 0; transition: 0.3s; pointer-events: none; font-size: 14px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
  .toast.show { opacity: 1; transform: translate(-50%, -10px); }
  .toast.error { background: #dc2626; }
  /* ===== 我的空间分析 ===== */
  .stats-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:16px; }
  .stat-card { background:#fff; border:1px solid var(--border-color); border-radius:16px;
  padding:20px; display:flex; flex-direction:column; gap:8px; box-shadow:var(--shadow-sm); }
  .stat-card .label { font-size:13px; color:var(--text-muted); font-weight:600; }
  .stat-card .value { font-size:26px; font-weight:800; color:var(--text-main); }
  .stat-card .sub { font-size:12px; color:var(--text-muted); }

  /* 版本管理 textarea 美化 */
  .version-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; background: #f8fafc; transition: all 0.2s; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); resize: vertical; min-height: 46px; line-height: 1.5; }
  .version-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
  .btn-action-admin[disabled] { background: #f1f5f9 !important; color: #94a3b8 !important; cursor: not-allowed !important; box-shadow: none !important; }

  /* 自定义日期选择器 */
  .custom-date-picker { position: relative; display: inline-block; }
  .custom-date-display { width: 150px; padding: 9px 34px 9px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; outline: none; background: #f8fafc; color: #334155; cursor: pointer; transition: 0.2s; }
  .custom-date-display:hover { border-color: #94a3b8; }
  .custom-date-display:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); background-color: #fff; }
  .custom-date-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; opacity: 0.65; }
  .custom-date-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2); padding: 12px; width: 264px; animation: cdpIn 0.15s ease both; }
  @keyframes cdpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .cdp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .cdp-head button { background: #f1f5f9; border: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; color: #475569; line-height: 1; }
  .cdp-head button:hover { background: #e2e8f0; }
  .cdp-title { font-size: 14px; font-weight: 600; color: #1e293b; }
  .cdp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
  .cdp-week span { text-align: center; font-size: 11px; color: #94a3b8; font-weight: 600; padding: 4px 0; }
  .cdp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .cdp-day { text-align: center; font-size: 13px; padding: 6px 0; border-radius: 6px; cursor: pointer; color: #334155; transition: 0.1s; user-select: none; }
  .cdp-day.empty { cursor: default; }
  .cdp-day:not(.empty):hover { background: #eff6ff; color: var(--primary); }
  .cdp-day.today { color: var(--primary); font-weight: 700; }
  .cdp-day.selected { background: var(--primary); color: #fff; font-weight: 700; }
  .cdp-day.selected:hover { background: var(--primary-hover); }
  .cdp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e8f0; }
  .cdp-foot button { background: transparent; border: none; color: var(--primary); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
  .cdp-foot button:hover { background: #eff6ff; }

  @media (max-width: 768px) {
    .login-logo-wrap { top: 20px; left: 20px; }
    .auth-card { padding: 30px 24px; }
    .brand-logo-wrap { height: 60px; }
    .topbar-left { gap: 10px; }
    .welcome-text { font-size: 13px; }
    .content { padding: 16px; }
    .module-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .module-actions { width: 100%; justify-content: space-between; }
    .btn-action { flex: 1; justify-content: center; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .module-card { padding: 20px 10px; }
    .module-icon { width: 40px; height: 40px; margin-bottom: 8px; }
    .module-card span { font-size: 13px; }
    .app-grid { grid-template-columns: 1fr; gap: 16px; }
    .app-card { padding: 30px 20px; }
    .app-icon { width: 60px; height: 60px; margin-bottom: 12px; }
    .app-card span { font-size: 18px; }
    .batch-toolbar { flex-wrap: wrap; }
    #authView::after { animation: none !important; opacity: 0.6; filter: blur(40px); }
    #authView { padding: 80px 16px 30px; overflow: hidden; }
    .auth-card { background: rgba(255, 255, 255, 0.95); }
    .upload-progress { left: 20px; right: 20px; width: auto; bottom: 20px; }
    .notice-text { font-size: 15px; }
    .notice-bar { padding: 7px 12px; }
    .auth-version-fixed { position: static; display: inline-block; margin-top: 15px; box-shadow: none; background: transparent; border: none; }
    .admin-panel { padding: 16px; }
    .admin-tabs { gap: 4px; }
    .admin-tab { padding: 8px 12px; font-size: 13px; }
    .floating-feedback { width: 46px; height: 46px; font-size: 20px; }
    .resource-tabs { flex-wrap: wrap; }
  }
  /* 资源互享专用悬浮按钮 */
  .res-icon-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-main);
  }
  .res-icon-btn:hover {
    background: #f1f5f9;
    transform: scale(1.1);
  }
  
  /* 网格模式下的绝对定位悬浮面板 */
  .res-grid-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px dashed var(--border-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 10;
  }
  .file-card:hover .res-grid-actions {
    display: flex;
  }
  /* ===== 在线工具列表样式 ===== */
  .tool-category {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .tool-category-title {
    padding: 16px 24px;
    background: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .tool-list {
    display: flex;
    flex-direction: column;
  }
  .tool-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
  }
  .tool-list-item:last-child {
    border-bottom: none;
  }
  .tool-list-item:hover {
    background: #f8fafc;
  }
  
  .tool-list-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
  }
  .tool-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .tool-list-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
  }
  .tool-list-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tool-list-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .tool-list-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 20px;
  }
    /* 在线工具分类卡片网格 */
  .tools-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
  }
  .tools-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
  }
  .tools-cat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.25);
  }
  .tools-cat-icon {
    font-size: 40px;
    margin-bottom: 16px;
    line-height: 1;
  }
  .tools-cat-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
  }
  .tools-cat-count {
    font-size: 13px;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
  }
  .tool-list-actions .btn-tool {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin: 0;
  }
  .tool-list-actions .btn-res-del {
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0;
  }
  @media (max-width: 600px) {
    .tool-list-desc { display: none; }
    .tool-list-item { padding: 12px 16px; }
    .tool-list-actions .btn-tool { padding: 6px 14px; font-size: 13px; }
  }
  /* ===== 新增功能样式 ===== */
    .topbar-search-box { display: flex; align-items: center; background: #f1f5f9; border-radius: 20px; padding: 6px 16px; width: 300px; max-width: 100%; flex: 1 1 200px; min-width: 0; transition: 0.2s; margin-left: 20px; }
  .topbar-search-box:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--primary); }
  .topbar-search-box input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; margin-left: 8px; }
  .storage-bar-wrap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); background: #f1f5f9; padding: 6px 12px; border-radius: 20px; margin-left: 12px; }
  .storage-bar { width: 80px; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
  .storage-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #6366f1); width: 0%; transition: width 0.3s; }
  #dragOverlay { position: fixed; inset: 0; z-index: 9999; background: rgba(59, 130, 246, 0.8); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; border: 4px dashed #fff; margin: 20px; border-radius: 20px; }
  #dragOverlay h1 { color: #fff; font-size: 32px; font-weight: 800; }
  .share-item { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
/* ===== 自定义密保问题下拉框美化 ===== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

/* 隐藏原生 select */
.custom-select-wrapper select {
  display: none !important;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-select-trigger:hover {
  border-color: #94a3b8;
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.custom-select-trigger .select-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e293b;
}

.custom-select-trigger .select-text.placeholder {
  color: #94a3b8;
}

.custom-select-trigger svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
  transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger svg {
  transform: rotate(180deg);
  stroke: #3b82f6;
}

/* 下拉面板 */
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow: hidden;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 搜索框 */
.custom-select-search {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.custom-select-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.custom-select-search input:focus {
  border-color: #3b82f6;
}

/* 列表区域 */
.custom-select-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  flex: 1;
}

/* 自定义滚动条 */
.custom-select-list::-webkit-scrollbar {
  width: 6px;
}
.custom-select-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-select-list::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-list li {
  padding: 10px 12px;
  font-size: 14px;
  color: #334155;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.custom-select-list li:hover {
  background: #eff6ff;
  color: #2563eb;
}

.custom-select-list li.selected {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.custom-select-list li.empty-msg {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 20px;
  cursor: default;
}

/* ===== 管理后台卡片化 ===== */
.admin-dashboard {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}

.admin-module-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.admin-module-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.25);
}

.amc-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.amc-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.amc-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* 二级页面 */
.admin-subpage-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

.subpage-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

/* 调整一下筛选按钮的紧凑感 */
.log-filter .btn-filter-reset {
  padding: 7px 12px;
}
/* ===== 管理后台二级页面卡片化 ===== */
.admin-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.admin-item-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.admin-item-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.admin-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  word-break: break-all;
}

.admin-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #475569;
}
.admin-item-row span:first-child { color: #94a3b8; }
.admin-item-row span:last-child { font-weight: 500; color: #334155; text-align: right; max-width: 60%; word-break: break-all; }
@media (max-width: 900px) {
  #pane-system > .admin-section > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
/* ===== 管理后台通用列表卡片美化 (修复居中、平铺及溢出) ===== */
.admin-list-container {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 16px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  
  /* 关键修复 3：防止内容撑破卡片 */
  box-sizing: border-box;
  width: 100%;
  overflow: hidden; 
}

.admin-list-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}

.admin-list-main {
  flex: 1;
  /* 关键修复 4：flex 子项必须设为 min-width: 0，否则长文本无法被截断 */
  min-width: 0; 
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-list-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  
  /* 关键修复 5：标题过长时显示省略号，不换行 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-list-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-list-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  word-break: normal;
}

.admin-list-sub span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;      /* 强制单行，不换行 */
  overflow: hidden;         /* 超出隐藏 */
  text-overflow: ellipsis;  /* 超出显示省略号 */
}

/* 处理日志里的修改前后文本溢出 */
.admin-list-main > div[style*="margin-bottom:4px"] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-list-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  /* 关键修复 6：右侧区域不允许被挤压 */
  flex-shrink: 0; 
  margin-left: 20px;
}

.admin-list-tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 管理员专有圆形头像 */
.admin-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

/* 移动端适配：单列显示 */
@media (max-width: 768px) {
  .admin-list-container {
    grid-template-columns: 1fr;
  }
  .admin-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-list-extra {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .topbar-search-box { display: none; }
  .view-details .col-size { width: 70px; }
  .view-details .col-date { display: none; }
  .details-header .col-date { display: none; }
}
/* ===== 彻底隐藏全局滚动条，保留滚动功能 ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh; /* 锁定高度 */
  overflow: hidden; /* 禁止外层滚动 */
}

/* 针对主界面内部容器，允许滚动但隐藏滚动条 */
#driveView {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* 针对 WebKit 内核浏览器 (Chrome, Edge, Safari) */
#driveView::-webkit-scrollbar,
.admin-panel::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.content::-webkit-scrollbar {
  display: none;
}

/* 其他可能出现的滚动条一并隐藏 */
body::-webkit-scrollbar {
  display: none;
}