@import "style.css";

main {
    width: 100%;
}

.bigimg,
.news-content-box {
    width: 68vw;
    margin: 0 auto;
}

.bigimg {
    height: calc(512/1330 * 68vw);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bigimg img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-content-box .news-tit {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 50px auto 40px;
}

.news-content-box .news-tit .en {
    font-size: 34px;
    font-weight: 700;
    color: var(--color-1);
}

.news-content-box .news-tit .cn {
    font-size: 30px;
    font-weight: 500;
    color: #212529;
}

.news-content-box .news-content {
    width: 100%;
}

.news-content-box .news-content .news-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.news-list .news-item {
    width: 100%;
    height: 223px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row nowrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.news-list .news-item .news-date {
    width: 118px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-right: 50px;
    flex: 0 0 auto;
    position: relative;
}

.news-list .news-item .news-date::after {
    content: "";
    width: 46px;
    height: 2px;
    background-color: #BCBCBC;
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}

.news-list .news-item .news-date::before {
    content: "";
    width: 14px;
    height: 14px;
    background-color: transparent;
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%) rotate(45deg);
}

.news-list .news-item .news-date span:nth-child(1) {
    font-size: 70px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

.news-list .news-item .news-date span:nth-child(2) {
    font-size: 21px;
    color: #000;
}

.news-list .news-item .news-title {
    width: 728px;
    flex: 1;
    padding: 0 60px 0 0;
}

.news-list .news-item .news-title a {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
}

.news-list .news-item .news-title span:nth-child(1) {
    width: 100%;
    font-size: 22px;
    font-weight: 500;
    color: var(--color-2);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-list .news-item .news-title span:nth-child(2) {
    font-size: 14px;
    color: #323333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-all;
}

.news-list .news-item .news-title a:hover span:nth-child(1) {
    color: var(--color-1);
}

.news-list .news-item .news-img {
    width: 300px;
    height: 180px;
    flex: 0 0 auto;
    margin-right: 20px;
    overflow: hidden;
}

.news-list .news-item .news-img img {
    transition: all 0.5s linear;
}

.news-list .news-item .news-img:hover img {
    transform: scale(1.1);
}

.news-list .news-item:hover .news-date {
    background-color: var(--color-1);
}

.news-list .news-item:hover .news-date span:nth-child(1),
.news-list .news-item:hover .news-date span:nth-child(2) {
    color: #fff;
}

.news-list .news-item:hover .news-date::after {
    background-color: var(--color-1);
}

.news-list .news-item:hover .news-date::before {
    background-color: var(--color-1);
}

@media screen and (max-width: 1200px) {
    .news-list .news-item .news-title {
        max-width: 50%;
    }
}

@media screen and (max-width: 1330px) and (min-width: 768px) {
    .bigimg {
        width: 92vw;
        height: calc(512 / 1330 * 92vw);
    }

    .news-content-box {
        width: 92vw;
    }
}

@media screen and (max-width: 1023px) and (min-width: 768px) {
    .news-list .news-item {
        height: 145px;
    }

    .news-list .news-item .news-date {
        width: 88px;
        margin-right: 30px;
    }

    .news-list .news-item .news-date::after {
        width: 26px;
        right: -20px;
    }

    .news-list .news-item .news-date span:nth-child(1) {
        font-size: 50px;
    }

    .news-list .news-item .news-date span:nth-child(2) {
        font-size: 16px;
    }

    .news-list .news-item .news-title {
        padding: 0 30px 0 0;
    }

    .news-list .news-item .news-img {
        width: 200px;
        height: calc(180/300 * 200px);
    }
}

@media screen and (max-width: 767px) {
    .bigimg {
        width: 100vw;
        height: calc(512 / 1330 * 100vw);
    }

    .news-content-box {
        width: 100%;
        padding: 0 1rem;
    }

    .news-content-box .news-tit {
        margin: 0.8rem auto;
    }

    .news-content-box .news-tit .en {
        font-size: 1.7rem;
        line-height: 1.1;
    }

    .news-content-box .news-tit .cn {
        font-size: 1.5rem;
    }

    .news-list .news-item {
        height: auto;
        flex-flow: row wrap;
        border-bottom: none;
    }

    .news-list .news-item .news-img {
        width: 100%;
        height: calc(180/300 * 200px);
        order: 1;
    }

    .news-list .news-item .news-date {
        width: 4.8rem;
        order: 2;
        background-color: var(--color-1);
        margin-right: 2rem;
    }

    .news-list .news-item .news-date::before,
    .news-list .news-item .news-date::after {
        background-color: var(--color-1);
    }

    .news-list .news-item .news-date::after {
        width: 2rem;
        right: -1.8rem;
    }

    .news-list .news-item .news-date span:nth-child(1) {
        font-size: 3rem;
        color: #fff;
    }

    .news-list .news-item .news-date span:nth-child(2) {
        font-size: 1rem;
        color: #fff;
    }

    .news-list .news-item .news-title {
        max-width: calc(100% - 7.5rem);
        order: 2;
        padding: 0;
    }

    .news-list .news-item .news-title a {
        gap: 0;
    }

    .news-list .news-item .news-title span:nth-child(1) {
        font-size: 1rem;
    }

    .news-list .news-item .news-title span:nth-child(2) {
        font-size: 0.75rem;
    }

    .pagination {
        font-size: 0.625rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .pagination .num,
    .rank-pagination .pagination li {
        display: none;
    }

    .rank-pagination {
        font-size: 0.75rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .rank-pagination .pagination li:first-child,
    .rank-pagination .pagination li:last-child {
        display: block;
    }
    .rank-pagination a,
    .rank-pagination .pagination li a {
        font-size: 0.75rem;
    }
}