body {
  margin: 0;
  font-family: jan,"Open Sans",Arial,"Hiragino Sans GB","Microsoft YaHei","STHeiti","WenQuanYi Micro Hei",SimSun,sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #212529;
  text-align: left;
  background-color: #fff;
}

body {
    background: #cfd9e2;
}

a {
    color: #1f4977;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #6293d4;
    text-decoration: none;
}

.card {
    background: #fff;
    border-radius: 2px;
    border: 0px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 1px 3px rgba(26, 26, 26, .1);
    box-sizing: border-box;
}

.card-footer {
    background-color: #f6f6f6;
}

.card-header-tabs>.nav-item>.nav-link.active {
    background: rgba(0, 0, 0, 0);
}

.breadcrumb.d-none.d-md-flex {
  font-size: 13px;
  font-weight: 300;
}

.message.break-all {
  font-size: 14px;
}


#nav {
  font-size: 13px;
}

.card-header-tabs>.nav-item>.nav-link.active {
    border-color: #f8f9fa;
    border-bottom-color: #343a40;
}

.card>.card-header {
    background-image: none;
    background-color: #f6f6f6;
}

.card-header:hover::after {
    width: 5rem;
}

.card-header:after {
    content: "";
    background-color: #282828;
    left: 1.25rem;
    width: 2.8rem;
    height: 1px;
    top: 2.85rem;
    position: absolute;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.mibbs_con .mibbs_signpanel {
    background-position: 0.75rem 0.6rem !important;
}

.mibbs_con .mibbs_signpanel .font {
    top: 0.8rem !important;
    left: 4.2rem !important;
}

.card-threadlist .card-header:after {
    display: none;
}

.card-header-tabs>.nav-item>.nav-link:hover:not(.active) {
    border-color: #f8f9fa;
    border-bottom-color: rgba(31, 73, 119, 0.16);
}

.btn-secondary {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.32);
    border-color: transparent;
}

.btn-primary {
    background-color: #5f8ece;
    border-color: #5f8ece;
    box-shadow: 0 1px 3px rgba(26, 26, 26, .1);
}

.d-flex.justify-content-between.small.mt-1 {
    letter-spacing: .2px;
}

.card-header:after {
    content: "";
    background-color: #282828;
    left: 1.25rem;
    width: 50px;
    height: 2px;
    top: 40px;
    position: absolute;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.card-header:hover::after {
    width: 70px;
}

.text-grey,
.text-gray {
    color: #8b9fb3 !important;
}

.comment-o {
    background: #aab0c6;
    color: #fff;
    padding: 2px 10px 2px 10px;
    border-radius: 12px;
}

.noticelist .badge.badge-light.text-muted {
  font-size: 12px;
    font-weight: 400;
}



small, .small {
  font-size: 75%;
  font-weight: 400;
}

.text-small {
  font-size: 12px;
}
.small.line-height-3 {
  font-size: 12px;

}

.thread {
    border-width: 0;
    padding: 0.6rem 1.25rem;
}

.thread:hover {
    border-left: 2px #aab0c6 solid;
    margin-left: -2px;
}

ul.small.break-all {
    padding-left: 0;
    list-style: none;
}

ul.small.break-all .line-height-2 {
    border-bottom: 1px solid #e9ecef;
    padding: 0.7rem 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-recent {
    padding: 0.75rem 1.25rem 0 1.25rem;
}

.m-3.text-center h5 {
    margin: 8px 0 -4px 0;
}

#user_aside .avatar-4,
#user_main .avatar-4,
#my_aside .avatar-4,
#my_main .avatar-4 {
    margin-bottom: 8px;
}

@media (max-width: 768px) {

    #user_aside .text-muted.small,
    #user_main .text-muted.small,
    #my_aside .text-muted.small,
    #my_main .text-muted.small {
        display: none;
    }

}

#user_aside .text-muted.small,
#user_main .text-muted.small,
#my_aside .text-muted.small,
#my_aside .text-muted.small {
    margin-bottom: 8px;
}

#user_aside .card-body,
#user_main .card-body,
#my_aside .card-body {
    padding: 1.25rem 1.25rem 1rem;
}

.badge.badge-posts {
    background: #aab0c6;
    color: #fff;
    padding: 2px 10px 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem
}

.card-thread hr {
    display: none;
}

.card-thread .media {
    line-height: 1rem;
    background-color: #F9FAFB;
    background-image: url(./bg_banner.png);
    background-repeat: no-repeat;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    border-radius: 0.25rem 0.25rem 0 0;
}

.card-threadlist .card-body,
.card-thread .card-body {
    padding: 0 0 1.25rem 0;
    border-radius: 0.25rem;
}

.card-thread .card-body .message {
    padding: 1.25rem;
}

.card-thread .card-body .message {
    padding: 3rem 1.25rem 5.25rem 1.25rem;
}

