/* 左侧浮动客服样式 - 暗金竖条版本 */
#floatTools.rides-cs {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    height: auto;
    min-height: 200px;
    display: flex;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    margin-top: -50px;
}

/* 左侧暗金竖条 */
#floatTools .floatL {
    width: 36px;
    background: linear-gradient(to bottom, #B8860B, #8B6508);
    display: flex;
    flex-direction: column;
    align-items: center;
   justify-content: center;
    padding: 10px 0;
    box-shadow: inset -2px 0 5px rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

#floatTools .floatL:hover {
    background: linear-gradient(to bottom, #B8860B, #8B6508);
    width: 40px;
}

/* 左侧文字：在线客服 */
#floatTools .floatL a {
    color: white;
    writing-mode: vertical-rl;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
    padding: 5px 0;
}

/* 右侧白色内容区 */
#floatTools .floatR {
  height:237px;
   width:140px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-left: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* 隐藏状态 */
#floatTools .floatR.hide {
    width: 0;
    opacity: 0;
    overflow: hidden;
    border: none;
}

/* 内容区内边距 */
#floatTools .cn {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
}

/* 标题：在线客服 */
#floatTools .titZx {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 客服列表容器 */
#floatTools ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 单个客服项：横向布局 */
#floatTools li.cs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 3px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#floatTools li.cs-item:hover {
    background-color: #f8f9fa;
}

/* 头像样式 */
#floatTools li.cs-item .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#floatTools li.cs-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* QQ链接样式：蓝色背景，圆角，小字体 */
#floatTools li.cs-item .qq-link {
    font-size: 12px;
    color: #0066CC;
    text-decoration: none;
    background-color: #E6F2FF;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #99CCFF;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap;
    flex-grow: 1;
    text-align: center;
}

/* 鼠标悬停效果 */
#floatTools li.cs-item .qq-link:hover {
    background-color: #0066CC;
    color: white;
    border-color: #0066CC;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,102,204,0.3);
}

/* 在线状态指示器 */
#floatTools li.cs-item .online-status {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4CAF50;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    #floatTools.rides-cs {
        left: 5px;
        transform: scale(0.9) translateY(-50%);
        transform-origin: left center;
    }
    
    #floatTools .floatL {
        width: 30px;
    }
    
    #floatTools .floatR {
        width: 120px;
    }
    
    #floatTools .floatL a {
        font-size: 12px;
        letter-spacing: 3px;
    }
}