/* ============================================================
   智合聚通 · 固定电话号码认证官网
   右侧咨询组件样式（复刻自 www.zhihejutong.com 首页）
   自包含：桌面右侧悬浮栏 + 移动端底部栏 + 微信二维码弹窗
   ============================================================ */

/* ---- 桌面右侧悬浮栏 ---- */
.anqi-float-right {
    position: fixed;
    right: 24px;
    top: 28%;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

/* ---- 移动端底部固定栏 ---- */
.anqi-float-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.anqi-float-mobile a,
.anqi-float-mobile button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #4b5563;
    font-size: 12px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.anqi-float-mobile .float-mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3470ff;
}

.anqi-float-mobile .float-mobile-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ---- 圆形悬浮按钮 ---- */
.anqi-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
}

.anqi-float-btn:hover {
    box-shadow: 0 8px 24px rgba(52, 112, 255, 0.18);
    transform: translateY(-2px);
}

.anqi-float-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* hover 提示卡 */
.anqi-float-tip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 180px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    text-align: center;
}

.anqi-float-btn:hover .anqi-float-tip {
    opacity: 1;
    visibility: visible;
}

.anqi-float-tip img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 8px;
}

.anqi-float-tip p {
    color: #374151;
    font-size: 14px;
    margin: 0;
}

.anqi-float-tip span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

/* ---- 在线咨询主按钮（竖胶囊） ---- */
.anqi-float-consult {
    background: linear-gradient(to bottom, #4d88ff, #1764ff);
    box-shadow: 0 5px 10px rgba(35, 50, 56, 0.18);
    color: #fff;
    width: 56px;
    min-height: 120px;
    border-radius: 50px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding-top: 6px;
    text-decoration: none;
}

.anqi-float-consult img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.anqi-float-consult .float-consult-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    line-height: 1.2;
}

/* 未读数角标 */
.badge-num {
    position: absolute;
    left: 2.2rem;
    top: 0.2rem;
    background: #ff227a;
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    padding: 2px 7px;
    z-index: 1000;
    font-weight: bold;
}

/* 呼吸动画光环 */
.livechat-girl {
    width: 54px;
    height: 100px;
    border-radius: 50px;
    position: relative;
    opacity: 1;
    margin-top: 6px;
    background: none;
    box-shadow: none;
    cursor: pointer;
}

.livechat-girl .girl {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    z-index: 50;
    transform: translate(11px, 18px);
}

.livechat-girl .animated-circles .circle {
    background: rgba(60, 100, 231, 0.18);
    width: 54px;
    height: 100px;
    border-radius: 50px;
    position: absolute;
    z-index: 49;
    transform: scale(1);
}

.livechat-girl .animated-circles.animated .c-1 {
    animation: 2s scaleToggleOne cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.livechat-girl .animated-circles.animated .c-2 {
    animation: 2.5s scaleToggleTwo cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.livechat-girl .animated-circles.animated .c-3 {
    animation: 3s scaleToggleThree cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes scaleToggleOne {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes scaleToggleTwo {
    0% { transform: scale(1); }
    20% { transform: scale(1); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes scaleToggleThree {
    0% { transform: scale(1); }
    33% { transform: scale(1); }
    66% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ---- 微信二维码弹窗 ---- */
.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wechat-modal.show {
    display: flex !important;
}

.wechat-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
}

.wechat-modal-dialog .wechat-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: 0;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.wechat-modal-dialog h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #141922;
}

.wechat-modal-dialog img.wechat-qr {
    display: block;
    width: 192px;
    height: 192px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.wechat-modal-dialog p {
    margin: 4px 0;
    color: #374151;
    font-size: 14px;
}

.wechat-modal-dialog .wechat-copy-btn {
    background: #3470ff;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 20px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* ---- 响应式切换 ---- */
@media (min-width: 768px) {
    .anqi-float-right { display: flex; }
    .anqi-float-mobile { display: none; }
}

@media (max-width: 767px) {
    .anqi-float-right { display: none; }
    .anqi-float-mobile { display: flex; }
}

/* 咨询按钮文字（v7） */
.livechat-girl .consult-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    z-index: 51;
}
