/* ==========================================================================
   service.css —— 服务项目页面专属样式
   公共样式见 common.css
   ========================================================================== */

/* ---------- 服务项列表 ---------- */
.service-list .service-item {
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px 6px rgba(44, 157, 157, .15);
    background: #fff;
}

.service-list .service-item:last-child {
    margin-bottom: 0;
}

/* 偶数项左右翻转（右图左文） */
.service-item.reverse .service-img-col {
    order: 2;
}

.service-item.reverse .service-text-col {
    order: 1;
}

/* ---------- 图片区 ---------- */
.service-img {
    position: relative;
    height: 100%;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* 悬浮图标（在图片右下角，压到文字区边缘） */
.service-icon {
    position: absolute;
    right: -28px;
    top: 50%;
    width: 72px;
    height: 72px;
    background: var(--bd-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(44, 157, 157, .3);
    z-index: 2;
    transform: translateY(-50%);
}

.service-item.reverse .service-icon {
    right: auto;
    left: -28px;
}

.service-icon svg {
    width: 38px;
    height: 38px;
}

/* ---------- 文字区 ---------- */
.service-text {
    position: relative;
    padding: 50px 50px 50px 60px;
}

.service-item.reverse .service-text {
    padding: 50px 60px 50px 50px;
}

/* 大号背景数字 */
.service-num {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 90px;
    font-weight: 700;
    color: var(--bd-cream);
    font-family: var(--bd-font-serif);
    line-height: 1;
    z-index: 0;
    user-select: none;
}

.service-item.reverse .service-num {
    right: auto;
    left: 30px;
}

.service-text h3 {
    position: relative;
    z-index: 1;
    font-size: 26px;
    margin-bottom: 16px;
}

.service-text p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--bd-text-sub);
    line-height: 1.9;
    margin-bottom: 22px;
    max-width: 480px;
}

.learn-more {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bd-primary);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--bd-primary);
    transition: all .25s ease;
}

.learn-more:hover {
    color: var(--bd-primary-d);
    letter-spacing: 1px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .service-item.reverse .service-img-col {
        order: 0;
    }
    .service-item.reverse .service-text-col {
        order: 0;
    }
    .service-icon {
        right: auto;
        bottom: -28px;
        left: 50%;
        top: auto;
        transform: translateX(-50%);
    }
    .service-text,
    .service-item.reverse .service-text {
        padding: 40px 30px 40px;
    }
    .service-num {
        font-size: 70px;
        top: 10px;
        right: 20px;
        left: auto !important;
    }
}

@media (max-width: 767.98px) {
    .service-list .service-item {
        margin-bottom: 35px;
    }
    .service-img {
        min-height: 240px;
    }
    .service-icon {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: -22px;
    }
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    .service-text,
    .service-item.reverse .service-text {
        padding: 30px 22px 30px;
    }
    .service-text h3 {
        font-size: 22px;
    }
    .service-num {
        font-size: 56px;
    }
}
