/* pc样式 */
@media screen and (min-width: 1024px) {
    .content {
        min-height: 500px;
        padding-bottom: 20px;
    }

    /* 导航 */
    .yynr-nav {
        transform: translate(0, -50%);
    }

    .yynr-nav>ul {
        display: flex;
        justify-content: space-between;
    }

    .yynr-nav>ul>li {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 250px;
        height: 90px;
        background-color: #ffffff;
        box-shadow: 0px 0px 20px 0px rgba(38, 38, 38, 0.2);
        background-repeat: no-repeat;
        background-position: center;
    }

 .yynr-nav>ul>li>span {
        display: none;
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%);
        width: 0;
        height: 0;
        border-left: 13px solid transparent;  
        border-right: 13px solid transparent;  
        border-bottom: 13px solid #f7f7f7; 
    }

    .yynr-nav>ul>li:nth-child(1) {
        background-image: url(../imgs/yy_icon1_hui.png);
    }

    .yynr-nav>ul>li:nth-child(2) {
        background-image: url(../imgs/yy_icon2_hui.png);
    }

    .yynr-nav>ul>li:nth-child(3) {
        background-image: url(../imgs/yy_icon3_hui.png);
    }

    .yynr-nav>ul>li:nth-child(4) {
        background-image: url(../imgs/yy_icon4_hui.png);
    }

    .yynr-nav>ul>li:nth-child(5) {
        background-image: url(../imgs/yy_icon5_hui.png);
    }

    .yynr-nav>ul>li:hover {
        background-color: #d20b17;
    }

 .yynr-nav>ul>li:hover>span {
        display: block;
    }

    .yynr-nav>ul>li:hover>a {
        color: #ffffff;

    }

    .yynr-nav>ul>li:hover>ul {
        display: block;
    }

    .yynr-nav>ul>li>a {
        font-size: 28px;
        color: #333333;
    }

    .yynr-nav>ul>li>ul {
        padding-bottom: 20px;
        background-color: #f7f7f7;
        display: none;
        position: absolute;
        left: 0;
        top: 90px;
    }

    .yynr-nav>ul>li>ul>li {
        width: 210px;
        height: 50px;
        background-color: #f7f7f7;
        padding: 0 20px;
    }

    .yynr-nav>ul>li>ul>li>a {
        display: flex;
        border-bottom: 1px solid #e2e2e2;
        align-items: center;
        justify-content: space-between;
        height: 49px;
        font-size: 16px;
        color: #333333;
    }

    .yynr-nav>ul>li>ul>li:hover>a {
        border-bottom: 1px solid #d20b17;
        color: #d20b17;
    }

    .yynr-nav>ul>li>ul>li:hover>a>img {
        content: url("../imgs/right_hong.png");
    }


    .yynr-list>h2 {
        margin-bottom: 30px;
        text-align: center;
        font-size: 36px;
        color: #d20b17;
    }

    /* 内容 */
    .yynr-list {
        margin: 40px 0 60px 0;
        min-height: 500px;
    }

    .yynr-list ul {
       min-height: 500px;
        display: flex;
        flex-wrap: wrap;
    }

    .yynr-list ul>li {
        margin: 0 40px 100px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 320px;
        height: 300px;
        overflow: hidden;
        background-color: #ffffff;
        box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.1);
    }

    .yynr-list ul>li:nth-child(4n) {
        margin: 0 0 100px 0;
    }

    .yynr-list-img {
        width: 320px;
        height: 194px;
        border-bottom: 6px solid #d20b17;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 320px auto;
        transition: all .5s ease;
    }

    .yynr-list-img:hover {
        transform: scale(1.1);
        transition: all .5s ease;
    }

    .yynr-list-text {
        display: flex;
        height: 100px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 30px;
        align-items: center;
        justify-content: center;
    }

    .yynr-list-text>h5 {
        line-height: 35px;
    text-align: center;
    margin-top: 15px;
    font-size: 20px;
    color: #333333;
    /* text-overflow: ellipsis; */
    /* overflow: hidden; */
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    }

    .yynr-list-text>p {
        display: none;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
        font-size: 16px;
    }

    .yynr-list-text>p>a {
        margin-left: 5px;
        color: #d20b17;
    }

    .yynr-list-text>p>img {
        height:20px;
    }

    .yynr-page {
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 返回 */
    .fanhui-box {
        display: flex;
        justify-content: flex-end;
    }

    .fanhui {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding-bottom: 10px;
        font-size: 18px;
        color: #d20b17;
        border-bottom: 1px solid #d20b17;
    }

    .fanhui>img {
        margin-right: 5px;
    }

}

