@charset "utf-8";

/*主体*/
.forum-main {
    width: 100%;
    min-width: 1200px;
    margin-top: 10px;
}

.forum-main .forum-main-l {
    width: 190px;
    float: left;
}

.forum-main .forum-main-r {
    width: 1000px;
    float: right;
}

.forum-category {
    overflow: hidden;
    box-shadow: 0 0 15px #ddd;
}

.forum-category dl {
    padding: 10px 0;
    border: 1px solid #f3f3f3;
    overflow: hidden;
}

.forum-category dl dt {
    height: 54px;
    line-height: 54px;
    padding: 0 10px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f3f3f3;
}

.forum-category dl dd {
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
}

.forum-category dl dd:hover, .forum-category dl dd.current {
    background: #ee3340;
    color: #fff;
}

.forum-category dl dd:hover a, .forum-category dl dd.current a {
    color: #fff;
}

.forum-header {
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px #ddd;
}

.forum-header .forum-pic {
    width: 100px;
    height: 100px;
    float: left;
    border-radius: 3px;
}

.forum-header .forum-txt {
    width: 640px;
    height: 235px;
    float: left;
    margin-left: 10px;
}



.forum-header .forum-txt .forum-hd {
    height: 32px;
    line-height: 32px;
    font-size: 16px;
    color: #333;
}

.forum-header .forum-txt .forum-bd {
    height: 56px;
    line-height: 28px;
    font-size: 14px;
    color: #666;
}

.forum-header .forum-btn {
    width: 155px;
    padding-top: 30px;
    float: right;
    margin-right: 20px;
}

.forum-header .forum-btn .login-btn {
    width: 60px;
    height: 40px;
    line-height: 40px;
    float: left;
    background: #4d49e5;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: 1px solid #4d49e5;
    border-radius: 4px;
}

.forum-plate-tab {
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px #ddd;
}

.forum-card {
    margin-top: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px #ddd;
}

.forum-list {
    width: 100%;
}

.forum-list ul {
    clear: both;
    overflow: hidden;
}

.forum-list ul li {
    width: 960px;
    position: relative;
    margin: 0 10px;
    padding: 10px;
    float: left;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid #ededed;
}

.forum-list ul li:hover {
    background: #f8f8f8;
    border-bottom: 1px solid #ee3340;
}

.forum-list ul li .forum-list-img {
    width: 60px;
    float: left;
}

.forum-list ul li .forum-list-img img {
    width: 60px;
    height: 60px;
    vertical-align: middle;
    border-radius: 50%;
    -webkit-transition: All 0.3s linear;
    -moz-transition: All 0.3s linear;
    -o-transition: All 0.3s linear;
    transition: All 0.3s linear;
}

.forum-list ul li .forum-list-img img:hover {
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -moz-transform: scale(1.2);
    transform: scale(1.2);
}

.forum-list ul li .forum-list-txt {
    width: 783px;
    float: left;
}

.forum-list ul li .forum-list-txt .forum-list-title {
    line-height: 36px;
    height: 36px;
    font-size: 16px;
}

