/* 下载状态对话框样式 */
.download-status-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-status-dialog .dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.download-status-dialog .dialog-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: dialogSlideIn 0.3s ease-out;
}

.download-status-dialog .dialog-header {
    padding: 24px 24px 0 24px;
    text-align: center;
}

.download-status-dialog .dialog-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 16px;
}

.download-status-dialog .dialog-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #2c3e50;
    font-weight: 600;
}

.download-status-dialog .dialog-body {
    padding: 20px 24px;
}

.download-status-dialog .dialog-message {
    font-size: 1.1em;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
}

.download-status-dialog .dialog-details {
    font-size: 0.95em;
    color: #7f8c8d;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-top: 16px;
}

.download-status-dialog .dialog-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.download-status-dialog .dialog-footer .btn {
    min-width: 100px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-status-dialog .dialog-cancel {
    background: #95a5a6;
    color: white;
}

.download-status-dialog .dialog-cancel:hover {
    background: #7f8c8d;
}

.download-status-dialog .dialog-confirm {
    background: #3498db;
    color: white;
}

.download-status-dialog .dialog-confirm:hover {
    background: #2980b9;
}

/* 下载进度样式 */
.download-progress {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}

.download-progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.download-progress .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.download-progress p {
    margin: 0;
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: 500;
}

.download-progress .progress-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.download-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* 隐私保护消息样式 */
.message.privacy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.message.privacy::before {
    content: "🔒";
    margin-right: 8px;
}

/* 对话框动画 */
@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-status-dialog .dialog-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .download-status-dialog .dialog-header,
    .download-status-dialog .dialog-body,
    .download-status-dialog .dialog-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .download-status-dialog .dialog-footer {
        flex-direction: column;
        gap: 8px;
    }

    .download-status-dialog .dialog-footer .btn {
        width: 100%;
        min-width: auto;
    }
}