/* 移动端样式 */
@media screen and (max-width: 1024px) {
    .content {
        min-height: 500px;
    }

    /* 导航 */
    .yynr-nav {
        transform: translate(0, -50%);
    }

    .yynr-nav>ul {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .yynr-nav>ul>li {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 19%;
        height: 50px;
        background-color: #ffffff;
        box-shadow: 0px 0px 20px 0px rgba(38, 38, 38, 0.2);
        background-repeat: no-repeat;
        background-position: center;
        background-size: auto 30px;
    }

.yynr-nav>ul>li>span {
        display: none;
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%);
        width: 0;
        height: 0;
        border-left: 7px solid transparent;  
        border-right: 7px solid transparent;  
        border-bottom: 7px solid #f7f7f7; 
    }

    .yynr-nav>ul>li:nth-child(1) {
        background-image: url(../imgs/yy_icon1_hui.png);
    }

    .yynr-nav>ul>li:nth-child(2) {
        background-image: url(../imgs/yy_icon2_hui.png);
    }

    .yynr-nav>ul>li:nth-child(3) {
        background-image: url(../imgs/yy_icon3_hui.png);
    }

    .yynr-nav>ul>li:nth-child(4) {
        background-image: url(../imgs/yy_icon4_hui.png);
    }

    .yynr-nav>ul>li:nth-child(5) {
        background-image: url(../imgs/yy_icon5_hui.png);
    }

    .yynr-nav>ul>li:hover {
        background-color: #d20b17;
    }

    .yynr-nav>ul>li:hover>span {
        display: block;
    }

    .yynr-nav>ul>li:hover>a {
        color: #ffffff;

    }

    .yynr-nav>ul>li:hover>ul {
        display: block;
    }

    .yynr-nav>ul>li>a {
        font-size: 14px;
        color: #333333;
    }

    .yynr-nav>ul>li>ul {
        padding-bottom: 10px;
        background-color: #f7f7f7;
        display: none;
        position: absolute;
        left: 0;
        top: 50px;
    }

    .yynr-nav>ul>li>ul>li {
        width: 100px;
        height: 40px;
        background-color: #f7f7f7;
        padding: 0 5px;
    }

    .yynr-nav>ul>li>ul>li>a {
        display: flex;
        border-bottom: 1px solid #e2e2e2;
        align-items: center;
        justify-content: space-between;
        height: 39px;
        font-size: 12px;
        color: #333333;
    }

    .yynr-nav>ul>li>ul>li:hover>a {
        border-bottom: 1px solid #d20b17;
        color: #d20b17;
    }

    .yynr-nav>ul>li>ul>li:hover>a>img {
        content: url("../imgs/right_hong.png");
    }


    .yynr-list>h2 {
        margin-bottom: 30px;
        text-align: center;
        font-size: 26px;
        color: #d20b17;
    }

    /* 内容 */
    .yynr-list {
        margin: 5px 0 60px 0;
        min-height: 500px;
    }

    .yynr-list ul {
        display: flex;
        flex-wrap: wrap;
    }

    .yynr-list ul>li {
        margin: 0 40px 100px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 320px;
        height: 310px;
        overflow: hidden;
        background-color: #ffffff;
        box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.1);
    }

    .yynr-list ul>li:nth-child(4n) {
        margin: 0 0 100px 0;
    }

    .yynr-list-img {
        width: 320px;
        height: 194px;
        border-bottom: 6px solid #d20b17;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 320px auto;
        transition: all .5s ease;
    }

    .yynr-list-img:hover {
        transform: scale(1.1);
        transition: all .5s ease;
    }

    .yynr-list-text {
       display: flex;
        height: 100px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 30px;
        align-items: center;
        justify-content: center;    }

    .yynr-list-text>h5 {
        line-height: 35px;
    text-align: center;
    margin-top: 15px;
    font-size: 20px;
    color: #333333;
    /* text-overflow: ellipsis; */
    /* overflow: hidden; */
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    }

    .yynr-list-text>p {
        display: none;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        font-size: 16px;
    }

    .yynr-list-text>p>a {
        margin-left: 5px;
        color: #d20b17;
    }
    .yynr-list-text>p>img {
        height:20px;
    }

    .yynr-page {
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 返回 */
    .fanhui-box {
        display: flex;
        justify-content: flex-end;
        padding-right: 20px;
    }

    .fanhui {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding-bottom: 10px;
        font-size: 18px;
        color: #d20b17;
        border-bottom: 1px solid #d20b17;
    }

    .fanhui>img {
        margin-right: 5px;
    }
}

@media screen and (max-width: 768px) {

    /* 内容 */
    .yynr-list {
        padding: 0 5px;
        margin: 5px 0 30px 0;
        min-height: 500px;
    }

    .yynr-list ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .yynr-list ul>li {
        margin: 0 0 40px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 48%;
        height: 220px;
        overflow: hidden;
        background-color: #ffffff;
        box-shadow: 0px 0px 21px 0px rgba(0, 0, 0, 0.1);
    }

    .yynr-list ul>li:nth-child(4n) {
        margin: 0 0 40px 0;
    }

    .yynr-list-img {
        width: 310px;
        height: 150px;
        border-bottom: 3px solid #d20b17;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 310px auto;
        transition: all .5s ease;
    }

    .yynr-list-img:hover {
        transform: scale(1.1);
        transition: all .5s ease;
    }

    .yynr-list-text {
 height: 70px;
        width: 100%;
        padding: 0 5px;
    }

    .yynr-list-text>h5 {
        margin-top: 10px;
        line-height: 22px;
        font-size: 14px;
    }

    .yynr-list-text>p {
        margin-top: 10px;
        font-size: 14px;
    }

    .yynr-list-text>p>a {
        margin-left: 5px;
        color: #d20b17;
    }
    .yynr-list-text>p>img {
        height:20px;
    }
    .yynr-page {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}