/* ==================== 新闻详情 News Detail ==================== */
.nd-article {
    background: #fff;
    padding: 36px 40px 0;
    margin-bottom: 36px;
    padding-bottom: 10px;
}

.nd-title {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.45;
}

.nd-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.nd-meta span {
    white-space: nowrap;
}

/* 富文本（API HTML） */
.nd-rich {
    color: #333;
    font-size: 14px;
    line-height: 1.9;
    min-height: 200px;
    padding-bottom: 28px;
}

.nd-rich p {
    margin: 0 0 14px;
}

.nd-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

.nd-rich h2,
.nd-rich h3 {
    margin: 24px 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.nd-rich ul,
.nd-rich ol {
    margin: 0 0 16px 1.3em;
    padding: 0;
}

.nd-rich li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.nd-rich strong {
    font-weight: 700;
    color: #222;
}

.nd-rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    font-size: 13px;
}

.nd-rich table th,
.nd-rich table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
}

.nd-rich table th {
    background: #f5f7fa;
    font-weight: 600;
}

.nd-rich .nd-empty {
    text-align: center;
    color: #999;
    padding: 60px 0;
}

/* 上一篇 / 下一篇 */
.nd-nav {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 36px;
    background: #fff;
}
.nd-nav a,
.nd-nav .nd-nav-item {
    display: block;
    padding: 14px 16px;
    /* background: #f5f6f8; */
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}
/* 仅条目之间分隔，避免与容器底边重叠 */
.nd-nav > :first-child {
    border-bottom: 1px solid #ececec;
}

.nd-nav a:hover {
    color: #1d78bd;
    background: #eef4fa;
}

.nd-nav .nd-nav-label {
    color: #888;
}

.nd-nav .is-disabled {
    color: #aaa;
    cursor: default;
}

/* 最新发布 */
.nd-latest-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.nd-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 12px;
}

.nd-latest-card {
    display: block;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.nd-latest-card:hover {
    border-color: #1d78bd;
    box-shadow: 0 6px 18px rgba(29, 120, 189, 0.12);
}

.nd-latest-img {
    height: 160px;
    background: #f5f7fa;
    overflow: hidden;
}

.nd-latest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nd-latest-card:hover .nd-latest-img img {
    transform: scale(1.04);
}

.nd-latest-body {
    padding: 14px 16px 16px;
}

.nd-latest-card-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-latest-date {
    font-size: 12px;
    color: #999;
}

@media (max-width: 1024px) {
    .nd-latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .nd-article {
        padding: 24px 16px 0;
    }

    .nd-title {
        font-size: 20px;
        text-align: left;
    }

    .nd-meta {
        justify-content: flex-start;
        gap: 6px 14px;
    }

    .nd-latest-grid {
        grid-template-columns: 1fr;
    }

    .nd-latest-img {
        height: 180px;
    }
}
