*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--dark);
    width: 100vw;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --success: #2ecc71;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}
/* 头部样式 */
header.stpc-header {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.stpc-header .logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

header.stpc-header .logo i {
    font-size: 32px;
}

header.stpc-header .tools {
    display: flex;
    gap: 15px;
    align-items: center;
}

header.stpc-header .tools-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

header.stpc-header .tools-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}
/* 文件列表容器 */
.file-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.sorting {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-btn {
    padding: 8px 16px;
    background: var(--light);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-btn.active {
    background: var(--primary);
    color: white;
}

.sort-btn:hover {
    background: var(--primary);
    color: white;
}

.per-page-select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    font-size: 15px;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.files-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 2px solid var(--light-gray);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
}

.files-table th:hover {
    color: var(--primary);
}

.files-table th i {
    font-size: 12px;
    margin-left: 5px;
}

.files-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--light-gray);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.files-table tr:last-child td {
    border-bottom: none;
}

.files-table tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

.file-icon {
    min-width: 40px;
    height: 40px;
    width: 40px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.file-info {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.file-name-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-name {
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    display: block;
}

.file-date {
    font-size: 13px;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-weight: 500;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-btn{
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.delete-btn{
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-gray);
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.prev-btn, .page-btn.next-btn {
    width: 60px;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }
    
    .sorting {
        flex-wrap: wrap;
    }
    
    .files-table th:nth-child(2), 
    .files-table td:nth-child(2) {
        display: none;
    }
    
    .files-table th:nth-child(3), 
    .files-table td:nth-child(3) {
        display: none;
    }

    .file-info {
        align-items: flex-start;
        gap: 10px;
    }

    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 530px) {
    .files-table th:nth-child(4), 
    .files-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .file-details-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .action-btn {
        min-width: auto;
    }
}