/**
 * Home Features Area & Services Area Widgets
 * 借鉴自 Sceo 模板 features-area / services-area 模块
 * 与【首页】1.高级搜索模块保持一致的 padding 自适应高度
 */

/* ============================================================
   共用：section-title / 通用动画
   ============================================================ */
.home-features-area .section-title,
.home-services-area .section-title {
    max-width: 660px;
    margin: -5px auto 60px;
    text-align: center;
    position: relative;
}

.home-features-area .section-title span,
.home-services-area .section-title span {
    color: #212121;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid #212121;
}

.home-features-area .section-title h2,
.home-services-area .section-title h2 {
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
    display: block;
    text-transform: capitalize;
}

.home-features-area .section-title p,
.home-services-area .section-title p {
    margin-bottom: 0;
}

/* 黑底反白模式（services-area 黑色背景时使用） */
.home-services-area.is-dark .section-title span {
    border-color: #fff;
    color: #fff;
}

.home-services-area.is-dark .section-title h2,
.home-services-area.is-dark .section-title p {
    color: #fff;
}

/* ============================================================
   Features Area —— 特色模块
   ============================================================ */
.home-features-area {
    padding-top: 50px;
    padding-bottom: 50px;
}

.home-features-area .features-row {
    align-items: center;
}

/* 卡片网格 */
.home-features-area .features-cards-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.home-features-area .single-features {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    -webkit-transition: all .5s;
    transition: all .5s;
}

/* 4 张卡片不同的底色（参考源模板 nth-child 规则） */
.home-features-area .single-features:nth-child(1) { background-color: #f1eff8;     margin-bottom: 10px;}
.home-features-area .single-features:nth-child(2) { background-color: #f9f0e8; margin-top: 30px; }
.home-features-area .single-features:nth-child(3) { background-color: #f5fffd; margin-top: -30px; }
.home-features-area .single-features:nth-child(4) { background-color: #ebf0ff; }

.home-features-area .single-features:hover {
    background-color: #fff;
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

.home-features-area .single-features i {
   font-size: 30px;
    background-color: #0cbc87;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    color: #ffffff;
    margin-bottom: 25px;
}

.home-features-area .single-features h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.home-features-area .single-features p {
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 卡片装饰图形 */
.home-features-area .single-features .features-shape-1,
.home-features-area .single-features .features-shape-2 {
    position: absolute;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.home-features-area .single-features .features-shape-1 {
    top: -100px;
    left: -100px;
}

.home-features-area .single-features .features-shape-2 {
    bottom: -100px;
    right: -100px;
}

.home-features-area .single-features:hover .features-shape-1 { top: 0; left: 0; }
.home-features-area .single-features:hover .features-shape-2 { bottom: 0; right: 0; }

/* 右侧文字描述区 */
.home-features-area .features-text {
    margin-left: 30px;
}

.home-features-area .features-text span {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 1px solid #212121;
}

.home-features-area .features-text h2 {
    font-size: 40px;
    margin-bottom: 22px;
    line-height: 1.2;
}

.home-features-area .features-text p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.7;
}

.home-features-area .features-text .default-btn {
    font-size: 16px;
    color: #fff;
    padding: 15px 30px;
    line-height: 1;
    -webkit-transition: all .5s;
    transition: all .5s;
    text-transform: capitalize;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background-color: #0cbc87;
    background-clip: padding-box;
    display: inline-block;
    text-decoration: none;
}

.home-features-area .features-text .default-btn::before,
.home-features-area .features-text .default-btn::after {
    content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #0cbc87;
    z-index: -1;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.home-features-area .features-text .default-btn::before { left: 0; }
.home-features-area .features-text .default-btn::after { right: 0; }
.home-features-area .features-text .default-btn:hover::before,
.home-features-area .features-text .default-btn:hover::after { width: 50.2%; }

/* ============================================================
   Services Area —— 服务模块
   ============================================================ */
.home-services-area {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #ffffff;
}

/* 深色背景模式（可后台切换） */
.home-services-area.is-dark {
    background-color: #145344;
}

.home-services-area .services-row {
    row-gap: 30px;
}

.home-services-area .single-services {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#1f8466), to(#2ea380));
    background-image: linear-gradient(#1f8466, #2ea380);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    border-radius: 4px;
    -webkit-transition: all .5s;
    transition: all .5s;
    overflow: hidden;
    height: 100%;
}

.home-services-area .single-services i {
    font-size: 60px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1;
    display: inline-block;
}

.home-services-area .single-services h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.home-services-area .single-services p {
    color: #fff;
    margin-bottom: 20px;
    opacity: .9;
    line-height: 1.6;
    font-size: 14px;
}

.home-services-area .single-services .read-more {
    color: #fff;
    line-height: 1;
    font-weight: 500;
    -webkit-transition: all .5s;
    transition: all .5s;
    display: block;
    font-size: 14px;
    text-decoration: none;
}

.home-services-area .single-services .read-more:hover {
    letter-spacing: 1.5px;
}

.home-services-area .single-services .shape {
    position: absolute;
    top: 0;
    left: -400px;
    z-index: -1;
    opacity: .5;
    -webkit-transition: all .5s;
    transition: all .5s;
    pointer-events: none;
}

.home-services-area .single-services:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

.home-services-area .single-services:hover .shape {
    left: 0;
}

/* ============================================================
   响应式
   ============================================================ */

/* 平板及以下：features 单列展示 + 取消左右布局 */
@media (max-width: 991.98px) {
    .home-features-area .features-text {
        margin-left: 0;
        margin-top: 50px;
        text-align: center;
    }

    .home-features-area .features-text span {
        margin-left: auto;
        margin-right: auto;
    }
}

/* 手机端 */
@media (max-width: 767.98px) {
    .home-features-area,
    .home-services-area {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .home-features-area .features-cards-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-features-area .single-features:nth-child(2),
    .home-features-area .single-features:nth-child(3) {
        margin-top: 0;
    }

    .home-features-area .features-text h2,
    .home-services-area .section-title h2 {
        font-size: 26px;
    }

    .home-features-area .features-text {
        margin-top: 40px;
    }

    .home-services-area .section-title {
        margin-bottom: 40px;
    }
}
