/* ==========================================================================
   基础重置与全局样式
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #f7f7fb;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
        "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #000;
    transition: color .2s ease;
}

a:hover {
    text-decoration: none;
    color: #2b76ff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.background-w {
    background-color: #fff;
}

.md-editor-katex-block {
    overflow-x: auto;
}

/* 桌面容器最大宽度 */
@media (min-width: 1340px) {
    .container {
        max-width: 1340px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   顶部导航（PC 精致版）
   ========================================================================== */
.nav-top {
    height: 60px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(31, 35, 41, .06);
    box-shadow: 0 1px 3px rgba(31, 35, 41, .04);
    z-index: 1000;
}

/* 容器撑满导航高度，使内部 flex 垂直居中生效 */
.nav-top > .container {
    height: 100%;
}

.nav-top .navbar {
    padding: 0 10px;
    height: 100%;
    align-items: center;
    flex-wrap: nowrap;
}

/* 品牌标识：简洁字标，与内容区视觉对齐 */
.nav-top .navbar-brand {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #1f2329;
    flex: 0 0 auto;
    margin-right: 18px;
    transition: color .2s ease;
}

.nav-top .navbar-brand:hover {
    color: #2b76ff;
}

/* 导航项：宽松舒适，悬停淡蓝胶囊，选中加下划线条 */
.nav-top .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
}

.nav-top .nav-link {
    position: relative;
    color: #4e5969;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px !important;
    margin: 0 1px;
    border-radius: 9px;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.nav-top .nav-link:hover {
    color: #2b76ff;
    background-color: rgba(43, 118, 255, .08);
}

.nav-top .nav-item.active .nav-link {
    color: #2b76ff;
    font-weight: 600;
}

.nav-top .nav-item.active .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2b76ff, #7fb0ff);
}

/* 搜索框：胶囊输入 + 内嵌渐变按钮 */
.nav-top .form-inline {
    position: relative;
    flex: 0 1 auto;
    margin-left: auto;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-top .form-inline .form-control {
    width: 200px;
    min-width: 0;
    height: 38px;
    flex: 0 1 auto;
    border: 1px solid #e5e6eb;
    border-radius: 19px;
    background: #f4f5f7;
    padding: 0 66px 0 16px;
    font-size: 14px;
    color: #1f2329;
    transition: width .25s ease, background-color .25s ease,
        border-color .25s ease, box-shadow .25s ease;
}

.nav-top .form-inline .form-control::placeholder {
    color: #a9aeb8;
}

.nav-top .form-inline .form-control:focus {
    width: 240px;
    background: #fff;
    border-color: #2b76ff;
    box-shadow: 0 0 0 3px rgba(43, 118, 255, .12);
    outline: none;
}

.nav-top .form-inline .btn {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 16px;
    margin: 0;
    border: 0;
    border-radius: 15px;
    line-height: 1;
    background: linear-gradient(90deg, #2b76ff, #4b8dff);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(43, 118, 255, .3);
    transition: box-shadow .2s ease, filter .2s ease;
}

.nav-top .form-inline .btn:hover {
    background: linear-gradient(90deg, #1f66f0, #3d7ff5);
    color: #fff;
    filter: brightness(1.03);
    box-shadow: 0 4px 10px rgba(43, 118, 255, .4);
}

/* 下拉菜单淡入动画（全局） */
@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   导航响应式策略
   - ≥1340px：完整横排导航，容器与内容区同宽居中，视觉对齐不拉伸
   - 1200–1339px：完整横排导航，适度紧凑保证单行不溢出
   - 766–1199px：收起为汉堡菜单 + 下拉面板（避免拥挤/裁切）
   - ≤765px：移动端全屏菜单（见下方移动端区块）
   ========================================================================== */

/* 宽屏：导航容器与页面内容同宽居中 */
@media (min-width: 1340px) {
    .nav-top > .container {
        max-width: 1340px;
        width: 100%;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 窄桌面（1200–1339px）：紧凑但可读 */
@media (min-width: 1200px) and (max-width: 1339px) {
    .nav-top > .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-top .navbar-brand {
        font-size: 20px;
        margin-right: 10px;
    }

    .nav-top .nav-link {
        font-size: 14px;
        padding: 8px 9px !important;
    }

    .nav-top .nav-item.active .nav-link::after {
        left: 9px;
        right: 9px;
    }

    .nav-top .form-inline .form-control {
        width: 150px;
    }

    .nav-top .form-inline .form-control:focus {
        width: 190px;
    }
}

/* 平板 / 窄桌面（766–1199px）：汉堡菜单 + 下拉面板 */
@media (min-width: 766px) and (max-width: 1199px) {
    .nav-top .navbar-toggler {
        display: flex;
        margin-left: auto;
    }

    .nav-top .navbar-collapse {
        display: none !important;
    }

    .nav-top .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(31, 35, 41, .06);
        box-shadow: 0 10px 28px rgba(31, 35, 41, .08);
        padding: 10px 28px 22px;
        animation: navFadeIn .2s ease;
    }

    .nav-top .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
    }

    .nav-top .navbar-collapse .nav-item {
        border-bottom: 1px solid #f2f3f7;
    }

    .nav-top .navbar-collapse .nav-item:last-child {
        border-bottom: 0;
    }

    .nav-top .navbar-collapse .nav-link {
        padding: 13px 6px !important;
        font-size: 15px;
        border-radius: 0;
    }

    .nav-top .navbar-collapse .nav-link:hover {
        background: transparent;
        color: #2b76ff;
    }

    .nav-top .navbar-collapse .nav-item.active .nav-link::after {
        display: none;
    }

    .nav-top .navbar-collapse .form-inline {
        margin-left: 0;
        margin-top: 12px;
    }

    .nav-top .navbar-collapse .form-inline .form-control {
        flex: 1;
        width: auto;
    }
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler img {
    width: 24px;
    height: 24px;
    display: block;
}

/* 占位 spacer，避免 fixed 导航遮挡内容 */
.nav-spacer {
    width: 100%;
    height: 60px;
}

.form-inline .form-control {
    border-radius: 20px 0 0 20px;
    border-right: 0;
    padding-left: 14px;
    height: 38px;
    border-color: #e2e6ee;
}

.form-inline .form-control:focus {
    box-shadow: none;
    border-color: #2b76ff;
}

.form-inline .btn {
    border-radius: 0 20px 20px 0;
    height: 38px;
    padding: 0 18px;
    border-color: #2b76ff;
    color: #2b76ff;
    font-size: 14px;
}

.form-inline .btn:hover {
    background: #2b76ff;
    color: #fff;
}

/* ==========================================================================
   首页 - 轮播图
   ========================================================================== */
.slide_box {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px 0 rgb(62 61 80 / 6%);
    background: #fff;
}

.slide_box .carousel-item img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.slide_box .carousel-indicators {
    margin-bottom: 8px;
}

.slide_box .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .6);
    border: 0;
    margin: 0 4px;
}

.slide_box .carousel-indicators li.active {
    background-color: #fff;
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   文章卡片
   ========================================================================== */
.home-main {
    margin-top: 24px;
    margin-bottom: 30px;
}

.home-main .col-12 > a > .article_item,
.home-main .article_item {
    margin-top: 16px;
}

.home-main .col-12 > a:first-child .article_item {
    margin-top: 0;
}

.home-side {
    padding-top: 16px;
}

.home-side .card + .card {
    margin-top: 20px;
}

.side-recommend .list-group-item {
    border: 0;
    border-bottom: 1px solid #f2f3f7;
    padding: 12px 18px;
    font-size: 14px;
    background: transparent;
    transition: background .2s ease;
}

.side-recommend .list-group-item:last-child {
    border-bottom: 0;
}

.side-recommend .list-group-item:hover {
    background: #f7f9fc;
}

.side-recommend .list-group-item a {
    color: #444;
    display: block;
}

.side-recommend .list-group-item a:hover {
    color: #2b76ff;
}

.article_item {
    background-color: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px 0 rgb(62 61 80 / 5%);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid rgba(0, 0, 0, .02);
}

.article_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px 0 rgb(62 61 80 / 10%);
}

.article_item h5 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article_desc {
    color: #666;
    font-size: 15px;
    margin-top: 12px;
    line-height: 1.7;
}

.article_desc .article_desc_i {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.article_info {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.article_info .info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.article_info img {
    width: 18px;
    height: 18px;
    opacity: .7;
}

/* ==========================================================================
   分类侧栏 / 博客分类
   ========================================================================== */
.blogs-main {
    margin-top: 24px;
    margin-bottom: 40px;
}

.blog-side-list {
    width: 100%;
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px 0 rgb(62 61 80 / 5%);
    background: #fff;
    border: 0;
}

.blog-side-list .list-group-item {
    border: 0;
    border-bottom: 1px solid #f2f3f7;
    padding: 13px 18px;
    font-size: 14px;
    background: #fff;
    transition: background .2s ease, color .2s ease;
}

.blog-side-list .list-group-item:last-child {
    border-bottom: 0;
}

.blog-side-list .list-group-item a {
    color: #444;
    display: block;
}

.blog-side-list .list-group-item:hover {
    background: #f7f9fc;
}

.blog-side-list .list-group-item.active {
    background: linear-gradient(90deg, #2b76ff, #4b8dff);
}

.blog-side-list .list-group-item.active a {
    color: #fff;
    font-weight: 600;
}

.blogs-card {
    width: 100%;
    margin-top: 30px;
}

.blogs-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #2b76ff;
    line-height: 1.2;
}

.blogs-hr {
    border-top: 1px solid #f0f2f7;
    margin: 12px 0 6px;
}

.blogs-list .article_item {
    margin-top: 12px;
    box-shadow: none;
    border: 1px solid #eef0f4;
    padding: 18px 20px;
}

.blogs-list .article_item:hover {
    border-color: #d6e2f7;
    box-shadow: 0 4px 14px rgba(43, 118, 255, .06);
}

.blog-type {
    display: flex;
    flex-wrap: wrap;
}

.type-link {
    padding: 12px;
}

.blog-link {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
}

.blog-link-active {
    font-weight: 600;
    color: #fff;
}

.side-list .list-group-item {
    border: 0;
    border-bottom: 1px solid #f0f2f7;
    padding: 12px 14px;
    font-size: 14px;
    background: transparent;
}

.side-list .list-group-item:last-child {
    border-bottom: 0;
}

.side-list .list-group-item a {
    color: #444;
    display: block;
}

.side-list .list-group-item.active {
    background: linear-gradient(90deg, #2b76ff, #4b8dff);
    border-radius: 8px;
    border: 0;
}

.side-list .list-group-item.active a {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   卡片（Bootstrap card 增强）
   ========================================================================== */
.card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px 0 rgb(62 61 80 / 5%);
    background: #fff;
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f2f7;
    font-weight: 600;
    font-size: 15px;
    color: #222;
    padding: 14px 18px;
}

.card-body {
    padding: 18px;
}

/* ==========================================================================
   详情页
   ========================================================================== */
.details-main {
    margin-top: 24px;
    margin-bottom: 60px;
}

.details-breadcrumb {
    margin-bottom: 16px;
}

.rf_box {
    height: 100%;
}

.details-side {
    position: sticky;
    top: 84px;
}

.details-desc-block {
    margin-bottom: 24px;
}

.details-desc-card {
    width: 100%;
    border: 0;
    background: #fff;
}

.details-desc-card .card-body {
    padding: 16px 18px 6px;
}

.details-desc-card .card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.details-msg {
    padding: 6px 18px 16px;
    box-sizing: border-box;
    font-size: 14px;
    color: #555;
}

.details-recommend .detail_top {
    margin-bottom: 12px;
}

.details-recommend .side-list {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px 0 rgb(62 61 80 / 5%);
    background: #fff;
}

.detail-md-9 {
    padding-right: 15px;
}

.breadcrumb {
    background: #fff !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(62, 61, 80, .04);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #bbb;
}

.breadcrumb-item a {
    color: #666;
}

.breadcrumb-item.active a,
.breadcrumb-item.active {
    color: #2b76ff;
}

.detail_top h5 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #2b76ff;
    line-height: 1.2;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
    background-color: #fff;
    margin-top: 60px;
    border-top: 1px solid #eef0f4;
}

.footer-container {
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 30px;
}

.footer-intro {
    color: #6b7280;
    line-height: 1.9;
    font-size: 14px;
}

.footer-nav-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.footer-nav-ul li {
    padding-right: 0;
}

.footer-nav-ul li a {
    color: #4b5563;
    font-size: 14px;
    line-height: 24px;
}

.footer-nav-ul li a:hover {
    color: #2b76ff;
}

.footer-contact {
    text-align: right;
}

.footer-contact img {
    width: 116px;
    height: auto;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    background: #fff;
    padding: 5px;
}

.footer-contact-tip {
    margin-top: 8px;
    font-size: 12.5px;
    color: #9ca3af;
    letter-spacing: .5px;
}

/* 移动端：二维码区居中并留出上间距 */
@media (max-width: 765px) {
    .footer-contact {
        text-align: center;
        margin-top: 26px;
    }
}

.footer-wx {
    background-color: #2b76ff;
    padding: 15px;
    border-radius: 8px;
    width: 180px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
}

.footer-im {
    background-color: #f0f2f7;
    padding: 15px;
    border-radius: 8px;
    width: 180px;
    box-sizing: border-box;
    text-align: center;
    margin-top: 15px;
    color: #2b76ff;
}

.footer-copyright {
    background-color: #f7f8fa;
    border-top: 1px solid #eef0f4;
    padding: 16px 0;
}

.footer-copyright .copyright {
    margin: 0 auto;
    text-align: center;
}

.footer-copyright .copyright span {
    display: inline-block;
    font-size: 13px;
    color: #666;
    margin: 0 12px;
    line-height: 24px;
}

.footer-copyright .copyright a {
    color: #666;
}

/* ==========================================================================
   搜索页
   ========================================================================== */
.search-main {
    margin-top: 24px;
    margin-bottom: 40px;
}

.search-card {
    width: 100%;
    margin-top: 0;
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #2b76ff;
    line-height: 1.2;
}

.search-kw {
    color: #2b76ff;
    font-weight: 500;
    margin-left: 6px;
    font-size: 15px;
}

.search-side {
    padding-top: 0;
    position: sticky;
    top: 84px;
}

.search-side .card + .card {
    margin-top: 20px;
}

.search-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.search-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: .5;
}

.search-empty p {
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   arco 组件（page.html）
   ========================================================================== */
.pages-main {
    margin-top: 24px;
    margin-bottom: 60px;
}

.pages-box {
    overflow: hidden;
}

.pages-box .arco-col-5 .arco-affix {
    max-height: calc(100vh - 450px);
    overflow-y: auto;
    transition: max-height 0.2s ease;
}

.pages-box .arco-col-5 .arco-affix::-webkit-scrollbar {
    width: 4px;
}

.pages-box .arco-col-5 .arco-affix::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.pages-box .arco-col-5 .arco-affix::-webkit-scrollbar-track {
    background: transparent;
}

.pages-box .arco-card-body{
    padding: 0;
}
/* ==========================================================================
   富文本内容（msgBox）
   ========================================================================== */
.msgBox h2 {
    outline: none;
    font-weight: 700;
    color: #333;
}

.msgBox blockquote {
    margin: 20px 0;
    padding: 0 1.2em;
    line-height: 2em;
    background-color: var(--md-theme-bg-color-inset);
    border-left: 5px solid #35b378;
    display: block;
}

.msgBox blockquote h3 {
    font-size: 1.25em;
}

.msgBox img {
    width: 100%;
    border-radius: 6px;
}

.msgBox a {
    color: #2d8cf0;
}

.msgBox ol,
.msgBox ul {
    margin: 0.6em 0;
    padding-left: 1.6em;
}

.msgBox ul > li {
    list-style: inherit;
}

.arco-card-body ul {
    list-style: initial;
}

.arco-card-body ul li ul {
    list-style: circle;
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound-main {
    margin-top: 30px;
    margin-bottom: 40px;
}

.notfound-card {
    width: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notfound-card .card-body {
    width: 100%;
    padding: 20px;
}

.notfound-wrap {
    text-align: center;
    padding: 60px 20px;
}

.notfound-code {
    font-size: 96px;
    font-weight: 800;
    background: linear-gradient(135deg, #2b76ff, #6ea8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: 4px;
}

.notfound-title {
    font-size: 20px;
    color: #333;
    margin-top: 18px;
    font-weight: 500;
}

.notfound-desc {
    color: #999;
    margin-top: 8px;
    font-size: 14px;
}

.notfound-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 10px 28px;
    background: #2b76ff;
    color: #fff;
    border-radius: 22px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(43, 118, 255, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.notfound-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(43, 118, 255, .4);
}

/* ==========================================================================
   响应式 - 平板 (765px ~ 985px)
   ========================================================================== */
@media (min-width: 765px) and (max-width: 985px) {
    .nav-top {
        height: 60px;
        box-sizing: border-box;
    }

    .footer-nav-ul {
        display: flex;
        justify-content: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-copyright .copyright span {
        margin: 0 8px;
    }

    .pages-box .arco-col-5 {
        display: none;
    }

    .pages-box .arco-col-19 {
        flex: 1;
        width: 100%;
    }
}

/* ==========================================================================
   响应式 - 手机 (<= 765px)
   ========================================================================== */
@media (max-width: 765px) {
    body {
        font-size: 14px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 使 row 负边距与容器内边距匹配，避免横向溢出 */
    .container > .row,
    .container-fluid > .row {
        margin-left: -12px;
        margin-right: -12px;
    }

    .container > .row > [class*="col-"],
    .container-fluid > .row > [class*="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 顶部导航 */
    .nav-top {
        height: 52px;
    }

    .nav-spacer {
        height: 52px;
    }

    .nav-top .navbar {
        padding: 0 12px;
        flex-wrap: nowrap;
    }

    .nav-top .navbar-brand {
        font-size: 18px;
        flex: 0 0 auto;
    }

    .navbar-toggler {
        width: 40px;
        height: 40px;
        padding: 4px;
        margin-left: auto;
    }

    .navbar-toggler img {
        width: 22px;
        height: 22px;
    }

    /* 折叠菜单：从顶部下拉，占据视口 */
    .navbar-collapse {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 52px);
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
        z-index: 999;
        animation: navFadeIn .22s ease;
    }

    @keyframes navFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    .navbar-collapse .navbar-nav .nav-item {
        margin-bottom: 4px;
        border-bottom: 1px solid #f2f3f7;
    }

    .navbar-collapse .navbar-nav .nav-item:last-child {
        border-bottom: 0;
    }

    .navbar-collapse .nav-link {
        display: block;
        padding: 14px 8px !important;
        font-size: 16px;
        color: #333;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-item.active .nav-link {
        background: transparent;
        color: #2b76ff;
    }

    .navbar-collapse .form-inline {
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: 6px;
        margin-left: 0;
        flex: 1 1 auto;
    }

    .navbar-collapse .form-inline .form-control {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .navbar-collapse .form-inline .btn {
        flex: 0 0 auto;
    }

    /* 轮播 */
    .slide_box {
        margin-top: 12px;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(62, 61, 80, .06);
    }

    .slide_box .carousel-indicators li {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }

    .slide_box .carousel-indicators li.active {
        width: 16px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 32px;
        opacity: .5;
    }

    /* 主区域 */
    main {
        margin-top: 12px !important;
    }

    .home-main {
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .home-main .article_item {
        margin-top: 12px;
    }

    .home-side {
        padding-top: 12px;
    }

    .home-side .card + .card {
        margin-top: 14px;
    }

    /* 文章卡片 */
    .article_item {
        padding: 16px;
        border-radius: 10px;
        margin-top: 12px !important;
        box-shadow: 0 3px 12px rgba(62, 61, 80, .05);
    }

    .article_item:hover {
        transform: none;
    }

    .article_item h5 {
        font-size: 16px;
        line-height: 1.5;
    }

    .article_desc {
        font-size: 13px;
        margin-top: 8px;
        line-height: 1.65;
        color: #777;
    }

    .article_desc .article_desc_i {
        -webkit-line-clamp: 2;
    }

    .article_info {
        margin-top: 12px;
        font-size: 12px;
        gap: 4px 12px;
        color: #999;
    }

    .article_info img {
        width: 14px;
        height: 14px;
    }

    /* 侧栏在移动端堆叠，卡片间距缩小 */
    .col-lg-3 .card,
    .col-md-3 .card,
    .col-3 .card {
        margin-top: 16px !important;
    }

    .card-header {
        padding: 12px 14px;
        font-size: 14px;
    }

    .card-body {
        padding: 12px 14px;
    }

    /* 分类列表：移动端改为横向滑动 */
    .blogs-main {
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .blog-side-list {
        margin-left: -12px;
        margin-right: -12px;
    }

    .blogs-card {
        margin-top: 0;
        border-radius: 10px;
    }

    .blogs-card .card-body {
        padding: 12px 14px;
    }

    .blogs-title {
        font-size: 16px;
        padding-left: 8px;
        border-left-width: 3px;
        margin-bottom: 6px;
    }

    .blogs-hr {
        margin: 8px 0 4px;
    }

    .blogs-list .article_item {
        margin-top: 10px;
        padding: 14px;
        border-radius: 10px;
    }

    .blog-side-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 12px;
        gap: 8px;
        margin: 0 -12px 8px;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .blog-side-list::-webkit-scrollbar {
        display: none;
    }

    .blog-side-list .list-group-item {
        flex: 0 0 auto;
        border: 1px solid #e6e8ef !important;
        border-radius: 18px !important;
        padding: 6px 14px !important;
        font-size: 13px;
        background: #fff;
        white-space: nowrap;
        margin: 0 !important;
    }

    .blog-side-list .list-group-item.active {
        background: linear-gradient(90deg, #2b76ff, #4b8dff) !important;
        border-color: transparent !important;
    }

    .blog-side-list .list-group-item a {
        color: #555;
    }

    .blog-side-list .list-group-item.active a {
        color: #fff;
    }

    /* 详情页 */
    .details-main {
        margin-top: 8px;
        margin-bottom: 24px;
    }

    .details-breadcrumb {
        margin-bottom: 10px;
    }

    .details-side {
        position: static;
        margin-top: 16px;
    }

    .details-desc-block {
        margin-bottom: 14px;
    }

    .details-desc-card .card-body {
        padding: 14px 14px 4px;
    }

    .details-desc-card .card-text {
        font-size: 13px;
        line-height: 1.75;
    }

    .details-msg {
        padding: 4px 14px 14px;
        font-size: 13px;
    }

    .details-recommend .side-list {
        border-radius: 10px;
    }

    .detail-md-9 {
        padding: 0;
    }

    .detail-md-9 .col-md-9 {
        padding: 0;
    }

    .title_box .title {
        font-size: 22px;
        line-height: 1.4;
    }

    .breadcrumb {
        padding: 8px 12px;
        font-size: 12px;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .breadcrumb-item + .breadcrumb-item {
        padding-left: 6px;
    }

    /* 富文本 */
    .msgBox {
        font-size: 15px;
        line-height: 1.8;
    }

    .msgBox blockquote {
        margin: 14px 0;
        padding: 8px 14px;
        line-height: 1.8;
        font-size: 14px;
    }

    .msgBox img {
        border-radius: 4px;
    }

    /* 页脚 */
    .footer {
        margin-top: 30px;
    }

    .footer-container {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .footer-container .row > div {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    .footer-container .row > div + div {
        margin-top: 24px;
    }

    .footer-intro {
        font-size: 13px;
        line-height: 1.8;
        text-align: left;
        color: #777;
    }

    .footer-nav-ul {
        justify-content: center;
        line-height: 36px;
        margin-top: 14px;
    }

    .footer-nav-ul li {
        padding: 0 10px;
    }

    .footer-nav-ul li a {
        font-size: 13px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact img {
        height: 130px !important;
        width: 130px;
        object-fit: contain;
    }

    .footer-contact-tip {
        font-size: 12px;
        margin-top: 8px;
    }

    .footer-copyright {
        padding: 14px 12px;
    }

    .footer-copyright .copyright {
        line-height: 1.6;
    }

    .footer-copyright .copyright span {
        display: block;
        width: 100%;
        margin: 0 0 4px 0;
        font-size: 12px;
        color: #888;
    }

    /* 搜索页 */
    .search-main {
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .search-card {
        margin-top: 0;
        border-radius: 10px;
    }

    .search-card .card-body {
        padding: 12px 14px;
    }

    .search-title {
        font-size: 16px;
        padding-left: 8px;
        margin-bottom: 6px;
    }

    .search-kw {
        font-size: 13px;
        margin-left: 4px;
    }

    .search-side {
        position: static;
        padding-top: 12px;
    }

    .search-side .card + .card {
        margin-top: 14px;
    }

    .search-empty {
        padding: 40px 16px;
    }

    .search-empty-icon {
        font-size: 32px;
    }

    /* pages-box */
    .pages-main {
        margin-top: 8px;
        margin-bottom: 24px;
    }

    .pages-box {
        padding: 0;
    }

    .pages-box .arco-col-5 {
        display: none;
    }

    .pages-box .arco-col-19 {
        flex: 1;
        width: 100%;
    }

    /* 404 */
    .notfound-main {
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .notfound-card {
        min-height: 380px;
        border-radius: 12px;
    }

    .notfound-wrap {
        padding: 40px 16px;
    }

    .notfound-code {
        font-size: 72px;
        letter-spacing: 2px;
    }

    .notfound-title {
        font-size: 17px;
        margin-top: 14px;
    }

    .notfound-desc {
        font-size: 13px;
    }

    .notfound-btn {
        padding: 9px 24px;
        font-size: 13px;
        margin-top: 22px;
    }
}

/* ==========================================================================
   响应式 - 小屏手机 (<= 380px)
   ========================================================================== */
@media (max-width: 380px) {
    .article_item {
        padding: 14px;
    }

    .article_item h5 {
        font-size: 15px;
    }

    .nav-top .navbar-brand {
        font-size: 17px;
    }
}

/* ==========================================================================
   横屏 / 大屏优化
   ========================================================================== */
@media (min-width: 992px) {
    .article_item {
        padding: 26px 28px;
    }
}
