/**
 * 统一浮动按钮样式
 * 顺序：预算（上）→ 客服（上中）→ 电话（下中）→ 返回顶部（下）
 */

/* 浮动按钮容器 */
.float-buttons-container {
    position: fixed;
    right: 20px;
    bottom: 160px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* 通用浮动按钮样式 */
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    gap: 2px;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-btn i {
    font-size: 1.25rem;
}

.float-btn span {
    font-size: 0.6rem;
    font-weight: 600;
}

/* 预算按钮 - 金色 */
.float-btn-budget {
    background: linear-gradient(135deg, #D4AF37 0%, #E8C547 100%);
    color: #1A1A1A;
}

.float-btn-budget:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* 客服按钮 - 微信绿 */
.float-btn-chat {
    background: linear-gradient(135deg, #07C160 0%, #06ad51 100%);
    color: #fff;
}

.float-btn-chat:hover {
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.5);
}

/* 电话按钮 - 橙色 */
.float-btn-phone {
    background: linear-gradient(135deg, #FF6B35 0%, #e85d2c 100%);
    color: #fff;
}

.float-btn-phone:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* 返回顶部按钮 - 深色 */
.float-btn-top {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #D4AF37;
    border: 1px solid #D4AF37;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.float-btn-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.float-btn-top:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #E8C547 100%);
    color: #1A1A1A;
    border-color: transparent;
}

/* 电话弹出菜单 */
.phone-pop-menu {
    position: fixed;
    right: 85px;
    bottom: 245px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 8px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: phoneMenuIn 0.2s ease;
}

@keyframes phoneMenuIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.phone-pop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.phone-pop-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.phone-pop-item span {
    font-size: 1rem;
}

.phone-pop-close {
    text-align: center;
    padding: 6px;
    color: #666;
    cursor: pointer;
    font-size: 0.75rem;
}

.phone-pop-close:hover {
    color: #fff;
}

/* 响应式 */
@media (max-width: 480px) {
    .float-buttons-container {
        right: 12px;
        bottom: 110px;
        gap: 10px;
    }
    
    .float-btn {
        width: 46px;
        height: 46px;
    }
    
    .float-btn i {
        font-size: 1rem;
    }
    
    .float-btn span {
        font-size: 0.5rem;
    }

    .phone-pop-menu {
        right: 65px;
        bottom: 195px;
    }
}
