body.has-phoenix-header.forum-page {
    background: #f4f6f9;
    margin: 0;
}

.forum-wrap {
    box-sizing: border-box;
    margin: 16px auto 32px;
    max-width: 1100px;
    padding: 0 16px;
    width: 100%;
}

.forum-page[data-active-tab="chat"] .forum-wrap {
    margin-bottom: 16px;
    max-width: 1440px;
}

.forum-page[data-active-tab="chat"] .forum-panel {
    min-height: 0;
}

.forum-main-tabs {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px 10px 0 0;
    display: flex;
    gap: 0;
    overflow: hidden;
}

.forum-main-tab {
    color: #666;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
}

.forum-main-tab.is-active {
    background: linear-gradient(180deg, #fff5f5, #fff);
    border-bottom: 2px solid #e73b3b;
    color: #e73b3b;
}

.forum-panel {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 0 0 10px 10px;
    border-top: none;
    min-height: 520px;
}

.forum-toolbar {
    align-items: center;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
}

.forum-filter-tabs a {
    border-radius: 14px;
    color: #666;
    display: inline-block;
    font-size: 13px;
    margin-right: 8px;
    padding: 6px 14px;
    text-decoration: none;
}

.forum-filter-tabs a.is-active,
.forum-filter-tabs a:hover {
    background: #e73b3b;
    color: #fff;
}

.forum-post-btn {
    background: #e73b3b;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    padding: 8px 18px;
    text-decoration: none;
}

.forum-body {
    display: flex;
    min-height: 460px;
}

.forum-sidebar {
    border-right: 1px solid #eef1f5;
    flex-shrink: 0;
    padding: 16px 0;
    width: 160px;
}

.forum-sidebar h3 {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin: 0 0 8px;
    padding: 0 18px;
}

.forum-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-group-list a {
    color: #444;
    display: block;
    font-size: 14px;
    padding: 10px 18px;
    text-decoration: none;
}

.forum-group-list a.is-active,
.forum-group-list a:hover {
    background: #fff5f5;
    border-right: 3px solid #e73b3b;
    color: #e73b3b;
}

.forum-content {
    flex: 1;
    min-width: 0;
    padding: 8px 18px 18px;
}

.forum-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-post-item {
    border-bottom: 1px solid #f0f2f5;
    padding: 14px 0;
}

.forum-post-item a {
    color: inherit;
    display: block;
    text-decoration: none;
}

.forum-post-item a:hover h4 {
    color: #e73b3b;
}

.forum-post-item h4 {
    color: #222;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
}

.forum-post-summary {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px;
}

.forum-meta {
    color: #aaa;
    font-size: 12px;
}

.forum-meta span {
    margin-right: 12px;
}

.forum-tag {
    border-radius: 3px;
    display: inline-block;
    font-size: 11px;
    margin-right: 6px;
    padding: 1px 6px;
}

.forum-tag.essence {
    background: #fff3cd;
    color: #856404;
}

.forum-tag.hot {
    background: #fde8e8;
    color: #e73b3b;
}

.forum-pagination {
    margin-top: 16px;
    text-align: center;
}

.forum-pagination a,
.forum-pagination span {
    border: 1px solid #e3e8ef;
    border-radius: 4px;
    color: #666;
    display: inline-block;
    font-size: 13px;
    margin: 0 3px;
    min-width: 28px;
    padding: 4px 8px;
    text-decoration: none;
}

.forum-pagination a.is-active {
    background: #e73b3b;
    border-color: #e73b3b;
    color: #fff;
}

.forum-empty {
    color: #999;
    padding: 60px 0;
    text-align: center;
}

/* Chat panel - see forum-chat.css */
.forum-chat-panel {
    padding: 0;
}

/* Detail */
.forum-detail-wrap,
.forum-post-wrap {
    max-width: 860px;
}

.forum-detail-nav {
    margin-bottom: 12px;
}

.forum-detail-nav a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.forum-detail-card,
.forum-post-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 24px;
}

.forum-detail-head {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.forum-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.forum-detail-head h1 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.forum-detail-body {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.forum-reply-section {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 20px 24px 24px;
}

.forum-reply-section h3 {
    font-size: 16px;
    margin: 0 0 16px;
}

.forum-reply-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.forum-reply-item {
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    gap: 12px;
    padding: 14px 0;
}

.forum-reply-item .forum-avatar {
    height: 36px;
    width: 36px;
}

.forum-reply-head {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 6px;
}

.forum-reply-head strong {
    color: #333;
    margin-right: 10px;
}

.forum-reply-body {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.forum-reply-form textarea,
.forum-post-card textarea,
.forum-post-card input[type=text],
.forum-post-card select {
    border: 1px solid #dde3ea;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    margin-bottom: 14px;
    padding: 10px 12px;
    width: 100%;
}

.forum-reply-form button,
.forum-post-actions button {
    background: #e73b3b;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 24px;
}

.forum-post-card label {
    color: #666;
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.forum-post-card h2 {
    font-size: 18px;
    margin: 0 0 20px;
}

.forum-post-actions a {
    color: #888;
    font-size: 14px;
    margin-left: 16px;
    text-decoration: none;
}
