/* 全站 PC 端右侧客服浮窗（与首页一致） */
.tool-box.tool-box--home {
    animation: none !important;
}

.tool-box--home {
    --tool-box-gradient: linear-gradient(to right, #0fbbd8, #067db2);
}

@media (min-width: 992px) {
    .tool-box--home {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1090;
        width: auto;
        animation: none !important;
    }
}

.tool-box--home .tool-box__hover-zone {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.tool-box--home .tool-box__trigger {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    padding: 14px 6px;
    color: #fff;
    background: var(--tool-box-gradient);
    border-radius: 10px 0 0 10px;
    box-shadow: -3px 4px 16px rgba(6, 125, 178, 0.28);
    cursor: pointer;
    user-select: none;
    animation: tool-box-trigger-attention 2.4s ease-in-out infinite;
}

.tool-box--home .tool-box__hover-zone:hover .tool-box__trigger,
.tool-box--home .tool-box__hover-zone:focus-within .tool-box__trigger {
    animation: none;
    transform: translateX(0);
    box-shadow: -3px 4px 16px rgba(6, 125, 178, 0.28);
}

.tool-box--home .tool-box__trigger .bi {
    font-size: 18px;
    line-height: 1;
    animation: tool-box-trigger-icon 2.4s ease-in-out infinite;
}

.tool-box--home .tool-box__hover-zone:hover .tool-box__trigger .bi,
.tool-box--home .tool-box__hover-zone:focus-within .tool-box__trigger .bi {
    animation: none;
    transform: none;
}

.tool-box--home .tool-box__trigger-text {
    writing-mode: vertical-rl;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1;
}

.tool-box--home .tool-box__card {
    position: absolute;
    right: calc(100% - 2px);
    top: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 162px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #fff;
    border: 1px solid rgba(15, 187, 216, 0.18);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(6, 125, 178, 0.06);
    transform: translateY(-50%);
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.tool-box--home .tool-box__hover-zone:hover .tool-box__card,
.tool-box--home .tool-box__hover-zone:focus-within .tool-box__card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tool-box--home .tool-box__card::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--tool-box-gradient);
    flex-shrink: 0;
}

.tool-box--home .tool-box__section {
    padding: 8px 10px;
    background: #fff;
}

.tool-box--home .tool-box__section + .tool-box__section {
    border-top: 1px solid #eef3f6;
}

.tool-box--home .tool-box__wechat {
    text-align: center;
}

.tool-box--home .tool-box__label {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 600;
    color: #067db2;
    letter-spacing: 0.5px;
    text-align: center;
}

.tool-box--home .tool-box__wx {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #e8eef3;
    object-fit: cover;
}

.tool-box--home .tool-box__hint {
    margin: 4px 0 0;
    font-size: 10px;
    color: #5a6f7a;
}

.tool-box--home .tool-box__qq {
    padding-bottom: 8px;
}

.tool-box--home .tool-box__qq-item.qq-link {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
    margin-top: 5px;
    padding: 6px 7px;
    padding-left: 7px !important;
    background: #f5f9fc;
    border: 1px solid #e8eef3;
    border-radius: 8px;
}

.tool-box--home .tool-box__qq-item.qq-link:first-of-type {
    margin-top: 0;
}

.tool-box--home .qq-img {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.tool-box--home .qq-num {
    min-width: 0;
    font-size: 9px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0;
    white-space: nowrap;
}

.tool-box--home .qq-copy {
    flex-shrink: 0;
    margin-left: 2px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    color: #067db2;
    background: rgba(15, 187, 216, 0.1);
    border: 1px solid rgba(15, 187, 216, 0.18);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tool-box--home .qq-copy:hover {
    background: rgba(15, 187, 216, 0.18);
    border-color: rgba(15, 187, 216, 0.3);
}

.tool-box--home .tool-box__promo.adv-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px 10px;
    text-align: center;
    text-decoration: none;
    color: #067db2;
    background: linear-gradient(180deg, #f0f9fc 0%, #f5f9fc 100%);
    border-top: 1px solid #e8eef3;
}

.tool-box--home .tool-box__promo.adv-link:hover {
    text-decoration: none;
    color: #067db2;
    background: linear-gradient(180deg, #e8f7fb 0%, #f0f9fc 100%);
}

.tool-box--home .tool-box__promo-badge {
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    background: var(--tool-box-gradient);
    border-radius: 999px;
}

.tool-box--home .tool-box__promo-title {
    font-size: 10px;
    font-weight: 600;
    color: #067db2;
}

.tool-box--home .tool-box__promo-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #067db2;
}

.tool-box--home .tool-box__promo-num em {
    font-style: normal;
    font-size: 0.5em;
    font-weight: 600;
    margin-left: 2px;
    color: #0a96c1;
}

.tool-box--home .tool-box__promo-desc {
    font-size: 9px;
    color: #5a6f7a;
}

.tool-box--home .tool-box__promo-btn {
    margin-top: 2px;
    padding: 5px 0;
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--tool-box-gradient);
    border-radius: 6px;
    text-align: center;
}

.tool-box--home .adv-img {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@keyframes tool-box-trigger-attention {
    0%, 100% {
        transform: translateX(0);
        box-shadow: -3px 4px 16px rgba(6, 125, 178, 0.28);
    }
    50% {
        transform: translateX(-3px);
        box-shadow: -5px 4px 18px rgba(6, 125, 178, 0.34);
    }
}

@keyframes tool-box-trigger-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .tool-box--home .tool-box__trigger,
    .tool-box--home .tool-box__trigger .bi {
        animation: none !important;
    }
}
