/* 新闻列表页专用样式：由 list_news.html 内部样式抽取，未做任何样式改动 */


/* 页面底色：极淡紫白渐变，衬托白色卡片 */
body {
    background:
        radial-gradient(ellipse 62% 38% at 50% -8%, rgba(168, 85, 247, .08), transparent 62%),
        linear-gradient(180deg, #fff 0%, #fcfaff 46%, #f8f4ff 100%);
    background-attachment: fixed;
}

/* 内容容器宽度由 layout 的 --content-width 统一控制 */
body .news-list-page {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: 64px;
    padding-bottom: 96px;
}

body .news-list-page .panel,
body .news-list-page .panel-default {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body .news-list-page .panel-body {
    padding: 0;
}

body .news-list-page .article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 24px;
    margin: 0;
    padding: 0;
}

body .news-list-page .article-list::before,
body .news-list-page .article-list::after {
    content: none;
}

/* 卡片 */
body .news-list-page .news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    margin: 0;
    /* 覆盖基础样式 .article-list .article-item 的 padding:20px 0 与底边线 */
    padding: 0;
    border: 1px solid rgba(196, 181, 253, .3);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(49, 32, 94, .06);
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

/* 悬停：卡片小角度摆动，不放大、不上移 */
@keyframes news-card-tilt {
    0% {
        transform: rotate(0deg);
    }

    45% {
        transform: rotate(-.6deg);
    }

    100% {
        transform: rotate(.35deg);
    }
}

body .news-list-page .news-card:hover {
    border-color: rgba(124, 58, 237, .32);
    box-shadow: 0 20px 40px rgba(76, 29, 149, .15);
    animation: news-card-tilt .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

body .news-list-page .news-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding-top: 62%;
    border-radius: 0;
    background: #f5f1ff;
}

body .news-list-page .news-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body .news-list-page .news-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 22px 24px;
}

body .news-list-page .news-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #9aa3b5;
    font-size: 13px;
    line-height: 1.2;
}

body .news-list-page .news-card__meta .tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, .1);
    color: #5b21b6;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: .2px;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}

body .news-list-page .news-card:hover .news-card__meta .tag {
    background: rgba(124, 58, 237, .16);
    color: #6d28d9;
}

body .news-list-page .news-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.2px;
}

body .news-list-page .news-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1c2437;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s ease;
}

body .news-list-page .news-card:hover .news-card__title a {
    color: var(--theme-color-strong);
}

/* 分页 */
body .news-list-page .pager {
    margin-top: 48px;
}

body .news-list-page .pager a,
body .news-list-page .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 4px;
    border: 1px solid rgba(196, 181, 253, .45);
    border-radius: 10px;
    background: #fff;
    color: #4a5568;
    font-size: 14px;
    text-decoration: none;
    transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}

body .news-list-page .pager a:hover,
body .news-list-page .pager .active span,
body .news-list-page .pager span.current {
    border-color: rgba(124, 58, 237, .5);
    background: var(--theme-color-soft);
    color: var(--theme-color-strong);
}

body .news-list-page .pager .disabled span {
    color: #c3c9d6;
}

/* 响应式 */
@media (max-width: 991px) {
    body .news-list-page {
        padding-top: 44px;
        padding-bottom: 64px;
    }

    body .news-list-page .article-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    body .news-list-page {
        width: 100%;
        padding: 36px 16px 52px;
    }

    body .news-list-page .article-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    body .news-list-page .news-card__body {
        padding: 18px 18px 20px;
    }

    body .news-list-page .news-card__title {
        font-size: 17px;
    }

    body .news-list-page .pager {
        margin-top: 32px;
    }
}
