

/* 客服二维码模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-kf {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 350px;
    padding: 30px;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
    }
    to {
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-container img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qr-text {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .modal-content-kf {
        padding: 25px 20px;
        width: 85%;
    }
    
    .qr-container img {
        width: 180px;
        height: 180px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .modal-content-kf {
        padding: 20px 15px;
        width: 90%;
    }
    
    .qr-container img {
        width: 160px;
        height: 160px;
    }
    
    .close-modal {
        top: 5px;
        right: 10px;
    }
}

/* 确保在横屏模式下也能正确显示 */
@media (max-height: 450px) {
    .modal-content-kf {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    .qr-container img {
        width: 140px;
        height: 140px;
        margin-bottom: 10px;
    }
}
































/* 隐私政策弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(249, 115, 22, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-color);
}

.modal-content {
    color: var(--light-text);
    line-height: 1.7;
}

.modal-content h3 {
    color: var(--text-color);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.modal-content p {
    margin-bottom: 15px;
}

.modal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 8px;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .modal-container {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
}
