/* ============================================
   右侧悬浮导航栏样式 - 醒目版
   微信咨询(→企微) | 智能客服(AI聊天) | 电话(显示号码) | 回顶部
   ============================================ */

/* 侧边栏容器 */
.side-navbar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 每个按钮项 - 大号醒目 */
.side-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    padding: 14px 6px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
}

/* 圆角 */
.side-nav-item:first-child { border-radius: 8px 8px 0 0; }
.side-nav-item:last-child  { border-radius: 0 0 8px 8px; }
.side-nav-item:not(:first-child) { border-top: none; }

/* 图标 */
.side-nav-icon {
    font-size: 28px !important;
    line-height: 1.2;
    color: #333;
    transition: all 0.25s ease;
}

/* 文字标签 */
.side-nav-label {
    font-size: 13px !important;
    color: #333;
    margin-top: 4px;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-weight: 500;
}

/* ===== 各按钮专属颜色 ===== */

/* 微信咨询 - 绿色 */
.side-nav-item.nav-wechat:hover {
    background: #07c160; border-color: #07c160;
}
.side-nav-item.nav-wechat:hover .side-nav-icon,
.side-nav-item.nav-wechat:hover .side-nav-label { color: #fff; }
.side-nav-item.nav-wechat .side-nav-icon { color: #07c160; }

/* 智能客服 - 蓝色 */
.side-nav-item.nav-ai-chat:hover {
    background: #1890ff; border-color: #1890ff;
}
.side-nav-item.nav-ai-chat:hover .side-nav-icon,
.side-nav-item.nav-ai-chat:hover .side-nav-label { color: #fff; }
.side-nav-item.nav-ai-chat .side-nav-icon { color: #1890ff; }

/* 电话咨询 - 橙色 */
.side-nav-item.nav-phone:hover {
    background: #ff6b35; border-color: #ff6b35;
}
.side-nav-item.nav-phone:hover .side-nav-icon,
.side-nav-item.nav-phone:hover .side-nav-label { color: #fff; }
.side-nav-item.nav-phone .side-nav-icon { color: #ff6b35; }

/* 回顶部 - 灰色 */
.side-nav-item.nav-top:hover {
    background: #666; border-color: #666;
}
.side-nav-item.nav-top:hover .side-nav-icon,
.side-nav-item.nav-top:hover .side-nav-label { color: #fff; }

/* ===== 电话号码弹窗 ===== */
.phone-popup {
    display: none;
    position: absolute;
    right: 82px;
    top: 0;
    background: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    text-align: center;
    min-width: 200px;
    white-space: nowrap;
}
.phone-popup.show { display: block; }

.phone-popup .phone-number {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
    margin: 0 0 4px 0;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 1px;
}
.phone-popup .phone-number:hover { background: #fff3f0; }

.phone-popup .phone-hint {
    font-size: 12px;
    color: #999;
    margin: 0;
}
/* 小三角箭头 */
.phone-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 22px;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ===== 响应式：手机端稍微缩小但依然醒目 ===== */
@media (max-width: 768px) {
    .side-navbar { right: 10px; bottom: 60px; }
    .side-nav-item { width: 64px; padding: 10px 4px; }
    .side-nav-icon { font-size: 24px !important; }
    .side-nav-label { font-size: 11px !important; }
    .phone-popup { right: 70px; min-width: 150px; }
}
