a, a:visited, a:active {
    color: #1e90ff;
    text-decoration: none;
}
a:hover {
    color: #339cff;
    text-decoration: underline;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #e9ecef;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #dee2e6;
}

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

.file-list {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.list-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.file-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
    transition: background-color 0.2s;
}

.file-item:hover {
    background-color: #f8f9fa;
}

.file-item .name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.file-icon.zip {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6 10h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V6h2v2z"/></svg>');
}

.file-icon.exe {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M14,2H6C4.9,2,4,2.9,4,4v16c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V8L14,2z M16,18h-2v-2h2V18z M16,14h-2v-2h2V14z M16,10h-2V8h2V10z"/></svg>');
}

.file-icon.apk {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232ecc71"><path d="M17,12H7v-2h10V12z M13,14H7v2h6V14z M21,10.5V6l-6-6H5C3.34,0,2,1.34,2,3v18c0,2.21,1.79,4,4,4h10.5c1.66,0,3.5-1.34,3.5-3V10.5z M19,10.5V10h-5V4H5V3h7v5h7V10.5z M7,20H5v-2h2V20z M11,20H9v-2h2V20z M7,16H5v-2h2V16z M11,16H9v-2h2V16z M15,20h-2v-2h2V20z M15,16h-2v-2h2V16z"/></svg>');
}

.file-icon.default {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23948f8f"><path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"/></svg>');
}

.download-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #2980b9;
}

.no-files {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .list-header, .file-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .list-header {
        display: none;
    }
    
    .file-item {
        padding: 1.5rem;
        border-bottom: 2px solid #f1f3f4;
    }
    
    .file-item .size {
        font-size: 0.9rem;
        color: #6c757d;
    }
}