body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.forum-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.tologin {
    display: none;
}

.userHeadImg {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    margin-right: 20px;
    border-radius: 5px;
}

.main-content {
    padding-right: 15px;
}

.post-item {
    padding: 8px !important;
    margin: 0 !important;
    position: relative;
}

.card-body {
    padding: 0 !important;
}

.post-card {
    border: 1px solid lightgray;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 0 !important;
}

.post-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    align-items: center;
}

    .post-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

.avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.post-title {
    color: #333;
    cursor: pointer;
    flex-grow: 1;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
    line-height: 1.2em;
    margin-bottom: 10px;
}

.post-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 12px;
    color: #888;
}

    .post-meta span {
        margin-right: 15px;
    }

    .post-meta i {
        margin-right: 5px;
    }

.custom-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

    .custom-sidebar.open {
        right: 0;
    }

.sidebar-content {
    padding: 30px;
}

.sidebar-section {
    margin-bottom: 30px;
    text-align: center;
}

.usersetting {
    text-align: left;
    padding: 10px;
    border: 2px dashed lightgray;
    border-radius: 5px;
    background-color: ghostwhite;
}

    .usersetting svg {
        display: block;
        cursor: pointer;
    }

        .usersetting svg:hover {
            color: forestgreen;
        }

.userPoints {
    margin-top: 10px;
}

.user-info {
    border: 1px solid lightgray;
    padding: 10px;
    border-radius: 10px;
    display: none;
}

    .user-info .userHeadImg {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

.user-msg {
    border: 1px solid lightgray;
    padding: 5px;
    border-radius: 10px;
    height: 60px;
    line-height: 50px;
    cursor: pointer;
    display: none;
}

    .user-msg p {
        margin: 0;
    }

    .user-msg:hover {
        background-color: ghostwhite;
    }

.user-name {
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
}

.user-bio {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.edit-profile-btn {
    padding: 8px 20px;
    font-size: 14px;
}

.section-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

    .sidebar-list li {
        margin-bottom: 10px;
        display: inline;
        background-color: #008ee4;
        margin: 5px;
        color: white;
        cursor: pointer;
        padding: 5px;
        border-radius: 5px;
    }


        .sidebar-list li:hover {
            background-color: #007dfe;
        }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (min-width: 992px) {
    .custom-sidebar {
        right: 0;
        width: 18%;
    }

    #sidebarToggle {
        display: none;
    }

    .col-lg-9 {
        width: 75%;
    }

    .main-content {
        margin-right: 25%; /* 为主内容区添加右侧间隙 */
    }
}

@media (max-width: 991px) {
    .main-content {
        padding-right: 15px; /* 移动端减少间隙 */
    }

    .forum-container {
        max-width: 100%;
    }

    .sidebar-content {
        padding: 10px;
    }
}

.forum-info {
    border: 1px solid lightgray;
    border-radius: 8px;
    padding: 10px;
}

.section-text {
    text-align: left;
}


/* 表情选择框样式 */
#emoji-selector {
    position: absolute; /* 使用 absolute 定位 */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
}

.emoji-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.emoji {
    cursor: pointer;
    font-size: 24px;
    margin: 5px;
    transition: transform 0.1s;
}

    .emoji:hover {
        transform: scale(1.2);
    }

/* 表情容器样式 */
.emoji-container {
    display: inline-block;
    margin-left: 10px;
}

    .emoji-container .badge {
        margin-right: 5px;
        font-size: 14px;
    }

/* Laugh按钮样式 */
.laugh-btn {
    cursor: pointer;
    transition: color 0.3s;
}

    .laugh-btn:hover {
        color: #007bff;
    }


.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-content-placeholder {
    font-size: 20px;
    color: gray;
    text-align: center;
    padding: 10px;
}

.user-actions i {
    cursor: pointer;
}
