/* 浮动联系图标样式 */
.floating-contact {
    position: fixed;
    bottom: 220px;
    right: 25px;
    z-index: 9998;
}

.floating-contact .contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: #ffffff;
    overflow: hidden;
    padding: 8px;
}

.floating-contact .contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.floating-contact .contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 联系信息弹层样式 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.contact-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s;
}

.contact-modal-close:hover {
    color: #333;
}

.contact-info-item {
    margin: 20px 0;
}

.contact-info-item h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.contact-info-item p {
    font-size: 16px;
    color: #666;
}

.contact-info-item a {
    color: #ff6b6b;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.wechat-qr {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.wechat-qr img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

/* 复制成功提示样式 */
.copy-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    z-index: 10001;
    display: none;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* PC端优化 */
@media (min-width: 769px) {
    .floating-contact {
        bottom: 180px;
        right: 20px;
    }

    .floating-contact .contact-icon {
        margin-bottom: 25px;
    }

    .contact-modal-content {
        padding: 35px;
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 180px;
        right: 20px;
    }

    .floating-contact .contact-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
        padding: 7px;
    }

    .contact-modal-content {
        padding: 20px 15px;
        margin: 15px;
        width: calc(100% - 30px);
        max-height: 85vh;
    }

    .contact-modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .contact-info-item {
        margin: 15px 0;
    }

    .contact-info-item h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .contact-info-item p {
        font-size: 14px;
    }

    .wechat-qr {
        width: 180px;
        height: 180px;
        margin: 15px auto;
    }

    .contact-modal-close {
        font-size: 24px;
        top: 8px;
        right: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .floating-contact {
        bottom: 170px;
        right: 18px;
    }

    .floating-contact .contact-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
        padding: 6px;
    }

    .contact-modal-content {
        padding: 18px 12px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .wechat-qr {
        width: 160px;
        height: 160px;
    }
}

.ico_wechat_bak::after {
    content: '';
    display: block;
    width: 2.72rem;
    height: 2.72rem;
    background-image: url("/static/common/contact/wechat.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--color);
}

/* 确保返回顶部按钮在最上层 */
.goTOP {
    z-index: 9999 !important;
}
