/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
}

/* 悬浮头像样式 */
#floating-avatar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#floating-avatar:hover {
    transform: translateY(-5px);
}

#floating-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

#floating-avatar img:hover {
    transform: scale(1.1);
}

#avatar-p {
    background: #ffd700;
    border-radius: 15px;
    padding: 5px 10px;
    margin: 5px 0;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

#floating-avatar button {
    margin-top: 5px;
    border: 0;
    color: white;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
}

#whatsapp-btn {
    background: #25d366;
}

#facebook-btn {
    background: #1877f2;
}

#whatsapp-btn:hover, #facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 弹出窗口样式 */
#floating-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#floating-window.hidden {
    display: none;
}

#floating-window.fade-in {
    opacity: 1;
}

#floating-window.fade-out {
    opacity: 0;
}

.popup-content {
    padding: 30px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.popup-title {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 10px;
}

.popup-subtitle {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 20px;
}

.image-comparison {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
}

/* .price {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
} */

.label {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.warning-text {
    font-size: 18px;
    color: #e74c3c;
    margin: 20px 0;
}

.trust-text {
    color: #3498db;
    font-size: 28px;
    margin: 10px 0;
}

.service-text {
    color: #3498db;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.description-text {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4);
}

/* 撒花效果 */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0;
    animation: confetti-fall 5s ease-out forwards;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #floating-window {
        width: 95%;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-subtitle {
        font-size: 14px;
    }

    .image-container img {
        width: 100px;
        height: 100px;
    }

    .trust-text {
        font-size: 24px;
    }

    .service-text {
        font-size: 18px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}