/**
 * AI Navigator Theme - Forum Styles
 * Version: 2.9.0
 * 
 * Complete forum styles matching reference HTML
 */

/* ===== Forum Hero Banner ===== */
.forum-hero {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.forum-hero.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.forum-hero.has-bg-image > * {
    position: relative;
    z-index: 2;
}

.forum-hero-content {
    flex: 1;
}

.forum-hero-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.forum-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.forum-hero-stats {
    display: flex;
    gap: 32px;
}

.forum-hero-stat {
    display: flex;
    flex-direction: column;
}

.forum-hero-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.forum-hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.forum-hero-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    color: #ef4444;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.forum-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ef4444;
}

.forum-hero-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== Forum Section Header ===== */
.forum-section-header {
    margin-bottom: 16px;
}

.forum-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.forum-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

/* ===== Featured Posts Grid ===== */
.forum-featured {
    margin-bottom: 32px;
}

.forum-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.forum-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.forum-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.forum-featured-image {
    height: 120px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.forum-featured-badge {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.forum-featured-badge.hot {
    background: #ff4757;
    color: white;
}

.forum-featured-content {
    padding: 16px;
}

.forum-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.forum-featured-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
}

.forum-featured-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.forum-featured-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-featured-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.forum-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forum-featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-featured-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.forum-featured-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.forum-featured-author span {
    font-size: 13px;
    color: var(--text-secondary);
}

.forum-featured-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.forum-featured-stats svg {
    width: 14px;
    height: 14px;
}

/* ===== Forum Main Layout ===== */
.forum-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* ===== Forum Posts ===== */
.forum-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.forum-sort-select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.forum-list-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Forum Post Card ===== */
.forum-post-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s;
}