h4.break-all {
    font-size: 1.1rem;
}

.username.text-grey.mr-1 a {
    color: #748594;
}


.user-recent:after {
    content: "";
    width: 100%;
    height: 5px;
    position: absolute;
    left: 0;
    bottom: 10px;
    background-color: #F8F9FA;
}

#search_form button.btn.btn-primary {
    transition: width .3s;
    width: 51px;
}

#search_form:hover .input-group-append .btn.btn-primary {
    width: 70px;
}

#search_form .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}

#user_main .card-header:after,
#my_main .card-header:after {
    width: 0;
}

.jan-hr-2 {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

.btn-outline-secondary {
    border-color: #aab6c3;
}

.blockquote {
    padding: 0.5rem 1rem 0.2rem 1rem !important;
    border-radius: 2px 0 0 2px;
}

#tagRes {
    cursor: pointer;
}

.pl-2,
.px-2 {
    padding-left: 0.4rem !important;
}

.page-item.active .page-link {
    background-color: #5f8ece;
    border-color: #5f8ece;
}

.page-link {

    border: 0px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(26, 26, 26, .1);
}


.list-group-item.active {
    background-color: #5f8ece;
    border-color: #5f8ece;
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    background-color: #699fea;
    border-color: #699fea;
}

.card-header-tabs {
    margin-top: -.3rem;
}

@media (max-width: 576px) {

    #user_mobile_nav,
    #my_mobile_nav {
        margin: 0.5rem -5px 0.5rem -5px !IMPORTANT;
    }
}



.card-body .message h5 {
    font-size: 1.1rem;
    border-left: 4px solid #6293d4;
    text-indent: 16px;
    font-weight: bold;
    padding: 2px 0px;
    margin: 8px 0px;
}


.input-group-prepend .icon-diamond {
    display: initial;
}

@media (max-width: 576px) {

    .card>.card-header {
        background-color: #ffffff;
    }

    .card-header-tabs>.nav-item>.nav-link.active {
        border-color: #ffffff;
        border-bottom-color: #343a40;
    }

    .navbar-brand {
        font-size: 1.05rem;
    }

    .card.search .card-header {
        background-color: #ffffff;
    }


}


.nav-link {
    padding: 0.6rem 1rem;
}


.ratc,
.avatar-3 {
     width: 2.4rem;
     height: 2.4rem;
     margin: 4px 0px 0px 0px;
     border-radius: 0.3rem;
}


#my_main .threadlist,
#user_main .threadlist {
    margin: -0.75rem -1.25rem 0 -1.25rem;
}

#my_main .threadlist .thread {
    padding: 0.69rem 1.25rem;
}

#my_main .pagination {
    padding: 1.55rem 1.25rem 0.25rem 1.25rem;
    margin-bottom: 0;
}

#my_main .jan-hr,
#user_main .jan-hr {
    margin: 0 1.25rem;
}

#user_main .pagination {
    padding: 1.5rem 1.25rem 0.4rem 1.25rem;
    margin-bottom: 0;
}

#user_main .threadlist .thread {
    padding: 0.7rem 1.25rem 0.1rem 1.25rem;
}

#my_main .t_icon {
    display: none;
}


@media (min-width: 992px) {

    #user_main .card,
    #my_main .card {
        margin: 0 0 0 -15px;
    }
}


.search .card-body {
    padding: 0.75rem 0 0 0;
}

.search .threadlist {
    padding-bottom: 1.25rem;
}



#my_main .postlist,
#user_main .postlist {
    margin: -0.75rem -1.25rem 0 -1.25rem;
}

#my_main .postlist .post {
    padding: 0.69rem 1.25rem 0.69rem 1.55rem;
    border-width: 0;
}

#user_main .postlist .post {
    padding: 0.7rem 1.25rem 0.1rem 1.55rem;
    border-width: 0;
}

