﻿/*解除底部菜单遮挡*/
body {
    /*改为在pagehack.js处理*/
    /*padding-bottom: 80px;*/
}

/*site.master页面*/
.master-page .navbar-desktop {
    height: 56px; /*顶部导航栏设定固定高度值*/
}

.master-page aside.sticky-top {
    top: 56px;
    /*height: calc(100vh - 56px);*/
}

.master-page .nav-placeholder {
    height: 56px; /*顶部导航栏设定固定高度值（占位符）*/
}





.master-page .navbar-desktop a.site-brand {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 10px;
}

.master-page .navbar-desktop .site-brand img {
    /*max-height: 29px;*/
    max-height: 42px;
}



.master-page .nav-head {
    width: 32px;
    height: 32px;
}

.master-page .aside-board-logo {
    width: 32px;
    height: 32px;
}

/* 折叠时：箭头向右 */
.master-page .collapse-toggle .collapse-arrow {
    transform: rotate(180deg);
}

/* 展开时：箭头向下 */
.master-page .collapse-toggle[aria-expanded="true"] .collapse-arrow {
    transform: rotate(0deg);
}



/* 限制行数 */
.text-truncate-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.text-truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}









/* 缩略图图片外层：固定比例（正方形示例） */
.page-list .post-images .post-image-item {
    padding-left:2px;
    padding-right:2px;
}
.page-list .post-images .post-image-item a {
    aspect-ratio: 4 / 3;
    display: block;
    /*display:block;
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;*/
}

/* 缩略图图片本身 */
.page-list .post-images .post-image-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /*position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;*/
}







/*首页页眉*/
.page-list .home-jumbotron img {
    max-width: 100%;
    height: auto;
}

/*首页顶部公告*/
.page-list .top-news img {
    max-width: 100%;
    height: auto;
}










/*list、view页面头像*/
.page-list .poster-face,
.page-view .poster-face {
    height: 40px;
}


/*用户详情页面头像*/
.page-userinfo .userinfo-face {
    height: 60px;
}


/*发帖和编辑页*/
.page-edit .thumb-square,
.page-post .thumb-square {
    aspect-ratio: 1 / 1;
    position: relative;
}

.page-edit .thumb-square .delete-button,
.page-post .thumb-square .delete-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    color: #fff;
    text-align: center;
    background: rgba(128, 128, 128, 0.5);
    cursor: pointer;
}

.page-edit .thumb-square img,
.page-post .thumb-square img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.page-edit .upload-label,
.page-post .upload-label {
    border-style: dashed;
}

.page-edit div.editor,
.page-post div.editor { /*编辑器*/
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}


.page-edit #emojiPicker img,
.page-post #emojiPicker img {
    width: 24px;
    height: 24px;
    margin: 4px;
    cursor: pointer;
}



/*版块列表页面*/
.page-boardlist .board-logo {
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
}

.page-boardlist .board-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}










/*多页面通用，表情图标*/
.page-list img.emoji,
.page-view img.emoji,
.page-post img.emoji {
    vertical-align: middle;
    width: 24px;
    height: 24px;
}


/*微信品牌颜色*/
.weixin_brand_color,
a.weixin_brand_color {
    color: #1AAD19;
}


/*weixinlogin页面*/
/*.page-weixinlogin .avatar-wrapper {
  width: 90px;
  height: 90px;

}*/

/*.page-user-center .avatar-img,
.page-login .avatar-img,
.page-weixinlogin .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}*/

/*page-user-center*/
/*.page-user-center .face-preview {
    display:none;
    width:50px;
    height:50px;
}*/


/*通用-大头像*/
.avatar-wrapper {
    width: 130px;
    height: 130px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}







/*message-center*/
.page-message-center .chat-item .avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex: 0 0 56px;
    border-radius: 50%;
}

.page-message-center .chat-item .name {
    font-weight: 600;
    line-height: 1.5;
}

.page-message-center .chat-item .last-msg {
    font-size: 0.95rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-message-center .chat-item {
    padding: 0.75rem 0.5rem;
}

.page-message-center .chat-item:hover {
    background: rgba(0,0,0,0.02);
    cursor: pointer;
}

.page-message-center .unread-badge {
    font-size: 0.75rem;
    padding: 0 0.35rem;
    border-radius: 0.75rem;
    min-width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
}

.page-message-center .unread-red-dot {
    display: inline-block; /* 保证宽高生效 */
    width: 10px;
    height: 10px;
    border-radius: 50%; /* 变成圆形 */
    background-color: #e53935; /* 红色（可换）*/
    vertical-align: middle; /* 与文字对齐 */
}




/*page-private-message*/
.page-private-message {
    padding-bottom: 54px;
}

.page-private-message .chat-messages {
    flex-grow: 1;
    overflow-y: auto;
}

.page-private-message .message {
    max-width: 60%;
    padding: 8px 12px;
    border-radius: 12px;
}

.page-private-message .message-left {
    background-color: #f1f1f1;
}

.page-private-message .message-right {
    background-color: #0084ff;
    color: white;
}

.page-private-message .chat-input {
    /*改为在pagehack.js处理*/
    /*bottom: 80px;*/
}

.page-private-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}


/*view页面*/
.page-view {
    /*针对快速回复栏遮挡*/
    padding-bottom: 54px;
}


.page-view .fast-reply {
    /*改为在pagehack.js处理*/
    /*bottom: 80px;*/
}



.page-view .favorite-star {
    text-decoration: none;
}

.page-view .favorite-star-golden {
    color: #FFC107;
}

.page-view .like-thumbs-up {
    text-decoration: none;
}


/*禁止collapse的动画效果*/
.no-collapse-anim,
.no-collapse-anim.collapsing {
    transition: none !important;
}
