/* 论坛详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f9f9f9;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb ol {
    display: flex;
    gap: 10px;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0066cc;
}

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* 帖子标题和操作 */
.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0066cc;
}

.topic-header h1 {
    font-size: 1.8rem;
    color: #333;
    flex: 1;
}

.topic-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #0066cc;
}

/* 帖子元信息 */
.topic-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.topic-stats {
    display: flex;
    gap: 20px;
}

.view-count, .reply-count, .like-count {
    color: #666;
    font-size: 0.9rem;
}

.topic-date {
    color: #999;
    font-size: 0.9rem;
}

/* 作者信息 */
.author-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.author-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-details h3 a:hover {
    color: #0066cc;
}

.author-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.author-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: #0066cc;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.author-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-small:hover {
    background: #e0e0e0;
    color: #0066cc;
}

/* 帖子内容 */
.topic-content {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-body {
    margin-bottom: 30px;
}

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

.content-body h3 {
    font-size: 1.3rem;
    margin: 20px 0 15px;
    color: #333;
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.content-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.content-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    color: #0066cc;
}

/* 回复区域 */
.replies-section {
    margin-bottom: 40px;
}

.replies-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 回复排序 */
.reply-sort {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

/* 回复列表 */
.reply-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.reply-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-content {
    flex: 1;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-header h4 {
    font-size: 1rem;
    color: #333;
}

.reply-header h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reply-header h4 a:hover {
    color: #0066cc;
}

.reply-time {
    font-size: 0.85rem;
    color: #999;
}

.reply-body {
    margin-bottom: 15px;
}

.reply-body p {
    color: #333;
    line-height: 1.6;
}

.reply-footer {
    display: flex;
    justify-content: flex-end;
}

.reply-actions {
    display: flex;
    gap: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #e0e0e0;
    color: #0066cc;
}

.page-btn.active {
    background: #0066cc;
    color: #fff;
}

.page-ellipsis {
    padding: 8px 16px;
    color: #999;
}

/* 回复框 */
.reply-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.reply-box h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.reply-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 15px;
    font-family: inherit;
}

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

.form-options {
    display: flex;
    gap: 15px;
}

.option-btn {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.option-btn:hover {
    color: #0066cc;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 相关话题 */
.related-topics {
    list-style: none;
}

.related-topics li {
    margin-bottom: 10px;
}

.related-topics li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.related-topics li a:hover {
    color: #0066cc;
}

/* 活跃用户 */
.active-users {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.active-users li {
    display: flex;
    gap: 10px;
    align-items: center;
}

.active-users img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 3px;
}

.user-info a:hover {
    color: #0066cc;
}

.user-level {
    font-size: 0.8rem;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .topic-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .reply-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .reply-avatar {
        align-self: flex-start;
    }
    
    .content-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .form-options {
        width: 100%;
        justify-content: space-between;
    }
}