/* pc端样式 */

.section_1 {
    position: relative;
}

.section_1 .container.pc {
    background-image: url(../images/hangyefangan/hangyefangan_top.png);
    background-repeat: no-repeat;
    background-size: min(45.8vw, 660px) auto;
    background-position: calc(100% - min(15px, 1.6vw)) 100%;
    position: static;
    padding-bottom: 0;
    height: min(31.5vw, 453px);
}

.section_1 .pc h1 {
    font-weight: bold;
    font-size: clamp(14px, 4.1vw, 60px);
    margin-bottom: min(26px, 1.8vw);
}

.section_1 .pc h4 {
    width: min(42vw, 620px);
    color: #333;
    font-size: min(1.35vw, 20px);
    line-height: 2.25;
}

.section_2 .container {
    padding-top: min(62px, 4.3vw);
}

.section_2 .tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: min(2.5vw, 35px);
    margin: 0 auto;
    position: relative;
    margin-bottom: min(1.25vw, 18px);
}

.section_2 .tab {
    text-align: center;
    width: clamp(100px, 11.4vw, 164px);
    aspect-ratio: 100 / 30;
    margin: 0 min(2.1vw, 30px) 10px;
    cursor: pointer;
    font-size: clamp(12px, 1.4vw, 20px);
    border-radius: 55px;
    color: #1b1b1b;
    box-shadow: inset 0 0 1px #9e9e9e;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 490px) {
    .section_2 .tabs {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .section_2 .tab {
        margin: 0 4px 10px;
    }
}

@media screen and (max-width: 352px) {
    .section_2 .tab {
        width: 25vw;
    }
}

.section_2 .tab.active {
    background: #ffbd00;
    box-shadow: inset 0 0 1px #ffbd00;
}

.section_2 .card {
    display: none;
}

.section_2 .card.show {
    display: flex;
}

.section_2 .card-item {
    width: calc(50% - min(0.94vw, 13px));
    font-size: min(1vw, 15px);
    color: #666666;
    box-shadow: 5px 10px 28px 0px rgba(228, 223, 210, 0.62);
    border-radius: min(30px, 2.08vw);
}

.section_2 .card-item_img {
    width: 100%;
    aspect-ratio: 583 / 200;
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: min(36px, 2.5vw);
}

.section_2 .card-item_desc {
    padding: 0 min(1.3vw, 180px) min(30px, 2vw);
}

.section_2 .card-item_title {
    font-size: min(1.8vw, 26px);
    font-weight: 700;
    margin-bottom: min(0.6vw, 8px);
    color: #1b1b1b;
}

.section_2 .card-item_info {
    height: min(3.34vw, 481px);
    font-size: min(1.25vw, 18px);
}

.section_2 .card-item_tabs {
    margin-top: min(1.8vw, 26px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section_2 .card-item_tab {
    width: calc(33.33% - min(1.1vw, 16px));
    border: 1px solid #f6e8ca;
    background: #fef9ed;
    border-radius: min(14px, 1vw);
    height: min(90px, 6.25vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section_2 .card-item_tab_num {
    color: #ff9d00;
    font-size: min(1.8vw, 27px);
    line-height: 1.5;
    font-weight: 700;
}

.section_2 .card-right {
    width: min(34.5vw, 497px);
    background-color: #fef9ed;
    border-radius: min(1.5vw, 23px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1b1b1b;
    font-size: min(1.5vw, 20px);
    font-weight: 700;
}

.section_3 .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 17px, 1.2vw);
}

.section_3 .grid-item {
    box-shadow:
        inset 0 0 1px #f0e1c4,
        3px 5px clamp(12px, 1.1vw, 16px) #e7e0d1;
    background-color: #fff;
    border-radius: clamp(12px, 1.1vw, 16px);
    padding: clamp(10px, 1.7vw, 25px) clamp(10px, 0.7vw, 11px) 0;
}

.section_3 .grid-item_icon {
    width: clamp(46px, 6vw, 87px);
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.section_3 .grid-item_icon.chongwu {
    background-image: url(../images/hangyefangan/icon_chongwu.png);
}
.section_3 .grid-item_icon.qiche {
    background-image: url(../images/hangyefangan/icon_qiche.png);
}
.section_3 .grid-item_icon.sheying {
    background-image: url(../images/hangyefangan/icon_sheying.png);
}
.section_3 .grid-item_icon.zuliao {
    background-image: url(../images/hangyefangan/icon_zuliao.png);
}
.section_3 .grid-item_icon.yaodian {
    background-image: url(../images/hangyefangan/icon_yaodian.png);
}
.section_3 .grid-item_icon.weixiu {
    background-image: url(../images/hangyefangan/icon_weixiu.png);
}
.section_3 .grid-item_icon.huoguo {
    background-image: url(../images/hangyefangan/icon_huoguo.png);
}
.section_3 .grid-item_icon.jiudian {
    background-image: url(../images/hangyefangan/icon_jiudian.png);
}

.section_3 .grid-item_info {
    padding: min(1vw, 14px);
}

.section_3 .grid-item_title {
    font-weight: 700;
    font-size: clamp(14px, 1.6vw, 23px);
    color: #1b1b1b;
}

.section_3 .grid-item_desc {
    color: #999;
    font-size: clamp(10px, 1.2vw, 15px);
    margin-bottom: clamp(10px, 1.1vw, 14px);
}

.section_3 .grid-item_data {
    display: flex;
    align-items: center;
    color: #ff9d00;
    padding: clamp(10px, 1.5vw, 20px) 0 clamp(10px, 1.7vw, 28px);
    font-weight: 700;
}

.section_3 .grid-item_data div:first-child {
    font-size: clamp(18px, 2.1vw, 30px);
}

.section_3 .grid-item_data-text {
    font-size: clamp(10px, 1.25vw, 18px);
    padding-top: min(5px, 0.34vw);
    padding-left: clamp(8px, 0.8vw, 12px);
}

/* 移动端样式 */

@media screen and (min-width: 320px) and (max-width: 767px) {
    .section_1 .mobile {
        background-color: #fefbf7;
        padding-top: 70px;
        aspect-ratio: 375 / 420;
        background-image: url(../images/hangyefangan/hangyefangan_top.png);
        background-repeat: no-repeat;
        background-size: 100%;
        background-position: min(0.7vw, 10px) 100%;
    }

    .section_1 .mobile h1 {
        text-align: center;
        font-size: 7vw;
        font-weight: 700;
    }

    .section_1 .mobile h4 {
        text-align: center;
        font-size: 2.7vw;
        width: 85vw;
        margin: 5.4vw auto;
        color: #666666;
    }

    .section_2 .card {
        flex-wrap: wrap;
    }

    .section_2 .card-item {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 16px;
        overflow: hidden;
    }

    .section_2 .card-item_img {
        aspect-ratio: 347 / 90;
        background-size: cover;
        position: relative;
    }

    .section_2 .card-item_img::before {
        content: attr(data-content);
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
        font-weight: 700;
        font-size: 16px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section_2 .card-item_desc {
        padding: 15px;
        padding-top: 0;
    }

    .section_2 .card-item_title {
        display: none;
    }

    .section_2 .card-item_info {
        font-size: 12px;
        margin: 11px 0 16px;
        height: auto;
        color: #666;
    }

    .section_2 .card-item_tab {
        height: 62px;
        font-size: 10px;
    }

    .section_2 .card-item_tab_num {
        font-size: 18px;
    }

    .section_3 .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
