  /* 右侧悬浮菜单容器 - 固定定位 */
  .float-container {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

/* 菜单包装器 */
.float-container .menu-wrapper {
    position: relative;
    display: inline-block;
    /* border-radius: 12px 0 0 12px; */
    border-radius: 3px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 菜单项区域 */
.float-container .menu-wrapper .menu-items {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    /* border-radius: 12px 0 0 12px; */
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* 单个菜单项 */
.float-container .menu-wrapper .menu-item {
    width: 60px; /* 减小宽度 */
    height: 70px; /* 增加高度，使其更接近正方形 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.float-container .menu-wrapper .menu-item:last-child {
    border-bottom: none;
}

.float-container .menu-wrapper .menu-item:hover {
    background: linear-gradient(145deg, #f0f7ff, #e6f0ff);
    transform: translateX(-2px);
}

.float-container .menu-wrapper .menu-item.active {
    background: linear-gradient(145deg, #e6f0ff, #d9e8ff);
}

.float-container .menu-wrapper .icon {
    font-size: 18px;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
 

.float-container .menu-wrapper .menu-item:hover .icon {
    transform: scale(1.1);
}

.float-container .menu-wrapper .menu-text {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
    white-space: nowrap;
}

/* 连接线效果 - 当弹窗显示时 */
.float-container .menu-wrapper .menu-item.active::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 3px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* 弹窗区域 - 绝对定位在菜单左侧 */
.float-container .menu-wrapper .panels-container {
    position: absolute;
    right: 100%; /* 放在菜单的左侧 */
    top: 0;
    width: 200px; /* 减小弹窗宽度 */
    z-index: 1;
}

/* 弹窗样式 */
.float-container .menu-wrapper .content-panel {
    display: none;
    width: 100%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 20px;
    box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.12);
    position: absolute;
    backdrop-filter: blur(10px);
    animation: panelSlide 0.3s ease;
}

@keyframes panelSlide {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 各个弹窗的位置 - 与对应菜单项对齐 */
#panel-phone {
    top: 0;
}

#panel-wechat {
    top: 70px;
}

#panel-top {
    top: 140px;
}

/* 面板内容样式 */
.panel-phone .phone-number {
    font-size: 15px;
    font-weight: 700;
    /* color: #2c3e50; */
    color: #0d42ff;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 1px;
}

.panel-phone .work-time {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 20px;
    text-align: center;
    padding: 6px 0;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 6px;
}

.panel-btn {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.panel-btn:hover {
    background: linear-gradient(to right, #2980b9, #1f639e);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.qrcode-box {
    width: 115px;
    height: 115px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0 auto 15px;
    line-height: 115px;
    text-align: center;
    color: #95a5a6;
    font-size: 11px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qrcode-box img {
    width: 115px;
    height: 115px;
}

/* .qrcode-box::before {
    content: "↓";
    font-size: 20px;
    color: #3498db;
    margin-bottom: 5px;
} */

.panel-desc {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    font-weight: 500;
}

.top-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.top-btn:hover {
    background: linear-gradient(145deg, #27ae60, #219653);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
}

/* 返回顶部弹窗样式 */
.back-to-top-panel .desc {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    font-weight: 500;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .float-container {
        right: 10px;
    }
    
    .menu-item {
        width: 60px;
        height: 60px;
    }
    
    .panels-container {
        width: 180px;
    }
    
    #panel-wechat {
        top: 60px;
    }
    
    #panel-top {
        top: 120px;
    }
    
    .content {
        margin: 0 10px;
        padding: 25px;
    }
}