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

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(to right, #4a6ee0, #6a11cb);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.upload-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-right: 1px solid #eee;
}

.file-list-section {
    flex: 2;
    min-width: 400px;
    padding: 20px;
}

.upload-area {
    border: 2px dashed #4a6ee0;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
    background-color: #f8faff;
    cursor: pointer;
}

.upload-area:hover {
    background-color: #eef2ff;
    transform: translateY(-5px);
}

.upload-icon {
    font-size: 48px;
    color: #4a6ee0;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.upload-btn {
    background: linear-gradient(to right, #4a6ee0, #6a11cb);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 110, 224, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 110, 224, 0.4);
}

.file-input {
    display: none;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #4a6ee0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.file-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.refresh-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: #0da271;
    transform: scale(1.05);
}

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

.file-list {
    list-style: none;
    max-height: 500px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

.file-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    border-radius: 8px;
    margin-right: 15px;
    color: #4a6ee0;
    font-size: 1.2rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.download-btn {
    background-color: #4a6ee0;
    color: white;
}

.preview-btn {
    background-color: #10b981;
    color: white;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.preview-content {
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.preview-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.preview-body {
    padding: 20px;
    text-align: center;
    max-height: 70vh;
    overflow: auto;
}

.preview-image, .preview-video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 5px;
}

.preview-text {
    padding: 20px;
    text-align: left;
    white-space: pre-wrap;
    font-family: monospace;
}

.no-files {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-files-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.upload-progress {
    margin-top: 15px;
    display: none;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4a6ee0, #6a11cb);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid #4a6ee0;
}

.notification-content {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .upload-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .file-actions {
        flex-direction: column;
    }
    
    .file-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-actions {
        margin-top: 10px;
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        text-align: center;
    }
}
