/* phone-button.css - WIPESTAR-TEL Plugin */
.phone-float-wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Button Container */
.phone-float-wrap {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
}

/* Phone Button Main Body */
.phone-float-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(22, 119, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    /* Pulse Animation */
    animation: pulse 2s infinite;
}

/* Button Prompt Text - PC Only */
.phone-float-btn::before {
    content: attr(data-text); /* 使用data属性传递动态文本 */
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Prompt Text Triangle */
.phone-float-btn::after {
    content: '';
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.phone-float-btn:hover::before,
.phone-float-btn:hover::after {
    opacity: 1;
}

/* Pulse Animation Effect */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(22, 119, 255, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(22, 119, 255, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(22, 119, 255, 0.35);
        transform: scale(1);
    }
}

/* Button Hover Effect */
.phone-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(22, 119, 255, 0.45);
    /* Pause pulse on hover */
    animation: none;
}

/* Button Click Ripple Effect */
.phone-float-btn .ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.phone-float-btn:active .ripple {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* Phone Icon Style */
.phone-icon-svg {
    width: 36px;
    height: 36px;
    fill: #fff;
    transition: all 0.3s ease;
    /* Icon Flash Animation */
    animation: iconFlash 1.5s infinite alternate;
}

/* Icon Flash Animation */
@keyframes iconFlash {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.7;
    }
}

.phone-float-btn:hover .phone-icon-svg {
    transform: scale(1.1);
    animation: none; /* Stop icon flash on hover */
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .phone-float-wrap {
        right: 20px;
    }
    .phone-float-btn {
        width: 56px;
        height: 56px;
    }
    .phone-icon-svg {
        width: 32px;
        height: 32px;
    }
    /* Hide text prompt on mobile */
    .phone-float-btn::before,
    .phone-float-btn::after {
        display: none;
    }
}

/* Phone Popup Style - PC Only */
.phone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.phone-overlay.show {
    opacity: 1;
}

.phone-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    z-index: 10000;
    display: none;
    text-align: center;
    max-width: 90%;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.phone-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1677ff, #0958d9);
}

.phone-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #1677ff;
    margin: 20px 0;
}

.phone-desc {
    color: #666;
    margin-bottom: 20px;
}

.phone-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f8f8;
}
.phone-close:hover {
    background: #eee;
    color: #333;
    transform: rotate(90deg);
}

.call-button {
    display: inline-block;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    color: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.call-button:hover {
    background: linear-gradient(135deg, #0958d9 0%, #0640a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}