/* ==========================================
   下载模态框样式（支持主题切换）
   ========================================== */

.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.download-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.light-theme .download-modal .modal-overlay {
    background: rgba(255, 255, 255, 0.4);
}

.download-modal .modal-container {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1e2542 0%, #161b33 100%);
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(10, 132, 255, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .download-modal .modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.download-modal .modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.download-modal .modal-icon {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0a84ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.download-modal .modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e4e6eb;
    margin: 0;
}

body.light-theme .download-modal .modal-header h3 {
    color: #1a1d29;
}

.download-modal .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b92a7;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .download-modal .modal-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #5f6368;
}

.download-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
    border-color: rgba(10, 132, 255, 0.5);
    transform: rotate(90deg);
}

body.light-theme .download-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1d29;
}

.download-modal .modal-body {
    padding: 0 2rem 2rem;
}

.download-modal .modal-message {
    font-size: 1.1rem;
    color: #e4e6eb;
    margin-bottom: 0.5rem;
}

body.light-theme .download-modal .modal-message {
    color: #1a1d29;
}

.download-modal .modal-info {
    font-size: 0.95rem;
    color: #8b92a7;
    margin-bottom: 2rem;
}

body.light-theme .download-modal .modal-info {
    color: #5f6368;
}

.download-modal .modal-tips {
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

body.light-theme .download-modal .modal-tips {
    background: rgba(10, 132, 255, 0.05);
    border-color: rgba(10, 132, 255, 0.15);
}

.download-modal .tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #b8bcc8;
    font-size: 0.95rem;
}

body.light-theme .download-modal .tip-item {
    color: #5f6368;
}

.download-modal .tip-item:last-child {
    margin-bottom: 0;
}

.download-modal .tip-icon {
    color: #0a84ff;
    font-weight: 700;
    flex-shrink: 0;
}

.download-modal .modal-actions {
    display: flex;
    gap: 1rem;
}

.download-modal .btn-download,
.download-modal .btn-cancel {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-modal .btn-download {
    background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
    border: none;
    color: white;
}

.download-modal .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.4);
}

.download-modal .btn-arrow {
    transition: transform 0.3s ease;
}

.download-modal .btn-download:hover .btn-arrow {
    transform: translateX(4px);
}

.download-modal .btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b92a7;
}

body.light-theme .download-modal .btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #5f6368;
}

.download-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e4e6eb;
}

body.light-theme .download-modal .btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1d29;
}

.consult-modal-container {
    max-width: 420px;
}

.consult-modal-body {
    text-align: center;
}

.consult-qr {
    display: block;
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin: 0.75rem auto 1rem;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.consult-modal-body .modal-message {
    margin-bottom: 0.25rem;
}

.consult-modal-body .modal-info {
    margin-bottom: 1.5rem;
}

body.light-theme .consult-qr {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
    .download-modal .modal-container {
        width: 95%;
    }

    .download-modal .modal-actions {
        flex-direction: column;
    }

    .consult-qr {
        width: 200px;
        height: 200px;
    }
}
