#service-nav-container {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 90;
    margin-top: -1px;
}

.service-tabs {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.service-tab {
    position: relative;
    width: 25%;
    text-align: center;
    padding: 15px 0;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #E53935;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-tab:hover {
    color: #E53935;
}

.service-tab:hover::after {
    transform: scaleX(1);
}

.service-tab.active {
    color: #E53935;
    font-weight: 500;
}

.service-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 3px;
    background-color: #E53935;
    border-radius: 3px 3px 0 0;
    transform-origin: center;
    animation: navIndicatorIn 0.3s ease-out forwards;
}

@keyframes navIndicatorIn {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .service-tab {
        font-size: 13px;
        padding: 10px 0;
    }
}

.service-tab:active {
    transform: scale(0.95);
}

.service-tab.tab-clicked {
    animation: tabClick 0.3s ease;
}

@keyframes tabClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}

.service-tab:not(.active):hover {
    color: #FF5252;
    background-color: rgba(229, 57, 53, 0.05);
} 