/* ===== 新闻列表与详情（动态数据版） ===== */

.news-item {
    text-decoration: none;
    color: inherit;
}

.news-item-image {
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-image .news-item-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
}

.news-item-image .news-item-icon svg {
    width: 46px;
    height: 46px;
}

.news-empty {
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 15px;
}

.news-loading {
    padding: 50px 0;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.news-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 50px;
}

.news-pager button {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.news-pager button:hover:not(:disabled),
.news-pager button.on {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.news-pager button:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ---------- 新闻详情 ---------- */
.nd-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.nd-head {
    margin-bottom: 26px;
}

.nd-cat {
    display: inline-block;
    background: #e8f1fb;
    color: var(--primary);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    margin-bottom: 14px;
}

.nd-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 14px;
}

.nd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--gray-500);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.nd-cover {
    margin: 26px 0 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
}

.nd-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.nd-body {
    font-size: 16px;
    line-height: 2;
    color: var(--gray-700);
}

.nd-body p {
    margin-bottom: 18px;
}

.nd-foot {
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--gray-200);
}

.nd-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 26px;
}

.nd-nav a {
    color: var(--gray-600);
}

.nd-nav a:hover {
    color: var(--primary);
}

.nd-nav span {
    color: var(--gray-400);
    margin-right: 8px;
}

.nd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 720px) {
    .nd-title {
        font-size: 24px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0;
        cursor: pointer;
    }

    .news-item-image {
        height: 180px;
    }

    .news-item-content {
        padding: 20px;
    }
}
