 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        body {
            background: #f5f7f9;
            color: #2d3748;
            line-height: 1.6;
        }

        /* 容器样式 */
        .cloud-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }

        /* 头部样式 - 移动端隐藏 */
        .cloud-header {
            background: white;
            border-radius: 12px;
            padding: 1.2rem 1.5rem;
            margin-bottom: 1.2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid #eaecef;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cloud-header h1 {
            color: #2c3e50;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .user-info span {
            font-weight: 600;
            color: #2c3e50;
        }

        /* 按钮样式 */
        .btn {
            padding: 0.6rem 1rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            text-decoration: none;
            white-space: nowrap;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: #ecf0f1;
            color: #7f8c8d;
        }

        .btn-secondary:hover {
            background: #dfe6e9;
        }

        .btn-outline {
            background: transparent;
            color: #3498db;
            border: 1px solid #3498db;
        }

        .btn-outline:hover {
            background: #3498db;
            color: white;
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .btn-success {
            background: #2ecc71;
            color: white;
        }

        .btn-success:hover {
            background: #27ae60;
        }

        .btn-warning {
            background: #f39c12;
            color: white;
        }

        .btn-warning:hover {
            background: #d35400;
        }

        .btn-sm {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }

        /* 存储空间信息卡片 - 移动端添加用户信息 */
        .storage-info-card {
            background: white;
            border-radius: 12px;
            padding: 1.2rem;
            margin-bottom: 1.2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid #eaecef;
            position: relative;
        }

        .storage-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .storage-header h2 {
            color: #2c3e50;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .storage-progress {
            margin-bottom: 1rem;
        }

        .progress-bar {
            width: 100%;
            height: 12px;
            background: #ecf0f1;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3498db, #2980b9);
            border-radius: 6px;
            transition: width 0.5s ease;
        }

        .storage-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: #7f8c8d;
        }

        .usage-percent {
            font-weight: 600;
            color: #2c3e50;
        }

        .quota-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: #7f8c8d;
        }

        #admin-badge {
            color: #e74c3c;
        }

        /* 移动端用户信息容器 */
        .mobile-user-info {
            display: none;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eaecef;
        }

        .mobile-user-info .username {
            font-weight: 600;
            color: #2c3e50;
            font-size: 1rem;
        }

        /* 工具栏样式 - 移动端优化 */
        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.2rem;
            flex-wrap: wrap;
        }

        .toolbar-main {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex: 1;
            min-width: 0;
        }

        .toolbar-actions {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            flex: 1;
            min-width: 0;
        }

        .search-box {
            position: relative;
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 150px;
        }

        .search-box input {
            padding: 0.6rem 2.5rem 0.6rem 1rem;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            font-size: 0.9rem;
            width: 100%;
            transition: border-color 0.2s;
        }

        .search-box input:focus {
            outline: none;
            border-color: #3498db;
        }

        .search-box i {
            position: absolute;
            right: 1rem;
            color: #7f8c8d;
        }

        /* 分类选项卡容器 - 包含主分类和子分类 */
        .category-tabs-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            border: 1px solid #eaecef;
            margin-bottom: 1.2rem;
            padding: 0.5rem;
        }

        /* 主分类选项卡容器 - 独立滚动 */
        .main-category-tabs-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eaecef;
        }

        .main-category-tabs {
            display: flex;
            gap: 0.5rem;
            min-width: max-content;
        }

        .category-tab {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.7rem 1rem;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .category-tab:hover {
            background: #e9ecef;
            border-color: #dee2e6;
        }

        .category-tab.active {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }

        .category-name {
            font-weight: 500;
            font-size: 0.9rem;
        }

        .category-count {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .category-tab.active .category-count {
            background: rgba(255, 255, 255, 0.3);
        }

        /* 子分类选项卡容器 - 独立滚动 */
        .sub-category-tabs-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .sub-category-tabs {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            min-width: max-content;
        }

        .sub-category-tab {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.8rem;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .sub-category-tab:hover {
            background: #e9ecef;
            border-color: #dee2e6;
        }

        .sub-category-tab.active {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }

        .sub-category-name {
            font-weight: 500;
            font-size: 0.85rem;
        }

        .sub-category-count {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .sub-category-tab.active .sub-category-count {
            background: rgba(255, 255, 255, 0.3);
        }

        .btn-manage-sub-categories {
            padding: 0.5rem 0.8rem;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: background 0.2s;
            white-space: nowrap;
        }

        .btn-manage-sub-categories:hover {
            background: #5a6268;
        }

        /* 子分类容器样式 - 桌面端 */
        .sub-category-container {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid #eaecef;
        }

        .sub-category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.8rem;
        }

        .sub-category-header h4 {
            margin: 0;
            color: #2c3e50;
            font-size: 1rem;
        }

        /* 文件容器 */
        .files-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid #eaecef;
            overflow: hidden;
        }

        .files-header {
            padding: 1.2rem;
            border-bottom: 1px solid #eaecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .files-header h3 {
            color: #2c3e50;
            margin: 0;
            font-size: 1.1rem;
        }

        .file-count {
            color: #7f8c8d;
            font-size: 0.9rem;
        }

        /* 文件表格 - 移动端完全响应式 */
        .files-table-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .files-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
            min-width: 1000px; /* 确保所有列都可见，通过滚动查看 */
        }

        .files-table thead {
            background: #f8fafc;
        }

        .files-table th {
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            color: #718096;
            border-bottom: 1px solid #eaecef;
            white-space: nowrap;
        }

        .files-table td {
            padding: 1rem;
            border-bottom: 1px solid #f9f9f9;
            vertical-align: top;
        }

        .files-table tbody tr:hover {
            background: #fefeff;
        }

        .files-table .file-name-column {
            min-width: 200px;
            max-width: 300px;
        }

        .files-table .action-column {
            text-align: center;
            min-width: 220px;
        }

        /* 文件项样式 - 优化布局 */
        .file-item {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .file-name-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 0.8rem;
        }

        .file-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            font-size: 1rem;
            flex-shrink: 0;
            margin-top: 0.2rem;
        }

        .file-icon.image { background: #e3f2fd; color: #1976d2; }
        .file-icon.audio { background: #f3e5f5; color: #7b1fa2; }
        .file-icon.video { background: #e8f5e9; color: #388e3c; }
        .file-icon.document { background: #fff3e0; color: #f57c00; }
        .file-icon.archive { background: #fce4ec; color: #c2185b; }
        .file-icon.code { background: #e0f2f1; color: #00796b; }
        .file-icon.other { background: #f5f5f5; color: #616161; }

        .file-info {
            flex: 1;
            min-width: 0;
        }

        .file-name {
            font-weight: 500;
            color: #2c3e50;
            margin-bottom: 0.3rem;
            word-break: break-word;
            line-height: 1.4;
        }

        .file-meta {
            display: flex;
            gap: 0.8rem;
            font-size: 0.8rem;
            color: #7f8c8d;
            flex-wrap: wrap;
        }

        .file-type {
            background: #ecf0f1;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: 500;
            white-space: nowrap;
        }

        .file-size {
            font-family: 'Courier New', monospace;
            white-space: nowrap;
        }

        .file-description {
            color: #7f8c8d;
            font-size: 0.85rem;
            line-height: 1.4;
            margin-top: 0.3rem;
            word-break: break-word;
        }

        /* 分享状态样式 */
        .share-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .badge.shared {
            background: #e8f5e9;
            color: #388e3c;
        }

        .badge.private {
            background: #ffebee;
            color: #d32f2f;
        }

        .password-badge {
            background: #fff3e0;
            color: #f57c00;
            font-family: monospace;
            font-weight: bold;
            padding: 3px 6px;
        }

        /* 操作按钮 - 移动端横排 */
        .action-buttons {
            display: flex;
            gap: 0.3rem;
            justify-content: center;
            flex-wrap: nowrap;
        }

        .btn-action {
            padding: 6px 8px;
            border: none;
            border-radius: 4px;
            background-color: #f5f5f5;
            color: #333;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            min-width: 32px;
            white-space: nowrap;
        }

        .btn-action:hover {
            background-color: #e0e0e0;
        }

        .btn-action.primary {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .btn-action.primary:hover {
            background-color: #bbdefb;
        }

        .btn-action.success {
            background-color: #e8f5e9;
            color: #388e3c;
        }

        .btn-action.success:hover {
            background-color: #c8e6c9;
        }

        .btn-action.danger {
            background-color: #ffebee;
            color: #d32f2f;
        }

        .btn-action.danger:hover {
            background-color: #ffcdd2;
        }

        .btn-action.warning {
            background-color: #fff3e0;
            color: #f57c00;
        }

        .btn-action.warning:hover {
            background-color: #ffe0b2;
        }

        .btn-action.info {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .btn-action.info:hover {
            background-color: #bbdefb;
        }

        /* 无数据状态 */
        .no-data {
            text-align: center;
            padding: 3rem;
            color: #999;
        }

        .no-data i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #bdc3c7;
        }

        .no-data p {
            margin: 0;
            font-style: italic;
        }

        /* 分页样式 */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            padding: 1.2rem;
            border-top: 1px solid #eaecef;
            flex-wrap: wrap;
        }

        .pagination-info {
            color: #666;
            font-size: 0.9rem;
        }

        /* 模态框样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 1rem;
        }

        .modal {
            background: white;
            border-radius: 12px;
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .modal-header {
            padding: 1.2rem;
            border-bottom: 1px solid #eaecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            margin: 0;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #7f8c8d;
        }

        .modal-body {
            padding: 1.2rem;
        }

        .modal-footer {
            padding: 1rem 1.2rem;
            border-top: 1px solid #eaecef;
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
        }

        /* 预览模态框样式 */
        .preview-modal {
            max-width: 90%;
            max-height: 90vh;
        }

        .preview-container {
            text-align: center;
            margin-bottom: 1rem;
        }

        .preview-container img,
        .preview-container video {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 8px;
        }

        .preview-container audio {
            width: 100%;
        }

        .preview-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        /* 预览导航样式 */
        .preview-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
            gap: 1rem;
        }

        .nav-btn {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
        }

        .nav-btn:hover:not(:disabled) {
            background: rgba(0, 0, 0, 0.9);
        }

        .nav-btn:disabled {
            background: rgba(0, 0, 0, 0.3);
            cursor: not-allowed;
        }

        .preview-image-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .preview-image-container img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 8px;
        }

        .preview-info {
            text-align: center;
            color: #666;
            font-size: 0.9rem;
        }

        .preview-info span {
            display: block;
            margin-bottom: 0.3rem;
        }

        /* 表单样式 */
        .form-group {
            margin-bottom: 1.2rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #2c3e50;
            font-size: 0.9rem;
        }

        .form-control {
            width: 100%;
            padding: 0.7rem;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: border-color 0.2s;
        }

        .form-control:focus {
            outline: none;
            border-color: #3498db;
        }

        .form-text {
            font-size: 0.8rem;
            color: #7f8c8d;
            margin-top: 0.3rem;
            display: block;
        }

        .form-result {
            margin-top: 1rem;
            padding: 0.8rem;
            border-radius: 6px;
            font-size: 0.9rem;
        }

        /* 输入组样式 */
        .input-group {
            display: flex;
            gap: 0.5rem;
        }

        .input-group .form-control {
            flex: 1;
        }

        /* 进度条容器 */
        .progress-container {
            margin-top: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .progress-container .progress-bar {
            flex: 1;
            height: 8px;
            margin: 0;
        }

        /* 通知样式 */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 12px 16px;
            border-radius: 6px;
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-width: 300px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            animation: slideIn 0.3s ease;
        }

        .notification.success {
            background-color: #4caf50;
        }

        .notification.error {
            background-color: #f44336;
        }

        .notification.info {
            background-color: #2196f3;
        }

        .notification.warning {
            background-color: #ff9800;
        }

        .notification-content {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .notification-close {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            margin-left: 15px;
        }
        
        /* 选中的文件列表样式 */
        .selected-files-list {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            padding: 10px;
            background: #f9f9f9;
            margin-bottom: 10px;
        }
        
        .selected-file-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            margin-bottom: 5px;
            background: white;
            border-radius: 4px;
            border: 1px solid #eaeaea;
        }
        
        .selected-file-item:last-child {
            margin-bottom: 0;
        }
        
        .selected-file-item .file-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        
        .selected-file-item .file-info i {
            color: #666;
            font-size: 16px;
        }
        
        .selected-file-item .file-details {
            flex: 1;
        }
        
        .selected-file-item .file-name {
            font-weight: 500;
            color: #333;
            font-size: 14px;
            word-break: break-all;
        }
        
        .selected-file-item .file-size {
            font-size: 12px;
            color: #888;
        }
        
        .btn-remove-file {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            padding: 5px;
            border-radius: 3px;
            transition: background-color 0.2s;
        }
        
        .btn-remove-file:hover {
            background: #ffebee;
        }
        
        .selected-files-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
        }
        
        .selected-files-count {
            font-size: 14px;
            color: #666;
        }
        
        /* 上传结果样式 */
        .upload-results {
            margin-top: 15px;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .upload-result {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px;
            margin-bottom: 5px;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .upload-result.success {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .upload-result.error {
            background: #ffebee;
            color: #c62828;
        }
        
        .upload-result .filename {
            flex: 1;
            word-break: break-all;
        }
        
        .upload-result .message {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .upload-summary {
            padding: 10px;
            background: #e3f2fd;
            border-radius: 4px;
            margin-bottom: 10px;
            text-align: center;
            color: #1565c0;
            font-weight: 500;
        }

        /* 子分类管理样式 */
        .sub-categories-header {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.8rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eaecef;
        }

        .sub-category-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8rem;
            margin-bottom: 0.5rem;
            background: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #e9ecef;
        }

        .sub-category-info {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .sub-category-info i {
            color: #f39c12;
        }

        .file-count {
            font-size: 0.8rem;
            color: #7f8c8d;
        }

        /* 一键私有按钮样式 */
        .btn-batch-private {
            background: #e74c3c;
            color: white;
        }

        .btn-batch-private:hover {
            background: #c0392b;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* 移动端优化 */
        @media (max-width: 768px) {
            .cloud-container {
                padding: 10px;
            }
            
            /* 隐藏顶部标题，在存储空间卡片中显示用户信息 */
            .cloud-header {
                display: none;
            }
            
            .storage-info-card {
                padding: 1rem;
            }
            
            .mobile-user-info {
                display: flex;
            }
            
            .toolbar {
                flex-direction: column;
                align-items: stretch;
                gap: 0.8rem;
            }
            
            .toolbar-main {
                width: 100%;
                justify-content: space-between;
            }
            
            .toolbar-actions {
                width: 100%;
                justify-content: space-between;
            }
            
            .search-box {
                min-width: auto;
                flex: 1;
            }
            
            /* 分类选项卡容器支持滚动 */
            .main-category-tabs-container,
            .sub-category-tabs-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .category-tabs-container {
                padding: 0.3rem;
            }
            
            .category-tab {
                padding: 0.6rem 0.8rem;
            }
            
            .category-name {
                font-size: 0.85rem;
            }
            
            /* 移动端子分类容器显示 */
            .sub-category-tabs-container {
                display: block;
            }
            
            /* 隐藏桌面端子分类容器 */
            .sub-category-container {
                display: none;
            }
            
            .sub-category-tabs {
                gap: 0.3rem;
            }
            
            .sub-category-tab {
                padding: 0.4rem 0.6rem;
                font-size: 0.8rem;
            }
            
            .btn-manage-sub-categories {
                padding: 0.4rem 0.6rem;
                font-size: 0.8rem;
            }
            
            .files-header {
                padding: 1rem;
            }
            
            .files-header h3 {
                font-size: 1rem;
            }
            
            .file-count {
                font-size: 0.85rem;
            }
            
            .files-table {
                font-size: 0.85rem;
                min-width: 1000px; /* 保持所有列可见 */
            }
            
            .files-table th,
            .files-table td {
                padding: 0.8rem 0.6rem;
            }
            
            .file-name {
                font-size: 0.9rem;
            }
            
            .file-meta {
                font-size: 0.75rem;
            }
            
            .file-description {
                font-size: 0.8rem;
            }
            
            .action-buttons {
                gap: 0.2rem;
                flex-wrap: nowrap;
            }
            
            .btn-action {
                padding: 5px 6px;
                font-size: 0.75rem;
                min-width: 28px;
            }
            
            .pagination {
                padding: 1rem;
                gap: 0.8rem;
            }
            
            .modal {
                margin: 0.5rem;
                max-height: calc(100vh - 1rem);
            }
            
            .modal-header,
            .modal-body,
            .modal-footer {
                padding: 1rem;
            }
            
            .notification {
                min-width: 250px;
                right: 10px;
                left: 10px;
            }
            
            .nav-btn {
                width: 40px;
                height: 40px;
            }
            
            .preview-navigation {
                gap: 0.5rem;
            }
        }

        @media (max-width: 480px) {
            .cloud-header {
                display: none;
            }
            
            .storage-info-card,
            .files-container {
                border-radius: 8px;
            }
            
            .files-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .toolbar-main {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .search-box {
                min-width: 150px;
            }
            
            .category-tabs-container {
                padding: 0.3rem;
            }
            
            .category-tab {
                padding: 0.5rem 0.7rem;
            }
            
            .files-table {
                min-width: 1000px;
            }
            
            .file-name-wrapper {
                gap: 0.6rem;
            }
            
            .file-icon {
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }
            
            .action-buttons {
                gap: 0.2rem;
                flex-wrap: nowrap;
            }
            
            .btn-action {
                justify-content: center;
                min-width: 26px;
                padding: 4px 5px;
            }
            
            .pagination {
                flex-direction: row;
                gap: 0.5rem;
            }
        }

        /* 移动端表格完全可见，不隐藏任何列 */
        /* 通过设置最小宽度确保所有列都显示，通过横向滚动查看 */

        /* 移动端工具栏并排布局 */
        @media (max-width: 768px) {
            .toolbar {
                flex-direction: row;
                align-items: center;
            }
            
            .toolbar-main {
                flex: 1;
                min-width: 0;
            }
            
            .toolbar-actions {
                flex: 1;
                min-width: 0;
            }
        }

        @media (max-width: 480px) {
            .toolbar {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .toolbar-main {
                width: 100%;
                justify-content: space-between;
                margin-bottom: 0.5rem;
            }
            
            .toolbar-actions {
                width: 100%;
                justify-content: space-between;
            }
        }
        /* 在样式部分添加移动端列宽调整 */
.mobile-hidden {
    display: inline-flex;
}

.mobile-narrow {
    /* 默认样式保持不变 */
}

/* 移动端调整列宽 */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-narrow {
        min-width: 60px;
        max-width: 80px;
    }
    
    .files-table {
        min-width: 1200px; /* 增加最小宽度以容纳新列 */
    }
    
    .file-name-column {
        min-width: 250px;
        max-width: none; /* 文件名列自适应 */
    }
    
    .action-column {
        min-width: 200px;
    }
    
    /* 调整表格各列宽度 */
    .files-table th:nth-child(4), /* 下载数 */
    .files-table td:nth-child(4) {
        width: 60px;
    }
    
    .files-table th:nth-child(5), /* 分享状态 */
    .files-table td:nth-child(5) {
        width: 80px;
    }
    
    .files-table th:nth-child(6), /* 公开状态 - 新增列 */
    .files-table td:nth-child(6) {
        width: 70px;
    }
    
    .files-table th:nth-child(7), /* 密码 */
    .files-table td:nth-child(7) {
        width: 60px;
    }
    
    .files-table th:nth-child(8), /* 上传时间 */
    .files-table td:nth-child(8) {
        width: 100px;
    }

    
    .file-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .file-thumbnail {
        width: 28px;
        height: 28px;
    }
}


@media (max-width: 480px) {
    
    
    
    .file-thumbnail {
        width: 24px;
        height: 24px;
    }
    .files-table {
        min-width: 1100px; /* 在更小屏幕上进一步调整 */
    }
    
    .file-name-column {
        min-width: 200px;
    }
    
    .mobile-narrow {
        min-width: 50px;
        max-width: 70px;
    }
    
    /* 进一步缩小各列宽度 */
    .files-table th:nth-child(4),
    .files-table td:nth-child(4) {
        width: 50px;
    }
    
    .files-table th:nth-child(5),
    .files-table td:nth-child(5) {
        width: 70px;
    }
    
    .files-table th:nth-child(6),
    .files-table td:nth-child(6) {
        width: 60px;
    }
    
    .files-table th:nth-child(7),
    .files-table td:nth-child(7) {
        width: 50px;
    }
    
    .files-table th:nth-child(8),
    .files-table td:nth-child(8) {
        width: 90px;
    }
}
/* 文件图标样式 - 添加缩略图支持 */
.file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    overflow: hidden; /* 确保缩略图不超出容器 */
}

.file-icon.image { 
    background: #e3f2fd; 
    color: #1976d2; 
    padding: 0; /* 移除内边距以便缩略图填满 */
}

.file-icon.audio { background: #f3e5f5; color: #7b1fa2; }
.file-icon.video { background: #e8f5e9; color: #388e3c; }
.file-icon.document { background: #fff3e0; color: #f57c00; }
.file-icon.archive { background: #fce4ec; color: #c2185b; }
.file-icon.code { background: #e0f2f1; color: #00796b; }
.file-icon.other { background: #f5f5f5; color: #616161; }

/* 缩略图加载状态 */
.file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-thumbnail.loaded {
    opacity: 1;
}

.file-thumbnail.failed {
    display: none;
}

.file-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #1976d2;
    /* 移除 position: absolute; 和 top/left */
    position: relative; /* 改为相对定位，保持在文档流中 */
    z-index: 1; /* 确保正确的堆叠顺序 */
}

/* 缩略图加载动画 */
.file-icon.image {
    position: relative;
}

.file-thumbnail.loading {
    opacity: 0.5;
}

@keyframes thumbnailPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.file-thumbnail-placeholder.loading {
    animation: thumbnailPulse 1.5s ease-in-out infinite;
}

.file-icon.image .file-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #1976d2;
}
/* 密码徽章基础样式 */
.password-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin: 1px;
    white-space: nowrap;
}

/* 静态密码样式（4位数字） */
.password-badge.static-password {
    background: #4CAF50;
    color: white;
    border: 1px solid #45a049;
}

/* 固定密钥样式（动态密码） */
.password-badge.fixed-key {
    background: #2196F3;
    color: white;
    border: 1px solid #1976D2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .password-badge {
        font-size: 10px;
        padding: 1px 4px;
        margin: 0.5px;
    }
}

/* 表格中的密码列适配 */
.files-table .password-badge {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}