/* === theme_ads plugin CSS === */

.theme-ads-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.theme-ad-item {
    margin-bottom: 20px;
}


#body {
        padding-top: 0 !important;
    }




.theme-ad-item .panel {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.theme-ad-item .panel:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.theme-ad-item .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.theme-ad-item .panel-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.theme-ad-item .panel-body {
    min-height: 100px;
    padding: 15px;
}

@media (max-width: 768px) {
    .theme-ad-item {
        margin-bottom: 15px;
    }
    
    .subject {
    font-size: 0.85rem;
    }


}






.top-section-label {
    /*display: inline-block;*/
    text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000, 0px 0px 4px #000;
    padding: 3px 3px;
    border-radius: 4px;
    font-weight: bold;
    border: solid 2px #ff0000;
    color: #00f1ff;
    margin-bottom: 6px;
    vertical-align: middle;
    
}




@media (max-width: 991px) {
    #body>.container>.row>div {
        padding: 0 !important;
    }

    .card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 0.25rem;
    }

    hr {
    margin-top: 0 !important;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
    }
    .card.card-threadlist > .card-body {
        padding: 0 !important;
    }
    .container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .ml-1, .mx-1 {
        margin-left: 0 !important;
    }
    
    .mt-1, .my-1 {
        margin-top: 0 !important;
    }
    .col-lg-9.main.col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .table td, .table th {
    padding: 0 !important;
    vertical-align: top;
    border-top: 1px solid #000000;
    }
    .goldpay-unlocked {
        padding: 0 !important;
        line-height: 2.5rem;
    }
}





.table {
    line-height: 1.5rem;
}

.thread, .post{
    border-bottom: 2px solid #ffb300e0;
    padding: .7rem .7rem;
}


.threadlist>.thread:last-child, .postlist>.post:last-child{
     /* keep border for section separation */
}

/* thread list item spacing */
.media.thread {
    margin-bottom: 5px !important;
    padding-top: 5px !important;
}


.card-body li:not(.thread){
    padding: 4px 0px 4px 0px;
    border: solid 2px #ff0000;
    border-radius: 8px;
    background: #fff;
    background-image: linear-gradient(to top, #fff, #eee, #fff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* thread specific styles - keep red border + bottom separator */
.card-body li.thread {
    padding: 4px 0px 4px 0px;
    border: solid 2px #ff0000;
    border-radius: 8px;
    background: #fff;
    background-image: linear-gradient(to top, #fff, #eee, #fff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* add separator line inside the red border for last thread in section */
.top-section > ul.threadlist > .thread:last-child::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}
/* spacing between section threadlist and next section */
.top-section > ul.threadlist {
    margin-bottom: 5px !important;
}

/* show red border for last thread in each top-section */
.top-section > ul.threadlist > .thread:last-child {
    border: solid 2px #ff0000 !important;
    border-radius: 8px !important;
}


/* reduce spacing below "最新主题" label */
.top-section-0 {
    margin-bottom: 5px !important;
}


.navbar-brand {
    /*margin: auto;*/
    display: inline-block;
     padding-top: 1rem; 
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.85rem;
    line-height: inherit;
    white-space: nowrap;
}



/*.r_one {*/
/*    background: #fff;*/
/*}*/

.fb_gg {
    /*padding: 0px 5px;*/
    font-size: 16px;
    color: #000;
    border-radius: 3px;
    /*margin: 5px;*/
    margin-bottom: 0 !important;
    border: 1px dashed #999;
    background: #f7f7f7;
    text-align: left;
}


/* colorChange animation */
@keyframes colorChange {
    0%   { color: #0f0; }
    25%  { color: #ff0; }
    50%  { color: #f00; }
    75%  { color: #0ff; }
    100% { color: #0f0; }
}



/*top3-出售贴*/
.top3_tb {
    padding: 1px .3rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin: 0 3px 0 0;
    line-height: 1.3;
    font-size: 0.85rem;
    display: inline-block;
    vertical-align: text-bottom;
    color: #0f0;
    background-color: #3366cc;
    text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000, 0px 0px 4px #000;
    animation: colorChange 1s infinite;
}



/*top2-推荐贴*/
.top2_tb {
    padding: 1px .3rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin: 0 3px 0 0;
    line-height: 1.3;
    font-size: 0.85rem;
    display: inline-block;
    vertical-align: text-bottom;
    color: #ff0;
    background-color: #b700ff;
    text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000, 0px 0px 4px #000;
    animation: colorChange 1s infinite;
}


/*top1-高手贴*/
.top1_tb {
    padding: 1px .3rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin: 0 3px 0 0;
    line-height: 1.3;
    font-size: 0.85rem;
    display: inline-block;
    vertical-align: text-bottom;
    color: #fff;
    background-color: #c1100d;
    text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000, 0px 0px 4px #000;
    animation: colorChange 1s infinite;
}


/*top0-验证贴*/
.top0_tb {
    padding: 1px .3rem;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin: 0 4px 0 0;
    line-height: 1.3;
    font-size: 0.85rem;
    display: inline-block;
    vertical-align: text-bottom;
    color: #fff;
    background-color: #008000;
    text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000, 0px 0px 4px #000;
    animation: colorChange 1s infinite;
}






/* fix avatar vertical align - remove baseline gap */
.media > a > img.avatar-3,
img.avatar-3 {
    display: block;
}
.media > a {
    display: flex;
    align-items: flex-start;
}

/* fix media avatar center align */
.media {
    align-items: center !important;
}
.media > a > img.avatar-3,
img.avatar-3 {
    display: block;
}


/* User info label styles */
.wind-lou {
    font-size: 1rem;
    color: #ff0;
    background: linear-gradient(#3986f9, #0653c6);
    border-radius: 4px;
    padding: 1px 3px;
    margin-left: 10px;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.6), 2px 2px 1px rgba(0, 0, 0, 0.15);
    border: 1px solid #053e94;
}

.wind-jin {
    font-size: 1rem;
    color: #ff0;
    background: linear-gradient(#ff0000, #d20047);
    border-radius: 4px;
    padding: 1px 3px;
    margin-left: 10px;
    box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.6), 2px 2px 1px rgba(0, 0, 0, 0.15);
    border: 1px solid #cc0045;
}

.ss1 {
    font-size: 1rem;
    padding: 1px 3px;
    background: #ffff00;
    border: 1px solid #ff0000;
    border-radius: 3px;
    line-height: 18px;
    color: #0033FF;
}

.ss2 {
    font-size: 1rem;
    padding: 1px 3px;
    background: #ffff00;
    border: 1px solid #ff0000;
    border-radius: 3px;
    line-height: 18px;
    color: #ff0000;
}

/* fix thread detail page avatar right margin */
.media:not(.thread) > a > img.avatar-3 {
    margin-right: 0 !important;
}

/* increase avatar-3 size */
.avatar-3 {
    width: 3.2rem !important;
    height: 3.2rem !important;
    border-radius: 3.2rem !important;
}

/* remove thread list hidden avatar placeholder */
.media.thread > a.mr-3 {
    margin-right: 0 !important;
}





