/*foxcms-fixed-container 首页侧边导航栏*开始*/
.foxcms-fixed-container {
    position: fixed;
    right: 3px;
    top: 270px;
    z-index: 9998;
}
.foxcms-fixed-content {
    position: relative;
}
.ai-open-btn {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ai-open-btn:hover {
    transform: scale(1.05);
}
.ai-open-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4), 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0), 0 4px 30px rgba(99, 102, 241, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}
.ai-close-btn {
    position: absolute;
    z-index: 10001;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}
.ai-close-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
}
.ai-iframe-container {
    position: fixed;
    right: -60px;
    bottom: 150px;
    z-index: 9999;
    width: 770px;
    overflow: hidden;
    background: transparent;
    border: none;
    display: none;
}
.ai-iframe-container iframe {
    width: 100%;
    border: none;
    overflow: hidden;
    background: transparent;
}
@media screen and (max-width: 992px) {
    .foxcms-fixed-container {
        right: 20px;
        bottom: 20px;
    }
    .ai-open-btn {
        width: 80px;
        height: 80px;
    }
    .ai-close-btn {
         z-index: 9999;
        right: -10px;
        bottom: 550px;
        width: 25px;
        height: 25px;
    }
    .ai-close-btn svg {
        width: 20px;
        height: 20px;
    }
    .ai-iframe-container {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 120px;
    }
}

.foxcms-contact-bar {
    position: fixed;
    left: 10px;
    z-index: 9997;
    background-color: #fff;
    border-radius: 30px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.foxcms-contact-bar .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.foxcms-contact-bar .contact-item img {
    width: 30px;
    margin-bottom: 5px;
}

.foxcms-contact-bar .contact-icon {
    width: 32px;
    height: 32px;
    color: #333;
    margin-bottom: 4px;
}

.foxcms-contact-bar .contact-text {
    font-size: 14px;
    color: #333;
    line-height: 1;
}

.foxcms-contact-bar .contact-popup {
    position: absolute;
    left: 150px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.foxcms-contact-bar .contact-popup::after {
    content: '';
    position: absolute;
    left: -8px; /* 调整偏移量，原来-5px可能不够，8px宽的三角形建议设为-8px */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    /* 上 右 下 左 的宽度，把白色实线放在右边，左边为0 */
    border-width: 8px 8px 8px 0;
    /* 上 右 下 左 的颜色，右边为白色，其余透明 */
    border-color: transparent #fff transparent transparent;
}

.foxcms-contact-bar .contact-item:hover .contact-popup {
    opacity: 1;
    visibility: visible;
    left: 145px;
}

.foxcms-contact-bar .contact-tel-popup span {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.foxcms-contact-bar .contact-wechat-popup img {
    width: 120px;
    height: 120px;
    display: block;
    min-width: 120px;
}

@media screen and (max-width: 992px) {
    .foxcms-contact-bar {
        left: 20px;
        bottom: 100px;
    }
}

/*foxcms-fixed-container 首页侧边导航栏*结束*/