/* 文件管理页面专用样式 */

/* 文件管理标题 */
.files-title {
    text-align: center;
    margin-bottom: 40px;
    position: static;
    width: auto;
}

/* 标签切换 */
.tab-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.tab-button {
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #555;
}

.tab-button.active {
    background: #ff6b35;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 上传区域 */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed #666;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a2a2a;
}

.upload-area:hover {
    border-color: #ff6b35;
    background: #333;
}

.upload-area.drag-over {
    border-color: #ff6b35;
    background: #333;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.upload-text h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 20px;
}

.upload-text p {
    color: #ccc;
    font-size: 14px;
}

/* 上传进度 */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #ff6b35;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #ccc;
    text-align: center;
    font-size: 14px;
}

/* 删除按钮样式 */
.file-card-btn.delete {
    background: #dc3545;
    color: white;
}

.file-card-btn.delete:hover {
    background: #c82333;
}

.files-title .main {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.files-title .main .white {
    color: rgb(255, 255, 255);
}

.files-title .main .highlight {
    color: rgb(255, 101, 55);
}

.files-title .sub {
    color: rgb(163, 163, 163);
    font-size: 18px;
    letter-spacing: 2px;
}

/* 文件管理区域 */
.files-section {
    background: #1a1a1a;
    padding: 80px 0;
    min-height: 800px;
}

/* 标签切换功能已移除 */

/* 下载区域 */
.download-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #2d2d2d;
    border-radius: 25px;
    background: #2d2d2d;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff6537;
    background: #3a3a3a;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #ff6537;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ff8c69;
    transform: translateY(-2px);
}

/* 文件网格 */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.file-card {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-card:hover {
    background: #3a3a3a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.file-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.file-card h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card p {
    color: #ccc;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.file-card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.file-card-btn {
    background: #ff6537;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.file-card-btn:hover {
    background: #ff8c69;
}

.file-card-btn.delete {
    background: #dc3545;
}

.file-card-btn.delete:hover {
    background: #c82333;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    background: #2d2d2d;
    color: #fff;
    border: 1px solid #ff6537;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #ff6537;
}

.pagination-btn.active {
    background: #ff6537;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .files-title .main {
        font-size: 36px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-text h3 {
        font-size: 20px;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-button {
        width: 100%;
    }
}
