
.like-count-number {
    font-size: 16px;
    /*margin-left: 5px;*/
}
.like-style{
    color: red !important;
}
.media-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bookmark-style{
    color: darkorange;
}
/* 手机屏幕（小于768px） */
@media (max-width: 767px) {
    /*.work-container {*/
    /*    -webkit-column-count: 2;*/
    /*    -moz-column-count: 2;*/
    /*    column-count: 2;*/
    /*    -webkit-column-gap: 4px;*/
    /*    -moz-column-gap: 4px;*/
    /*    column-gap: 4px;*/
    /*}*/
    .work-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 4px;
    }
}

/* 平板屏幕（768px - 991px） */
@media (min-width: 768px) and (max-width: 991px) {
    .work-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 4px;
    }
}

/* 电脑屏幕（大于992px） */
@media (min-width: 992px) {
    .work-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 8px;
    }
}

.work-item {
    break-inside: avoid;
    border-radius: 10px;
    margin-bottom: 30px;
}
.work-href{
    display: block;
    overflow: hidden; /* 隐藏超出图片容器的部分 */
    /*width: 160px;*/
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.work-cover {
    width: 100%;
    max-height: 250px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease; /* 添加过渡效果，使放大过程更平滑 */

}

.work-cover:hover {
    transform: scale(1.2); /* 鼠标悬停时放大图片1.2倍 */
}


.work-title {
    font-size: 14px;
    margin: 5px 0;
}

.work-author {
    display: flex;
    align-items: center;
    font-size: 12px;
}


.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}
.author-label{
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    color:#ffffff;
    background-color: pink;
}
.like-icon {
    margin-left: auto;
}

.d-flex.align-items-center span {
    flex: auto;
}
.thumb-num {
    flex: 0 0 auto;
    margin-right: 5px;
    text-align: center;
}

.thumb-num i{
    margin-top: 3px;
    font-size: 15px;

}

/**底部导航栏**/
.navbar-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-link {
    display: inline-block;
    padding: 10px;
    font-size: 18px;
    list-style: none;
    padding: 20px 10px !important;
    color: black !important;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    transform: scale(1.2);
    font-weight: bold;
    text-decoration: none;
    font-family: 'SimHei', sans-serif;
}
/*文章详情*/
#headshow li{
    margin-right: 10px;
}
#headshow li:nth-child(4) span {
    padding: 0px 2px;
}
/*点赞、收藏评论图标CSS*/
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.icon-item {
    display: flex;
    align-items: center;
    margin-left: 10px; /* 调整图标之间的间距 */
    font-size: 16px;
}

.icon {
    margin-right: 4px; /* 调整图标和数字之间的间距为4px */
    display: flex;
    align-items: center;
}

.count {
    width: 50px; /* 给数字一个固定宽度，避免数字变化影响布局 */
    text-align: center;
    display: flex;
    align-items: center;
}
.comment-img{
    max-height: 300px;
    max-width: 200px;
}
/*分页居中*/
/*.selfPagination*/
.pagination-container{
    display: flex;
    justify-content: center;
}
/*表单设置距离*/
#comment-add-form{
    padding:0;margin:0 10px
}
/*selfcenter.html表格样式*/
.selfDefineTh th{
    text-align: center;
    white-space: nowrap;
}
.selfDefineTbody tr td{
    text-align: center;
    vertical-align: middle !important;
    white-space: nowrap;
}