.forum-list ul li .forum-list-txt .forum-list-title a {
    display: block;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-list ul li .forum-list-txt .forum-list-time {
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    color: #666;
    overflow: hidden;
}

.forum-list ul li .flag {
    width: 48px;
    height: 24px;
    line-height: 24px;
    position: absolute;
    right: 10px;
    background: #ee3340;
    color: #fff;
    text-align: center;
    border-radius: .25rem;
    font-size: 14px;
}

/*forum-detail*/
.forum-detail {
    width: 100%;
    min-width: 1200px;
    margin-top: 10px;
}

.forum-detail .forum-detail-l {
    width: 870px;
    float: left;
}

.forum-detail .forum-detail-r {
    width: 320px;
    float: right;
    box-shadow: 0 0 15px #ddd;
}

/*forum-left-box*/
.forum-left-box {
    width: 850px;
    padding: 10px;
    color: #333;
    box-shadow: 0 0 15px #ddd;
}

.forum-left-box .forum-title {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.forum-left-box .forum-title h1 {
    width: 100%;
    height: 64px;
    line-height: 32px;
    font-size: 24px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.forum-left-box .forum-append {
    line-height: 40px;
    text-align: center;
}

.forum-left-box .forum-append span {
    margin-left: 10px;
    margin-right: 10px;
}

.forum-left-box .forum-append span em {
    color: #ee3340;
    font-style: normal;
}

.forum-left-box .forum-desc {
    line-height: 1em;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ccc;
}

.forum-left-box .forum-content {
    line-height: 2em;
    font-size: 16px;
    color: #333;
    font-family: sans-serif;
}

.forum-left-box .forum-content img {
    max-width: 100%;
    vertical-align: middle;
}

/*forum-reply*/
.forum-reply {
    width: 850px;
    margin-top: 10px;
    padding: 10px;
    color: #333;
    box-shadow: 0 0 15px #ddd;
}

/*furum-reply-list*/
.forum-reply-list {
    overflow: hidden;
}

.forum-reply-list ul {
    overflow: hidden;
}

.forum-reply-list ul li {
    margin-top: 10px;
    border-bottom: 1px dashed #ddd;
    clear: both;
    overflow: hidden;
}

.forum-reply-list ul li:first-child {
    margin-top: 0;
}

.forum-reply-list ul li .forum-reply-list-l {
    width: 120px;
    float: left;
    text-align: center;
}

.forum-reply-list ul li .forum-reply-list-l img {
    width: 80px;
    height: 80px;
    vertical-align: middle;
    transition: All 0.4s ease-in-out;
    -webkit-transition: All 0.4s ease-in-out;
    -moz-transition: All 0.4s ease-in-out;
    -o-transition: All 0.4s ease-in-out;
}

.forum-reply-list ul li .forum-reply-list-l img:hover {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
}

.forum-reply-list ul li .forum-reply-list-l p {
    width: 100%;
    height: 28px;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-reply-list ul li .forum-reply-list-r {
    width: 720px;
    float: right;
}

.forum-reply-list ul li .forum-reply-list-r .forum-reply-list-content {
    min-height: 80px;
    line-height: 36px;
    font-size: 14px;
    color: #333;
}

.forum-reply-list ul li .forum-reply-list-r .forum-reply-list-time {
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
}

/*furum-reply-form*/
.furum-reply-form {
    margin-top: 10px;
    color: #333;
    overflow: hidden;
}

.furum-reply-form textarea {
    width: 848px;
    height: 120px;
}

.furum-reply-form button {
    width: 120px;
    height: 38px;
    line-height: 38px;
    float: left;
    margin-top: 5px;
    background: #4d49e5;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: 1px solid #4d49e5;
    border-radius: 4px;
    outline: none;
}

.activity-reply-form button {
    width: 120px;
    height: 38px;
    line-height: 38px;
    margin-top: 5px;
    background: #4d49e5;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: 1px solid #4d49e5;
    border-radius: 4px;
    outline: none;
}

/*forum-right-right*/
.forum-right-box {
    padding: 10px;
}

.forum-right-box .hd {
    height: 38px;
    line-height: 38px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    color: #ee3340;
}

.forum-right-box .hd span {
    font-weight: bold;
    color: #ee3340;
}

.forum-right-box .bd {
    width: 100%;
    margin-top: 5px;
}

.forum-right-box .bd ul {
    width: 100%;
}

.forum-right-box .bd ul li {
    width: 100%;
    height: 32px;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.forum-right-box .bd ul li b {
    color: #ee3340;
    font-weight: bold;
    margin-right: 5px;
}

.forum-right-box .bd ul li a {
    color: #666;
}

.forum-right-box .bd ul li a:hover {
    color: #ee3340;
}

.forum-map {
    width: 320px;
    height: 320px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.share-right{
    display: block;
    text-align: right;
}

/* 容器样式 */
.forum-plate-tab {
    display: flex; /* 使用 flex 布局 */
    justify-content: space-between; /* 自动均分间距 */
    align-items: center; /* 垂直居中 */
    flex-wrap: wrap; /* 当超过4列时换行 */
    padding: 10px; /* 增加内边距 */
    border: 1px solid #ddd; /* 边框样式 */
    border-radius: 5px; /* 圆角 */
    background-color: #f9f9f9; /* 背景颜色 */
}

/* 每个 tab 的样式 */
.top-tab {
    flex: 1 1 calc(20% - 10px); /* 每个 tab 占一列，最多4列，留出间距 */
    margin: 5px; /* 间距 */
    text-align: center; /* 内容居中 */
    padding: 8px 10px; /* 内边距 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 4px; /* 圆角 */
    background-color: #fff; /* 背景色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    transition: all 0.3s ease; /* 动画过渡 */
}

/* 当前选中 tab 的样式 */
.top-tab.current {
    background-color: #007bff; /* 蓝色背景 */
    color: #fff; /* 白色文字 */
    font-weight: bold; /* 加粗字体 */
    border-color: #007bff; /* 边框颜色匹配背景 */
}

/* tab hover 状态 */
.top-tab:hover {
    background-color: #4d49e5;
    color: #fff; /* 白色文字 */
    /*background-color: #f1f1f1; !* 浅灰背景 *!*/
    cursor: pointer; /* 手型鼠标 */
}

/* tab 中的 a 链接样式 */
.top-tab a {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承父级颜色 */
    display: block; /* 链接填充整个 tab */
    width: 100%; /* 链接宽度100% */
    height: 100%; /* 链接高度100% */
}

.creator-plate {
    display: block;
    float: right;
}
/* 卡片容器样式，隔离于其他页面样式 */
.card-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* 卡片之间的间距 */
    padding: 20px; /* 容器内部间距 */
    background-color: #f9f9f9; /* 背景色，便于区分 */
    border-radius: 10px; /* 容器圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 容器阴影 */
}

.card-container .card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1; /* 每个卡片占据相等空间 */
    max-width: 300px; /* 卡片最大宽度 */
    min-height: 223px; /* 设置最小高度，避免高度太小 */
    display: flex;
    flex-direction: column; /* 垂直布局，确保内容按顺序排布 */
    justify-content: space-between; /* 上下内容分布 */
    text-align: center;
    overflow: hidden; /* 防止溢出 */
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-container .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card-container .card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    flex-shrink: 0; /* 确保标题不会被压缩 */
}

.card-container .card-content {
    font-size: 1rem;
    color: #555;
    text-align: left; /* 内容左对齐 */
    line-height: 1.5rem; /* 提高可读性 */
    margin-bottom: 20px;
    flex-grow: 1; /* 内容区域可扩展，填充剩余空间 */
    overflow-wrap: break-word; /* 确保长单词换行 */
}

.card-container .card-content .content-wrapper {
    display: block; /* 确保是块级元素 */
    max-width: 100%; /* 限制宽度为父容器宽度 */
    overflow-wrap: break-word; /* 确保换行 */
    white-space: normal; /* 确保文字按需换行 */
    overflow: hidden; /* 隐藏溢出内容 */

}

.card-container .card-content .content-wrapper .b-title {
    display: block; /* 将内联 span 转为块级元素 */
    float : left;
    max-width: 37px; /* 限制宽度不超过父容器 */
    overflow-wrap: break-word; /* 确保文字能换行 */
    word-break: break-word; /* 防止连续字符溢出 */
    white-space: normal; /* 确保文字按需换行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 添加省略号表示溢出 */
}

.card-container .card-content .content-wrapper .message {
    display: block; /* 将内联 span 转为块级元素 */
    float : left;
    max-width: 75%; /* 限制宽度不超过父容器 */
    overflow-wrap: break-word; /* 确保文字能换行 */
    word-break: break-word; /* 防止连续字符溢出 */
    white-space: normal; /* 确保文字按需换行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 添加省略号表示溢出 */
}




.card-container .card .card-button {
    display: inline-block; /* 确保按钮样式适用于a标签 */
    align-self: flex-end; /* 将按钮对齐到右侧 */
    background-color: #007BFF;
    color: #fff;
    text-decoration: none; /* 移除默认下划线 */
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    flex-shrink: 0; /* 确保按钮不会被压缩 */
}

.card-container .card .card-button:hover {
    background-color: #0056b3;
    text-decoration: none; /* 确保悬停时无下划线 */
}

.share-btn-container {
    margin-left: 91px;
}


.forum-like {
    text-align: center;
    margin-top: 10px;
}

.like-btn {
    border-radius: 5px;
    cursor: pointer;
}

.like-btn .layui-icon-heart-fill {
    font-size: 16px;
    margin-right: 5px;
}

.like-btn.liked {
    color: red; /* 字体颜色变为红色 */
    border-color: red; /* 按钮边框颜色变为红色 */
}

.like-btn.liked .layui-icon-heart-fill {
    color: red; /* 图标颜色变为红色 */
}

.forum-like-users {
    margin-top: 10px;
    text-align: center; /* 使内容居中 */
}

.like-users-list {
    display: inline-block; /* 使列表可以居中 */
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px; /* 限制最大宽度为800px */
}

.like-users-list li {
    display: inline-block;
    margin-right: 5px;
}

.user-avatar {
    width: 30px; /* 头像宽度 */
    height: 30px; /* 头像高度 */
    border-radius: 50%; /* 圆形头像 */
    border: 1px solid #ddd; /* 头像边框 */
}

.author-link {
    cursor: pointer;
    color: #01AAED; /* layui主题色，可根据实际需求调整 */
}
.author-link:hover {
    text-decoration: underline;
}


