/* 锚点定位偏移（解决导航栏遮挡） */
:target {
    scroll-margin-top: 80px;
}

/* 右侧固定客服样式（和其他页面完全一致） */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 9998 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-img {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid #fff;
}

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

.service-img:hover {
    transform: scale(1.05);
}

.service-tooltip {
    position: absolute;
    right: 60px;
    bottom: 0;
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.service-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.customer-service:hover .service-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.tooltip-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tooltip-btn {
    display: block;
    width: 100%;
    background-color: #165DFF;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tooltip-btn:hover {
    background-color: #0F52D9;
}

/* ========== case.html 专属：标题栏样式 ========== */
/* 1. PC端搜索按钮（白色背景标题栏） */
header.sticky #searchBtn {
    color: #1D2129 !important;
    /* 默认黑色 */
    background: transparent !important;
}

header.sticky #searchBtn:hover {
    color: #165DFF !important;
    /* hover变蓝色 */
    background: rgba(22, 93, 255, 0.05) !important;
}

header.sticky #searchBtn i,
header.sticky #searchBtn span {
    color: inherit !important;
}

/* 2. 移动端菜单按钮（汉堡图标） */
header.sticky #mobileMenuBtn {
    color: #1D2129 !important;
    /* 默认黑色 */
}

header.sticky #mobileMenuBtn:hover {
    color: #165DFF !important;
}

header.sticky #mobileMenuBtn i {
    color: inherit !important;
}

/* 3. 移动端菜单内的搜索按钮 */
#mobileMenu #mobileSearchBtn {
    color: #1D2129 !important;
    /* 默认黑色 */
}

#mobileMenu #mobileSearchBtn:hover {
    color: #165DFF !important;
}

#mobileMenu #mobileSearchBtn i,
#mobileMenu #mobileSearchBtn span {
    color: inherit !important;
}

/* 优化案例中心下拉菜单样式 - 扩大可点击区域 */
.dropdown-menu {
    /* 调整菜单定位，避免偏移导致鼠标移不到 */
    left: -8px;
    /* 向左偏移，覆盖父元素边缘，防止鼠标"断档" */
    padding: 4px 0;
    /* 增加上下内边距，扩大整体区域 */
    min-width: 160px;
    /* 确保最小宽度，避免选项挤在一起 */
}

/* 扩大下拉选项的可点击区域 */
.dropdown-menu a {
    padding: 8px 16px !important;
    /* 增大内边距，点击区域更大 */
    margin: 2px 0;
    /* 增加选项间距，避免误点 */
    width: 100%;
    /* 确保选项宽度铺满菜单 */
    box-sizing: border-box;
    /* 内边距不影响宽度 */
}

/* 优化hover反馈，让用户更清晰感知可点击 */
.dropdown-menu a:hover {
    background-color: #F2F3F5;
    /* 加深hover背景色 */
    color: #165DFF;
    /* hover时文字变主色，更醒目 */
}

/* 父元素hover时增加高亮，提示当前激活菜单 */
.dropdown-hover:hover>a {
    color: #165DFF !important;
}