/* 二维码模态框样式 */
.qrcode-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: #fff;
    z-index: 1002;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: none;
    text-align: center;
}

.qrcode-modal.active {
    display: block;
}

.qrcode-modal .modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qrcode-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.qrcode-modal .modal-body {
    padding: 20px;
}

.qrcode-modal .modal-body p {
    margin-bottom: 15px;
    color: #666;
}

.qrcode-image {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
}

.close-qrcode-modal {
    font-size: 24px;
    text-decoration: none;
    color: #999;
    line-height: 1;
}

.close-qrcode-modal:hover {
    color: #333;
}

.qrcode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.qrcode-overlay.active {
    display: block;
}

/* 联系模态框样式 */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    display: none;
}

.contact-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-modal-content {
    width: 800px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.contact-modal .modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f5f2;
}

.contact-modal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-contact-modal {
    font-size: 28px;
    text-decoration: none;
    color: #999;
    line-height: 1;
    cursor: pointer;
}

.close-contact-modal:hover {
    color: #333;
}

.contact-modal-body {
    display: flex;
    flex: 1;
    min-height: 400px;
}

.contact-left {
    flex: 1;
    padding: 30px;
    background-color: #f8f5f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
}

.contact-left p {
    margin-bottom: 20px;
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.contact-qrcode {
    max-width: 180px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: white;
}

.contact-right {
    flex: 1.5;
    padding: 30px 30px 30px 30px;
    overflow-y: auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #2ca876;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #258a62;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-modal-body {
        flex-direction: column;
    }

    .contact-left {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .contact-modal-content {
        width: 95vw;
        max-height: 90vh;
    }
}