/* ===== Homepage Q&A / forum layout ===== */
@media (min-width: 1200px) {
    body.home .site-allnav {
        display: none !important;
    }

    .wrap.container.hqa-home {
        align-items: flex-start;
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .hqa-sidebar {
        background: #fff;
        border: 1px solid #e8eef7;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(30, 68, 120, .045);
        flex: 0 0 200px;
        overflow: hidden;
        width: 200px;
    }

    .hqa-main {
        flex: 1 1 0%;
        float: none;
        margin: 0;
        max-width: none;
        min-width: 0;
        width: auto !important;
    }
}

.hqa-nav {
    padding: 8px 0;
}

.hqa-nav-group {
    border-bottom: 1px solid #f0f3f8;
    margin: 0 15px;
    padding: 0 0 7px;
}

.hqa-nav-group:last-child {
    border-bottom: 0;
}

.hqa-nav-head {
    align-items: center;
    color: #1f2d3d;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    line-height: 1.5;
    padding: 13px 0 7px;
}

.hqa-nav-head i {
    color: #4a7df0;
    flex: 0 0 16px;
    font-size: 14px;
    text-align: center;
}

.hqa-nav-group a {
    color: #5a6b7b;
    display: block;
    font-size: 13px;
    line-height: 1.5;
    padding: 5px 0 5px 24px;
    text-decoration: none;
    transition: color .15s;
}

.hqa-nav-group a:hover,
.hqa-nav-group a.is-active {
    color: #4a7df0;
}

.hqa-nav-group a.is-active {
    font-weight: 600;
}

.hqa-panel {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(30, 68, 120, .045);
    overflow: hidden;
}

.hqa-page-title {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.hqa-head {
    align-items: center;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hqa-tabs {
    display: flex;
    gap: 28px;
}

.hqa-tab {
    color: #5a6b7b;
    display: block;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 2px 13px;
    position: relative;
    text-decoration: none;
}

.hqa-tab:hover {
    color: #4a7df0;
}

.hqa-tab.is-active {
    color: #4a7df0;
    font-weight: 700;
}

.hqa-tab.is-active:after {
    background: #4a7df0;
    border-radius: 2px;
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.hqa-ask {
    align-items: center;
    background: #f0f6ff;
    border-radius: 16px;
    color: #4a7df0;
    display: inline-flex;
    font-size: 13px;
    gap: 5px;
    line-height: 30px;
    padding: 0 14px;
    text-decoration: none;
    white-space: nowrap;
}

.hqa-ask:hover {
    background: #4a7df0;
    color: #fff;
}

.hqa-list {
    padding: 0 20px;
}

.hqa-item {
    border-bottom: 1px solid #f0f3f8;
    padding: 17px 0;
}

.hqa-item:last-child {
    border-bottom: 0;
}

.hqa-title {
    align-items: flex-start;
    display: flex;
    font-size: 16px;
    font-weight: 600;
    gap: 7px;
    line-height: 1.65;
    margin: 0 0 6px;
}

.hqa-title a {
    color: #20303f;
    text-decoration: none;
}

.hqa-title a:hover {
    color: #4a7df0;
}

.hqa-fire {
    color: #ff7043;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.9;
}

.hqa-excerpt {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #7b8794;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 9px;
    overflow: hidden;
}

.hqa-meta {
    align-items: center;
    color: #8a97a5;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px 14px;
}

.hqa-author {
    align-items: center;
    color: #5a6b7b;
    display: inline-flex;
    gap: 6px;
    text-decoration: none;
}

.hqa-author:hover {
    color: #4a7df0;
}

.hqa-avatar {
    border-radius: 50%;
    height: 22px;
    width: 22px;
}

.hqa-date {
    color: #8a97a5;
}

.hqa-cat {
    background: #f0f6ff;
    border-radius: 3px;
    color: #4a7df0;
    font-size: 11px;
    line-height: 20px;
    padding: 0 7px;
    text-decoration: none;
}

.hqa-cat:hover {
    background: #e1edff;
}

.hqa-counts {
    display: inline-flex;
    gap: 14px;
    margin-left: auto;
    white-space: nowrap;
}

.hqa-counts i {
    margin-right: 4px;
}

.hqa-empty {
    color: #8a97a5;
    padding: 64px 20px;
    text-align: center;
}

.hqa-empty > i {
    color: #c7d2df;
    font-size: 38px;
    margin-bottom: 10px;
}

.hqa-empty p {
    color: #5a6b7b;
    font-size: 15px;
    margin: 0 0 5px;
}

.hqa-empty span {
    display: block;
    font-size: 13px;
    margin-bottom: 14px;
}

.hqa-empty a {
    background: #4a7df0;
    border-radius: 16px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    line-height: 32px;
    padding: 0 18px;
    text-decoration: none;
}

.hqa-empty a:hover {
    background: #3768d8;
}

.hqa-foot {
    border-top: 1px solid #f0f3f8;
    padding: 13px 20px;
    text-align: center;
}

.hqa-foot a {
    color: #4a7df0;
    font-size: 13px;
    text-decoration: none;
}

.hqa-foot a:hover {
    color: #3768d8;
}

@media (max-width: 1199px) {
    .hqa-sidebar {
        display: none;
    }

    .wrap.container.hqa-home {
        display: block;
    }

    .hqa-main {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .wrap.container.hqa-home {
        margin-top: 12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hqa-head {
        padding: 0 14px;
    }

    .hqa-tabs {
        gap: 22px;
    }

    .hqa-tab {
        font-size: 15px;
        padding: 13px 1px 11px;
    }

    .hqa-ask {
        font-size: 12px;
        line-height: 28px;
        padding: 0 10px;
    }

    .hqa-list {
        padding: 0 14px;
    }

    .hqa-item {
        padding: 14px 0;
    }

    .hqa-title {
        font-size: 15px;
    }

    .hqa-excerpt {
        -webkit-line-clamp: 2;
        font-size: 12.5px;
    }

    .hqa-counts {
        gap: 12px;
        margin-left: 0;
        width: 100%;
    }

    .hqa-empty {
        padding: 48px 16px;
    }
}

.hqa-panel.is-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

.hqa-head-cat {
    min-height: 56px;
}

.hqa-cat-heading {
    align-items: center;
    color: #1f2d3d;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.hqa-cat-heading > i {
    color: #4a7df0;
    font-size: 15px;
}

.hqa-cat-heading > span {
    color: #8a97a5;
    font-size: 12px;
    white-space: nowrap;
}

.hqa-cat-heading h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hqa-back {
    align-items: center;
    color: #4a7df0;
    display: inline-flex;
    font-size: 13px;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.hqa-back:hover {
    color: #3768d8;
}

@media (max-width: 767px) {
    .hqa-head-cat {
        padding: 0 14px;
    }

    .hqa-cat-heading h2 {
        font-size: 16px;
    }

    .hqa-back {
        font-size: 12px;
    }
}

/* ===== Image-mode category navigation (level 2/3) ===== */
.cat-img-nav {
    background: #fbfcfe;
    border: 1px solid #e8eef7;
    border-radius: 12px;
    margin: 0 0 14px;
    padding: 14px 16px 16px;
}

.cat-img-nav-head {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.cat-img-nav-title {
    color: #1f2d3d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.cat-img-nav-desc {
    color: #8a97a5;
    font-size: 12px;
}

.cat-img-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.cat-img-card {
    background: #fff;
    border: 1px solid #e9eef6;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.cat-img-card:hover {
    border-color: #c3d5ff;
    box-shadow: 0 6px 18px rgba(30, 68, 120, .1);
    transform: translateY(-1px);
}

.cat-img-card.is-active {
    border-color: #4a7df0;
    box-shadow: 0 0 0 2px rgba(74, 125, 240, .12);
}

.cat-img-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef3fb, #e3ebf7);
    display: block;
    overflow: hidden;
}

.cat-img-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    width: 100%;
}

.cat-img-card:hover .cat-img-thumb img {
    transform: scale(1.04);
}

.cat-img-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 9px;
}

.cat-img-name {
    color: #20303f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-img-meta {
    color: #8a97a5;
    font-size: 11px;
    line-height: 1.4;
}

.cat-img-level {
    background: rgba(31, 45, 61, .76);
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    left: 6px;
    line-height: 18px;
    padding: 0 6px;
    position: absolute;
    top: 6px;
    z-index: 1;
}

@media (max-width: 767px) {
    .cat-img-nav {
        margin-bottom: 10px;
        padding: 12px;
    }

    .cat-img-nav-head {
        gap: 6px;
        margin-bottom: 10px;
    }

    .cat-img-nav-title {
        font-size: 15px;
    }

    .cat-img-nav-desc {
        font-size: 11px;
    }

    .cat-img-grid {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cat-img-info {
        padding: 7px 8px;
    }

    .cat-img-name {
        font-size: 12px;
    }
}

/* ===== Level-2 category text labels ===== */
.cat-text-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-text-grid + .cat-img-grid {
    margin-top: 12px;
}

.cat-text-card {
    align-items: center;
    background: #173a8a;
    border: 1px solid #173a8a;
    border-radius: 7px;
    color: #fff;
    display: inline-flex;
    gap: 8px;
    line-height: 1.4;
    padding: 8px 12px;
    text-decoration: none;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.cat-text-card:hover {
    background: #1e4bb8;
    border-color: #1e4bb8;
    color: #fff;
}

.cat-text-card.is-active {
    box-shadow: 0 0 0 2px rgba(143, 179, 255, .55);
}

.cat-text-level {
    background: rgba(255, 255, 255, .15);
    border-radius: 3px;
    color: #dce8ff;
    font-size: 10px;
    line-height: 18px;
    padding: 0 5px;
}

.cat-text-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.cat-text-count {
    color: #bfd2ff;
    font-size: 11px;
}

@media (max-width: 767px) {
    .cat-text-grid {
        gap: 6px;
    }

    .cat-text-card {
        gap: 6px;
        padding: 7px 10px;
    }

    .cat-text-name {
        font-size: 12px;
    }

    .cat-text-count {
        font-size: 10px;
    }
}

/* ===== 4414-style forum category pages ===== */
body.category .wrap.container {
    align-items: flex-start;
}

body.category .main {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100% !important;
}

body.category .sidebar {
    display: none !important;
}

.forum-sort-tabs {
    align-items: center;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(17, 28, 55, .04);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 9px 14px;
}

.forum-sort-tabs a {
    border-radius: 4px;
    color: #4a7df0;
    font-size: 13px;
    line-height: 1.5;
    padding: 4px 10px;
    text-decoration: none;
}

.forum-sort-tabs a:hover {
    background: #eef4ff;
}

.forum-sort-tabs a.active {
    background: #4a7df0;
    color: #fff;
}

.forum-thread-list {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(17, 28, 55, .04);
    overflow: hidden;
}

.forum-thread-head,
.forum-thread {
    display: grid;
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr) 110px 160px;
    padding: 10px 16px;
}

.forum-thread-head {
    background: #f7f9fc;
    border-bottom: 1px solid #eef2f7;
    color: #7b8794;
    font-size: 12px;
    line-height: 1.5;
}

.forum-thread-head .forum-col-topic {
    grid-column: 1 / 3;
}

.forum-thread-head .forum-col-stats {
    grid-column: 3;
    text-align: right;
}

.forum-thread-head .forum-col-last {
    grid-column: 4;
    text-align: right;
}

.forum-thread {
    align-items: center;
    border-bottom: 1px solid #f0f3f8;
    padding-bottom: 12px;
    padding-top: 12px;
}

.forum-thread:last-child {
    border-bottom: 0;
}

.forum-thread-avatar img {
    border-radius: 50%;
    display: block;
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.forum-thread-main {
    min-width: 0;
}

.forum-thread-title {
    color: #1f2d3d;
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-thread-title:hover {
    color: #4a7df0;
}

.forum-thread-meta {
    align-items: center;
    color: #8a97a5;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 4px 9px;
    margin-top: 4px;
}

.forum-thread-author,
.forum-thread-meta time {
    color: #8a97a5;
    text-decoration: none;
}

.forum-thread-cat {
    background: #f0f6ff;
    border-radius: 3px;
    color: #4a7df0;
    font-size: 11px;
    line-height: 18px;
    padding: 0 6px;
    text-decoration: none;
}

.forum-thread-stats {
    color: #8a97a5;
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: flex-end;
    white-space: nowrap;
}

.forum-thread-stats i {
    margin-right: 4px;
}

.forum-thread-last {
    color: #8a97a5;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    gap: 2px;
    line-height: 1.5;
    text-align: right;
}

.forum-thread-last a {
    color: #4a7df0;
    text-decoration: none;
}

.forum-thread-last a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .forum-thread-head {
        display: none;
    }

    .forum-thread {
        gap: 8px;
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 11px 12px;
    }

    .forum-thread-avatar img {
        height: 36px;
        width: 36px;
    }

    .forum-thread-stats,
    .forum-thread-last {
        grid-column: 2;
        justify-content: flex-start;
        text-align: left;
    }

    .forum-thread-last {
        flex-direction: row;
        gap: 8px;
    }

    .forum-thread-title {
        font-size: 14px;
        white-space: normal;
    }
}

.forum-thread-title {
    color: #2f6fed;
}

.forum-thread-title:hover {
    color: #173a8a;
}

/* ===== Left navigation spacing ===== */
.hqa-nav {
    padding: 12px 0;
}

.hqa-nav-group {
    padding-bottom: 12px;
}

.hqa-nav-head {
    padding-bottom: 11px;
    padding-top: 16px;
}

.hqa-nav-group a {
    padding-bottom: 8px;
    padding-top: 8px;
}

/* ===== Larger navigation text ===== */
.hqa-nav-head {
    font-size: 16px;
}

.hqa-nav-group a {
    font-size: 15px;
}

@media (min-width: 1200px) {
    .site-header .navbar-collapse .nav > li > a {
        font-size: 16px;
    }
}

/* Show the grouped "网站导航" trigger on the homepage too */
@media (min-width: 1200px) {
    body.home .site-allnav {
        display: block !important;
    }
}

/* Hide the grouped "网站导航" trigger on the homepage (left nav is used there) */
@media (min-width: 1200px) {
    body.home .site-allnav {
        display: none !important;
    }
}

/* ===== Mobile homepage forum mode ===== */
.mobile-forum-title,
.mobile-forum-section,
.hqa-mobile-badge {
    display: none;
}

@media (max-width: 767px) {
    .wrap.container.hqa-home {
        padding-left: 0;
        padding-right: 0;
        margin-top: 10px;
    }

    .hqa-panel--forum {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hqa-panel--forum .hqa-head {
        display: none;
    }

    .hqa-panel--forum .hqa-list {
        padding: 0;
    }

    .mobile-forum-title {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #eef1f5;
        color: #333;
        display: flex;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.5;
        padding: 12px 15px 12px 19px;
        position: relative;
    }

    .mobile-forum-title::before {
        background: #e87817;
        border-radius: 2px;
        content: "";
        height: 18px;
        left: 10px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
    }

    .hqa-panel--forum .hqa-item {
        border-bottom: 1px solid #f0f2f5;
        padding: 14px 15px;
    }

    .hqa-panel--forum .hqa-item:last-child {
        border-bottom: 0;
    }

    .hqa-panel--forum .hqa-title {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        font-size: 17px;
        font-weight: 400;
        gap: 5px;
        line-height: 1.55;
        margin: 0;
    }

    .hqa-panel--forum .hqa-title a {
        color: #222;
    }

    .hqa-panel--forum .hqa-fire {
        display: none;
    }

    .hqa-mobile-badge {
        background: #67c23a;
        border-radius: 3px;
        color: #fff;
        display: inline-block;
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
        padding: 0 5px;
    }

    .hqa-panel--forum .hqa-excerpt {
        display: none;
    }

    .hqa-panel--forum .hqa-meta {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
        margin-top: 6px;
    }

    .hqa-panel--forum .hqa-author,
    .hqa-panel--forum .hqa-date {
        display: none;
    }

    .hqa-panel--forum .hqa-cat {
        background: transparent;
        color: #999;
        font-size: 13px;
        line-height: 1.5;
        padding: 0;
    }

    .hqa-panel--forum .hqa-counts {
        color: #999;
        font-size: 12px;
        gap: 10px;
        margin-left: auto;
    }

    .hqa-panel--forum .hqa-counts i {
        font-size: 12px;
        margin-right: 3px;
    }

    .mobile-forum-section {
        background: #f5f6f7;
        display: block;
        margin-top: 10px;
    }

    .mobile-forum-section-title {
        background: #f5f6f7;
        border-bottom: 1px solid #e9edf2;
        color: #666;
        font-size: 15px;
        line-height: 1.5;
        padding: 10px 15px;
    }

    .mobile-forum-cards {
        background: #fff;
    }

    .mobile-forum-card {
        align-items: center;
        border-bottom: 1px solid #eef1f5;
        color: #333;
        display: flex;
        gap: 11px;
        padding: 13px 15px;
        text-decoration: none;
    }

    .mobile-forum-card:last-child {
        border-bottom: 0;
    }

    .mf-icon {
        align-items: center;
        background: #e9f8fd;
        border-radius: 6px;
        color: #49b9db;
        display: flex;
        flex: 0 0 42px;
        font-size: 20px;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .mf-main {
        flex: 1;
        min-width: 0;
    }

    .mf-top {
        align-items: baseline;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .mf-name {
        color: #333;
        font-size: 16px;
        font-weight: 600;
    }

    .mf-today {
        color: #f08a24;
        font-size: 12px;
    }

    .mf-meta {
        color: #999;
        display: block;
        font-size: 12px;
        margin-top: 4px;
    }

    .mf-arrow {
        color: #c4c9d0;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hqa-panel--forum .hqa-title {
        display: block;
        gap: 0;
    }

    .hqa-panel--forum .hqa-title > a {
        display: inline;
    }

    .hqa-mobile-badge {
        margin-left: 5px;
        vertical-align: middle;
    }
}

@media (max-width: 767px) {
    .hqa-panel--forum .hqa-list .hqa-item:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 767px) {
    .mobile-forum-groups {
        background: #fff;
    }

    .mfg {
        border-bottom: 1px solid #edf0f4;
    }

    .mfg:last-child {
        border-bottom: 0;
    }

    .mfg-head {
        align-items: center;
        color: #333;
        display: flex;
        font-size: 16px;
        font-weight: 600;
        gap: 8px;
        line-height: 1.5;
        padding: 12px 15px 6px;
    }

    .mfg-head i {
        color: #4a7df0;
        flex: 0 0 16px;
        font-size: 15px;
        text-align: center;
    }

    .mfg-item {
        align-items: center;
        color: #555;
        display: flex;
        font-size: 14px;
        justify-content: space-between;
        line-height: 1.5;
        padding: 8px 15px 8px 39px;
        text-decoration: none;
    }

    .mfg-item:hover {
        color: #2f6fed;
    }

    .mfg-item .fa-angle-right {
        color: #c4c9d0;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .mfg {
        border-bottom: 8px solid #f5f6f7;
    }

    .mfg:last-child {
        border-bottom: 0;
    }

    .mfg-head {
        background: #f5f6f7;
        border-bottom: 1px solid #e9edf2;
        color: #666;
        font-size: 15px;
        font-weight: 500;
        gap: 8px;
        line-height: 1.5;
        padding: 10px 15px;
    }

    .mfg-head i {
        color: #4a7df0;
        flex: 0 0 16px;
        font-size: 15px;
        text-align: center;
    }

    .mfg-item {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #eef1f5;
        color: #333;
        display: flex;
        gap: 11px;
        justify-content: flex-start;
        padding: 12px 15px;
        text-decoration: none;
    }

    .mfg-item:last-child {
        border-bottom: 0;
    }

    .mfg-item:hover {
        color: #333;
    }

    .mfg-icon {
        align-items: center;
        background: #56c2e2;
        border-radius: 6px;
        color: #fff;
        display: flex;
        flex: 0 0 42px;
        font-size: 20px;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .mfg-main {
        flex: 1;
        min-width: 0;
    }

    .mfg-top {
        align-items: baseline;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .mfg-name {
        color: #333;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
    }

    .mfg-today {
        color: #f08a24;
        font-size: 12px;
        line-height: 1.5;
    }

    .mfg-stats {
        color: #999;
        display: block;
        font-size: 12px;
        line-height: 1.5;
        margin-top: 3px;
    }

    .mfg-arrow {
        color: #c4c9d0;
        font-size: 16px;
        margin-left: auto;
    }
}

/* ===== Nested navigation levels ===== */
.hqa-nav-group a.nav-depth-1 {
    font-size: 14px;
    padding-left: 40px;
}

.hqa-nav-group a.nav-depth-2 {
    font-size: 13.5px;
    padding-left: 54px;
}

.site-allnav-group a.allnav-depth-1 {
    font-size: 12.5px;
    padding-left: 54px;
}

.site-allnav-group a.allnav-depth-2 {
    color: #666;
    font-size: 12px;
    padding-left: 66px;
}

@media (max-width: 767px) {
    .mfg-item.mfg-depth-1 {
        padding-left: 29px;
    }

    .mfg-item.mfg-depth-2 {
        padding-left: 43px;
    }
}

/* ===== Flat nested navigation alignment ===== */
.hqa-nav-group a.nav-depth-1,
.hqa-nav-group a.nav-depth-2 {
    font-size: 15px;
    padding-left: 24px;
}

.site-allnav-group a.allnav-depth-1,
.site-allnav-group a.allnav-depth-2 {
    color: #444;
    font-size: 13px;
    padding-left: 42px;
}

@media (max-width: 767px) {
    .mfg-item.mfg-depth-1,
    .mfg-item.mfg-depth-2 {
        padding-left: 15px;
    }
}

/* ===== 4414-style category layout: sidebar + title + filter/search ===== */
body.category .cat-forum-layout {
    align-items: flex-start;
    display: flex;
    gap: 20px;
}

body.category .cat-forum-layout > .main {
    flex: 1 1 0%;
    float: none;
    margin: 0;
    max-width: none;
    min-width: 0;
    width: auto !important;
}

body.category .cat-forum-layout > .hqa-sidebar {
    flex: 0 0 200px;
    margin: 0;
    width: 200px;
}

@media (min-width: 1200px) {
    body.category .cat-forum-layout .hqa-nav-group a.is-active {
        background: #4a7df0;
        border-radius: 4px;
        color: #fff;
        margin-left: -8px;
        padding-left: 32px;
        padding-right: 8px;
    }
}

@media (max-width: 1199px) {
    body.category .cat-forum-layout {
        display: block;
    }

    body.category .cat-forum-layout > .hqa-sidebar {
        display: none !important;
    }
}

.forum-category-head {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(17, 28, 55, .04);
    margin: 0 0 12px;
    padding: 16px 20px;
}

.forum-category-head h1 {
    color: #1f2d3d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.forum-category-desc {
    color: #7b8794;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 6px;
}

.forum-category-desc p {
    margin: 0;
}

.forum-filter-panel {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #e9edf3;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 12px;
    padding: 12px 16px;
}

.forum-filter-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.forum-filter-label {
    color: #5a6b7b;
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}

.forum-filter-link {
    border-radius: 4px;
    color: #4a7df0;
    font-size: 13px;
    line-height: 1.5;
    padding: 4px 8px;
    text-decoration: none;
}

.forum-filter-link:hover,
.forum-filter-link.is-active {
    background: #4a7df0;
    color: #fff;
}

.forum-search-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.forum-search-form input[type="search"] {
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    height: 36px;
    outline: 0;
    padding: 0 12px;
    width: 260px;
}

.forum-search-form button {
    background: #4a7df0;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    height: 36px;
    padding: 0 20px;
}

@media (max-width: 767px) {
    .forum-category-head {
        padding: 12px 14px;
    }

    .forum-category-head h1 {
        font-size: 18px;
    }

    .forum-filter-panel {
        padding: 10px 12px;
    }

    .forum-search-form {
        margin-left: 0;
        width: 100%;
    }

    .forum-search-form input[type="search"] {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

/* ===== Category search-only filter panel ===== */
.forum-filter-panel--search .forum-search-form {
    margin-left: 0;
}

/* ===== Mobile homepage: PC article board adaptation ===== */
@media (max-width: 767px) {
    .hqa-panel--forum .mobile-forum-title {
        display: none !important;
    }

    .hqa-panel--forum {
        background: #fff;
        border: 1px solid #e8eef7;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(30, 68, 120, .045);
        margin: 0 12px;
        overflow: hidden;
    }

    .hqa-panel--forum .hqa-head {
        display: flex;
        padding: 0 14px;
    }

    .hqa-panel--forum .hqa-list {
        padding: 0;
    }

    .hqa-panel--forum .hqa-item {
        border-bottom: 1px solid #f0f2f5;
        padding: 14px 15px;
    }

    .hqa-panel--forum .hqa-title {
        color: #1f2d3d;
        display: block;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.55;
        margin: 0;
    }

    .hqa-panel--forum .hqa-title > a {
        color: #1f2d3d;
        display: inline;
    }

    .hqa-panel--forum .hqa-title > a:hover {
        color: #4a7df0;
    }

    .hqa-panel--forum .hqa-fire {
        color: #f08a24;
        display: inline-block;
        margin-right: 4px;
    }

    .hqa-panel--forum .hqa-excerpt {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        color: #5a6b7b;
        display: -webkit-box;
        font-size: 13.5px;
        line-height: 1.7;
        margin: 6px 0 0;
        overflow: hidden;
    }

    .hqa-panel--forum .hqa-meta {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .hqa-panel--forum .hqa-author,
    .hqa-panel--forum .hqa-date {
        display: inline-flex;
        align-items: center;
        color: #8a97a5;
        font-size: 12px;
        gap: 5px;
    }

    .hqa-panel--forum .hqa-avatar {
        border-radius: 50%;
        height: 20px;
        width: 20px;
    }

    .hqa-panel--forum .hqa-cat {
        background: #f0f6ff;
        border-radius: 3px;
        color: #4a7df0;
        font-size: 11px;
        line-height: 18px;
        padding: 0 6px;
    }

    .hqa-panel--forum .hqa-counts {
        color: #8a97a5;
        font-size: 12px;
        gap: 10px;
        margin-left: auto;
    }
}

/* ===== Category mobile collapsible sidebar ===== */
.cat-sidebar-mobile {
    display: none;
}

@media (max-width: 1199px) {
    .cat-sidebar-mobile {
        background: #fff;
        border: 1px solid #e8eef7;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(30, 68, 120, .045);
        display: block;
        margin: 0 0 12px;
        overflow: hidden;
    }

    .cat-sidebar-mobile > summary {
        align-items: center;
        color: #1f2d3d;
        cursor: pointer;
        display: flex;
        font-size: 15px;
        font-weight: 600;
        gap: 8px;
        list-style: none;
        padding: 12px 15px;
    }

    .cat-sidebar-mobile > summary::-webkit-details-marker {
        display: none;
    }

    .cat-sidebar-mobile > summary::after {
        color: #8a97a5;
        content: "▾";
        font-size: 12px;
        margin-left: auto;
    }

    .cat-sidebar-mobile[open] > summary {
        border-bottom: 1px solid #eef2f7;
    }

    .cat-sidebar-mobile[open] > summary::after {
        content: "▴";
    }

    .cat-sidebar-mobile .hqa-sidebar {
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: block !important;
        overflow: visible;
        width: 100%;
    }

    .cat-sidebar-mobile .hqa-nav {
        padding: 4px 0 8px;
    }

    .cat-sidebar-mobile .hqa-nav-group {
        margin: 0 14px;
    }

    .cat-sidebar-mobile .hqa-nav-group a {
        font-size: 13px;
        padding: 6px 0 6px 24px;
    }

    .cat-sidebar-mobile .hqa-nav-group a.is-active {
        background: #4a7df0;
        border-radius: 4px;
        color: #fff;
        margin-left: -8px;
        padding-left: 32px;
        padding-right: 8px;
    }
}

/* ===== Category layout fills the content column ===== */
body.category .cat-forum-layout {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}

/* ===== Mobile category sidebar readable size ===== */
@media (max-width: 1199px) {
    .cat-sidebar-mobile > summary {
        font-size: 16px;
        padding: 13px 16px;
    }

    .cat-sidebar-mobile .hqa-nav-group {
        margin: 0 16px;
    }

    .cat-sidebar-mobile .hqa-nav-head {
        font-size: 16px;
        padding: 14px 0 8px;
    }

    .cat-sidebar-mobile .hqa-nav-group a {
        font-size: 15px;
        line-height: 1.6;
        padding: 8px 0 8px 24px;
    }

    .cat-sidebar-mobile .hqa-nav-group a.is-active {
        padding-left: 32px;
        padding-right: 8px;
    }
}

/* ===== Homepage article load more ===== */
.hqa-foot-more {
    padding: 14px 20px;
}

.hqa-load-more {
    align-items: center;
    background: #4a7df0;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    gap: 6px;
    justify-content: center;
    line-height: 1.5;
    min-width: 166px;
    padding: 10px 30px;
    transition: background .18s, opacity .18s;
}

.hqa-load-more:hover {
    background: #3768d8;
}

.hqa-load-more:disabled {
    cursor: wait;
    opacity: .65;
}

.hqa-load-more .fa {
    font-size: 12px;
}

@media (max-width: 767px) {
    .hqa-foot-more {
        padding: 14px 15px;
    }

    .hqa-load-more {
        width: 100%;
    }
}

/* ===== Homepage tablet category navigation ===== */
@media (max-width: 767px) {
    .home-sidebar-mobile {
        display: none !important;
    }
}

/* ===== Hide load more on mobile ===== */
@media (max-width: 767px) {
    .hqa-foot-more {
        display: none !important;
    }
}

/* ===== Bzsm engine real IP panel ===== */
.bzsm-engine-ips {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(30, 68, 120, .045);
    margin: 0 0 14px;
    overflow: hidden;
}

.bzsm-engine-ips-head {
    align-items: flex-end;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px;
}

.bzsm-engine-ips-head h2 {
    color: #1f2d3d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.bzsm-engine-ips-head p {
    color: #8a97a5;
    font-size: 12px;
    line-height: 1.6;
    margin: 4px 0 0;
}

.bzsm-engine-ips-updated {
    color: #8a97a5;
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}

.bzsm-engine-ips-table {
    display: block;
}

.bzsm-engine-ips-row {
    align-items: center;
    border-bottom: 1px solid #f2f5f9;
    display: grid;
    font-size: 13px;
    gap: 12px;
    grid-template-columns: 110px minmax(0, 1fr) 150px 80px;
    padding: 11px 18px;
}

.bzsm-engine-ips-row:last-child {
    border-bottom: 0;
}

.bzsm-engine-ips-row.is-head {
    background: #f7f9fc;
    color: #8a97a5;
    font-size: 12px;
    font-weight: 600;
    padding-bottom: 9px;
    padding-top: 9px;
}

.bzsm-engine-name {
    align-items: center;
    color: #1f2d3d;
    display: flex;
    font-weight: 600;
    gap: 8px;
    min-width: 0;
}

.bzsm-engine-name i {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 20px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    line-height: 1;
    width: 20px;
}

.bzsm-engine-name .is-google {
    background: #e8f0fe;
    color: #4285f4;
}

.bzsm-engine-name .is-google::before {
    content: "G";
}

.bzsm-engine-name .is-bing {
    background: #e6f4ea;
    color: #137333;
}

.bzsm-engine-name .is-bing::before {
    content: "B";
}

.bzsm-engine-name .is-baidu {
    background: #e8f0fe;
    color: #2932e1;
}

.bzsm-engine-name .is-baidu::before {
    content: "百";
}

.bzsm-engine-name .is-sogou {
    background: #fff1e8;
    color: #d95c00;
}

.bzsm-engine-name .is-sogou::before {
    content: "S";
}

.bzsm-engine-name .is-360 {
    background: #e8f7ef;
    color: #00833e;
}

.bzsm-engine-name .is-360::before {
    content: "360";
    font-size: 8px;
}

.bzsm-engine-ip {
    align-items: center;
    color: #5a6b7b;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
}

.bzsm-engine-ip code {
    background: #f2f5f9;
    border-radius: 3px;
    color: #1f2d3d;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 2px 6px;
    word-break: break-all;
}

.bzsm-engine-ip em {
    color: #8a97a5;
    font-size: 12px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.bzsm-engine-empty {
    color: #a8b2bf;
    font-size: 12px;
}

.bzsm-engine-time {
    color: #5a6b7b;
    font-size: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bzsm-engine-count {
    color: #4a7df0;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 767px) {
    .bzsm-engine-ips-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 12px 14px;
    }

    .bzsm-engine-ips-head h2 {
        font-size: 16px;
    }

    .bzsm-engine-ips-updated {
        white-space: normal;
    }

    .bzsm-engine-ips-row {
        gap: 2px 10px;
        grid-template-areas:
            "name count"
            "ip ip"
            "time time";
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 11px 14px;
    }

    .bzsm-engine-ips-row.is-head {
        display: none;
    }

    .bzsm-engine-name {
        grid-area: name;
    }

    .bzsm-engine-ip {
        grid-area: ip;
        margin-top: 6px;
    }

    .bzsm-engine-time {
        grid-area: time;
        font-size: 11px;
        margin-top: 2px;
    }

    .bzsm-engine-count {
        grid-area: count;
    }
}

.bzsm-visitor-ip{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px 8px;min-width:0}

.forum-thread-heading{font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}
