/* ============ News Detail Page ============ */
body {
    background: linear-gradient(180deg, #eef3fc 0%, #fafafa 100%);
}

/* ============ Main ============ */
.news-detail-page {
    max-width: 1440px;
    margin: -100px auto 0;
    padding: 0 24px 100px;
    position: relative;
    z-index: 2;
}

.news-detail-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 16px 48px -16px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.05);
    padding: 40px 64px 54px;
}

/* ============ Breadcrumbs ============ */
.nd-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8a94a8;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef1f6;
    flex-wrap: wrap;
}

.nd-crumbs a {
    color: #5b6b85;
    text-decoration: none;
    transition: color 0.3s;
}

.nd-crumbs a:hover {
    color: var(--color1);
}

.nd-crumbs .crumb-sep {
    color: #c3cbd8;
}

.nd-crumbs .crumb-current {
    color: var(--color1);
    font-weight: 600;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Article Head ============ */
.nd-head {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 34px;
}

.nd-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color1);
    background: rgba(26, 86, 219, 0.08);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.nd-head h2 {
    font-size: 32px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.nd-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 13px;
    color: #8a94a8;
}

.nd-meta .nd-date {
    color: var(--color1);
    font-weight: 600;
}

.nd-divider {
    width: 64px;
    height: 3px;
    margin: 26px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color1), #5b9cff);
}

/* ============ Article Body ============ */
.nd-article {
    max-width: 900px;
    margin: 0 auto 40px;
}

.nd-article p {
    font-size: 15px;
    line-height: 2.2;
    color: #4a5568;
    text-align: justify;
    margin-bottom: 22px;
    text-indent: 2em;
}

#nd-content > p:first-child {
    font-size: 16px;
    color: #2d3748;
}

/* 富文本元素 */
.nd-article h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--color1);
    line-height: 1.5;
}

.nd-article h4 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 26px 0 10px;
}

.nd-article ul,
.nd-article ol {
    margin: 0 0 22px;
    padding-left: 26px;
    color: #4a5568;
    font-size: 15px;
    line-height: 2.1;
}

.nd-article ul {
    list-style: disc;
}

.nd-article ol {
    list-style: decimal;
}

.nd-article li {
    margin-bottom: 6px;
}

.nd-article strong {
    color: #1e293b;
    font-weight: 700;
}

.nd-article blockquote {
    margin: 24px 0;
    padding: 14px 20px;
    border-left: 4px solid #5b9cff;
    background: #f5f9ff;
    border-radius: 0 10px 10px 0;
    color: #55607a;
    font-size: 15px;
    line-height: 2;
}

.nd-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
    border-radius: 12px;
    box-shadow: 0 16px 40px -18px rgba(15, 23, 42, 0.3);
}

.nd-figure {
    margin: 34px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.35);
    background: #eef1f6;
}

.nd-figure img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.nd-figure figcaption {
    padding: 14px 20px;
    font-size: 13px;
    color: #8a94a8;
    text-align: center;
    background: #fafcff;
    letter-spacing: 1px;
}

/* ============ Hot Keywords ============ */
.nd-tags {
    max-width: 900px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px;
    background: #f4f8ff;
    border: 1px solid #e2ebfb;
    border-radius: 12px;
}

.nd-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7688;
    letter-spacing: 1px;
}

.nd-keyword {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #d5e2fb;
    border-radius: 999px;
    background: #eef4ff;
    color: #2d5db8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
}

.nd-keyword:hover {
    border-color: var(--color1);
    background: linear-gradient(135deg, var(--color1), #3d7bfd);
    color: #fff;
}

/* ============ Pager ============ */
.nd-pager {
    display: flex;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 26px;
}

.nd-page-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px;
    border-radius: 14px;
    border: 1px solid #eef1f6;
    background: #fafcff;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 0;
}

.nd-page-link:hover {
    border-color: rgba(26, 86, 219, 0.3);
    background: #f2f6fd;
    transform: translateY(-2px);
}

.nd-page-link.nd-next {
    text-align: right;
}

.nd-page-link .page-label {
    font-size: 12px;
    color: #8a94a8;
    letter-spacing: 2px;
}

.nd-page-link .page-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nd-page-link:hover .page-title {
    color: var(--color1);
}

.nd-back {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.nd-back .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
}

.nd-back .btn-outline {
    border: 1px solid rgba(26, 86, 219, 0.3);
    color: var(--color1);
    background: #fff;
}

.nd-back .btn-outline:hover {
    background: var(--color1);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .news-detail-page {
        margin-top: -76px;
        padding: 0 16px 60px;
    }

    .news-detail-card {
        padding: 24px 20px 36px;
    }

    .nd-crumbs {
        margin-bottom: 22px;
    }

    .nd-head h2 {
        font-size: 24px;
    }

    .nd-article p {
        font-size: 14px;
    }

    #nd-content > p:first-child {
        font-size: 15px;
    }

    .nd-article h3 {
        font-size: 16px;
    }

    .nd-pager {
        flex-direction: column;
        gap: 12px;
    }

    .nd-page-link.nd-next {
        text-align: left;
    }
}

/* ============ 推荐动态 ============ */
.nd-recommend {
    max-width: 900px;
    margin: 0 auto 34px;
}

.nd-recommend-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.nd-recommend-head h3 {
    font-size: 20px;
    font-weight: 700;
    color: #17233e;
    letter-spacing: 2px;
}

.nd-recommend-head .sec-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color1), #5b9cff);
}

.nd-recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.nd-rec-item {
    display: block;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.nd-rec-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.25);
    border-color: rgba(26, 86, 219, 0.2);
}

.nd-rec-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.nd-rec-txt {
    padding: 12px 14px 14px;
}

.nd-rec-txt h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-rec-date {
    font-size: 12px;
    color: #9aa5b8;
}



@media (max-width: 900px) {
    .nd-recommend-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .nd-recommend-grid {
        grid-template-columns: 1fr;
    }
}
