@charset "utf-8";

/* ========== 党风廉政视频专题 ========== */
body {
    background: #fff;
}

.wrap {
    min-width: 1200px;
    overflow: hidden;
}

.inner {
    width: 1200px !important;
    margin: 0 auto;
    position: relative;
}

/* ========== header ========== */
.header {
    height: 607px;
    background: url(../images/banner.jpg) no-repeat center top;
}

.header .inner{
    height: 607px;
}

.header .logo {
    position: absolute;
    left: 9px;
    top: 19px;
    z-index: 2;
}

.header .logo img {
    display: block;
    width: 273px;
}

.header .head-title {
    display: block;
    width: 664px;
    margin: 0 auto;
    padding-top: 152px;
}

/* ========== p1 廉政活动 ========== */
.p1 {
    margin-top: -64px;
}

.p1 .sec-title {
    position: relative;
}

.p1 .sec-title > img {
    display: block;
    width: 1200px;
    height: 55px;
}

.p1 .more {
    position: absolute;
    right: 0;
    top: 17px;
    width: 70px;
    height: 30px;
}

.p1 .more img {
    display: block;
    width: 70px;
    height: 30px;
}

.news-list {
    padding-top: 32px;
}

.news-list:after {
    content: '\20';
    display: block;
    height: 0;
    clear: both;
}

.news-list li {
    float: left;
    width: 380px;
    margin: 0 30px 25px 0;
}

.news-list li:nth-child(3n) {
    margin-right: 0;
}

.news-list li a {
    display: block;
    position: relative;
    height: 145px;
    padding: 22px 22px 0;
    background: #fff;
    border: 1px solid #f7eeeb;
    box-shadow: 0 4px 14px rgba(150, 110, 100, .07);
    -webkit-transition: all .3s;
    transition: all .3s;
}

.news-list li a:hover {
    box-shadow: 0 8px 22px rgba(150, 110, 100, .18);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

.news-list h3 {
    font-size: 18px;
    line-height: 28px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-list p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 26px;
    color: #9d9d9d;
    height: 52px;
    overflow: hidden;
}

.news-list .arrow {
    position: absolute;
    right: 22px;
    bottom: 19px;
    width: 34px;
    height: 16px;
}

.news-list .arrow:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: #c8170f;
}

.news-list .arrow:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0px;
    width: 17px;
    height: 2px;
    background: #c8170f;
    -webkit-transform: rotate(-45deg);
    transform: rotate(30deg);
    -webkit-transform-origin: right center;
    transform-origin: right center;
}

/* ========== p2 微短剧展播 ========== */
.p2 {
    margin-top: 28px;
}

.p2 .sec-title img {
    display: block;
    width: 1200px;
    height: 47px;
}

.p2 .sec-txt {
    display: none;
}

.notebook {
    position: relative;
    width: 1166px;
    height: 852px;
    margin: 34px auto 0;
    background: url(../images/p2-background.png) no-repeat left top;
}

/* 左侧栏目 */
.tab-list {
    position: absolute;
    left: 58px;
    top: 107px;
    width: 245px;
}

.tab-list li {
    margin-bottom: 24px;
}

.tab-list li:last-child {
    margin-bottom: 0;
}

.tab-list li a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding-left: 50px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #6f5b49;
    background: url(../images/p2-icon.png) no-repeat left top;
    background-size: 100% 100%;
    overflow: hidden;
    -webkit-transition: color .3s;
    transition: color .3s;
}

.tab-list li a:hover {
    color: #b52b21;
}

