/* 组合悬浮按钮样式 */
.combined-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-btn-display {
    background: #ffffff;
    color: #333333;
    padding: 12px 15px;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 5px;
    min-width: 100px;
}

.quote-btn-display:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quote-text {
    color: #333333;
    font-weight: 600;
}

.whatsapp-btn {
    background: #2db742;
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    width: 80px;
    height: 80px;
    /* box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); */
}

.whatsapp-btn:hover {
    /* background: linear-gradient(135deg, #20c05c 0%, #0f7a6b 100%); */
    color: white;
    text-decoration: none;
    transform: scale(1.1);
    /* box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); */
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-text {
    display: none; /* 隐藏文字，只显示图标 */
}

/* WhatsApp 弹窗样式 */
.whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.whatsapp-modal-content {
    background-color: #fff;
    position: fixed;
    bottom: 160px; /* 在按钮上方 */
    right: 20px;
    border-radius: 16px;
    width: 400px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideUpIn 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

/* 弹窗箭头指示 */
.whatsapp-modal-content::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 45px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.1));
}

.whatsapp-modal-header {
    background: linear-gradient(135deg, #25d366 0%, #20b85a 100%);
    color: white;
    padding: 30px 25px;
    position: relative;
}

.whatsapp-header-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.whatsapp-icon-large {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-header-text h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.whatsapp-header-text p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
}

.whatsapp-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: white;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.whatsapp-close:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.whatsapp-modal-body {
    padding: 0;
}

.whatsapp-contact-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin: 0;
}

.whatsapp-contact-item:hover {
    background: #f0f9f0;
    transform: translateX(2px);
}

.whatsapp-contact-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-contact-info {
    flex: 1;
}

.whatsapp-contact-name {
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.whatsapp-contact-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.whatsapp-contact-arrow {
    margin-left: 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.whatsapp-contact-item:hover .whatsapp-contact-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 12px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #ff6b9d 0%, #f06292 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #f48fb1 0%, #e91e63 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    }
}



/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .combined-float {
        bottom: 75px;
        right: 15px;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .quote-btn-display {
        padding: 12px 20px;
        font-size: 13px;
    }

    .whatsapp-btn {
        padding: 12px 15px;
    }

    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }

    .quote-modal-content,
    .whatsapp-modal-content {
        width: 95%;
    }

    .quote-modal-content {
        margin: 10% auto;
    }

    .whatsapp-modal-content {
        bottom: 140px;
        right: 15px;
        width: calc(100vw - 30px);
        max-width: 320px;
    }

    .quote-modal-body {
        padding: 20px;
    }

    .whatsapp-header-text h2 {
        font-size: 18px;
    }

    .whatsapp-header-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .quote-text {
        font-size: 12px;
    }

    .quote-btn-display {
        padding: 10px 15px;
        font-size: 12px;
    }

    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-btn {
        padding: 10px 12px;
    }

    .whatsapp-icon {
        width: 18px;
        height: 18px;
    }

    .quote-modal-content,
    .whatsapp-modal-content {
        width: 98%;
    }

    .quote-modal-content {
        margin: 5% auto;
    }

    .whatsapp-modal-content {
        bottom: 130px;
        right: 10px;
        left: 10px;
        width: calc(100vw - 20px);
        max-width: none;
    }

    .whatsapp-modal-header {
        padding: 25px 20px;
    }

    .whatsapp-header-content {
        gap: 15px;
    }

    .whatsapp-icon-large {
        padding: 15px;
    }

    .whatsapp-header-text h2 {
        font-size: 18px;
    }

    .whatsapp-header-text p {
        font-size: 14px;
    }

    .whatsapp-contact-item {
        padding: 20px;
    }

    .whatsapp-contact-avatar {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }

    .whatsapp-contact-name {
        font-size: 15px;
    }

    .whatsapp-contact-label {
        font-size: 13px;
    }
}