body {
     background-color: #f8f9fc;
     font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
 }
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}
.card-bg{
    background-image: url("../img/banner-bg7.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.forum-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: .375rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.05);

    background-image: url("../img/banner-bg1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.forum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.avatar-xs {
    width: 30px;
    height:30px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
}
.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e9ecef;
}
.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.sidebar-card {
    /*background: white;*/
    border-radius: .375rem;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);

    background-image: url("../img/banner-bg2.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.post-content {
    line-height: 1.65;
    font-size: 1rem;
}
.reply-item {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
}
.footer {
    background: white;
    border-top: 1px solid #e9ecef;
}
.active-nav {
    font-weight: 600;
    color: #595959 !important;
    /*border: solid 1px #5b6876;*/
    /*border-radius: 5px;*/
    border-bottom: 3px solid #595959;
}
.btn-outline-custom {
    border-radius: 2rem;
}
.pagination .page-link {
    border-radius: 2rem;
    margin: 0 4px;
    color: #2c3e50;
}
@media (max-width: 768px) {
    .forum-card .row {
        flex-direction: column;
    }
    .post-meta {
        margin-top: 0.5rem;
    }
}

ul.pagination li.active button{
    color: #fff;
    background-color: #0d6efd;
}
.badge.active{
    color: #fff !important;
    background-color: #0d6efd !important;;
}

.toast-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    min-width: 300px;
}

.userMenu a{
    margin-bottom: 10px;
}

.right-icon ::after{
    display: block;
    content: "\f27f";
    height: 100%;
    line-height: 100%;

}




/* 自定义的页面宽度 */
.container {
    width: 100%;
    /*padding-right: var(--bs-gutter-x, 0.25rem);*/
    /*padding-left: var(--bs-gutter-x, 0.25rem);*/
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 560px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 740px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 920px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1040px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1120px;
    }
}


/*轮播图图片样式*/
.carousel-inner{
    overflow: hidden;
    border-radius: .375rem;
}

/*首页专家列表行宽度收缩*/
.zj-row{
    margin-right: calc(-.25* var(--bs-gutter-x));
    margin-left: calc(-.25* var(--bs-gutter-x));
}

/*彩种开奖信息*/
.up-issue-info{

}
.up-issue-info .winnumber{
    display: inline-block;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    background: #dc3545;
    /*background-image: linear-gradient(to top, #feada6 0%, #f5efef 100%);*/
    /*background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);*/
    border-radius: 20px;
    color: #fff;
}

/*上期统计*/
.up-issue-count{
}

/*响应式控制专家列表显示个数*/
/* 手机：只显示前 1 个列 */
/*.row-limit-cols > .col,*/
/*.row-limit-cols > [class*="col-"] {*/
/*    display: block;*/
/*}*/
.row-limit-cols > .col:nth-child(n+6),
.row-limit-cols > [class*="col-"]:nth-child(n+6) {
    display: none;
}

/* 在小屏幕上只显示前 2 个 */
@media (max-width: 575.98px) {
    .row-limit-cols > .col:nth-child(n+5),
    .row-limit-cols > [class*="col-"]:nth-child(n+5) {
        display: none;
    }
}

/* 在中等屏幕上只显示前 3 个 */
@media (min-width: 576px) and (max-width: 767.98px) {
    .row-limit-cols > .col:nth-child(n+5),
    .row-limit-cols > [class*="col-"]:nth-child(n+5) {
        display: none;
    }
}

/* 在大屏幕上只显示前 4 个 */
@media (min-width: 768px) {
    .row-limit-cols > .col:nth-child(n+6),
    .row-limit-cols > [class*="col-"]:nth-child(n+6) {
        display: none;
    }
}

/*下拉菜单的样式*/
.select-btn{
    border-radius: 1rem;
    background-color: antiquewhite;
    color: #000;
    border: 0 solid;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.dropdown-menu a{display: block;}

/*中奖次数列表奖品样式*/
.win-count .index0{
    color: gold;
}
.win-count .index1{
    color: silver;
}
.win-count .index2{
    color: #B87333;
}

/*玩法类型选择弹窗里链接的样式*/
.play-type-item{
    margin: 5px;
    padding: 5px;
    border-radius: 4px;
    border: 1px #cccccc solid;
    display: inline-block;
}
.play-type-item.active{
    background-color: #cccccc;
}

/*底部弹出模态框样式*/
.modal-dialog {
    max-width: 100%;
    height: 100%;
}
.modal-content{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
/*tab样式*/
.tab-content {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
}
.tab-content.fixed-height{
    height: 170px;
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-tabs {
    margin-bottom: 0;
}
/*#myTab .nav-item{*/
/*    border-radius: 1rem 1rem 0 0;*/
/*}*/

/*倒计时*/
.countdownTime {
    background-color: red;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
}

/*顶部导航栏靠左显示*/
.mx-left{
    margin-left: 0 !important;
}

/*手机端顶部收折按钮样式*/
.navbar-toggler{
    padding: 2px 3px;
}

/*修改行的margin-top*/
.row > *{
    margin-top: .75rem;
}

/*去掉my-4*/
/*.my-4{*/
/*    margin-top: 0 !important;*/
/*    margin-bottom: 0 !important;*/
/*}*/
.my-4-1{
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}


/*页码样式*/
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 5px;     /* 行间距8px，列间距5px */
    padding: 10px 0;
}

.page-item {
    list-style: none;
}

.page-btn {
    min-width: 36px;
    white-space: nowrap;  /* 防止按钮文字换行 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px 4px;
    }
    .page-btn {
        min-width: 32px;
        padding: 4px 8px;
        font-size: 14px;
    }
}