.article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.article-header {
    margin-bottom: 24px;
    padding: 20px 20px 0 20px;
}

.article-title {
    font-size: 24px;
    color: #1f2329;
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    color: #86909c;
    font-size: 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.author .name {
    color: #1f2329;
    font-weight: 500;
}

.article-time {
    color: #86909c;
    position: relative;
    padding-left: 12px;
}

.article-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    background: #86909c;
    border-radius: 50%;
}

.article-content {
    background: #fff;
    padding: 0px 20px 20px 20px;
}

.content-text {
    font-size: 15px;
    color: #1f2329;
    line-height: 2.0;
    margin-bottom: 10px;
}

.article-tags {
    margin-bottom: 20px;
    padding: 0;
}

.article-tags h2 {
    font-size: 16px;
    color: #1f2329;
    margin: 0 0 16px;
    font-weight: 500;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f7f8fa;
    color: #4e5969;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.article-stats {
    display: flex;
    gap: 24px;
    color: #86909c;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 面包屑导航样式 - 在灰色背景区域 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #86909c;
    font-size: 14px;
}

.breadcrumb-item {
    color: #86909c;
    text-decoration: none;
}

.breadcrumb-item:hover:not(.current) {
    color: #1677ff;
}

.breadcrumb .current {
    color: #1f2329;
    cursor: default;
}

.breadcrumb i {
    font-size: 12px;
    color: #c9cdd4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-content {
        grid-template-columns: 1fr;
    }
}

.article-id {
    display: none;
}



.comments-title {
    font-size: 16px;
    color: #1f2329;
    margin-bottom: 24px;
    font-weight: 500;
}

.comment-count {
    color: #86909c;
    font-weight: normal;
}

/* 评论列表样式 */
.comments-list {
    margin-bottom: 24px;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-info {
    flex: 1;
}

.comment-author {
    font-size: 14px;
    color: #1f2329;
    font-weight: 500;
}

.comment-time {
    font-size: 12px;
    color: #86909c;
    margin-left: 8px;
}

.comment-content {
    font-size: 14px;
    color: #4e5969;
    line-height: 1.6;
    margin-left: 10px;
}

/* 评论编辑器样式 */
.comment-editor {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
}

#comment-toolbar-container {
    border-bottom: 1px solid #e5e6eb;
}

#comment-editor-container {
    min-height: 150px;
    border: none !important;
}

.editor-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e6eb;
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background: #1677ff;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #0958d9;
}

/* wangEditor 相关样式调整 */
.w-e-bar {
    padding: 8px !important;
}

.w-e-bar-item {
    margin-right: 8px !important;
}

.w-e-text-container {
    min-height: 150px !important;
}


/* 评论区样式 */
.comments-section {
    margin-top: 10px;
    /* 改为 10px，让它更紧凑 */
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.comments-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 评论输入框样式 */
.comment-input-section {
    margin-bottom: 30px;
    padding: 0;
}

.comment-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.comment-input-container {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.comment-input-container:focus-within {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.comment-input-container textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
    min-height: 60px;
    max-height: 120px;
    font-family: inherit;
}

.comment-input-container textarea::placeholder {
    color: #999;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.char-count {
    font-size: 12px;
    color: #999;
}

.submit-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1565c0;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 评论列表样式 */
.comments-list {
    margin-top: 20px;
    padding: 0;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: #1976d2;
}

/* 回复区域样式 */
.comment-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.reply-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8f8f8;
}

.reply-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.reply-author {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.reply-time {
    color: #999;
    font-size: 11px;
}

.reply-text {
    color: #333;
    line-height: 1.5;
    font-size: 13px;
    word-wrap: break-word;
}

/* 回复输入框 */
.reply-input-section {
    margin-top: 15px;
    display: none;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
}

.reply-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.reply-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.reply-input-container {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
    min-width: 300px;
}

.reply-input-container textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-size: 13px;
    line-height: 1.4;
    min-height: 50px;
    max-height: 100px;
    font-family: inherit;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.reply-char-count {
    font-size: 12px;
    color: #999;
    margin-right: auto;
}

.reply-submit-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reply-cancel-btn {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.pinned-badge {
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* 文章详情页主体样式 */
.article-detail-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 80px;
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 40px;
}

/* 为主内容区域添加边框 */
.article-detail-page .main-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 侧边栏 */
.sidebar {
    width: 300px;
}

.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 推荐文章列表 */
.recommended-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommended-article {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.recommended-article:hover {
    background: #f5f5f5;
}

.recommended-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.recommended-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommended-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    font-size: 11px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.recommended-author {
    color: #666;
}

.recommended-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-stats span:first-child::before {
    content: '👁';
    margin-right: 2px;
}

.recommended-stats span:nth-child(2)::before {
    content: '💬';
    margin-right: 2px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}