
    :root {
      --bg: #f5f7fa;
      --card-bg: #ffffff;
      --text: #333333;
      --text-secondary: #888888;
      --text-muted: #666666;
      --border: #e0e0e0;
      --shadow: rgba(0,0,0,0.08);
      --shadow-hover: rgba(0,0,0,0.12);
      --primary: #667eea;
      --primary-hover: #5a6fd6;
      --danger: #ff6b6b;
      --danger-hover: #ee5a5a;
      --tag-bg: #f0f0f0;
      --overlay: rgba(0,0,0,0.5);
      --header-from: #667eea;
      --header-to: #764ba2;
    }
    .dark-mode {
      --bg: #0f0f1a;
      --card-bg: #1a1a2e;
      --text: #e0e0e0;
      --text-secondary: #999999;
      --text-muted: #777777;
      --border: #2a2a4a;
      --shadow: rgba(0,0,0,0.3);
      --shadow-hover: rgba(0,0,0,0.4);
      --tag-bg: #2a2a4a;
      --overlay: rgba(0,0,0,0.7);
      --header-from: #1a1a2e;
      --header-to: #0f0f1a;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); min-height: 100vh; color: var(--text); transition: background 0.3s, color 0.3s; }
    
    .header { background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%); color: white; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; }
    .header-left h1 { font-size: 24px; margin-bottom: 5px; }
    .header-left p { opacity: 0.9; font-size: 14px; }
    .header-actions { display: flex; gap: 10px; align-items: center; }
    .dark-toggle { background: rgba(255,255,255,0.2); border: none; color: white; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 16px; transition: background 0.2s; }
    .dark-toggle:hover { background: rgba(255,255,255,0.3); }
    
    .container { max-width: 1400px; margin: 0 auto; padding: 20px; }
    
    .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
    .stat-card { background: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px var(--shadow); transition: background 0.3s; }
    .stat-card .label { color: var(--text-secondary); font-size: 13px; margin-bottom: 5px; }
    .stat-card .value { font-size: 28px; font-weight: 700; color: var(--text); }
    .stat-card .sub { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
    
    .toolbar { background: var(--card-bg); border-radius: 12px; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 8px var(--shadow); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; transition: background 0.3s; }
    .toolbar input, .toolbar select { padding: 10px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg); color: var(--text); transition: background 0.3s, color 0.3s; }
    .toolbar input { flex: 1; min-width: 200px; }
    .toolbar select { min-width: 120px; }
    
    .btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
    .btn-primary { background: var(--primary); color: white; }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-danger { background: var(--danger); color: white; }
    .btn-danger:hover { background: var(--danger-hover); }
    .btn-secondary { background: var(--border); color: var(--text); }
    .btn-secondary:hover { background: #d0d0d0; }
    .btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }
    
    .files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
    .file-card { background: var(--card-bg); border-radius: 12px; padding: 15px; box-shadow: 0 2px 8px var(--shadow); transition: all 0.2s; cursor: pointer; position: relative; }
    .file-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow-hover); }
    .file-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; }
    .file-card .card-check { margin-right: 8px; margin-top: 2px; }
    .file-card .icon { font-size: 40px; margin-bottom: 10px; }
    .file-card .name { font-weight: 600; color: var(--text); margin-bottom: 5px; word-break: break-all; }
    .file-card .meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
    .file-card .tags { display: flex; flex-wrap: wrap; gap: 5px; }
    .file-card .tag { background: var(--tag-bg); padding: 3px 8px; border-radius: 4px; font-size: 11px; color: var(--text-muted); }
    
    .file-card .type-media { color: #ff6b6b; }
    .file-card .type-document { color: #4ecdc4; }
    .file-card .type-html { color: #ffd93d; }
    .file-card .type-image { color: #45b7d1; }
    
    .bookmark-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 2px; opacity: 0.4; transition: all 0.2s; line-height: 1; }
    .bookmark-btn:hover { opacity: 0.8; transform: scale(1.2); }
    .bookmark-btn.active { opacity: 1; }
    
    .batch-bar { display: none; background: var(--primary); color: white; border-radius: 8px; padding: 10px 15px; margin-bottom: 10px; align-items: center; gap: 15px; flex-wrap: wrap; }
    .batch-bar.show { display: flex; }
    .batch-bar .count { font-weight: 600; }
    .batch-bar .btn { background: rgba(255,255,255,0.2); color: white; }
    .batch-bar .btn:hover { background: rgba(255,255,255,0.3); }
    
    .scan-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--overlay); z-index: 100; justify-content: center; align-items: center; }
    .scan-modal.active { display: flex; }
    .modal-content { background: var(--card-bg); border-radius: 16px; padding: 30px; width: 90%; max-width: 500px; }
    .modal-content h2 { margin-bottom: 20px; color: var(--text); }
    .modal-content input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; font-size: 14px; background: var(--bg); color: var(--text); }
    .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
    
    .loading { text-align: center; padding: 40px; color: var(--text-secondary); }
    .spinner { display: inline-block; width: 40px; height: 40px; border: 3px solid var(--border); border-top: 3px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    
    .toast { position: fixed; bottom: 20px; right: 20px; background: #333; color: white; padding: 15px 25px; border-radius: 8px; z-index: 200; display: none; }
    .toast.success { background: #4ecdc4; }
    .toast.error { background: var(--danger); }
    
    .tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
    .tag-filter .tag { padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: all 0.2s; }
    .tag-filter .tag:hover, .tag-filter .tag.active { background: var(--primary); color: white; }
    
    .empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
    .empty-state .icon { font-size: 60px; margin-bottom: 15px; }

    /* Folder tree sidebar */
    .layout-wrapper { display: flex; gap: 20px; }
    .sidebar { width: 260px; flex-shrink: 0; background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 8px var(--shadow); padding: 15px; max-height: 70vh; overflow-y: auto; display: none; transition: background 0.3s; }
    .sidebar.show { display: block; }
    .sidebar h3 { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
    .sidebar-content { width: 100%; }
    .folder-item { padding: 6px 10px; cursor: pointer; border-radius: 6px; color: var(--text); font-size: 13px; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
    .folder-item:hover { background: var(--tag-bg); }
    .folder-item.active { background: var(--primary); color: white; }
    .folder-item .arrow { font-size: 10px; width: 14px; text-align: center; transition: transform 0.2s; }
    .folder-item .arrow.expanded { transform: rotate(90deg); }
    .folder-children { padding-left: 20px; }
    .folder-children.hidden { display: none; }
    .main-content { flex: 1; min-width: 0; }

    /* Duplicates / Recent */
    .dup-group { background: var(--card-bg); border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 4px var(--shadow); }
    .dup-group h4 { font-size: 14px; margin-bottom: 8px; color: var(--text); }
    .dup-group .dup-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
    .dup-file { padding: 6px 10px; background: var(--bg); border-radius: 6px; margin-bottom: 4px; font-size: 13px; word-break: break-all; cursor: pointer; }
    .dup-file:hover { opacity: 0.8; }

    .recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
    .recent-item { background: var(--card-bg); border-radius: 10px; padding: 12px; box-shadow: 0 1px 4px var(--shadow); cursor: pointer; transition: all 0.2s; }
    .recent-item:hover { transform: translateY(-1px); }

    /* 分页组件 */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-top: 20px;
      padding: 15px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .pagination button {
      padding: 8px 15px;
      border: 1px solid #ddd;
      border-radius: 6px;
      background: white;
      cursor: pointer;
      transition: all 0.2s;
    }
    .pagination button:hover:not(:disabled) {
      background: #667eea;
      color: white;
      border-color: #667eea;
    }
    .pagination button:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    .pagination .page-info {
      color: #666;
      font-size: 14px;
    }
    .pagination select {
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
    }

    /* 展示模式切换 */
    .view-mode-toggle {
      display: flex;
      gap: 5px;
      margin-left: auto;
    }
    .view-mode-toggle button {
      padding: 8px 12px;
      border: 1px solid #ddd;
      background: white;
      cursor: pointer;
      border-radius: 6px;
      font-size: 16px;
      transition: all 0.2s;
    }
    .view-mode-toggle button.active {
      background: #667eea;
      color: white;
      border-color: #667eea;
    }

    /* 列表模式 */
    .files-grid.list-view {
      display: block;
    }
    .files-grid.list-view .file-card {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 12px 15px;
      margin-bottom: 8px;
    }
    .files-grid.list-view .file-card .icon {
      font-size: 24px;
      margin-bottom: 0;
    }
    .files-grid.list-view .file-card .name {
      flex: 1;
      margin-bottom: 0;
    }
    .files-grid.list-view .file-card .meta {
      margin-bottom: 0;
      min-width: 120px;
      text-align: right;
    }
    .files-grid.list-view .file-card .tags {
      min-width: 150px;
      justify-content: flex-end;
    }

    /* 导航标签 */
    .nav-tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
      background: white;
      padding: 10px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .nav-tab {
      padding: 12px 24px;
      border: none;
      background: transparent;
      cursor: pointer;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      color: #666;
      transition: all 0.2s;
    }
    .nav-tab:hover {
      background: #f5f5f5;
    }
    .nav-tab.active {
      background: #667eea;
      color: white;
    }

    /* 页面切换 */
    .page {
      display: none;
    }
    .page.active {
      display: block;
    }

    /* 统计概览 */
    .stats-overview {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
      margin-bottom: 20px;
    }

    /* 统计区块 */
    .stats-section {
      background: white;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .stats-section h3 {
      margin-bottom: 15px;
      color: #333;
    }

    /* 热门文件列表 */
    .top-files-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .top-file-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 10px;
      background: #f8f9fa;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .top-file-item:hover {
      background: #e9ecef;
    }
    .top-file-item .rank {
      font-size: 18px;
      font-weight: bold;
      color: #667eea;
      min-width: 30px;
    }
    .top-file-item .name {
      flex: 1;
      font-weight: 500;
    }
    .top-file-item .stats {
      color: #888;
      font-size: 14px;
    }

    /* 类型统计 */
    .type-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
    }
    .type-stat-item {
      text-align: center;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
    }
    .type-stat-item .type-name {
      font-size: 14px;
      color: #888;
      margin-bottom: 5px;
    }
    .type-stat-item .type-value {
      font-size: 16px;
      font-weight: bold;
      color: #333;
    }

    /* 预览模态窗口 */
    .preview-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.8);
      z-index: 300;
      justify-content: center;
      align-items: center;
    }
    .preview-modal.active {
      display: flex;
    }
    .preview-content {
      background: white;
      border-radius: 16px;
      width: 90%;
      max-width: 900px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .preview-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
      background: #f8f9fa;
    }
    .preview-header h3 {
      margin: 0;
      font-size: 16px;
      color: #333;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
      margin-right: 15px;
    }
    .preview-header .close-btn {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #666;
      padding: 0;
      line-height: 1;
    }
    .preview-header .close-btn:hover {
      color: #333;
    }
    .preview-body {
      flex: 1;
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
      background: #f5f5f5;
      min-height: 300px;
    }
    .preview-footer {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      padding: 15px 20px;
      border-top: 1px solid #eee;
      background: #f8f9fa;
    }

    /* 视频播放器 */
    .preview-body video {
      background: #000;
      border-radius: 8px;
    }

    /* 音频播放器 */
    .audio-player {
      text-align: center;
      padding: 30px;
      width: 100%;
      max-width: 400px;
    }
    .audio-player .audio-icon {
      font-size: 64px;
      margin-bottom: 15px;
    }
    .audio-player .audio-info {
      margin-bottom: 20px;
    }
    .audio-player .audio-name {
      font-size: 18px;
      font-weight: 600;
      color: #333;
      word-break: break-all;
    }
    .audio-player .audio-hint {
      font-size: 14px;
      color: #888;
      margin-top: 5px;
    }
    .audio-player audio {
      border-radius: 8px;
    }

    /* PDF阅读器 */
    .preview-body iframe {
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* 文本阅读器 */
    .text-content {
      width: 100%;
      height: 70vh;
      overflow: auto;
      background: #f8f9fa;
      padding: 20px;
      border-radius: 8px;
      font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
      font-size: 14px;
      line-height: 1.6;
      white-space: pre-wrap;
      word-wrap: break-word;
      color: #333;
      margin: 0;
    }

    /* 响应式设计 - 媒体查询 */
    
    /* 平板端 (768px - 1024px) */
    @media (max-width: 1024px) {
      .container {
        padding: 15px;
      }
      
      .header {
        padding: 15px;
      }
      
      .header h1 {
        font-size: 20px;
      }
      
      .stats-grid,
      .stats-overview {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      }
      
      .toolbar {
        padding: 12px;
      }
      
      .toolbar input,
      .toolbar select {
        padding: 8px 12px;
        font-size: 13px;
      }
      
      .toolbar input {
        min-width: 180px;
      }
      
      .btn {
        padding: 8px 16px;
        font-size: 13px;
      }
      
      .nav-tabs {
        padding: 8px;
        gap: 8px;
      }
      
      .nav-tab {
        padding: 10px 20px;
        font-size: 13px;
      }
      
      .preview-content {
        width: 95%;
        max-width: 800px;
      }
      
      .modal-content {
        width: 95%;
        max-width: 450px;
        padding: 25px;
      }
    }
    
    /* 移动端 (< 768px) */
    @media (max-width: 767px) {
      body {
        font-size: 14px;
      }
      
      .header {
        padding: 12px 15px;
        text-align: center;
      }
      
      .header h1 {
        font-size: 18px;
        margin-bottom: 3px;
      }
      
      .header p {
        font-size: 12px;
      }
      
      .container {
        padding: 10px;
      }
      
      /* 统计卡片 - 移动端显示为2列 */
      .stats-grid,
      .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
      }
      
      .stat-card {
        padding: 15px;
        border-radius: 10px;
      }
      
      .stat-card .label {
        font-size: 12px;
      }
      
      .stat-card .value {
        font-size: 22px;
      }
      
      .stat-card .sub {
        font-size: 11px;
      }
      
      /* 工具栏 - 移动端垂直布局 */
      .toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
      }
      
      .toolbar input,
      .toolbar select {
        width: 100%;
        min-width: unset;
        padding: 10px 12px;
        font-size: 14px;
      }
      
      .view-mode-toggle {
        margin-left: 0;
        justify-content: center;
        order: -1;
      }
      
      .view-mode-toggle button {
        padding: 6px 10px;
        font-size: 14px;
      }
      
      .toolbar .btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
      }
      
      /* 文件网格 - 移动端1列 */
      .files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      
      .file-card {
        padding: 12px;
        border-radius: 10px;
      }
      
      .file-card .icon {
        font-size: 32px;
        margin-bottom: 8px;
      }
      
      .file-card .name {
        font-size: 14px;
        margin-bottom: 4px;
      }
      
      .file-card .meta {
        font-size: 11px;
        margin-bottom: 6px;
      }
      
      .file-card .tag {
        font-size: 10px;
        padding: 2px 6px;
      }
      
      /* 列表模式 - 移动端优化 */
      .files-grid.list-view .file-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
      }
      
      .files-grid.list-view .file-card .icon {
        font-size: 24px;
      }
      
      .files-grid.list-view .file-card .name {
        width: 100%;
        font-size: 14px;
      }
      
      .files-grid.list-view .file-card .meta {
        width: 100%;
        text-align: left;
        min-width: unset;
      }
      
      .files-grid.list-view .file-card .tags {
        width: 100%;
        justify-content: flex-start;
        min-width: unset;
      }
      
      /* 导航标签 - 移动端滚动 */
      .nav-tabs {
        padding: 6px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      
      .nav-tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
      }
      
      /* 分页组件 - 移动端优化 */
      .pagination {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        margin-top: 15px;
      }
      
      .pagination button {
        width: 100%;
        padding: 10px;
      }
      
      .pagination .page-info {
        font-size: 13px;
      }
      
      .pagination select {
        width: 100%;
        padding: 10px;
      }
      
      /* 模态窗口 - 移动端全屏 */
      .scan-modal .modal-content,
      .preview-modal .preview-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        margin: 0;
      }
      
      .preview-modal .preview-content {
        flex-direction: column;
      }
      
      .preview-header {
        padding: 12px 15px;
      }
      
      .preview-header h3 {
        font-size: 14px;
      }
      
      .preview-body {
        padding: 15px;
        min-height: 250px;
      }
      
      .preview-footer {
        padding: 12px 15px;
        gap: 8px;
      }
      
      .preview-footer .btn {
        padding: 8px 16px;
        font-size: 13px;
      }
      
      /* 音频播放器 - 移动端优化 */
      .audio-player {
        padding: 20px;
      }
      
      .audio-player .audio-icon {
        font-size: 48px;
      }
      
      .audio-player .audio-name {
        font-size: 16px;
      }
      
      .text-content {
        height: 60vh;
        padding: 15px;
        font-size: 13px;
      }
      
      /* 统计区块 - 移动端优化 */
      .stats-section {
        padding: 15px;
        margin-bottom: 15px;
      }
      
      .stats-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
      }
      
      .top-file-item {
        padding: 8px;
        gap: 10px;
      }
      
      .top-file-item .rank {
        font-size: 16px;
        min-width: 25px;
      }
      
      .top-file-item .name {
        font-size: 13px;
      }
      
      .top-file-item .stats {
        font-size: 12px;
      }
      
      .type-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }
      
      .type-stat-item {
        padding: 12px;
      }
      
      .type-stat-item .type-name {
        font-size: 13px;
      }
      
      .type-stat-item .type-value {
        font-size: 14px;
      }
      
      /* Toast通知 - 移动端居中 */
      .toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
        text-align: center;
        padding: 12px 20px;
      }
      
      /* 标签筛选 - 移动端优化 */
      .tag-filter {
        gap: 6px;
        margin-bottom: 12px;
      }
      
      .tag-filter .tag {
        padding: 4px 10px;
        font-size: 12px;
      }
      
      /* 空状态 - 移动端优化 */
      .empty-state {
        padding: 40px 15px;
      }
      
      .empty-state .icon {
        font-size: 48px;
        margin-bottom: 12px;
      }
      
      .empty-state h3 {
        font-size: 16px;
      }
      
      .empty-state p {
        font-size: 13px;
      }
      
      /* 加载状态 - 移动端优化 */
      .loading {
        padding: 30px;
      }
      
      .spinner {
        width: 32px;
        height: 32px;
      }
    }
    
    /* 小屏幕移动端 (< 480px) */
    @media (max-width: 480px) {
      .stats-grid,
      .stats-overview {
        grid-template-columns: 1fr;
      }
      
      .stat-card {
        padding: 12px;
      }
      
      .stat-card .value {
        font-size: 20px;
      }
      
      .type-stats {
        grid-template-columns: 1fr;
      }
      
      .nav-tab {
        padding: 6px 12px;
        font-size: 12px;
      }
    }
    
    /* 触摸设备优化 */
    @media (hover: none) and (pointer: coarse) {
      .btn:hover,
      .nav-tab:hover,
      .tag:hover,
      .file-card:hover,
      .top-file-item:hover {
        background: inherit;
        transform: none;
      }
      
      .btn:active,
      .nav-tab:active,
      .tag:active,
      .file-card:active,
      .top-file-item:active {
        background: #f0f0f0;
        transform: scale(0.98);
      }
      
      .btn-primary:active {
        background: #5a6fd6;
      }
      
      .btn-danger:active {
        background: #ee5a5a;
      }
      
      .btn-secondary:active {
        background: #d0d0d0;
      }
    }
  