/* 将父容器设置为Flex容器，并使其在水平和垂直方向上居中对齐子元素 */
.pageDivide {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 确保记录总数和分页链接之间有一定的间距 */
.pageDivide .countSpan {
    margin-right: 10px;
}

/*设置页码样式*/
.pagination-controls {
    margin-bottom: 10px;
}

.pagination-controls input {
    width: 60px;
    padding: 5px;
    margin-right: 5px;
}

.pagination-controls button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.pagination-controls button:hover {
    background-color: #0056b3;
}
.pageGo{
    border-radius: 5px;
}

/*个人主页*/
.yearAddress{
    padding-left: 0;
}
.yearAddress li{
    display: inline-block;
    border-radius: 20px;
    padding:5px 10px;
    background: plum;
    color: #ffffff;
}

.profile-avatar{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* 整体容器样式 */
.stats-container {
    padding: 5px 10px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 统计数据列表样式 */
.stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* 单个统计数据项样式 */
.stats-list li {
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 统计数据值样式 */
.stat {
    font-size: 18px;
}

/* 统计数据标签样式 */
.stat-label {
    font-size: 12px;
}

/* 关注按钮样式 */
.follow-btn {
    background-color: red;
    color: #ffffff;
    border: none;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
}
.privateList a{
    background-color: pink;
    opacity: 0.7;
    padding: 5px 12px;
    border-radius: 20px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.privateTalk i{
    font-size:16px;
color: #ffffff;
}
.tab-option li{
    display: inline-block;
    list-style: none;
    margin-bottom: 10px;
    font-size: 18px;
}

.tab-active{
    border-bottom: 3px solid red;
}

/* 对列表容器设置display: flex */
ul.caregist {
    display: flex;
    flex-direction: column; /* 垂直排列列表项 */
    justify-content: center; /* 列表项靠左对齐 */
    list-style-type: none; /* 移除列表默认样式 */
    padding: 0; /* 移除列表默认内边距 */
}

/* 对每个列表项设置display: flex */
ul.caregist li {
    display: flex;
    align-items: center; /* 垂直居中 */
    margin: 5px auto; /* 列表项之间的间距 */
}

/* 图标样式 */
ul.caregist li span.fa {
    width: 30px; /* 固定图标宽度 */
    height: 30px; /* 固定图标高度 */
    line-height: 30px; /* 使图标内容垂直居中 */
    text-align: center; /* 使图标内容水平居中 */
    border-radius: 50%; /* 使图标背景为圆形 */
    margin-right: 10px; /* 图标与文本之间的间距 */
    margin-left: 10px; /* 让第一行图标再往左一点 */
}

/* 文本内容样式 */
ul.caregist li span:nth-of-type(2) {
    flex: 0 0 auto; /* 不伸缩，宽度由内容决定 */
    width: 120px; /* 设置固定宽度 */
    text-align: center; /* 文本居中对齐 */
}

/* 数字内容样式 */
ul.caregist li span:nth-of-type(3) {
    /*flex: 1; !* 使数字内容占据剩余空间 *!*/
    width: 40px;
    text-align: left; /* 数字靠左对齐 */
}
/* “我知道了”按钮样式 */
ul.caregist li a {
    display: block;
    width: 180px;
    text-align: center;
    font-size: 18px;
    background-color: red;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    text-decoration: none;
}


.tab-option li{
    padding: 5px 10px;
    font-size: 16px;
}
.tab-option form{
    float: right;
    margin-top: 5px;
    width: 200px;
}
.tab-option{
   padding: 0 10px;
}
/*上一篇下一篇文章*/
.textbookOrder{
    list-style-type: none;
    padding-right: 40px;
    overflow: auto;
}
.textbookOrder li:first-child{
    float: left;
}
.textbookOrder li:last-child{
    float: right;
}
.textbookOrder li a i{
    margin: 0 5px;
}
/**机器人**/
/*.robot{width:200px;height:200px;cursor: move;background:url('/assets/images/robot.gif') no-repeat;*/
/*    background-size:200px 200px;}*/
/*.spig{display:block;width:200px;height:200px;position:absolute;top: -200px;left: 160px;z-index:9999;}*/
.robot{width:150px;height:150px;cursor: move;background:url('/assets/images/robot.gif') no-repeat;
    background-size:150px 150px;}
.spig{display:block;width:150px;height:150px;position:fixed;
    top: 50%;right: 20px;transform: translateY(-50%);z-index:9999;}
#message {
    position: absolute;
    top: -50px;
    left: 0px;
    width: 150px;
    padding: 5px;
    background: rgba(0, 0, 0,0.9);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 244, 0, 0.2);
    display: none;
    font-size: 12px;
    color: #fff;
    line-height: 1.5;
}

/*聊天界面放大缩小图片遮罩层样式CSS*/
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#overlay img {
    max-width: 90%;
    max-height: 90%;
    cursor: grab;
    transition: transform 0.1s ease;
    touch-action: none;
}

