html {
	scroll-behavior: smooth;
}
.navbar-scrolled {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	background-color: white;
}
.animate-float {
	animation: float 6s ease-in-out infinite;
}
@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-15px); }
	100% { transform: translateY(0px); }
}

.hover-lift {
	transition: transform 0.2s ease-in-out;
}
.hover-lift:hover {
	transform: translateY(-2px);
}
.link-underline {
	position: relative;
}
.link-underline::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: var(--color-primary);
	transition: width 0.3s ease;
}
.link-underline:hover::after {
	width: 100%;
}

/* 客服栏容器 - 居中布局 */
.service-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* 通用按钮样式 */
.service-button {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 12px;
    color: #4A90E2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f5ff;
    position: relative;
    text-decoration: none;
}

.service-button:hover {
    background-color: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    border-color: transparent;
}

/* 免费试用按钮样式 - 修复hover显示问题 */
.free-trial-btn {
    width: 80px;
    height: 80px;
    border: 2px solid #36B37E;
    color: #36B37E;
    box-shadow: 0 4px 15px rgba(54, 179, 126, 0.25);
    animation: pulse 3s infinite;
}

.free-trial-btn .service-icon {
    font-size: 30px;
    color: #36B37E;
    transition: color 0.3s ease;
    /* 添加入场动画 */
}

.free-trial-btn .service-text {
    font-size: 13px;
    font-weight: 700;
    color: #36B37E;
    transition: color 0.3s ease;
    /* 添加入场动画 */
}

/* 关键修复：hover时强制图标和文字为白色 */
.free-trial-btn:hover {
    background-color: #36B37E;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(54, 179, 126, 0.35);
}

.free-trial-btn:hover .service-icon,
.free-trial-btn:hover .service-text {
    color: white !important;
    /* 确保hover时为白色 */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.3);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(54, 179, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(54, 179, 126, 0);
    }
}



/* 通用客服按钮基础样式 */
.service-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-decoration: none;
    position: relative;
}

/* 通用弹窗基础样式 */
.info-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    border: none;
    overflow: hidden;
}

.service-button:hover .info-panel,
.service-button:active .info-panel {
    opacity: 1;
    visibility: visible;
}

/* ===================== PC端样式 (≥768px) ===================== */
@media (min-width: 768px) {
    /* PC端右侧垂直布局 */
    .service-bar {
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* PC端按钮样式 */
    .service-button {
        width: 70px;
        height: 70px;
        background-color: white;
        border-radius: 12px;
        color: #4A90E2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e6edf7;
    }

    .service-button:hover {
        background-color: #4A90E2;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
        border-color: transparent;
    }

    /* 免费试用按钮PC端样式 */
    .free-trial-btn {
        width: 80px;
        height: 80px;
        border: 2px solid #36B37E;
        color: #36B37E;
        box-shadow: 0 4px 15px rgba(54, 179, 126, 0.25);
    }

    .free-trial-btn .service-icon {
        font-size: 30px;
        color: #36B37E;
    }

    .free-trial-btn .service-text {
        font-size: 13px;
        font-weight: 700;
        color: #36B37E;
    }

    .free-trial-btn:hover {
        background-color: #36B37E;
        color: white;
    }

    .free-trial-btn:hover .service-icon,
    .free-trial-btn:hover .service-text {
        color: white !important;
    }

    /* PC端图标文字 */
    .service-icon {
        font-size: 26px;
        margin-bottom: 5px;
    }

    .service-text {
        font-size: 12px;
        text-align: center;
        font-weight: 600;
    }

    /* PC端弹窗定位 */
    .info-panel {
        position: absolute;
        right: 80px;
        top: 50%;
        transform: translateY(-50%) scale(0.92);
        width: 280px;
        padding: 20px;
    }

    .service-button:hover .info-panel {
        transform: translateY(-50%) scale(1);
    }

    /* PC端弹窗箭头 */
    .info-panel::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        border: 10px solid transparent;
        border-left-color: white;
        filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.05));
    }
}

/* 通用客服按钮 */
.service-button {
    display: -webkit-flex; /* 兼容webkit内核 */
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-decoration: none;
    position: relative;
}

/* 通用弹窗基础 */
.info-panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999 !important; /* 提升层级，避免被遮挡 */
    border: none;
    overflow: hidden;
    /* 强制不换行 */
    white-space: nowrap;
}

