#contactModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

#contactModal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    background-image: url('../../images/modal-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    width: 640px;
    height: 400px;`
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#contactModal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

#contactModal .close-modal:hover {
    color: #333;
}

#contactModal .modal-body {
    text-align: center;
}

#contactModal .modal-body h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

#contactModal .qrcode-container {
    margin: 0 auto;
    max-width: 200px;
}

#contactModal .qrcode-container img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

#contactModal .qrcode-container p {
    margin: 5px 0;
    color: #666;
}

/* 添加动画效果 */
.modal {
    /* opacity: 0; */
    transition: opacity 0.3s ease;
}

/* .modal.show {
    opacity: 1;
} */

.modal-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        height: auto;
        min-height: 400px;
        margin: 10vh auto;
    }
}

.modal-body h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    font-weight: normal;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrcode-container img {
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
}

.qrcode-container p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    text-align: center;
}

.modal-body h3 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.modal .contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal .contact-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal .contact-form button {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10vh auto;
    }
}


/* 添加成功提示弹窗样式 */
.success-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 2000;
    text-align: center;
}