* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Microsoft YaHei", "Heiti SC", Arial, sans-serif;
    background: #f6f7f8;
    color: #202833;
    line-height: 1.75;
}

a { color: #1b5fd6; text-decoration: none; }
a:hover { color: #168244; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hidden { display: none !important; }

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 3px;
    width: 0;
    background: #2f9a48;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid #e6e8eb;
    box-shadow: 0 1px 8px rgba(20,30,40,0.05);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1f3b2a;
    font-weight: 800;
    font-size: 22px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2f9a48;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(47,154,72,0.18);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
}

.nav a {
    color: #27313f;
    padding: 24px 0 20px;
    border-bottom: 3px solid transparent;
}

.nav a.active,
.nav a:hover {
    color: #2f9a48;
    border-bottom-color: #2f9a48;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav {
    background: #fff;
    border-bottom: 1px solid #e7eaee;
}

.mobile-nav .container {
    display: grid;
    gap: 2px;
    padding: 10px 0;
}

.mobile-nav a {
    padding: 10px 4px;
    color: #27313f;
}

.page-shell { padding: 44px 0 58px; }

.breadcrumb {
    color: #8c96a3;
    font-size: 14px;
    margin-bottom: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a { color: #7f8a98; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 36px;
    align-items: start;
}

.article-panel {
    min-width: 0;
}

.article-hero {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 12px 12px 0 0;
    padding: 32px 32px 28px;
    box-shadow: 0 8px 28px rgba(20,30,40,0.04);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 18px;
    padding: 5px 12px;
    margin-bottom: 16px;
    background: #eaf7ed;
    color: #2f9a48;
    font-weight: 700;
    font-size: 14px;
}

.article-hero h1 {
    font-size: 31px;
    line-height: 1.35;
    color: #202833;
    margin-bottom: 18px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    color: #7d8794;
    font-size: 14px;
}

.author-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.article-body-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 28px 32px 34px;
    box-shadow: 0 8px 28px rgba(20,30,40,0.04);
}

.summary-box {
    background: #fff6ec;
    border-left: 4px solid #f06a2a;
    border-radius: 0 6px 6px 0;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.summary-box h2 {
    color: #df5928;
    font-size: 18px;
    margin-bottom: 8px;
}

.summary-box p {
    color: #546070;
    font-size: 16px;
}

.article-gallery {
    display: grid;
    gap: 18px;
    margin: 22px 0 28px;
}

.article-gallery img {
    width: 100%;
    height: auto;
    min-height: 360px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef1f4;
}

.article-content {
    font-size: 17px;
    color: #2d3744;
}

.article-content p { margin: 0 0 18px; }
.article-content h2,
.article-content h3 {
    margin: 28px 0 14px;
    color: #202833;
}

.article-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
    margin-top: 28px;
    border-top: 1px solid #edf0f2;
}

.tag-row a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 16px;
    background: #eef6ff;
    color: #2867bf;
    font-size: 13px;
}

.sidebar {
    display: grid;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(20,30,40,0.04);
}

.search-card { padding: 20px; }

.search-box {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    padding: 0 14px;
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    color: #4f5b69;
    font-size: 14px;
}

.sidebar-title {
    font-size: 18px;
    line-height: 1.4;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf0f2;
    color: #202833;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    border-bottom: 1px dashed #e1e5e9;
}

.toc-list li:last-child { border-bottom: 0; }

.toc-list a {
    display: block;
    padding: 12px 0;
    color: #3d4856;
    font-size: 14px;
    line-height: 1.7;
}

.toc-list.compact a { padding: 8px 0; }

.hot-list {
    display: grid;
}

.hot-item {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e1e5e9;
}

.hot-item:first-child { padding-top: 0; }
.hot-item:last-child { border-bottom: 0; padding-bottom: 0; }

.hot-item img {
    width: 58px;
    height: 58px;
    border-radius: 4px;
    object-fit: cover;
}

.hot-item strong {
    display: block;
    color: #2d3744;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.hot-item em {
    display: block;
    margin-top: 4px;
    color: #9aa3ad;
    font-size: 12px;
    font-style: normal;
}

.footer {
    padding: 24px 0;
    background: #fff;
    border-top: 1px solid #e8ecef;
    color: #8b96a4;
    text-align: center;
    font-size: 13px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2f9a48;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
    box-shadow: 0 8px 18px rgba(47,154,72,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Compatible with the original mb_bjgs index.html structure. */
.header {
    background: #fff;
    border-bottom: 1px solid #e6e8eb;
    box-shadow: 0 1px 8px rgba(20,30,40,0.05);
}

.header .header-inner {
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f3b2a;
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2f9a48;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.py-6 { padding: 44px 0 58px; }
.py-4 { padding: 18px 0; }
.mb-4 { margin-bottom: 18px; }
.mb-6 { margin-bottom: 24px; }

.content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 760px) 300px;
    gap: 36px;
    align-items: start;
}

.main-content { min-width: 0; }

.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-size: 31px;
    line-height: 1.35;
    color: #202833;
    margin-bottom: 18px;
}

.article-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 28px 32px 34px;
    box-shadow: 0 8px 28px rgba(20,30,40,0.04);
}

.article-excerpt {
    background: #fff6ec;
    border-left: 4px solid #f06a2a;
    border-radius: 0 6px 6px 0;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.article-excerpt h3 {
    color: #df5928;
    font-size: 18px;
    margin-bottom: 8px;
}

.related-articles {
    margin-top: 34px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 18px;
}

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

.article-item {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20,30,40,0.04);
}

.article-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-item-content { padding: 14px; }
.article-item-category {
    display: inline-block;
    color: #2f9a48;
    font-size: 13px;
    margin-bottom: 6px;
}
.article-item-title {
    font-size: 15px;
    line-height: 1.5;
    color: #202833;
}
.article-item-meta {
    margin-top: 8px;
    color: #9aa3ad;
    font-size: 12px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    text-align: left;
}

.footer-col h3 {
    color: #202833;
    margin-bottom: 8px;
}

.footer-col ul { list-style: none; }
.footer-col a { color: #7f8a98; }
.copyright {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e8ecef;
    color: #8b96a4;
}

@media (max-width: 980px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-wrap {
        grid-template-columns: 1fr;
    }

    .articles-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .article-gallery img {
        min-height: 260px;
    }
}

@media (max-width: 760px) {
    .nav { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .page-shell { padding-top: 28px; }
    .article-hero,
    .article-body-card,
    .sidebar-card {
        padding: 20px;
    }
    .article-hero h1 {
        font-size: 24px;
    }
    .article-meta {
        gap: 10px 12px;
    }
    .article-gallery img {
        min-height: 220px;
    }

    .articles-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
