/* ==========================================================================
   SERVICE 页面（修改版）
   ========================================================================== */

/* ---------------- 页头 Banner ---------------- */
.banner {
    width: 100%;
    height: clamp(220px, 26vw, 420px);
    position: relative;
    background: var(--c-primary);
}

.banner .swiper {
    width: 100%;
    height: 100%;
}

.banner .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

.banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 25, 47, .15) 0%, rgba(10, 25, 47, .35) 100%);
    pointer-events: none;
}

.banner .swiper-pagination-bullet-active {
    background: #fff !important;
    border-radius: 5px;
    width: 28px;
}

/* ---------------- 服务 Tab 区 ---------------- */
.fuwu {
    background: var(--c-bg);
}

.fuwu .fuwu_w {
    padding: 80px 0;
}

/* Tab 选项 */
.fuwu .fuwu_w .tab-title {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.fuwu .fuwu_w .tab-title span {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 18px 8px 14px;
    background: #ffffff88;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.fuwu .fuwu_w .tab-title span:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.fuwu .fuwu_w .tab-title span .imgs {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fuwu .fuwu_w .tab-title span .imgs img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: transform .3s ease;
}

.fuwu .fuwu_w .tab-title span:hover .imgs img {
    transform: scale(1.1);
}

.fuwu .fuwu_w .tab-title span .buttonstos {
    width: 100%;
    margin-top: 12px;
    height: 38px;
    line-height: 38px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--c-text);
    background: var(--c-bg);
    transition: background .3s ease, color .3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

/* 选中态 */
.fuwu .fuwu_w .tab-title span.tab-active {
    border-color: #16365c75;
    box-shadow: var(--shadow-md);
}

.fuwu .fuwu_w .tab-title > span.tab-active > .buttonstos {
    background: var(--c-primary);
    color: #fff;
}

/* Tab 内容 */
.fuwu .tab-content {
    margin-top: 48px;
}

.fuwu .tab-content > div {
    display: none;
}

.fuwu .tab-content > div.tab-show {
    display: block;
    animation: fadeUp .5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fuwu .tab-content h4 {
    text-align: center;
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--c-primary);
    position: relative;
    padding-bottom: 18px;
}

.fuwu .tab-content h4::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--c-accent);
}

.fuwu .tab-content .lunbo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    margin-top: 44px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

.fuwu .tab-content .lunbo .lunbo_left {
    flex: 1 1 46%;
}

.fuwu .tab-content .lunbo .lunbo_left h5 {
    color: var(--c-primary);
    line-height: 1.9;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 600;
}

.fuwu .tab-content .lunbo .lunbo_left h5:nth-child(2) {
    margin-top: 30px;
    color: var(--c-text-2);
    font-weight: 500;
}

.fuwu .tab-content .lunbo .lunbo_right {
    flex: 1 1 50%;
    max-width: 600px;
    border-radius: var(--radius);
    overflow: hidden;
}

.fuwu .tab-content .lunbo .lunbo_right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.fuwu .tab-content .lunbo:hover .lunbo_right img {
    transform: scale(1.04);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 992px) {
    .fuwu .fuwu_w {
        padding: 56px 0;
    }

    .fuwu .fuwu_w .tab-title {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .fuwu .tab-content .lunbo {
        flex-direction: column;
        padding: 28px 24px;
        gap: 28px;
    }

    .fuwu .tab-content .lunbo .lunbo_left,
    .fuwu .tab-content .lunbo .lunbo_right {
        flex: none;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .fuwu .fuwu_w {
        padding: 44px 0;
    }

    .fuwu .fuwu_w .tab-title {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 第 6 个（奇数个之外）占满整行 */
    .fuwu .fuwu_w .tab-title span:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .fuwu .tab-content .lunbo {
        padding: 22px 18px;
    }
}
