/* ============================================================
   gbook.css — 联系表单浮窗 + 咨询弹窗组件样式
   对应结构：.contact-float / #contactModal / #wechatModal
   可独立引入其它项目使用（依赖弹窗 .active 类切换显示）
   ============================================================ */

/* --- 右侧浮动按钮 --- */
.contact-float {
    position: fixed;
    right: 28px;
    bottom: 35px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.float-btn {
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    min-width: 52px;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(12, 28, 50, .92);
    color: #fff;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
    transition: .3s
}

.float-btn:hover {
    transform: translateY(-4px);
    background: #126cff
}

.float-text {
    font-size: 13px
}

.wechat-btn {
    background: #0f8f55
}

/* --- 弹窗通用 --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal.active {
    display: flex
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px)
}

.contact-modal-box,
.wechat-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 42px;
    border-radius: 26px;
    background: linear-gradient(145deg, #102746, #081525);
    border: 1px solid rgba(91, 149, 255, .2);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
    animation: modalShow .35s ease
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.96)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: 0;
    background: none;
    color: #9cb0cc;
    font-size: 30px;
    cursor: pointer
}

.modal-title span {
    color: #6fa6ff;
    font-size: 11px;
    letter-spacing: 1.5px
}

.modal-title h2 {
    font-size: 32px;
    margin: 8px 0;
    color: #fff;
}

.modal-title p,
.form-note,
.wechat-title p,
.wechat-id {
    color: #8fa2bd;
    font-size: 13px
}

/* --- 表单 --- */
.form-group {
    margin-top: 18px
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #b9c8dc;
    font-size: 13px
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border-radius: 10px;
    outline: 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff
}

.form-group option {
    background: #102746
}

.submit-btn {
    width: 100%;
    height: 52px;
    margin-top: 25px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3f83ff, #126cff);
    color: #fff;
    font-size: 15px;
    cursor: pointer
}

.form-note {
    text-align: center;
    margin-top: 10px;
    font-size: 11px
}

/* 蜜罐字段：视觉隐藏，真人不会填写，用于识别自动化脚本 */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0
}

/* --- 微信二维码弹窗 --- */
.wechat-modal-box {
    max-width: 340px;
    text-align: center
}

.wechat-qrcode {
    width: 220px;
    height: 220px;
    margin: 25px auto;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    color: #1a2635;
    display: grid;
    place-items: center
}

.qr-placeholder {
    border: 2px dashed #8fa2bd;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 14px
}

.wechat-title h3 {
    font-size: 24px;
    margin: 0;
    color: #fff;
}

/* --- 移动端适配 --- */
@media(max-width:600px) {
    .contact-float {
        right: 14px;
        bottom: 18px
    }

    .float-text {
        display: none
    }

    .contact-modal-box {
        padding: 32px 22px
    }
}
