/* ============================================
   download2.html 专用样式 — 弹窗组件
   ============================================ */

/* ---------- Modal Overlay ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Modal Box ---------- */
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

/* ---------- Modal Icon ---------- */
.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.modal-icon svg {
    width: 32px;
    height: 32px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------- Modal Content ---------- */
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.modal-tip {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* ---------- Modal Button ---------- */
.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ---------- Button Cursor Fix ---------- */
.dl-link {
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .modal {
        padding: 24px 20px;
    }
    .modal-icon {
        width: 56px;
        height: 56px;
    }
    .modal-icon svg {
        width: 28px;
        height: 28px;
    }
    .modal-title {
        font-size: 18px;
    }
    .modal-desc {
        font-size: 14px;
    }
}
