﻿/* ==========================================   0. 全局滚动行为设置   ========================================== *//* 浏览器指令：当页面因锚点（如 #top）触发滚动时，使用平滑动画过渡，而非瞬间跳转 */html {    scroll-behavior: smooth;}/* ==========================================   1. 核心容器：包裹头像与按钮组的整体定位   ========================================== *//* 定义客服模块的最外层容器 */.nazservice-container {    position: fixed;        /* 固定定位：随页面滚动而保持在屏幕固定位置 */    bottom: 30px;           /* 距离屏幕底部 30px */    right: 10px;            /* 距离屏幕右侧 10px */    z-index: 999999;        /* 极高层级：确保客服模块在所有内容之上（避免被广告或弹窗遮挡） */    display: flex;          /* 使用弹性布局 */    flex-direction: column; /* 子元素垂直排列（头像在上，按钮在下） */    align-items: center;    /* 水平居中对齐子元素 */    gap: 0;                 /* 消除头像与按钮组之间的默认间隙 */}/* ==========================================   2. 客服头像部分 (带动画与提示)   ========================================== *//* 头像整体样式 */.consult_contact {    position: relative;     /* 相对定位：为内部绝对定位元素提供参考 */    width: 114px;           /* 固定宽度 */    height: 114px;          /* 固定高度 */    cursor: pointer;        /* 鼠标悬停显示为手型 */    z-index: 1000;          /* 提升层级：确保头像在按钮之上（视觉层次） */    margin-bottom: -11px;   /* 负边距：让头像向下移动，覆盖按钮顶部，实现“嵌入”视觉效果 */}/* 头像内部包裹层 */.consult_wrap {    position: relative;    width: 100%;    height: 100%;}/* 悬浮提示框样式（如“点击咨询”） */.consult_wrap .tip {    position: absolute;     /* 绝对定位：脱离文档流，精确控制位置 */    right: 95px;            /* 提示框出现在头像左侧 */    top: 45px;              /* 垂直居中对齐 */    display: none;          /* 默认隐藏 */    width: 150px;    height: 24px;    border-radius: 3px;     /* 圆角边框 */    font-size: 14px;    line-height: 24px;      /* 垂直居中文本 */    text-align: center;    background: #3091f2;    /* 蓝色背景 */    color: #fff;            /* 白色文字 */    transition: opacity 1s ease; /* 淡入淡出过渡效果 */}/* 提示框的小三角（箭头） */.consult_wrap .tip:after {    position: absolute;    right: -8px;            /* 位于提示框右侧外部 */    top: 50%;    content: "";    width: 0; height: 0;     /* 通过边框绘制三角形 */    border-top: 4px solid transparent;    border-right: 4px solid transparent;    border-bottom: 4px solid transparent;    border-left: 4px solid #3091f2; /* 左边框为实色，形成向右的箭头 */    transform: translateY(-50%); /* 垂直居中 */}/* 头像图片通用样式 */.consult_contact img {    position: absolute;    left: 50%;    top: 50%;    width: auto;    transform: translate3d(-50%, -50%, 0); /* 真正的居中（含硬件加速） */}/* 员工头像层级 */.consult_contact .staff_img {    z-index: 999;           /* 确保人像在装饰元素之上 */}/* --- 动画定义 --- *//* 旋转动画：用于装饰性元素（如光环或小球） */@keyframes ballRotate {    0% { transform: rotate(0); }    100% { transform: rotate(360deg); }}/* 应用于旋转的小球元素 */.consult_contact .ball {    top: 20px;    width: auto;    transform-origin: 0 38px; /* 旋转中心点 */    animation: ballRotate 2.5s infinite linear; /* 持续匀速旋转 */    z-index: 9999;            /* 最高层级，确保可见 */}/* 背景呼吸灯动画 */@keyframes bg2Animation {    0% { opacity: 0; }    50% { opacity: 1; }    100% { opacity: 0; }}/* 应用于背景装饰图层 */.consult_contact .bg-2 {    animation: bg2Animation 2.5s infinite linear; /* 循环淡入淡出 */}/* 鼠标悬停时显示提示 */.consult_contact:hover .tip {    display: block;    opacity: 1;}/* 图标大小统一设置 */.use img {    width: 24px;    height: 24px;}/* ==========================================   3. 客服功能按钮组 (下方3个方块)   ========================================== *//* 按钮容器整体样式 */.nazservice {    width: 40px;    font-size: 12px;    background: transparent; /* 透明背景：避免遮挡下层内容 */    box-shadow: none;        /* 去除默认阴影 */    padding: 0;    margin: 0;}/* --- 每个按钮项的通用样式 --- *//* 注意：这里去除了 :first-child 的特殊处理，统一所有按钮样式 */.nazservice > span {    position: relative;      /* 为内部绝对定位元素（如提示框）提供参考 */    display: block;          /* 块级元素 */    margin-bottom: 5px;      /* 按钮之间垂直间距 */    height: 40px;    background: transparent; /* 背景透明 */    box-shadow: 0 0 2px #3091f2; /* 蓝色光晕边框 */    border-radius: 8px;      /* 圆角矩形 */    overflow: hidden;        /* 隐藏溢出内容，保证圆角裁剪 */}/* 悬停效果：统一变色 */.nazservice > span:hover {    background: #ff0000;   /* 悬停时背景变亮蓝 */}/* --- 按钮内部提示框 --- *//* 定义各种功能的提示文字（默认隐藏） */.nazservice .nav_help .help-tip,.nazservice .nav_phone .phone-tip,.nazservice .scrollTop .top-tip,.nazservice .nav_senior .senior-tip {    display: none;    text-align: center;    line-height: 17px;    padding: 4px 5px;    color: #fff;}/* 鼠标悬停时显示对应提示框 */.nazservice .nav_help:hover .help-tip,.nazservice .nav_phone:hover .phone-tip,.nazservice .scrollTop:hover .top-tip,.nazservice .nav_senior:hover .senior-tip {    display: block;}/* 悬停时隐藏图标，显示文字（可选交互） */.nazservice .nav_help:hover .use,.nazservice .nav_phone:hover .use,.nazservice .scrollTop:hover .use,.nazservice .nav_senior:hover .use {    display: none;}/* 图标容器样式 */.nazservice .use {    position: absolute;    top: 50%;    left: 50%;    width: 60%;    height: 60%;    transform: translate3d(-50%, -50%, 0); /* 居中 */}/* 返回顶部图标特殊调整 */.nazservice .scrollTop .use {    width: 60%;    height: 60%;}/* SVG 图标自适应 */.nazservice > span svg {    width: 100%;    height: 100%;}/* --- 按钮细节微调 --- *//* 帮助按钮顶部间距（用于对齐头像） */.nazservice .nav_help {    margin-top: 13px; }/* 图标滤镜效果：调整色调、饱和度、亮度 */.nazservice .use img {    filter: hue-rotate(111deg) saturate(2.2) brightness(1.1);    transition: filter 0.3s ease; /* 平滑过渡 */}/* 悬停时图标变色 */.nazservice > span:hover .use img {    filter: hue-rotate(99deg) saturate(1.1) brightness(2.2);}/* --- 电话号码弹窗样式 --- */.nazservice .nav_phone .phone-num {    display: none;           /* 默认隐藏 */    position: absolute;    left: -134px;            /* 显示在按钮左侧 */    top: 5px;    width: 120px;    height: 30px;    background: #3091f2;    color: white;    line-height: 30px;    text-align: center;    box-shadow: 0 0 2px #3091f2;}/* 电话弹窗的小三角 */.nazservice .nav_phone .phone-num:before {    position: absolute;    right: -14px;            /* 指向右侧 */    top: 9px;    content: "";    width: 0; height: 0;    border: 7px solid transparent;    border-left-color: #3091f2; /* 形成向左的箭头 */}/* ==========================================   4. 响应式设计：移动端适配   ========================================== *//* 屏幕宽度小于 768px 时（手机端）隐藏整个客服模块 */@media screen and (max-width: 768px) {    .nazservice,    .consult_contact {        display: none;    }}/* ==========================================   5. 全局链接样式修正   ========================================== *//* 去除客服模块内所有链接的下划线，保持视觉整洁 */.nazservice a,.consult_contact a {    text-decoration: none !important;}