}

/* 选中状态颜色 */
::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* 滚动条样式 - 紫色系 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C4B5FD, #8B5CF6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #A78BFA, #7C3AED);
}

/* ===================================
   下载弹窗样式
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-gray);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.qrcode-container {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.qrcode {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

.modal-tip {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* 移动端弹窗适配 */
@media screen and (max-width: 480px) {
    .modal {
        padding: 24px;
        max-width: 280px;
    }

    .modal-content h3 {
        font-size: 1.1rem;
    }

    .qrcode {
        width: 120px;
        height: 120px;
    }
}
