/* ============================================
   论坛样式
   ============================================ */
.forum-page {
    padding-top: 110px;
    padding-bottom: 60px;
}

.page-header {
    background:
        linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(77, 208, 225, 0.05) 100%),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--mc-green-light);
}

.breadcrumb-separator {
    opacity: 0.5;
}

/* 板块列表 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.category-item:hover {
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

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

.category-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.category-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.category-stats {
    text-align: right;
    flex-shrink: 0;
}

.category-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--mc-green-light);
}

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

/* 主题列表 */
.topic-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.topic-list-header {
    display: grid;
    grid-template-columns: 1fr 100px 100px 140px;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-item {
    display: grid;
    grid-template-columns: 1fr 100px 100px 140px;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    align-items: center;
}

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

.topic-item:hover {
    background: var(--bg-glass);
}

.topic-item.pinned {
    background: rgba(255, 213, 79, 0.03);
}

.topic-main {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.topic-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.topic-content-wrap {
    min-width: 0;
    flex: 1;
}

.topic-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topic-title a {
    color: var(--text-primary);
}

.topic-title a:hover {
    color: var(--mc-green-light);
}

.topic-pin-badge {
    background: rgba(255, 213, 79, 0.15);
    color: var(--mc-gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.topic-lock-badge {
    background: rgba(239, 83, 80, 0.15);
    color: var(--mc-redstone);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

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

.topic-stat {
    text-align: center;
    font-size: 14px;
}

.topic-stat-value {
    font-weight: 700;
    color: var(--text-primary);
}

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

.topic-last-reply {
    font-size: 13px;
    color: var(--text-secondary);
}

.topic-last-reply-user {
    color: var(--mc-green-light);
    font-weight: 500;
}

.topic-last-reply-time {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

/* 主题详情 */
.topic-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.topic-detail-header {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.topic-detail-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.topic-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.post-list {
    padding: 0;
}

.post-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

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

.post-item:first-child {
    background: rgba(76, 175, 80, 0.02);
}

.post-author {
    width: 160px;
    flex-shrink: 0;
    text-align: center;
}

.post-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--border-color);
}

.post-author-name {
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-all;
}

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

.post-author-stats {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.post-time {
    font-size: 13px;
    color: var(--text-muted);
}

.post-floor {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.post-body {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-primary);
}

.post-body h1, .post-body h2, .post-body h3 {
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.post-body h1 { font-size: 22px; }
.post-body h2 { font-size: 19px; }
.post-body h3 { font-size: 16px; }

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

.post-body pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
}

.post-body code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body blockquote {
    border-left: 3px solid var(--mc-green);
    padding: 8px 16px;
    margin: 12px 0;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-body a {
    color: var(--mc-green-light);
    text-decoration: underline;
}

.post-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

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

.post-action-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* 回复表单 */
.reply-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.reply-form-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 新建主题 */
.new-topic-page {
    padding-top: 110px;
    padding-bottom: 60px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .topic-list-header { display: none; }
    .topic-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .topic-stat, .topic-last-reply {
        text-align: left;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    .post-item {
        flex-direction: column;
        gap: 16px;
    }
    .post-author {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    .post-author-avatar {
        width: 48px;
        height: 48px;
        margin: 0;
    }
    .post-author-stats {
        display: none;
    }
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .category-stats {
        text-align: left;
    }
}