td.reward {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.table-responsive .table {
    table-layout: fixed;
}

/**/

.threadlist>.thread .subject {
    font-size: 14px;
    line-height: 1.5rem;
    margin: 0.25em 0.25em -0.45em 0em;
}

.threadlist>.thread .media-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.threadlist>.thread {
    display: flex;
}

/**/

.custom-navbar {
    position: relative;
    width: 100%;
    top: 0;
    overflow: visible;
    z-index: 150;
    background: #343A40;
    height: 50px;
    margin: 0;
    transition: all 0.4s;
    border-bottom: 0;
    box-shadow: none;
    border-top: 0
}


.custom-logo {
    max-width: 300px;
    display: block;
    float: left;
    background: none;
    height: 26px;
    margin: 12px 10px 0 0;
}

.custom-logo a {
    height: 26px;
    display: block
}

.custom-logo img {
    float: left;
    max-width: 200px;
    max-height: 26px;
    margin-top: 0
}

.custom-navbar.navfixed {
    width: 100%;
    position: fixed;
    top: 0;
    box-shadow: 0 1px 3px rgb(18 18 18 / 10%)
}

.custom-navigate {
    float: left;
    max-width: 800px;
    height: 50px;
    padding: 0;
    margin: 0;
}

.custom-navigate>ul {
    float: left;
    height: 50px;
    white-space: nowrap;
    overflow: visible;
    padding: 0;
}

.custom-navigate>ul>li {
    float: left;
    height: 50px;
    margin: 0;
    position: relative;
    display: block;
    padding: 0;
}

.custom-navigate>ul>li>a {
    display: inline-block;
    font-size: 13px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    background: none;
    position: relative;
    padding: 0 8px;
    margin: 0;
    border: 0;
    font-weight: 400;
    transition: all 0s ease 0s;
    border-radius: 0;
    opacity: 0.5;
    text-decoration: none;
}

.custom-navigate ul>li.active>a,
.custom-navigate ul>li>a:hover {
    background: none;
    opacity: 1;
}


.custom-user {
    float: right;
    width: auto;
}

@media (max-width: 991px) {
    .custom-navigate:not(.custom-user) {
        background: #343A40;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        overflow: auto;
        width: 33vw;
        transform: translateX(100%);
        transition: all .33s ease-in-out;
        box-shadow: noen;
    }

    .sidemenu-open .custom-navigate:not(.custom-user) {
        transform: translateX(0);
        box-shadow: 0 0 50em 50em rgba(0, 0, 0, .5);
    }

    .sidemenu-open .custom-navigate:not(.custom-user) ul,
    .sidemenu-open .custom-navigate:not(.custom-user) li {
        float: initial;
        height: initial;
    }

    .custom-navigate:not(.custom-user) li.close {
        float: right;
        z-index: 2;
        color: #fff;
        text-shadow: none;
        opacity: 1
    }

    .custom-navigate:not(.custom-user) li.close>a {
        font-size: 28px;
        font-weight: 300;
    }

    .custom-navigate:not(.custom-user)>ul>li,
    .custom-navigate:not(.custom-user)>ul>li>a {
        height: 40px;
    }
}

/**/

.loadmore-container {
    position: sticky;
    z-index: 2;
    bottom: 1rem;
}

.card-header:after ,
.card-header:hover::after {
  width: 0;
}

ul.attachlist {margin:20px 00px 20px -10px;}

fieldset.fieldset {
    margin:30px 0px 30px 0px!IMPORTANT;
}


.message.mt-1.break-all > div > img[src*="tt_medal"] {
    display: none;
}

@media (max-width: 991.98px) {
    .medal-container {
        display: none !important;
    }
        img[src*="tt_medal/img"] {
        display: none !important;
    }
}

.comment-content img[src*="/face/"],
.post-content img[src*="/face/"],
.reply-content img[src*="/face/"],
img[src*="/face/"] {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    vertical-align: middle;
}

.card.friendlink .card-body.small {
  padding: 15px 15px 20px 15px;
  font-size: 16px;
}

.card.card-newuser .row.no-gutters.justify-content-center {
  margin:3px -10px 0 -10px!IMPORTANT; 
}

.text-small.text-muted.user .v_img_post_list {
  display: none;
}

.badge.badge-pill.badge-success {
  color: #4b4c4d;
  background-color: #b2ecc9;
}

.list-unstyled.postlist .blockquote {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    color: #777;

}

.card.card-user-info .progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-color: #527eae;
  transition: width 0.6s ease;
}


.card.friendlink.mt-3 .card-body.small.p-2 {
  margin: 5px;
}

@media (max-width: 992px) {
    .indexUser .card-header {
        padding: 0.75rem 1rem;
    }
    .friendlink ul {
        margin: 10px!important;
        gap: 0rem !important;
    }
}


@media (max-width: 992px) {
.container-fluid {
  width: 100%;
 padding: 0 !important;
  margin-right: auto;
  margin-left: auto;
    }
}

.haya-post-info-at em {
  font-size: 12px;
}





.thread-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
    display: flex;
}

.thread-left-bg {
    flex: 1;
    background-size: contain;
    background-position: left top;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    opacity: 0.2;
}

.thread-right-bg {
    flex: 1;
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    opacity: 0.2;
}

