/* ========== 博客列表（居中标题 + 三列卡片） ========== */
.nb-blog-page,
.nb-help-page,
.nb-article-page {
    padding-top: 36px;
    padding-bottom: 72px;
}

.nb-blog-hero {
    text-align: center;
    margin: 12px auto 0;
    max-width: 720px;
}

.nb-blog-hero h1 {
    margin: 0;
    color: #1a1a1a;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.nb-blog-hero p {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.nb-blog-hero-line {
    width: min(100%, 560px);
    height: 1px;
    margin: 28px auto 0;
    background: #e5e7eb;
}

.nb-blog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 420px);
    margin: 36px auto 40px;
    padding: 0 18px;
    height: 48px;
    border: 1px solid #e8ecf1;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.nb-blog-search:focus-within {
    border-color: #93b4f5;
    box-shadow: 0 0 0 4px rgba(47, 115, 234, 0.08);
}

.nb-blog-search-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #9ca3af;
}

.nb-blog-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
}

.nb-blog-search input::placeholder {
    color: #9ca3af;
}

.nb-blog-search-clear {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
}

.nb-blog-search-clear:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.nb-blog-search-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nb-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.nb-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 260px;
    padding: 24px 24px 20px;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nb-blog-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.nb-blog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.nb-blog-badge.is-pin {
    color: #b45309;
    background: #fff7ed;
}

.nb-home-article-pin {
    display: inline-block;
    margin-right: 6px;
    padding: 0 6px;
    border-radius: 4px;
    color: #b45309;
    background: #fff7ed;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    vertical-align: 1px;
}

.nb-blog-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    color: #2f73ea;
    background: #eef4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.nb-blog-card-top time {
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
}

.nb-blog-card-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nb-blog-card-title a {
    color: inherit;
}

.nb-blog-card-title a:hover {
    color: #2f73ea;
}

.nb-blog-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    flex: 1;
}

.nb-blog-card-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.nb-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 600;
    transition: color .15s ease;
}

.nb-blog-read span {
    transition: transform .2s ease;
}

.nb-blog-read:hover {
    color: #2f73ea;
}

.nb-blog-read:hover span {
    transform: translateX(3px);
}

.nb-blog-empty {
    margin-top: 8px;
    padding: 64px 24px;
    border: 1px dashed #d7dee8;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.nb-blog-empty h2 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 20px;
}

.nb-blog-empty p {
    margin: 0;
    color: #8a96a8;
}

.nb-blog-empty a {
    display: inline-flex;
    margin-top: 16px;
    color: #2f73ea;
    font-weight: 700;
}

.nb-blog-pagination {
    margin-top: 36px;
}

.nb-blog-pagination nav {
    display: flex;
    justify-content: center;
}

.nb-blog-pagination svg {
    width: 18px;
}

.nb-blog-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    list-style: none;
}

.nb-blog-pagination .page-link {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    color: #607087;
    background: #fff;
}

.nb-blog-pagination .active .page-link {
    color: #fff;
    border-color: #2f73ea;
    background: #2f73ea;
}

/* ========== 文章详情（保留） ========== */
.nb-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #8a96a8;
    font-size: 13px;
}

.nb-article-breadcrumb a:hover { color: #2f73ea; }
.nb-article-breadcrumb em {
    overflow: hidden;
    color: #58677d;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nb-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.nb-article-card,
.nb-article-side-card {
    border: 1px solid #e1e8f1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(43, 72, 116, .07);
}

.nb-article-card { overflow: hidden; padding: 38px 42px; }

.nb-article-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #edf1f6;
}

.nb-article-label,
.nb-article-side-title > span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    color: #2f73ea;
}

.nb-article-header h1 {
    margin: 10px 0 16px;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.32;
}

.nb-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #8a96a8;
    font-size: 12px;
}

.nb-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.nb-article-meta svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nb-article-cover {
    overflow: hidden;
    margin: 26px 0 0;
    border-radius: 18px;
    background: #f3f6fa;
}

.nb-article-cover img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.nb-article-summary {
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 4px solid #2f73ea;
    border-radius: 0 14px 14px 0;
    color: #4f6077;
    background: #f4f8ff;
    font-size: 15px;
    line-height: 1.8;
}