.service-button:hover .info-panel,
.service-button:active .info-panel {
    opacity: 1;
    visibility: visible;
}

/* ===================== PC端样式 ===================== */
@media (min-width: 768px) {
    .service-bar {
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .service-button {
        width: 70px;
        height: 70px;
        background-color: white;
        border-radius: 12px;
        color: #4A90E2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid #e6edf7;
    }

    .service-button:hover {
        background-color: #4A90E2;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
        border-color: transparent;
    }

    .free-trial-btn {
        width: 80px;
        height: 80px;
        border: 2px solid #36B37E;
        color: #36B37E;
        box-shadow: 0 4px 15px rgba(54, 179, 126, 0.25);
    }

    .free-trial-btn .service-icon {
        font-size: 30px;
        color: #36B37E;
    }

    .free-trial-btn .service-text {
        font-size: 13px;
        font-weight: 700;
        color: #36B37E;
    }

    .free-trial-btn:hover {
        background-color: #36B37E;
        color: white;
    }

    .free-trial-btn:hover .service-icon,
    .free-trial-btn:hover .service-text {
        color: white !important;
    }

    .service-icon {
        font-size: 26px;
        margin-bottom: 5px;
    }

    .service-text {
        font-size: 12px;
        text-align: center;
        font-weight: 600;
    }

    .info-panel {
        position: absolute;
        right: 80px;
        top: 50%;
        transform: translateY(-50%) scale(0.92);
        width: 280px;
        padding: 20px;
    }

    .service-button:hover .info-panel {
        transform: translateY(-50%) scale(1);
    }

    .info-panel::after {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        border: 10px solid transparent;
        border-left-color: white;
        filter: drop-shadow(-2px 0 3px rgba(0, 0, 0, 0.05));
    }

    .service-button:active .info-panel.consult-panel {
        transform: translateX(-50%) scale(1) !important;
    }

    /* 弹窗箭头适配 */
    .info-panel.consult-panel::after {
        content: '' !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 50% !important;
        top: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border: 10px solid transparent !important;
        border-top-color: white !important;
        filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.06)) !important;
    }

    /* 弹窗头部 */
    .consult-panel .panel-header {
        padding: 15px 20px !important;
        background: linear-gradient(135deg, #5599e8 0%, #6bb0ee 100%) !important;
        color: white !important;
        border-radius: 16px 16px 0 0 !important;
        margin: -25px -20px 20px -20px !important;
        text-align: center !important;
    }

    .consult-panel .panel-title {
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    .consult-panel .panel-subtitle {
        font-size: 13px !important;
        opacity: 0.9 !important;
        margin-top: 6px !important;
    }

    .consult-panel .panel-content {
        padding: 0 !important;
        width: 100% !important;
    }
}

/* ===================== 通用内容样式 ===================== */
.contact-section {
    margin-bottom: 20px;
}

.contact-qrcode {
    text-align: center;
    margin: 0 auto;
}

.contact-qrcode img {
    width: 140px;
    height: 140px;
    padding: 5px;
    margin: 0 auto;
    border: 1px solid #e6edf7;
    border-radius: 8px;
    background-color: white;
}

.contact-qrcode-desc {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.contact-row {
    display: flex;
    justify-content: space-around;
    gap: 4px;
    margin-top: 5px;
}

.contact-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 4px;
    border: 1px solid #e6edf7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 4px;
}

.contact-item [class^="fa-"],
.contact-item [class*=" fa-"] {
    width: 20px;
    height: 20px;
    color: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #66758c;
    margin-bottom: 2px;
}

.contact-value {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.phone-link {
    text-decoration: none;
    color: inherit;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.consult-option {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid #4A90E2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.consult-option:hover {
    background-color: #f9fbff;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.option-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 15px;
}

.option-desc {
    font-size: 13px;
    color: #66758c;
    line-height: 1.5;
}

.work-hours {
    font-size: 13px;
    color: #8896ab;
    text-align: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed #e6edf7;
}

.simple-qrcode-panel {
    width: 220px;
    text-align: center;
    padding: 15px;
}

.simple-qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #e6edf7;
    border-radius: 8px;
    background-color: white;
}

.simple-desc {
    margin-top: 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* 复制提示样式 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* ===================== 移动端样式 - 强制宽屏适配 ===================== */
@media screen and (max-width: 767px), screen and (max-device-width: 767px) {
    /* 底部栏：强制适配 */
    .service-bar {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        top: auto !important;
        transform: none !important;
        background-color: white !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: row !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 8px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
        z-index: 999 !important;
        max-width: 100% !important;
    }

    .service-button {
        -webkit-flex: 1 !important;
        flex: 1 !important;
        height: 60px !important;
        width: auto !important;
        border-radius: 12px !important;
        color: #5599e8 !important;
        background-color: #f8fbff !important;
        box-shadow: none !important;
        border: none !important;
    }

    .free-trial-btn {
        color: #3fb883 !important;
        background-color: #f5fcf9 !important;
        width: auto !important;
        height: 60px !important;
        border: none !important;
        box-shadow: none !important;
    }

    .service-button:active {
        transform: scale(0.98) !important;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05) !important;
        background-color: #eff7ff !important;
    }

    .free-trial-btn:active {
        background-color: #eafaf2 !important;
    }

    .service-icon {
        font-size: 22px !important;
        margin-bottom: 4px !important;
        color: inherit !important;
    }

    .service-text {
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        color: inherit !important;
    }

    /* ========== 核心：真实手机弹窗强制宽屏 ========== */
    .info-panel.consult-panel {
        position: fixed !important;
        left: 1% !important;
        bottom: 85px !important;
        top: auto !important;
        right: auto !important;
        /* 方案1：用VW单位（视口宽度），95%几乎占满屏幕 */
        width: 95vw !important;
        /* 方案2：固定宽度（兜底），适配所有手机 */
        min-width: 300px !important;
        max-width: 400px !important;
        /* 强制内边距 */
        padding: 25px 20px !important;
        /* 强制居中 */
        transform: translateX(-50%) scale(0.92) !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        /* 禁止压缩 */
        flex-shrink: 0 !important;
        /* 最高优先级 */
    !important;
    }

    .service-button:active .info-panel.consult-panel {
        transform: translateX(-50%) scale(1) !important;
    }

    /* 弹窗箭头适配 */
    .info-panel.consult-panel::after {
        content: '' !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 50% !important;
        top: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border: 10px solid transparent !important;
        border-top-color: white !important;
        filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.06)) !important;
    }

    /* 弹窗头部 */
    .consult-panel .panel-header {
        padding: 15px 20px !important;
        background: linear-gradient(135deg, #5599e8 0%, #6bb0ee 100%) !important;
        color: white !important;
        border-radius: 16px 16px 0 0 !important;
        margin: -25px -20px 20px -20px !important;
        text-align: center !important;
    }

    .consult-panel .panel-title {
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    .consult-panel .panel-subtitle {
        font-size: 13px !important;
        opacity: 0.9 !important;
        margin-top: 6px !important;
    }

    .consult-panel .panel-content {
        padding: 0 !important;
        width: 100% !important;
    }

    /* 二维码区域 */
    .contact-qrcode {
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .contact-qrcode img {
        width: 180px !important; /* 进一步放大二维码 */
        height: 180px !important;
        border-radius: 12px !important;
        padding: 8px !important;
        background: #f9f9f9 !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        margin: 0 auto !important;
    }

    .contact-qrcode-desc {
        font-size: 14px !important;
        color: #555 !important;
        margin-top: 10px !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
    }

    /* 电话/QQ区域 */
    .contact-row {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-gap: 12px !important;
        gap: 12px !important;
        margin-top: 0 !important;
        padding: 0 5px !important;
        width: 100% !important;
    }

    .contact-item {
        -webkit-flex: 1 !important;
        flex: 1 !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        justify-content: center !important;
        padding: 18px 10px !important; /* 加大内边距 */
        background: #f8fbff !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
        border: none !important;
    }

    .contact-item [class^="fa-"],
    .contact-item [class*=" fa-"] {
        width: 36px !important; /* 进一步放大图标 */
        height: 36px !important;
        background: #edf5ff !important;
        color: #5599e8 !important;
        border-radius: 50% !important;
        margin-right: 10px !important;
        font-size: 18px !important;
    }

    .contact-value {
        font-size: 16px !important; /* 放大文字 */
        font-weight: 600 !important;
        color: #333 !important;
        text-align: center !important;
        letter-spacing: 1px !important;
    }

    /* 隐藏多余元素 */
    .option-group, .work-hours,
    .service-button:nth-child(3),
    .service-button:nth-child(4),
    .service-button:nth-child(5) {
        display: none !important;
    }
}