.thread-content-wrapper {
    background-color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.thread-left-bg {
    background-color: rgba(239, 239, 239, 0.5); 
}

.thread-right-bg {
    background-color: rgba(239, 239, 239, 0.5); 
}

.col-lg-3.d-lg-block.aside {
  padding: 0;
}
.card.card-site-info.d-none.d-lg-block .m-3 {
  padding-top: 15px;
}

.list-unstyled.threadlist.mb-0 .badge.badge-pill.badge-light {
  display: none;
}

.subject.break-all .icon-lock {
  color: #8ea1b5;
}


.card-thread .card-body .message p {
  margin: 0.2rem 0;
  line-height: 1.5;
}


.subject.break-all .icon-shopping-cart {
  color: #ff824c !important;
}

.card-body 
.badge.badge-pill.badge-light {
  display: none;
}


.warp2_bottom {
    box-shadow: 0px 2px 4px rgba(129, 129, 129, 0.15);
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f9f9f9;
}

a.warp2_btn {
    font-size: 13px;
    line-height: 23px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(to bottom, #ff8100, #ff9a3d);
    border-radius: 5px;
    cursor: pointer;
    padding: 0 15px;
    margin-right: 0;
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    display: inline-block;
}

a.warp2_btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 129, 0, 0.4);
    background: linear-gradient(to bottom, #ff7100, #ff8a2d);
}

.col-lg-3.d-lg-block.aside 
.badge {
  display: none;
}

.col-lg-3.d-lg-block.aside 
.tt-sidebar-medals.text-center {
  margin-top: -20px;
}

.text-muted {
  color: #949ca6 !important;
}


#captcha {
    background-color: #fbd33a;  /* 验证默认背景色 */
    border-color: #fbd33a;
    color: #555;                 /* 文字颜色 */
    transition: background-color 0.3s ease; /* 平滑过渡 */
}

#captcha:hover {
    background-color: #ffe686;  /* 验证鼠标悬浮时背景色 */
    border-color: #ffe686;      /* 边框颜色同步 */
}



header#header {
    position: fixed;
    z-index: 30;
}
#body {
    padding-top: 4.5rem;
}


/* 修改手机版导航菜单背景颜色，与.bg-dark保持一致 */
@media (max-width: 991.98px) {
    .navbar-collapse#nav {
        position: fixed !important;
        top: 47px !important;
        left: 0% !important;
        right: 30% !important;
        
        /* --- 修复 iPhone 点不到的问题 --- */
        /* 使用 min-height 确保高度填满，同时减去顶部高度 */
        height: calc(100% - 47px) !important; 
        /* 关键：使用 fill-available 或 dvh (Dynamic Viewport Height) */
        height: calc(100dvh - 47px) !important; 

        /* 增加底部内边距，确保最后两项高出安全区 */
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
        
        max-height: none !important;
        background: #343a40 !important;
        z-index: 1050 !important;
        overflow-y: auto !important;
        
        /* 惯性滚动：让 iOS 滑动更顺畅 */
        -webkit-overflow-scrolling: touch;
        
        /* 其他样式保持不变 */
        border-radius: 0 !important;
        border: none !important;
        border-right: 1px solid #2c3136 !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3) !important;
    }

    
    /* 调整导航项样式 */
    .navbar-collapse#nav .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .navbar-collapse#nav .nav-item {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .navbar-collapse#nav .nav-link {
        padding: 7px 20px !important;
        width: 100% !important;
        text-align: left !important;
        color: rgba(255, 255, 255, 0.9) !important; /* 浅白色文字 */
        border-bottom: 1px solid #4a5158 !important; /* 深色分隔线 */
        transition: all 0.2s ease;
    }
    
    .navbar-collapse#nav .nav-link:hover {
        background-color: #495057 !important; /* 悬停时使用稍亮的深灰色 */
        color: #fff !important;
        padding-left: 24px !important; /* 添加悬停动画效果 */
    }
    
    /* 当前活动菜单项 */
    .navbar-collapse#nav .nav-item.active .nav-link {
    background-color: #495057 !important;
    color: #fff !important;
    border-left: none !important; /* 明确设置为无边框 */
    position: relative; /* 如果需要其他指示器，可以保留这个 */
}
    
    
    
    /* 最后一个导航项去掉边框 */
    .navbar-collapse#nav .nav-item:last-child .nav-link {
        border-bottom: none !important;
    }
    
    /* 图标颜色 */
    .navbar-collapse#nav .nav-link i.icon {
        color: rgba(255, 255, 255, 0.7) !important;
        margin-right: 8px !important;
    }
    
    .navbar-collapse#nav .nav-link:hover i.icon {
        color: #fff !important;
    }
    
    /* 消息徽章样式调整 */
    .navbar-collapse#nav .badge-danger {
        background-color: #dc3545 !important;
        color: #fff !important;
        font-size: 11px !important;
        padding: 2px 6px !important;
        margin-left: 5px !important;
    }
}


/* 隐藏手机版硬编码的友情链接卡片 */
@media (max-width: 767.98px) {
   .card.d-md-none {
  display: none;
}


.card-user-info .mt-1 .btn.btn-outline-secondary.js-haya-follow-add:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.card-user-info .mt-1 .btn.btn-outline-secondary.js-haya-follow-del:hover {
    background-color: #33CC7D !important;
    border-color: #33CC7D !important;
}

