/* 上传模态框样式 */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upload-modal-content {
    width: 600px;
    max-width: 90vw;
    max-height: 70vh;
    background-color: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.upload-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.upload-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.upload-modal-close:hover {
    color: white;
}

.upload-modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.upload-area {
    border: 2px dashed #3B82F6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #10B981;
    background-color: rgba(59, 130, 246, 0.1);
}

.upload-area p {
    margin: 0;
    font-size: 16px;
    color: #3B82F6;
    margin-bottom: 10px;
}

.upload-area small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.upload-file-input {
    display: none;
}

.upload-progress-container {
    display: none;
    margin-bottom: 20px;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.upload-file-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.upload-percentage {
    font-size: 14px;
    font-weight: 500;
    color: #3B82F6;
}

.upload-progress-bar-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.upload-progress-bar {
    background-color: #3B82F6;
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.upload-status {
    display: none;
    padding: 12px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 14px;
}

.upload-status.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.upload-status.success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.upload-complete-container {
    display: none;
    margin-bottom: 20px;
    text-align: center;
}

.upload-complete-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #10B981;
}

.upload-complete-container h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: white;
}

.upload-complete-message {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.upload-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
}

.upload-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-btn.cancel {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.upload-btn.cancel:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.upload-btn.primary {
    background-color: #3B82F6;
    color: white;
}

.upload-btn.primary:hover {
    background-color: #2563eb;
}

.upload-btn.success {
    background-color: #10B981;
    color: white;
}

.upload-btn.success:hover {
    background-color: #059669;
}

.upload-btn.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-modal-content {
        width: 95vw;
        max-height: 80vh;
    }
    
    .upload-modal-body {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px;
    }
    
    .upload-action-buttons {
        flex-direction: column;
    }
    
    .upload-btn {
        width: 100%;
        text-align: center;
    }
}
