/* --- 客服整体容器 --- */
        .right-service-panel {
            position: fixed;
            right: 0;
            bottom: 100px;
            z-index: 9999;
            font-family: "Microsoft YaHei", sans-serif;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        /* --- 通用项包裹器 --- */
        .service-item {
            position: relative;
            display: inline-block;
            /* 关键：这里不设置高度，由内容撑开，防止挤压 */
        }

        /* --- 通用按钮样式 --- */
        .toggle-btn {
            width: 50px;
            height: 50px;
            background-color: #16a34a;
            color: white;
            border-radius: 8px 0 0 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
            font-weight: bold;
            font-size: 18px;
            transition: all 0.3s ease;
            margin-bottom: 10px;
            z-index: 2; /* 确保按钮在最上层 */
        }

        .toggle-btn:hover {
            background-color: #059669;
            transform: translateX(-5px);
        }

        /* --- 顶部形象按钮 --- */
        .avatar-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid #16a34a;
            box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.3s ease;
        }

        .avatar-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar-btn:hover {
            transform: scale(1.1);
        }

        /* --- 内容盒子通用样式 --- */
        .services-box {
            position: absolute;
            right: 60px; /* 距离按钮的距离 */
            bottom: 0;
            background: white;
            border-radius: 8px 0 0 8px;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            overflow: hidden;
            width: 0; /* 默认宽度为0 */
            /* 关键：将 transition 移到这里，由 CSS 控制动画 */
            transition: width 0.3s ease;
        }

        /* --- 核心修复：利用 CSS 的 hover 控制展开 --- */
        /* 当鼠标移到 .service-item 上时，展开对应的 .services-box */
        .service-item:hover .services-box {
            width: 220px;
        }

        /* --- 标题与列表 --- */
        .services-box h3 {
            margin: 0 0 15px 0;
            color: #333;
            font-size: 16px;
            text-align: center;
            border-bottom: 1px solid #eee;
            padding: 10px 15px;
        }

        .contact-list, .feature-list {
            list-style: none;
            padding: 0 15px;
            margin: 0 0 10px 0;
        }

        .contact-list li, .feature-list li {
            display: flex;
            margin-bottom: 12px;
            align-items: center;
            font-size: 14px;
            color: #555;
            transition: color 0.2s;
        }

        .contact-list li:hover, .feature-list li:hover {
            color: #16a34a;
            cursor: pointer;
        }

        .contact-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            font-weight: bold;
            color: white;
            font-size: 14px;
        }

        .icon-qq { background-color: #52C41A; }
        .icon-tel { background-color: #1890FF; }
        .icon-wechat { background-color: #2DB744; }
        .icon-form { background-color: #9254DE; }
        .icon-feedback { background-color: #FAAD14; }
        
         /* --- 新增：回到顶部按钮样式 --- */
        .btn-to-top {
            background-color: #636363 !important; /* 灰色背景 */
            opacity: 0; /* 默认透明 */
            pointer-events: none; /* 默认不响应鼠标事件 */
            transition: opacity 0.3s, background 0.3s;
        }

        .btn-to-top.show {
            opacity: 1; /* 显示 */
            pointer-events: auto; /* 可点击 */
        }

        .btn-to-top:hover {
            background-color: #333 !important;
        }