* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f5f7fa; color: #333; height: 100vh; overflow: hidden; } /* 应用容器 */ .app-container { display: flex; height: 100vh; } /* 侧边栏 */ .sidebar { width: 260px; background: #fff; border-right: 1px solid #e8e8e8; display: flex; flex-direction: column; flex-shrink: 0; } .sidebar-header { padding: 20px; border-bottom: 1px solid #e8e8e8; } .sidebar-header h1 { font-size: 18px; font-weight: 600; color: #1a73e8; display: flex; align-items: center; gap: 10px; } .sidebar-actions { padding: 16px; } .sidebar-nav { flex: 1; padding: 8px; overflow-y: auto; } .nav-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #555; transition: all 0.2s; margin-bottom: 2px; } .nav-item:hover { background: #f0f4f8; color: #1a73e8; } .nav-item.active { background: #e8f0fe; color: #1a73e8; font-weight: 500; } .nav-folder { padding-left: 12px; } .nav-folder .nav-item { padding-left: 24px; } .sidebar-footer { padding: 16px; border-top: 1px solid #e8e8e8; } /* 主内容区 */ .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; } /* 工具栏 */ .toolbar { padding: 16px 24px; background: #fff; border-bottom: 1px solid #e8e8e8; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; } .breadcrumb-item { color: #1a73e8; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.2s; } .breadcrumb-item:hover { background: #f0f4f8; } .breadcrumb-separator { color: #999; } .toolbar-actions { display: flex; align-items: center; gap: 8px; } .view-toggle { display: flex; background: #f0f4f8; border-radius: 6px; padding: 2px; margin-left: 8px; } /* 按钮样式 */ .btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; font-weight: 500; } .btn-primary { background: #1a73e8; color: #fff; } .btn-primary:hover { background: #1557b0; } .btn-secondary { background: #f0f4f8; color: #333; } .btn-secondary:hover { background: #e0e7ef; } .btn-danger { background: #ea4335; color: #fff; } .btn-danger:hover { background: #c5221f; } .btn-text { background: transparent; color: #555; } .btn-text:hover { background: #f0f4f8; color: #1a73e8; } .btn-icon { padding: 6px 10px; background: transparent; color: #666; } .btn-icon:hover { background: #e0e7ef; } .btn-icon.active { background: #fff; color: #1a73e8; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .btn-block { width: 100%; justify-content: center; } /* 拖拽区域 */ .drop-zone { margin: 24px; padding: 40px; border: 2px dashed #c5d5e8; border-radius: 12px; text-align: center; color: #666; transition: all 0.3s; background: #fafbfc; } .drop-zone.drag-over { border-color: #1a73e8; background: #e8f0fe; color: #1a73e8; } .drop-zone i { font-size: 48px; margin-bottom: 16px; color: #c5d5e8; } .drop-zone.drag-over i { color: #1a73e8; } .drop-zone p { font-size: 16px; margin-bottom: 8px; } .drop-zone-hint { font-size: 13px; color: #999; } /* 文件列表 */ .file-list { flex: 1; overflow-y: auto; padding: 0 24px 24px; } /* 列表视图 */ .file-list.list-view { display: block; } .file-list.list-view .file-item { display: flex; align-items: center; padding: 12px 16px; background: #fff; border-radius: 8px; margin-bottom: 4px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; } .file-list.list-view .file-item:hover { background: #f8fafc; border-color: #e0e7ef; } .file-list.list-view .file-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 16px; border-radius: 8px; background: #f0f4f8; } .file-list.list-view .file-icon.folder { color: #fbbc04; background: #fef7e0; } .file-list.list-view .file-icon.file { color: #1a73e8; background: #e8f0fe; } .file-list.list-view .file-info { flex: 1; min-width: 0; } .file-list.list-view .file-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-list.list-view .file-meta { font-size: 12px; color: #999; } .file-list.list-view .file-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; } .file-list.list-view .file-item:hover .file-actions { opacity: 1; } /* 网格视图 */ .file-list.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; } .file-list.grid-view .file-item { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; background: #fff; border-radius: 12px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; text-align: center; } .file-list.grid-view .file-item:hover { border-color: #1a73e8; box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15); transform: translateY(-2px); } .file-list.grid-view .file-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 12px; border-radius: 12px; background: #f0f4f8; } .file-list.grid-view .file-icon.folder { color: #fbbc04; background: #fef7e0; } .file-list.grid-view .file-icon.file { color: #1a73e8; background: #e8f0fe; } .file-list.grid-view .file-info { width: 100%; } .file-list.grid-view .file-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; } .file-list.grid-view .file-meta { font-size: 11px; color: #999; } .file-list.grid-view .file-actions { display: flex; gap: 4px; margin-top: 8px; opacity: 0; transition: opacity 0.2s; } .file-list.grid-view .file-item:hover .file-actions { opacity: 1; } /* 文件操作按钮 */ .file-action-btn { padding: 6px 8px; border: none; background: #f0f4f8; border-radius: 4px; cursor: pointer; font-size: 12px; color: #666; transition: all 0.2s; } .file-action-btn:hover { background: #e0e7ef; color: #1a73e8; } .file-action-btn.danger:hover { background: #fce8e6; color: #ea4335; } /* 加载状态 */ .loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #666; } .loading i { font-size: 32px; color: #1a73e8; margin-bottom: 16px; } /* 空状态 */ .empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; } .empty-state i { font-size: 64px; margin-bottom: 16px; color: #d0d7de; } .empty-state p { font-size: 16px; margin-bottom: 8px; } .empty-hint { font-size: 13px; color: #bbb; } /* 弹窗 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; } .modal.show { display: flex; } .modal-content { background: #fff; border-radius: 12px; padding: 24px; width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); } .modal-large { max-width: 720px; } .modal-content h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: #333; } .modal-desc { font-size: 14px; color: #666; margin-bottom: 20px; } .form-group { margin-bottom: 16px; } .form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #333; } .form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1); } .form-group textarea { resize: vertical; font-family: 'Consolas', 'Monaco', monospace; font-size: 13px; } .form-group small { display: block; font-size: 12px; color: #999; margin-top: 4px; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e8e8e8; } /* 分享链接 */ .share-link-container { display: flex; gap: 8px; margin-bottom: 16px; } .share-link-container input { flex: 1; padding: 10px 12px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 13px; background: #f8fafc; font-family: 'Consolas', 'Monaco', monospace; } .share-info { padding: 12px; background: #e8f0fe; border-radius: 6px; font-size: 13px; color: #1a73e8; } .share-info i { margin-right: 6px; } /* Toast 提示 */ .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); padding: 12px 24px; background: #333; color: #fff; border-radius: 8px; font-size: 14px; z-index: 2000; transition: transform 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .toast.show { transform: translateX(-50%) translateY(0); } .toast.success { background: #34a853; } .toast.error { background: #ea4335; } .toast.info { background: #1a73e8; } /* 响应式 */ @media (max-width: 768px) { .sidebar { display: none; } .toolbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; } .toolbar-actions { flex-wrap: wrap; } .drop-zone { margin: 16px; padding: 24px; } .file-list { padding: 0 16px 16px; } .file-list.grid-view { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; } .file-list.grid-view .file-icon { width: 48px; height: 48px; font-size: 24px; } .modal-content { width: 95%; margin: 16px; } }