/* 浮动栏目 */
.information {
    position: fixed;
    right: 0;
    bottom: 80px;
    z-index: 999;
}

.float-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.float-item {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 15px;
}

.float-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.float-item:hover::before {
    left: 100%;
}

.float-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.float-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
    color: #fff !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.float-item:hover svg {
    transform: scale(1.15);
}

/* Email - 深蓝色背�?*/
.float-item.email {
    background: #1e3a5f;
}

.float-item.email:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.55);
}

/* Phone - 深蓝色背�?*/
.float-item.phone {
    background: #1e3a5f;
}

.float-item.phone:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.55);
}

/* WhatsApp - 绿色背景 */
.float-item.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-item.whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}

.float-item.whatsapp img {
    filter: brightness(0) invert(1);
}

/* Back to Top - 深蓝色背�?*/
.float-item.back-top {
    background: #1e3a5f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.float-item.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.float-item.back-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Tooltip */
.float-item .tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 弹窗遮罩�?*/
.float-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.float-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 弹窗容器 */
.float-popup {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.float-popup-overlay.active .float-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 弹窗关闭按钮 */
.float-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
}

.float-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* 弹窗图标 */
.float-popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.float-popup-icon.email {
    background: linear-gradient(145deg, #1E3A5F 0%, #2D5A87 100%);
}

.float-popup-icon.phone {
    background: linear-gradient(145deg, #0F75BC 0%, #3B9AE1 100%);
}

.float-popup-icon.whatsapp {
    background: linear-gradient(145deg, #05C46B 0%, #00B894 100%);
}

.float-popup-icon svg {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
}

/* 弹窗标题 */
.float-popup-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
}

/* 弹窗提示 */
.float-popup-hint {
    text-align: center;
    font-size: 14px;
    color: #7F8C8D;
    margin-bottom: 25px;
}

/* 数据显示区域 */
.float-popup-data {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.float-popup-data-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.float-popup-data-icon svg {
    width: 28px;
    height: 28px;
}

.float-popup-data-icon.email {
    background: linear-gradient(145deg, #1E3A5F 0%, #2D5A87 100%);
}

.float-popup-data-icon.phone {
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
}

.float-popup-data-icon.whatsapp {
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
}

.float-popup-data-value {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
    word-break: break-all;
    text-align: center;
}

/* 复制按钮 */
.float-popup-copy-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.float-popup-copy-btn.email {
    background: linear-gradient(145deg, #1E3A5F 0%, #2D5A87 100%);
    color: #fff;
}

.float-popup-copy-btn.phone {
    background: linear-gradient(145deg, #0F75BC 0%, #3B9AE1 100%);
    color: #fff;
}

.float-popup-copy-btn.whatsapp {
    background: linear-gradient(145deg, #05C46B 0%, #00B894 100%);
    color: #fff;
}

.float-popup-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.float-popup-copy-btn.copied {
    background: linear-gradient(145deg, #27AE60 0%, #2ECC71 100%) !important;
}

/* 复制成功提示 */
.float-popup-copy-tip {
    text-align: center;
    font-size: 13px;
    color: #27AE60;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.float-popup-copy-tip.show {
    opacity: 1;
    visibility: visible;
}

/* 按钮光晕效果 */
.float-item.glow {
    animation: glow 2.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    }
    to {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }
}

.float-item.email.glow {
    animation: glow-email 2.5s ease-in-out infinite alternate;
}

@keyframes glow-email {
    from {
        box-shadow: 0 4px 20px rgba(30, 58, 95, 0.3);
    }
    to {
        box-shadow: 0 4px 35px rgba(30, 58, 95, 0.55);
    }
}

.float-item.whatsapp.glow {
    animation: glow-whatsapp 2.5s ease-in-out infinite alternate;
}

@keyframes glow-whatsapp {
    from {
        box-shadow: 0 4px 20px rgba(5, 196, 107, 0.3);
    }
    to {
        box-shadow: 0 4px 35px rgba(5, 196, 107, 0.55);
    }
}

/* 响应�?- iPad with navigation bar (实际视口�?1024px 以下) */
@media screen and (max-width: 1024px) {
    .information {
        right: 15px;
        bottom: 100px;
    }
    
    .float-bar {
        gap: 14px;
        font-size: 14px;
    }
    
    .float-item {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        font-size: 8px;

    }
    
    .float-item svg {
        width: 24px;
        height: 24px;
        margin-right: 0;
    }
    
    .float-item .tooltip {
        display: none;
    }
    
    .float-item:hover {
        transform: translateY(-3px) scale(1.05);
    }
}

/* 响应�?- iPad / 中等平板 (768px 以下) */
@media screen and (max-width: 768px) {
    .information {
        right: 12px;
        bottom: 90px;
    }
    
    .float-bar {
        gap: 12px;
        font-size: 8px;
    }
    
    .float-item {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .float-item a {
        padding: 0;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .float-item svg {
        width: 20px;
        height: 20px;
        margin-right: 0;
        display: block;
    }
    
    .float-item .tooltip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .float-item:hover {
        transform: translateY(-3px) scale(1.05);
    }
    
    .float-popup {
        padding: 25px 20px;
        max-width: 320px;
    }
    
    .float-popup-icon {
        width: 50px;
        height: 50px;
    }
    
    .float-popup-icon svg {
        width: 25px;
        height: 25px;
    }

    .float-popup-data {
        padding: 15px;
    }

    .float-popup-data-icon {
        width: 45px;
        height: 45px;
    }

    .float-popup-data-icon svg {
        width: 24px;
        height: 24px;
    }

    .float-popup-data-value {
        font-size: 17px;
    }
    
    .float-popup-title {
        font-size: 18px;
        display: none;
    }

    .float-popup-hint {
        display: none;
    }
}

/* 响应�?- 手机 (480px 以下) */
@media screen and (max-width: 480px) {
    .information {
        right: 10px;
        bottom: 80px;
    }
    
    .float-bar {
        gap: 10px;
    }
    
    .float-item {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .float-item a {
        padding: 0;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .float-item svg {
        width: 18px;
        height: 18px;
        margin-right: 0;
        display: block;
    }

    .float-item .tooltip {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .float-item:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .float-popup {
        padding: 20px 15px;
        max-width: 300px;
        border-radius: 16px;
    }

    .float-popup-data {
        padding: 15px;
    }

    .float-popup-data-icon {
        width: 40px;
        height: 40px;
    }

    .float-popup-data-icon svg {
        width: 22px;
        height: 22px;
    }

    .float-popup-data-value {
        font-size: 16px;
    }

    .float-popup-title {
        display: none;
    }

    .float-popup-hint {
        display: none;
    }
}