.tab-list li.current a {
    color: #fff;
    font-weight: bold;
    background: -webkit-linear-gradient(left, #cf3b33 0%, #e77b3f 52%, #c9302a 100%);
    background: linear-gradient(90deg, #cf3b33 0%, #e77b3f 52%, #c9302a 100%);
    -webkit-clip-path: path('M0 0 Q22 25 0 50 L245 50 L245 0 Z');
    clip-path: path('M0 0 Q22 25 0 50 L245 50 L245 0 Z');
}

/* 视频列表 */
.video-list {
    position: absolute;
    left: 379px;
    top: 146px;
    width: 704px;
}

.video-list li {
    float: left;
    width: 324px;
    margin: 0 56px 30px 0;
}

.video-list li:nth-child(2n) {
    margin-right: 0;
}

.video-list li a {
    display: block;
    padding: 3px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(140, 110, 90, .14);
    -webkit-transition: all .3s;
    transition: all .3s;
}

.video-list li a:hover {
    box-shadow: 0 10px 24px rgba(140, 110, 90, .28);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

.video-list img {
    display: block;
    width: 100%;
    height: 182px;
    border-radius: 8px 8px 0 0;
}

.video-list span {
    display: block;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    color: #4a4a4a;
}

.video-list .video-empty {
    float: none;
    width: auto;
    margin: 0;
    font-size: 14px;
    line-height: 60px;
    color: #9d9d9d;
    text-align: center;
}

.view-more {
    position: absolute;
    left: 379px;
    top: 692px;
    width: 704px;
    text-align: center;
}

.view-more a {
    display: inline-block;
    width: 161px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    color: #6f5240;
    background: #dfd5ce;
    border-radius: 4px;
    -webkit-transition: background .3s;
    transition: background .3s;
}

.view-more a:hover {
    background: #d0c2b4;
}

/* 展开当前栏目全部视频：列表内部滚动 */
.video-list.is-expanded {
    width: 734px;
    max-height: 540px;
    padding-right: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========== 视频播放弹层 ========== */
body.video-playing {
    overflow: hidden;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
}

.video-modal.on {
    display: block;
}

.video-modal-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .78);
}

.video-modal-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 940px;
    max-width: 92%;
    padding: 18px;
    background: #141414;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.video-modal-title {
    margin: 0 36px 12px 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: normal;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-modal-player {
    display: block;
    width: 100%;
    height: 490px;
    background: #000;
}

.video-modal-msg {
    display: none;
    margin: 0;
    height: 200px;
    line-height: 200px;
    text-align: center;
    font-size: 15px;
    color: #bbb;
    background: #000;
}

.video-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
}

.video-modal-close:hover {
    color: #e77b3f;
}

/* ========== footer ========== */
.footer {
    margin-top: 50px;
    padding: 30px 0 40px;
    border-top: 1px solid #f1ebe7;
    background: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 26px;
    color: #999;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #999;
}


/* ========== 平板 / 手机自适应 ========== */
@media screen and (max-width: 1199px) {
    .wrap {
        min-width: 0;
        overflow-x: hidden;
    }

    .inner {
        width: auto !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* header */
    .header {
        height: auto;
        padding-bottom: 50px;
        background-size: cover;
        background-position: center top;
    }

    .header .inner {
        height: auto;
    }

    .header .logo {
        left: 20px;
    }

    .header .logo img {
        width: 220px;
    }

    .header .head-title {
        width: 60%;
        padding-top: 130px;
    }

    /* p1 */
    .p1 {
        margin-top: -40px;
    }

    .p1 .sec-title > img {
        width: 100%;
        height: auto;
    }

    .p2 .sec-title img {
        width: 100%;
        height: auto;
    }

    /* p2 便签纸改为自适应纸张 */
    .notebook {
        width: auto;
        height: auto;
        margin-top: 26px;
        padding: 26px 24px 34px;
        border: 6px solid #bf1410;
        border-radius: 12px;
        background-color: #fdfbf6;
        background-image:
            repeating-linear-gradient(to right, rgba(205, 195, 185, .35) 0, rgba(205, 195, 185, .35) 1px, transparent 1px, transparent 22px),
            repeating-linear-gradient(to bottom, rgba(205, 195, 185, .35) 0, rgba(205, 195, 185, .35) 1px, transparent 1px, transparent 22px);
        box-shadow: 0 8px 20px rgba(150, 30, 20, .15);
    }

    .tab-list {
        position: static;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .tab-list li {
        flex: 0 0 auto;
        margin: 0 10px 10px 0;
    }

    .tab-list li a {
        height: 40px;
        line-height: 40px;
        padding: 0 18px;
        font-size: 15px;
        white-space: nowrap;
        border-radius: 20px;
        background: #dfd5ce;
        background-image: none;
    }

    .tab-list li.current a {
        border-radius: 20px;
        background: -webkit-linear-gradient(left, #cf3b33 0%, #e77b3f 52%, #c9302a 100%);
        background: linear-gradient(90deg, #cf3b33 0%, #e77b3f 52%, #c9302a 100%);
        -webkit-clip-path: none;
        clip-path: none;
    }

    .video-list {
        position: static;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .video-list li {
        width: 48.5%;
        margin: 0 0 18px;
    }

    .video-list li:nth-child(2n) {
        margin-right: 0;
    }

    .video-list img {
        height: auto;
    }

    .view-more {
        position: static;
        width: auto;
        margin-top: 8px;
        text-align: center;
    }

    .video-list.is-expanded {
        width: auto;
        max-height: none;
        padding-right: 0;
        overflow: visible;
    }

    .video-modal-player {
        height: auto;
        max-height: 60vh;
    }

    /* footer */
    .footer {
        margin-top: 35px;
        padding: 22px 0 28px;
        font-size: 12px;
        line-height: 22px;
    }

    .footer .inner {
        width: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 991px) {
    .header {
        padding-bottom: 30px;
    }

    .header .logo {
        top: 16px;
    }

    .header .logo img {
        width: 170px;
    }

    .header .head-title {
        width: 62%;
        padding-top: 100px;
    }

    /* 标题图片等比缩放，超宽部分裁切 */
    .p1 .sec-title,
    .p2 .sec-title {
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .p1 .sec-title > img {
        flex: 0 0 auto;
        width: auto;
        height: 45px;
    }

    .p2 .sec-title img {
        display: none;
    }

    .p2 .sec-txt {
        display: block;
        width: 100%;
        font-family: "STZhongsong", "SimSun", serif;
        font-size: 20px;
        font-weight: bold;
        line-height: 40px;
        letter-spacing: 1px;
        color: #c62f28;
        text-align: center;
        white-space: nowrap;
    }

    /* p1 两列 */
    .news-list li {
        width: 48.5%;
        margin: 0 3% 20px 0;
    }

    .news-list li:nth-child(3n) {
        margin-right: 3%;
    }

    .news-list li:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 640px) {
    .inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header,.header .inner {
        padding-bottom: 20px;
    }


    .header .logo {
        left: 15px;
    }

    .header .logo img {
        width: 140px;
    }

    .header .head-title {
        width: 72%;
        padding-top: 74px;
    }

    .p1 {
        margin-top: -18px;
    }

    .p1 .sec-title > img {
        height: 38px;
    }

    .p1 .more {
        top: 6px;
        width: 54px;
        height: 23px;
    }

    .p1 .more img {
        width: 54px;
        height: 23px;
    }

    .news-list {
        padding-top: 20px;
    }

    .news-list li {
        width: 100%;
        margin: 0 0 15px !important;
    }

    .news-list li a {
        height: auto;
        min-height: 140px;
        padding: 16px 16px 42px;
    }

    .news-list h3 {
        font-size: 16px;
        line-height: 26px;
    }

    .news-list p {
        margin-top: 6px;
        font-size: 13px;
        line-height: 24px;
        height: 48px;
    }

    .news-list .arrow {
        right: 16px;
        bottom: 12px;
    }

    .p2 {
        margin-top: 20px;
    }

    .p2 .sec-txt {
        font-size: 18px;
        line-height: 34px;
    }

    .notebook {
        padding: 20px 14px 28px;
        border-width: 4px;
        border-radius: 10px;
    }

    .tab-list li {
        margin: 0 8px 8px 0;
    }

    .tab-list li a {
        height: 34px;
        line-height: 34px;
        padding: 0 13px;
        font-size: 13px;
    }

    .video-list li {
        width: 100%;
    }

    .video-list span {
        height: 42px;
        line-height: 42px;
        font-size: 16px;
    }

    .view-more a {
        width: 140px;
        height: 32px;
        line-height: 32px;
    }

    .video-modal-box {
        padding: 12px;
    }

    .video-modal-title {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 24px;
    }

    .video-modal-msg {
        height: 150px;
        line-height: 150px;
    }
}