.main{
    background-color: #f8f9fa;
    padding:2rem 0;
}

.forum-wrap{
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    box-sizing: border-box;
}

.forum-wrap .btns{
    padding-bottom: 1.25rem;
}

.forum-wrap .btns a{
    padding: .5rem 2rem;
    background-color: #111817;
    color: #fff;
    box-sizing: border-box;
    border-radius: .5rem;
}

.forum{
    background-color: #fff;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.forum-item{
    width: 100%;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f2f2f2;
}

.forum-item .reply{
    border: 1px solid #318ffe;
    background: #f5faff;
    color: #318ffe;
    font-weight: 500;
    width: 3rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: .2rem;
}

.forum-item .read{
    color: #6c757d!important;
    width: 3rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: .85rem;
    align-items: center;
}

.forum-item .con{
    display: flex;
}

.forum-item .con .user-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.forum-item .con .user-info .avatar{
    width: 3.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forum-item .con .user-info .avatar img{
    width: 3rem;
    border-radius: 50%;
}

.forum-item .con .user-info .username{
    font-size: .85rem;
    color: #6c757d!important;
    margin-top: .5rem;
}
.forum-item .content {
    margin-left: 1rem;
    line-height: 1.5rem;
}

.forum-item .content .title{
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
}

.forum-item .content .text,.forum-item .content .date{
    color: #6c757d!important;
    font-size: .813rem;
}


/* 论坛详情 */
.forum-con{
    background-color: #fff;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
    overflow: hidden;
}
.forum-con .user-info{
    padding: 1rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.forum-con .user-info img{
    border-radius: 50%;
}
.forum-con .user-info{
    color: #6c757d!important;
    font-size: .875rem!important;
}
.forum-con .user-info .username{
    color: #6c757d!important;
}

.forum-con .content{
    line-height:2rem;
}

.forum-con .content img{
    width: 100%;
}

.forum .form{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.forum .form .form-item{
    display: flex;
    gap: 2rem;
}

.forum .form .form-item label{
    width: 2rem;
}

.forum .form .form-item.btns{
    display: flex;
    justify-content: center;
}
.forum .form .form-item.btns .btn{
    background-color: #111817;
    color: #fff;
    width: 10rem;
}

/*论坛详情*/
/* 论坛详情页样式 */
.forum-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.forum-con h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.username {
    font-weight: bold;
    margin-right: 10px;
}

.date {
    color: #999;
    font-size: 14px;
}

.content {
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

/* 评论列表样式 */
.comment-list {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comment-list h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-content {
    line-height: 1.6;
    color: #333;
}

.no-comment {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* 评论表单样式 */
.comment-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-form h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 15px;
}

.submit-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #40a9ff;
}

/* 子评论样式 */
.comment-children {
    margin-left: 30px;
    margin-top: 15px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

.comment-item.child {
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
}

.reply-form {
    margin-top: 10px;
    margin-bottom: 15px;
}

.reply-form textarea {
    width: 100%;
    height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.submit-reply-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-reply-btn:hover {
    background: #40a9ff;
}

.comment-actions {
    margin-top: 8px;
}

.reply-btn {
    color: #1890ff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.reply-btn:hover {
    color: #40a9ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .forum-wrap{
        padding: 1rem;
        box-sizing: border-box;
    }
}