/* ============================================
   悬浮咨询按钮样式
   PC端：右侧垂直居中悬浮
   移动端：底部安全区悬浮条
   ============================================ */

/* ===== PC端悬浮按钮容器 ===== */
.float-cta-pc {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ===== 单个PC按钮基础样式 ===== */
.float-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 52px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
}

.float-btn i {
    font-size: 18px;
    margin-left: 8px;
}

.float-btn span {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s ease;
    display: inline-block;
}

.float-btn:hover span {
    max-width: 140px;
}

/* 获取合规方案 - 深蓝 */
.float-btn-primary {
    background: linear-gradient(135deg, #1e3a5f, #2a5298);
    border-radius: 8px 0 0 0;
}
.float-btn-primary:hover {
    background: linear-gradient(135deg, #2a5298, #3b6cb5);
    padding-right: 22px;
}

/* 电话直拨 - 金色 */
.float-btn-phone {
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #1e3a5f;
}
.float-btn-phone:hover {
    background: linear-gradient(135deg, #f0c040, #ffd700);
    padding-right: 22px;
}

/* 微信咨询 - 绿色 */
.float-btn-wechat {
    background: linear-gradient(135deg, #07c160, #10b35a);
}
.float-btn-wechat:hover {
    background: linear-gradient(135deg, #10b35a, #1aad5e);
    padding-right: 22px;
}

/* 回到顶部 - 半透明深蓝 */
.float-btn-top {
    background: rgba(30, 58, 95, 0.7);
    border-radius: 0 0 0 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.float-btn-top:hover {
    opacity: 1;
    padding-right: 22px;
}

/* ===== 移动端悬浮条 ===== */
.float-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    flex-direction: row;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
}

.float-m-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.3);
}
.float-m-btn:last-child {
    border-right: none;
}

.float-m-primary {
    background: #1e3a5f;
}
.float-m-phone {
    background: #d4a017;
    color: #1e3a5f;
}
.float-m-wechat {
    background: #07c160;
}

/* ===== 微信弹窗 ===== */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.wechat-modal.active {
    display: flex;
}
.wechat-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    text-align: center;
    position: relative;
    max-width: 320px;
    width: 90%;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.wechat-modal-close {
    position: absolute;
    top: 8px; right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.wechat-modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1e3a5f;
}
.wechat-qr img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* ===== 响应式：768px以下切移动端 ===== */
@media (max-width: 767px) {
    .float-cta-pc { display: none; }
    .float-cta-mobile { display: flex; }
    body { padding-bottom: 64px; }
}