.nb-article-content {
    padding: 30px 0 10px;
    color: #344054;
    font-size: 16px;
    line-height: 1.95;
    word-break: break-word;
}

.nb-article-content > :first-child { margin-top: 0; }
.nb-article-content h2,
.nb-article-content h3,
.nb-article-content h4 { margin: 1.6em 0 .7em; color: #172033; line-height: 1.45; }
.nb-article-content h2 { font-size: 25px; }
.nb-article-content h3 { font-size: 21px; }
.nb-article-content p { margin: 1em 0; }
.nb-article-content img { height: auto; border-radius: 14px; }
.nb-article-content a { color: #2f73ea; text-decoration: underline; text-underline-offset: 3px; }
.nb-article-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid #87aef0;
    color: #5d6b7e;
    background: #f7f9fc;
}
.nb-article-content pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 14px;
    color: #e7eefb;
    background: #172033;
}
.nb-article-content table { width: 100%; border-collapse: collapse; }
.nb-article-content th,
.nb-article-content td { padding: 11px 12px; border: 1px solid #dfe6ef; text-align: left; }
.nb-article-content th { background: #f5f7fa; }

.nb-article-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #edf1f6;
}

.nb-article-siblings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nb-article-siblings a {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #fafcff;
}

.nb-article-siblings a:hover { border-color: #b9cff0; background: #f3f7ff; }
.nb-article-siblings a.is-next { text-align: right; }
.nb-article-siblings small,
.nb-article-siblings strong { display: block; }
.nb-article-siblings small { margin-bottom: 5px; color: #8a96a8; }
.nb-article-siblings strong {
    overflow: hidden;
    color: #344054;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nb-article-back {
    display: inline-flex;
    margin-top: 18px;
    color: #2f73ea;
    font-weight: 750;
}

.nb-article-aside {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.nb-article-side-card { padding: 22px; }

.nb-article-guide {
    color: #fff;
    border: 0;
    background: linear-gradient(145deg, #2f73ea, #5c8def);
    box-shadow: 0 18px 40px rgba(47, 115, 234, .2);
}

.nb-article-side-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.16);
    font-size: 22px;
    font-weight: 800;
}

.nb-article-guide h2 { margin: 15px 0 8px; font-size: 20px; }
.nb-article-guide p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.7; }
.nb-article-guide > a {
    display: inline-flex;
    margin-top: 16px;
    padding: 9px 13px;
    border-radius: 10px;
    color: #2f73ea;
    background: #fff;
    font-weight: 750;
}

.nb-article-side-title { margin-bottom: 12px; }
.nb-article-side-title h2 { font-size: 20px; }
.nb-related-list { display: grid; }

.nb-related-list > a {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f6;
}

.nb-related-list > a:last-child { border-bottom: 0; padding-bottom: 0; }
.nb-related-list > a:hover strong { color: #2f73ea; }
.nb-related-index { color: #9eb7df; font-size: 12px; font-weight: 800; }
.nb-related-list strong,
.nb-related-list small { display: block; }
.nb-related-list strong { color: #344054; line-height: 1.55; }
.nb-related-list small { margin-top: 4px; color: #96a1b1; font-size: 11px; }

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .nb-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .nb-article-layout { grid-template-columns: 1fr; }
    .nb-article-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nb-blog-page,
    .nb-article-page {
        padding-top: 18px;
        padding-bottom: 48px;
    }

    .nb-blog-hero h1 {
        font-size: 36px;
    }

    .nb-blog-search {
        width: 100%;
        margin: 28px auto 28px;
    }

    .nb-blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nb-blog-card {
        min-height: 0;
        padding: 20px;
        border-radius: 14px;
    }

    .nb-blog-card-title {
        font-size: 17px;
    }

    .nb-article-card {
        padding: 26px 20px;
        border-radius: 19px;
    }

    .nb-article-header h1 { font-size: 28px; }
    .nb-article-content { padding-top: 22px; font-size: 15px; }
    .nb-article-aside { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .nb-blog-hero h1 {
        font-size: 32px;
    }

    .nb-blog-card-top time {
        font-size: 11px;
    }

    .nb-article-breadcrumb em { max-width: 130px; }
    .nb-article-siblings { grid-template-columns: 1fr; }
    .nb-article-siblings a.is-next { text-align: left; }
}
