/* 响应式调整：在小屏幕下，侧边栏和大纲之间增加间距 */
@media (max-width: 991px) {
    .col-lg-3, .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* 左侧边栏 - 版块列表 */
.forum-list .list-group-item {
    border-left: 0;
    border-right: 0;
}
.forum-list .list-group-item:first-child {
    border-top: 0;
}
.forum-list .list-group-item:last-child {
    border-bottom: 0;
}
.forum-list .fa-fw {
    margin-right: 5px;
}

/* 中间主内容 - 主题列表 */
.thread-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.thread-icon {
    width: 50px;
    text-align: center;
}

.thread-details {
    flex-grow: 1;
    overflow: hidden; /* 防止标题过长破坏布局 */
}

.thread-title a {
    font-weight: bold;
    line-height: 1.3rem;
}

.thread-stats {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}
.thread-stats div {
    display: inline-block;
    margin-left: 10px;
}
.thread-stats .fa {
    margin-right: 3px;
}

/* 响应式调整：在小屏幕下隐藏主题统计数据 */
@media (max-width: 576px) {
    .thread-stats {
        display: none;
    }
    .thread-details {
        padding-right: 0;
    }
}

/* 右侧边栏 */
.sidebar-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-group-item {
    padding: 0.75rem 1rem;
}
.grey .grace,.grey .card-header{
    background-color: #303030;
    color: #fff;
}
.dark .grace,.dark .card-header{
    background-color: #354759;
    color: #fff;
}
.black .grace,.black .card-header{
    background-color: #313347;
    color: #fff;
}
.grey .card-header,.dark .card-header,.black .card-header{
    border-color: rgba(120, 130, 140, 0.265);
}
.thread-stats .view-orange{
    color: rgb(254, 122, 21);
    font-weight: bold;
}
.thread-stats .view-brown{
    color: rgb(155, 118, 79);
    font-weight: bold;
}
.thread-stats .view-default{
    color: #000;
}
.page-ta{
    text-align: center;
}
.grey .view-default,.dark .view-default,.black .view-default{
    color: #fff;
}
/* ========================================= */
/*  搜索小部件样式                              */
/* ========================================= */

.custom-search-group {
    display: flex; /* 核心：使用 Flexbox 布局 */
    width: 100%;
}

/* 让输入框占据所有剩余空间 */
.custom-search-group .form-control {
    flex-grow: 1;
    /* 修复 Bootstrap 样式，确保圆角正确 */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* 让按钮宽度固定，不被压缩 */
.custom-search-group .btn {
    flex-shrink: 0;
    /* 修复 Bootstrap 样式，确保圆角正确 */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}