/* news/list.html 响应式设计 */

/* 大屏幕 (min-width: 1400px) */
@media screen and (min-width: 1400px) {
    .inner_left {
        width: 70%;
    }
    .article__banner {
        width: 100%;
    }
    .new__article, .article__item, .article__item_img {
        width: 100%;
    }
    .entrance__list {
        width: 376px;
    }
}

/* 窄桌面 (max-width: 1260px) */
@media screen and (max-width: 1260px) {
    .top__inner {
        width: 96%;
        max-width: 1176px;
    }
    .inner_left {
        width: 68%;
        margin-right: 2%;
    }
    .entrance__list {
        width: 30%;
    }
    .article__banner {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-left: 0;
    }
    .swiper-container, .swiper-slide img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .new__article, .article__item, .article__item_img {
        width: 100%;
    }
    .article__item-left {
        width: 35%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .article__item-pic {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .article__item-right {
        width: 60%;
        margin-left: 3%;
        height: auto;
    }
    .article__bottom {
        width: 100%;
        position: static;
        margin-top: 15px;
    }
    .common__line {
        width: 100%;
        margin-left: 0;
    }
    .topic__list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .topic__item {
        margin-left: 0 !important;
    }
    .topic__item .topic__itemo, .topic__item .topic_back {
        width: 100%;
    }
}

/* 平板/小桌面 (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .top__inner {
        flex-direction: column;
    }
    .inner_left {
        width: 100%;
        margin-right: 0;
    }
    .entrance__list {
        width: 100%;
        margin-top: 40px;
    }
    .entrance__enter img {
        width: auto;
    }
}

/* 特定平板区间 (min-width: 769px) and (max-width: 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .topic__item {
        width: calc(33.33% - 10px);
    }
}

/* 手机 (max-width: 768px) */
@media screen and (max-width: 768px) {
    .inner {
        margin-bottom: 40px;
    }
    .article__title {
        padding: 0 10px;
    }
    .article__title .subtitle {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    .article__item {
        height: auto;
        border-bottom: 1px solid #f0f0f0;
    }
    .article__item a {
        padding: 15px 10px;
        display: flex;
        align-items: flex-start;
    }
    .article__item-left {
        width: 120px;
        height: 80px;
        float: none;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .article__item-pic {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .article__item-sort {
        width: 50px;
        font-size: 10px;
        line-height: 18px;
    }
    .article__item-right {
        width: auto;
        flex: 1;
        float: none;
        margin-left: 12px;
        height: auto;
        min-width: 0;
    }
    .article__item-right .title {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 5px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
    }
    .article__item-right .subtitle {
        display: none; /* 移动端列表隐藏摘要以保持简洁 */
    }
    .article__bottom {
        position: static;
        width: 100%;
        margin-top: 8px;
        font-size: 12px;
    }
    .article__author img {
        width: 20px;
        height: 20px;
    }
    
    .section__header {
        padding: 0 10px;
    }
    .topic__list {
        padding: 0 10px;
        gap: 30px;
    }
    .topic__item {
        height: auto;
        margin-bottom: 10px;
    }
    .topic__item .topic__itemo {
        height: 100px;
    }
    .topic__item .topic__itemo .topic_back {
        height: 100px;
    }
    .topic__item .image img {
        width: 80px;
        height: auto;
    }
    .topic__item .image span {
        font-size: 10px;
        transform: scale(0.9);
    }
    .topic__item .links {
        padding: 8px;
    }
    .topic__item .links p {
        font-size: 13px;
    }

    .reading__list {
        padding: 0 10px;
    }
    .entrance__enter img {
        width: auto;
    }
}

/* 小手机 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .text-des-bx {
        height: 60px;
        font-size: 16px;
    }
    .text-des {
        padding: 8px 15px;
    }
    .article__item-left {
        width: 100px;
        height: 65px;
    }
    .article__item-right .title {
        font-size: 14px;
    }
    .article__author span {
        max-width: 50px;
    }
    .article__more {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .article__more span {
        display: block;
        margin: 5px 0;
    }
    
    .header_nav {
        display: none;
    }
}