.forum-post-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.forum-post-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.forum-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.forum-post-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.forum-post-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.forum-vote-btn {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.forum-vote-btn:hover {
    color: var(--color-primary);
    background: var(--bg-hover);
}

.forum-vote-btn.active.upvote {
    color: #10b981;
}

.forum-vote-btn.active.downvote {
    color: #ef4444;
}

.forum-vote-btn svg {
    width: 16px;
    height: 16px;
}

.forum-vote-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.forum-post-main {
    flex: 1;
    min-width: 0;
}

.forum-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.forum-post-tag {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.forum-post-tag.discussion {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.forum-post-tag.question {
    background: rgba(245, 175, 25, 0.1);
    color: #f5af19;
}

.forum-post-tag.showcase {
    background: rgba(17, 153, 142, 0.1);
    color: #11998e;
}

.forum-post-tag.tutorial {
    background: rgba(250, 112, 154, 0.1);
    color: #fa709a;
}

.forum-post-tag.news {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}

.forum-post-tag.resource {
    background: rgba(168, 237, 234, 0.1);
    color: #00b894;
}

.forum-post-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.forum-post-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.forum-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.forum-post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.forum-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forum-post-stats {
    display: flex;
    gap: 16px;
}

.forum-post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.forum-post-stat svg {
    width: 14px;
    height: 14px;
}

.forum-post-tags {
    display: flex;
    gap: 6px;
}

.forum-mini-tag {
    padding: 2px 8px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 11px;
    border-radius: 4px;
}

/* ===== Forum Sidebar ===== */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forum-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.forum-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.forum-sidebar-title svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* Trending Topics */
.forum-trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    margin: -8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.forum-trending-item:hover {
    background: var(--bg-hover);
}

.forum-trending-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.forum-trending-item:nth-child(1) .forum-trending-rank {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: white;
}

.forum-trending-item:nth-child(2) .forum-trending-rank {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: white;
}

.forum-trending-item:nth-child(3) .forum-trending-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: white;
}

.forum-trending-info {
    flex: 1;
}

.forum-trending-topic {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.forum-trending-posts {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Contributors */
.forum-contributors {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-contributor {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    margin: -8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.forum-contributor:hover {
    background: var(--bg-hover);
}

.forum-contributor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.forum-contributor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.forum-contributor-info {
    flex: 1;
}

.forum-contributor-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.forum-contributor-posts {
    font-size: 12px;
    color: var(--text-tertiary);
}

.forum-contributor-badge {
    font-size: 18px;
}

/* Tags Cloud */
.forum-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-cloud-tag {
    padding: 6px 12px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.forum-cloud-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Sidebar CTA */
.forum-sidebar-cta {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.forum-cta-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.forum-cta-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.forum-cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.forum-cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.forum-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Mobile FAB ===== */
.mobile-fab.forum-fab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 50%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    cursor: pointer;
    z-index: 100;
}

.mobile-fab.forum-fab svg {
    width: 24px;
    height: 24px;
}

/* ===== Compose / New Post Page ===== */
.compose-container {
    max-width: 800px;
    margin: 0 auto;
}

.compose-header {
    margin-bottom: 32px;
}

.compose-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.compose-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.compose-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.compose-field {
    margin-bottom: 24px;
}

.compose-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.compose-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.compose-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-card);
}

.compose-select-wrapper {
    position: relative;
}

.compose-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
}

.compose-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.compose-select-wrapper svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.compose-editor {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-light);
}

.editor-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.editor-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.editor-btn svg {
    width: 18px;
    height: 18px;
}

.compose-textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    background: var(--bg-card);
    border: none;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    resize: vertical;
}

.compose-textarea:focus {
    outline: none;
}

.compose-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--bg-hover);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.compose-upload:hover {
    border-color: var(--color-primary);
    background: var(--bg-input);
}

.compose-upload svg {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.compose-upload span {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.compose-upload small {
    font-size: 12px;
    color: var(--text-tertiary);
}

.compose-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.compose-options {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.compose-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.compose-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.compose-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== Post Detail Page ===== */
.post-detail-page {
    max-width: 100%;
}

/* Breadcrumb */
.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.topbar-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.topbar-breadcrumb a:hover {
    color: var(--color-primary);
}

.topbar-breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
}

.topbar-breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

.topbar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.topbar-back:hover {
    color: var(--color-primary);
}

.topbar-back svg {
    width: 18px;
    height: 18px;
}

/* Post Detail Layout */
.post-detail-layout {
    display: grid;
    grid-template-columns: 60px 1fr 320px;
    gap: 24px;
}

.post-detail-layout-simple {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* Post Article */
.post-article {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-article-header {
    padding: 28px 28px 0;
}

.post-article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.post-article-tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.post-article-tag.discussion {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.post-article-tag.question {
    background: rgba(245, 175, 25, 0.1);
    color: #f5af19;
}

.post-article-tag.showcase {
    background: rgba(17, 153, 142, 0.1);
    color: #11998e;
}

.post-article-tag.tutorial {
    background: rgba(250, 112, 154, 0.1);
    color: #fa709a;
}

.post-article-tag.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
}

.post-article-tag.ai-tools {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.post-article-tag.news {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.post-article-tag.resource {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.post-article-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.post-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-article-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.post-article-avatar.has-image {
    background: transparent !important;
}

.post-article-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-article-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-article-author-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-author-badge {
    padding: 2px 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
}

.post-article-author-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-article-stats {
    display: flex;
    gap: 16px;
}

.post-article-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.post-article-stat svg {
    width: 16px;
    height: 16px;
}

/* Post Content */
.post-article-content {
    padding: 28px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
}

.post-article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.post-article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.post-article-content p {
    margin-bottom: 16px;
}

.post-article-content ul,
.post-article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-article-content li {
    margin-bottom: 8px;
}

/* Quote Block */
.post-quote {
    position: relative;
    margin: 24px 0;
    padding: 20px 24px 20px 56px;
    background: var(--bg-hover);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-quote svg {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    opacity: 0.5;
}

.post-quote p {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

/* Code Block */
.post-code-block {
    margin: 24px 0;
    background: #1e1e1e;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.post-code-header span {
    font-size: 13px;
    color: #999;
}

.post-code-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #555;
    border-radius: var(--radius-sm);
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.post-code-copy:hover {
    background: #3d3d3d;
    border-color: #666;
}

.post-code-copy svg {
    width: 14px;
    height: 14px;
}

.post-code-block pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
}

.post-code-block code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d4;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.post-tag-link {
    padding: 6px 14px;
    background: var(--bg-hover);
    color: var(--color-primary);
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tag-link:hover {
    background: var(--color-primary);
    color: white;
}

/* Post Actions */
.post-article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--bg-hover);
    border-top: 1px solid var(--border-light);
}

.post-action-group {
    display: flex;
    gap: 8px;
}

.post-action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.post-action-item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.post-action-item.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.post-action-item svg {
    width: 18px;
    height: 18px;
}

/* ===== Comments Section ===== */
.post-comments {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.post-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.post-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-comments-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.post-comments-sort {
    padding: 8px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Comment Form */
.post-comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.post-comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.post-comment-form-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-comment-form-input {
    flex: 1;
}

.post-comment-form-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    margin-bottom: 12px;
}

.post-comment-form-input textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.post-comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-comment-form-tools {
    display: flex;
    gap: 4px;
}

.post-comment-tool {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.post-comment-tool:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.post-comment-tool svg {
    width: 18px;
    height: 18px;
}

/* Comment Item */
.post-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-comments-empty {
    text-align: center;
    color: var(--text-tertiary);
    padding: 24px;
}

.post-comment {
    display: flex;
    gap: 12px;
}

.post-comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.post-comment-vote-btn {
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.post-comment-vote-btn:hover {
    color: var(--color-primary);
    background: var(--bg-hover);
}

.post-comment-vote-btn svg {
    width: 16px;
    height: 16px;
}

.post-comment-vote span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-comment-main {
    flex: 1;
    min-width: 0;
}

.post-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.post-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.post-comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-comment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-comment-badge {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
}

.post-comment-badge.top {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: white;
}

.post-comment-badge.op {
    background: var(--color-primary);
    color: white;
}

.post-comment-time {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: auto;
}

.post-comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.post-comment-body p {
    margin-bottom: 8px;
}

.post-comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.post-comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.post-comment-action:hover {
    color: var(--color-primary);
}

.post-comment-action svg {
    width: 16px;
    height: 16px;
}

/* Nested Comments */
.post-comment-replies {
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--border-light);
}

/* Load More */
.post-comments-load-more {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.post-comments-load-more:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===== Post Sidebar ===== */
.post-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.post-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.post-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.post-sidebar-title svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* Author Card */
.post-author-card {
    text-align: center;
}

.post-author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-author-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.post-author-avatar-lg.has-image {
    background: transparent !important;
}

.post-author-avatar-lg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name-lg {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.post-author-stat {
    text-align: center;
}

.post-author-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-author-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.post-author-follow-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.post-author-follow-btn:hover {
    opacity: 0.9;
}

/* TOC */
.post-toc {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-toc-item {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
    transition: all 0.2s;
}

.post-toc-item:hover {
    color: var(--color-primary);
}

.post-toc-item.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.post-toc-item.sub {
    padding-left: 24px;
    font-size: 13px;
}

/* Related Posts */
.post-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    margin: -8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.post-related-item:hover {
    background: var(--bg-hover);
}

.post-related-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.post-related-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-related-info span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Sidebar Tags */
.post-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-sidebar-tag {
    padding: 6px 12px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.post-sidebar-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .forum-main-layout {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        display: none;
    }
    
    .post-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .post-detail-layout-simple {
        grid-template-columns: 1fr;
    }
    
    .post-detail-sidebar {
        /* 手机端显示在主内容下方 */
        display: block;
        order: 2;
        margin-top: 24px;
    }
    
    .post-detail-sidebar .post-sidebar-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .forum-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .forum-hero-stats {
        justify-content: center;
    }
    
    .forum-hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .forum-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .forum-featured-card {
        display: flex;
        flex-direction: row;
    }
    
    .forum-featured-image {
        width: 100px;
        min-width: 100px;
        height: auto;
        min-height: 100px;
    }
    
    .forum-featured-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .forum-post-card {
        padding: 16px;
    }
    
    .forum-post-left {
        display: none;
    }
    
    .forum-post-title {
        font-size: 15px;
    }
    
    .forum-post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .forum-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .forum-post-tags {
        display: none;
    }
    
    .mobile-fab.forum-fab {
        display: flex;
    }
    
    .compose-form {
        padding: 20px;
    }
    
    .compose-actions {
        flex-direction: column;
    }
    
    .compose-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .post-article-header {
        padding: 20px 20px 0;
    }
    
    .post-article-content {
        padding: 20px;
    }
    
    .post-article-title {
        font-size: 22px;
    }
    
    .post-article-actions {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .post-action-group {
        width: 100%;
        justify-content: center;
    }
    
    .post-comments {
        padding: 16px;
    }
}

/* ===== Forum Empty State ===== */
.forum-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

/* ===== Member Profile Page ===== */
.member-profile-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}

.member-profile-layout {
    width: 100%;
}

.member-profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.member-profile-cover {
    height: 120px;
}

.member-profile-info {
    padding: 0 24px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.member-avatar-wrapper {
    margin-top: -48px;
}

.member-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    border: 4px solid var(--bg-card);
}

.member-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-details {
    flex: 1;
    min-width: 200px;
}

.member-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.member-username {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.member-bio {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.member-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.member-meta-item svg {
    width: 14px;
    height: 14px;
}

.member-meta-item:hover {
    color: var(--color-primary);
}

.member-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.member-actions .btn {
    min-width: 100px;
}

.member-actions .btn.following {
    background: var(--bg-card);
    color: var(--text-primary);
}

.member-stats {
    display: flex;
    border-top: 1px solid var(--border-light);
}

.member-stat {
    flex: 1;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.member-stat:hover {
    background: var(--bg-secondary);
}

.member-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.member-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Member Tabs */
.member-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.member-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: all 0.2s;
}

.member-tab svg {
    width: 16px;
    height: 16px;
}

.member-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.member-tab.active {
    background: var(--color-primary);
    color: white;
}

/* Member Content */
.member-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.member-posts-list,
.member-comments-list,
.member-users-list {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
}

.member-post-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.member-post-item:last-child {
    border-bottom: none;
}

.member-post-item:hover {
    background: var(--bg-secondary);
}

.member-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.member-post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.member-post-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    gap: 8px;
}

.member-comment-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.member-comment-item:last-child {
    border-bottom: none;
}

.member-comment-header {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.member-comment-header a {
    color: var(--color-primary);
    font-weight: 500;
}

.member-comment-content {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.member-comment-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.member-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.member-user-item:last-child {
    border-bottom: none;
}

.member-user-item:hover {
    background: var(--bg-secondary);
}

.member-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.member-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-user-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.member-user-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.member-empty {
    padding: 48px 24px;
    text-align: center;
}

.member-empty svg {
    width: 48px;
    height: 48px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.member-empty p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== New Post Page Enhancements ===== */
.compose-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-tertiary);
}

.compose-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ===== Mobile Responsive Fixes ===== */
@media (max-width: 768px) {
    /* Mobile post title size optimization */
    .post-article-title {
        font-size: 20px !important;
        line-height: 1.3;
    }
    
    .member-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .member-avatar-wrapper {
        margin-top: -60px;
    }
    
    .member-details {
        width: 100%;
    }
    
    .member-meta {
        justify-content: center;
    }
    
    .member-actions {
        justify-content: center;
        width: 100%;
    }
    
    .member-tabs {
        padding: 4px;
    }
    
    .member-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .member-tab svg {
        display: none;
    }
    
    .member-stat-value {
        font-size: 18px;
    }
    
    /* Forum post card title on mobile */
    .forum-post-title {
        font-size: 15px;
    }
    
    .forum-featured-title {
        font-size: 16px;
    }
}

/* ===== Upload Preview Grid ===== */
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.upload-preview-item.featured {
    border: 2px solid var(--color-primary);
}

.upload-preview-item.featured::after {
    content: '★';
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.upload-preview-item .file-icon svg {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.upload-preview-item .file-name {
    font-size: 10px;
    padding: 0 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.upload-preview-item:hover .remove-btn {
    opacity: 1;
}

/* Comment image upload button */
.comment-image-upload {
    cursor: pointer;
}

.comment-image-upload:hover {
    color: var(--color-primary);
}

/* ===== v2.9.1 增强功能样式 ===== */

/* 回复指示器 */
.reply-indicator {
    display: flex;
    align-items: center;
    background: var(--bg-hover);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.reply-indicator strong {
    color: var(--text-primary);
    margin: 0 4px;
}

.cancel-reply {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
}

.cancel-reply:hover {
    color: var(--text-primary);
}

/* 表单验证错误状态 */
.compose-input.error,
.compose-textarea.error,
.compose-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.validation-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.validation-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-errors li {
    margin-bottom: 4px;
}

.validation-errors li:last-child {
    margin-bottom: 0;
}

/* 草稿保存通知 */
.draft-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 提交按钮加载状态 */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* 成功消息横幅 */
.success-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

/* 嵌套回复缩进 */
.post-comment.reply {
    margin-left: 48px;
    border-left: 2px solid var(--border-light);
    padding-left: 16px;
}

/* 回复中的 @提及 */
.mention {
    color: var(--color-primary);
    font-weight: 500;
}

/* 帖子状态徽章 */
.post-status-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.post-badge.pinned {
    background: #fef3c7;
    color: #92400e;
}

.post-badge.featured {
    background: #dbeafe;
    color: #1e40af;
}

.post-badge.solved {
    background: #d1fae5;
    color: #065f46;
}

/* 编辑/删除按钮样式 */
.post-action-item[data-action="delete"] {
    color: var(--text-muted);
}

.post-action-item[data-action="delete"]:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 更新提示 */
.post-updated-notice {
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* 暗色模式适配 */
.dark .validation-errors {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.dark .draft-notification {
    background: var(--bg-elevated);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .post-badge.pinned {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.dark .post-badge.featured {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.dark .post-badge.solved {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* ========================================
   Phase 1 Fixes - v2.9.2
   ======================================== */

/* AI Tools 标签 - 淡红色背景 */
.post-article-tag.ai-tools,
.forum-post-tag.ai-tools {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dark .post-article-tag.ai-tools,
.dark .forum-post-tag.ai-tools {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* 评论投票按钮样式优化 */
.post-comment-vote {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 4px 8px;
}

.post-comment-vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-comment-vote-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.post-comment-vote-btn.upvote:hover,
.post-comment-vote-btn.upvote.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.post-comment-vote-btn.downvote:hover,
.post-comment-vote-btn.downvote.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.post-comment-vote-btn svg {
    width: 16px;
    height: 16px;
}

.post-comment-vote span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

/* 移动端侧边栏显示 */
@media (max-width: 1024px) {
    .post-detail-sidebar {
        display: block;
        margin-top: 32px;
    }
    
    /* 在移动端重新排列侧边栏卡片 */
    .post-detail-sidebar .post-sidebar-card {
        margin-bottom: 16px;
    }
    
    /* 作者卡片水平布局 */
    .post-detail-sidebar .post-author-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }
    
    .post-detail-sidebar .post-author-header {
        flex: 1;
        min-width: 150px;
    }
    
    .post-detail-sidebar .post-author-stats {
        flex: 2;
        min-width: 200px;
    }
    
    .post-detail-sidebar .post-author-follow-btn {
        flex: 0 0 auto;
    }
    
    /* 目录折叠 */
    .post-detail-sidebar .post-toc {
        max-height: 200px;
        overflow-y: auto;
    }
    
    /* 相关帖子横向滚动 */
    .post-detail-sidebar .post-related-list {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
    }
    
    .post-detail-sidebar .post-related-item {
        flex: 0 0 280px;
    }
}

/* Follow 按钮样式优化 */
.post-author-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: var(--accent-color, #ef4444);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 12px;
}

.post-author-follow-btn:hover {
    background: var(--accent-hover, #dc2626);
    transform: translateY(-1px);
}

.post-author-follow-btn.following {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.post-author-follow-btn.following:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* 帖子操作按钮激活状态 */
.post-action-item.active {
    color: #ef4444;
}

.post-action-item.active svg {
    fill: currentColor;
}

.post-action-item[data-action="save"].active {
    color: #f59e0b;
}

/* 分享下拉菜单样式优化 */
.share-dropdown {
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.share-option:hover {
    background: var(--bg-hover);
}

/* 帖子图片样式优化 - 确保灯箱可点击 */
.post-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.post-article-content img:hover {
    transform: scale(1.02);
}

/* 图片预览网格 */
.post-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.post-images-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

/* 回复指示器英文样式 */
.reply-indicator {
    display: flex;
    align-items: center;
    background: var(--bg-hover);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.reply-indicator strong {
    color: var(--text-primary);
    margin: 0 4px;
}

.cancel-reply {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.cancel-reply:hover {
    color: var(--text-primary);
}

/* 暗色模式适配 */
.dark .post-comment-vote {
    background: var(--bg-tertiary);
}

.dark .post-author-follow-btn.following {
    background: var(--bg-tertiary);
}

.dark .share-dropdown {
    background: var(--bg-elevated);
    border-color: var(--border-dark);
}

/* 评论嵌套回复样式 */
.post-comment.reply {
    margin-left: 40px;
    padding-left: 16px;
    border-left: 2px solid var(--border-light);
}

.post-comment.reply::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 20px;
    width: 16px;
    height: 2px;
    background: var(--border-light);
}

@media (max-width: 640px) {
    .post-comment.reply {
        margin-left: 20px;
        padding-left: 12px;
    }
}

/* 评论图片网格样式 */
.comment-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
    max-width: 400px;
}

.comment-image-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.comment-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.comment-image-thumb:hover img {
    transform: scale(1.05);
}

.comment-image-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
}

.comment-image-thumb:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* 旧样式保留兼容 */
.comment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.comment-image:hover {
    transform: scale(1.02);
}

/* ========================================
   Phase 2 Enhancements - v2.9.2
   ======================================== */

/* Enhanced Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    flex-wrap: wrap;
}

.editor-toolbar-group {
    display: flex;
    gap: 2px;
}

.editor-toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
    margin: 0 6px;
}

.editor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.editor-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.editor-btn:active {
    background: var(--bg-tertiary);
    transform: scale(0.95);
}

.editor-btn svg {
    width: 18px;
    height: 18px;
}

.compose-textarea {
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--border-light);
}

.editor-help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
}

/* Editor Modal */
.editor-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.editor-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.editor-modal-content h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.editor-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.editor-modal-tabs .tab-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.editor-modal-tabs .tab-btn.active {
    background: var(--accent-color, #ef4444);
    border-color: var(--accent-color, #ef4444);
    color: white;
}

.editor-modal-field {
    margin-bottom: 16px;
}

.editor-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.editor-modal-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.editor-modal-field input:focus {
    outline: none;
    border-color: var(--accent-color, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.editor-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.image-upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: var(--accent-color, #ef4444);
    background: rgba(239, 68, 68, 0.05);
}

.image-upload-zone svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.image-upload-zone span {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Upload Preview Grid */
#upload-preview-container,
.upload-preview-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.upload-preview-item {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.preview-image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.preview-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: var(--accent-color, #ef4444);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.preview-file-icon {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.preview-file-icon svg {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.preview-file-icon span {
    font-size: 10px;
    font-weight: 600;
}

.preview-info {
    padding: 8px;
}

.preview-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-size {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.upload-preview-item:hover .preview-remove {
    opacity: 1;
}

.preview-remove:hover {
    background: #ef4444;
}

/* Upload Area Dragover State */
.compose-upload.dragover {
    border-color: var(--accent-color, #ef4444);
    background: rgba(239, 68, 68, 0.05);
}

/* Dark Mode */
.dark .editor-toolbar {
    background: var(--bg-tertiary);
}

.dark .editor-modal-content {
    background: var(--bg-secondary);
}

.dark .editor-modal-field input {
    background: var(--bg-tertiary);
}

.dark .image-upload-zone:hover,
.dark .image-upload-zone.dragover {
    background: rgba(239, 68, 68, 0.1);
}

.dark .upload-preview-item {
    background: var(--bg-tertiary);
}

.dark .preview-file-icon {
    background: var(--bg-secondary);
}

/* ========================================
   Member Page Enhancements
   ======================================== */

/* Member post thumbnail */
.member-post-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.member-post-item:hover {
    border-color: var(--accent-color, #ef4444);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.member-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.member-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-post-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
}

.member-post-thumb.placeholder svg {
    width: 32px;
    height: 32px;
}

.dark .member-post-thumb.placeholder {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #6b7280;
}

.member-post-content {
    flex: 1;
    min-width: 0;
}

.member-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Member tabs as buttons */
.member-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: none;
    padding: 0;
}

.member-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.member-tab:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.member-tab.active {
    background: var(--accent-color, #ef4444);
    border-color: var(--accent-color, #ef4444);
    color: white;
}

.member-tab svg {
    width: 16px;
    height: 16px;
}

/* Share dropdown - pop up */
.share-dropdown-wrapper {
    position: relative;
}

.share-dropdown {
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-option:hover {
    background: var(--bg-hover);
}

/* Comment images grid - click to lightbox */
.comment-images-grid {
    cursor: pointer;
}

/* Following button states */
.btn.following {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.btn.following:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Mobile responsive for member page */
@media (max-width: 768px) {
    .member-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    
    .member-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .member-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .member-post-item {
        flex-direction: column;
    }
    
    .member-post-thumb {
        width: 100%;
        height: 160px;
    }
}

/* ========================================
   Additional Mobile Fixes
   ======================================== */

/* 手机端侧边栏相关帖子间距修复 */
@media (max-width: 768px) {
    .post-sidebar-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .post-sidebar-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .post-related-list {
        gap: 8px;
    }
    
    .post-related-item {
        padding: 8px;
        gap: 10px;
    }
    
    .post-related-thumb {
        width: 48px;
        height: 48px;
        border-radius: 6px;
    }
    
    .post-related-info h4 {
        font-size: 13px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .post-related-info span {
        font-size: 11px;
    }
    
    /* 作者卡片紧凑 */
    .post-author-card {
        padding: 12px;
    }
    
    .post-author-header {
        gap: 10px;
    }
    
    .post-author-avatar-lg {
        width: 48px;
        height: 48px;
    }
    
    .post-author-name-lg {
        font-size: 15px;
    }
    
    .post-author-bio {
        font-size: 13px;
        margin: 8px 0;
    }
    
    .post-author-stats {
        gap: 12px;
    }
    
    .post-author-stat-value {
        font-size: 16px;
    }
    
    .post-author-stat-label {
        font-size: 11px;
    }
    
    /* 目录隐藏 */
    .post-toc {
        display: none;
    }
}

/* 分享下拉菜单悬停效果 */
.share-option:hover {
    background: #f3f4f6 !important;
}

/* Member 统计按钮样式 */
.member-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

.member-stats .member-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.member-stats .member-stat:hover {
    background: var(--bg-hover, #f3f4f6);
}

.member-stats .member-stat.active {
    background: var(--accent-color, #ef4444);
}

.member-stats .member-stat.active .member-stat-value,
.member-stats .member-stat.active .member-stat-label {
    color: white;
}

/* ========================================
   v3.2.0 Fixes
   ======================================== */

/* Mobile cat link - Back button must be inline with icon */
.mobile-nav-scroll .mobile-cat-link {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-nav-scroll .mobile-cat-link svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Forum post avatar - show real avatar image */
.forum-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.forum-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Comment form tools - no shadow */
.post-comment-form-tools {
    display: inline-flex;
    gap: 4px;
}

.post-comment-tool {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    background: transparent;
}

.post-comment-tool:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.post-comment-tool svg {
    width: 18px;
    height: 18px;
}

/* Post author stats - clean style */
.post-author-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    margin-top: 12px;
    border-top: 1px solid var(--border-light);
}

.post-author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.post-author-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-author-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Edit page image upload preview */
.edit-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.edit-upload-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-upload-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.edit-upload-item:hover .remove-btn {
    opacity: 1;
}

/* Editor toolbar improvements */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    border-radius: 12px 12px 0 0;
    flex-wrap: wrap;
}

.editor-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.editor-toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--border-light);
    margin: 0 8px;
}

.editor-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.editor-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.editor-btn:active {
    transform: scale(0.95);
}

.editor-btn svg {
    width: 16px;
    height: 16px;
}

.compose-textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 12px 12px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    background: var(--bg-card);
    color: var(--text-primary);
}

.compose-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.editor-help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Image lightbox for edit page */
.edit-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.edit-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.edit-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.edit-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile FAB - smaller and gray */
.mobile-fab.forum-fab {
    width: 48px;
    height: 48px;
    background: #d1d5db;
    box-shadow: none;
}

.mobile-fab.forum-fab:hover {
    background: #9ca3af;
}

.mobile-fab.forum-fab svg {
    color: #374151;
}

/* Mobile: post-related-list smaller gap */
@media (max-width: 768px) {
    .post-related-list {
        gap: 8px;
    }
    
    .post-related-item {
        padding: 8px;
    }
    
    /* Post actions align left on mobile */
    .post-article-actions {
        justify-content: flex-start;
    }
    
    .post-action-group {
        justify-content: flex-start;
    }
    
    /* Hide Related Posts on mobile */
    .post-related-card {
        display: none;
    }
    
    /* Post sidebar card align left */
    .post-sidebar-card {
        text-align: left;
    }
    
    .post-author-header {
        justify-content: flex-start;
    }
    
    .post-author-stats {
        justify-content: flex-start;
    }
}

/* v3.3.1 - Featured image placeholder */
.forum-featured-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forum-featured-placeholder svg {
    color: rgba(255,255,255,0.5);
}

/* Locked post notice */
.post-locked-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #92400e;
}

.post-locked-notice p {
    margin: 0;
    font-size: 14px;
}

/* === v3.3.3 Fixes === */

/* Featured Card Simple - No image version */
.forum-featured-card-simple {
    display: flex;
    flex-direction: column;
}

.forum-featured-card-simple .forum-featured-content {
    padding: 20px;
    flex: 1;
}

.forum-featured-card-simple .forum-featured-title {
    font-size: 17px;
    margin-bottom: 8px;
}

.forum-featured-card-simple .forum-featured-excerpt {
    margin-bottom: 16px;
    -webkit-line-clamp: 2;
}

/* Inline badge for simple cards */
.forum-featured-badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #ef4444;
    color: white;
}

.forum-featured-badge-inline.hot {
    background: #f59e0b;
}

/* Related Posts Simple - No thumbnail */
.post-related-item-simple {
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.post-related-item-simple:hover {
    background: var(--bg-hover);
}

.post-related-item-simple .post-related-info {
    flex: 1;
}

.post-related-item-simple .post-related-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-related-item-simple .post-related-info span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Post article meta - Mobile left align */
@media (max-width: 768px) {
    .post-article-meta {
        justify-content: flex-start;
    }
    
    .post-article-author {
        width: 100%;
    }
    
    .post-article-stats {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
   v3.3.6 - Enhanced Comment Styles
   ======================================== */

/* Comment with floor number */
.post-comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s;
}

.post-comment:hover {
    border-color: var(--border-medium);
}

.post-comment-floor {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.post-comment-main {
    flex: 1;
    min-width: 0;
}

.post-comment-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.post-comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
}

.post-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-comment-info {
    flex: 1;
    min-width: 0;
}

.post-comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-comment-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
}

.post-comment-name:hover {
    color: var(--color-primary);
}

.post-comment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-comment-badge.op {
    background: var(--color-primary);
    color: white;
}

.post-comment-reply-to {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 2px 8px;
    background: var(--bg-hover);
    border-radius: 4px;
}

.post-comment-reply-to svg {
    opacity: 0.6;
}

.post-comment-time {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.post-comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.post-comment-body p {
    margin: 0 0 8px 0;
}

.post-comment-body p:last-child {
    margin-bottom: 0;
}

.post-comment-body .mention {
    color: var(--color-primary);
    font-weight: 500;
}

.post-comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.post-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.post-comment-action:hover {
    background: var(--bg-hover);
    color: var(--color-primary);
}

.post-comment-action svg {
    width: 14px;
    height: 14px;
}

/* Comment images grid */
.comment-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
    max-width: 320px;
}

.comment-image-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.comment-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.comment-image-thumb:hover img {
    transform: scale(1.05);
}

/* Reply indicator */
.reply-indicator {
    display: flex;
    align-items: center;
    background: var(--bg-hover);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 3px solid var(--color-primary);
}

.reply-indicator strong {
    color: var(--text-primary);
    margin: 0 4px;
}

.cancel-reply {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    border-radius: 4px;
}

.cancel-reply:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Mobile comment adjustments */
@media (max-width: 768px) {
    .post-comment {
        padding: 12px;
        gap: 10px;
    }
    
    .post-comment-floor {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .post-comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .post-comment-header {
        gap: 8px;
    }
    
    .post-comment-author {
        gap: 6px;
    }
    
    .post-comment-reply-to {
        font-size: 11px;
        padding: 1px 6px;
    }
}

/* Mobile member page padding */
@media (max-width: 768px) {
    .member-profile-page {
        padding: 16px 15px;
    }
    
    .member-content {
        padding: 0;
    }
}
