body {
    font-family: 'Inter', sans-serif;
    user-select: none;
}
.text-danger {
    color: #ff4d4f;
}
/* 悬浮组件样式 */
.contact-widget {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    font-size: 0.8rem;
    font-weight: normal;
    z-index: 1000;
}

.contact-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: rgba(0,0,0,.5);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-info {
    position: absolute;
    width: 8rem;
    height: 5rem;
    background-color: rgba(22, 93, 255, 1);
    right: 6.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item:hover .contact-icon {
    background-color: rgba(22, 93, 255, 1);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

.contact-item:hover .contact-info {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.wechat-qrcode {
    width: 6rem;
    height: 6rem;
    padding: 0.5rem;
    background-color: rgba(22, 93, 255, 1);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    position: absolute;
    right: 6.5rem;
    pointer-events: none;
}

.wechat-item:hover .wechat-qrcode {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.back-to-top {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .contact-widget {
        right: 1rem;
        bottom: 1rem;
    }
    
    .contact-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    .contact-info {
        right: 2rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .wechat-qrcode {
        width: 100px;
        height: 100px;
        right: 2rem;
    }
}
