/* 文章详情页样式 */

/* 文章内容样式 */
.post-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

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

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

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

.post-content blockquote {
    border-left: 4px solid #0066FF;
    padding-left: 20px;
    margin: 24px 0;
    color: #666;
    font-style: italic;
}

.post-content code {
    background: #f7f7f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.post-content pre {
    background: #f7f7f7;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.post-content a {
    color: #0066FF;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: #0066FF;
}

/* 导航卡片悬停效果 */
.nav-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* 相关文章卡片悬停效果 */
.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* 分享按钮悬停效果 */
.post-share button:hover {
    transform: scale(1.1);
}

/* 推荐阅读悬停效果 */
.recommend-item:hover {
    background: #f7f7f7;
}

/* 评论样式 - 美化版 */
.comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-section .comment {
    padding: 24px;
    margin-bottom: 16px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.comments-section .comment:hover {
    background: #f1f5f9;
}

.comments-section .comment:last-child {
    margin-bottom: 0;
}

.comments-section .comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.comments-section .comment-author img {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comments-section .comment-author cite {
    font-style: normal;
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

.comments-section .comment-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-section .comment-meta::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

.comments-section .comment-content {
    color: #334155;
    line-height: 1.7;
    font-size: 14px;
    padding-left: 52px;
}

.comments-section .reply {
    margin-top: 12px;
    padding-left: 52px;
}

.comments-section .reply a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 12px;
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comments-section .reply a:hover {
    color: #0066FF;
    background: #e0e7ff;
}

.comments-section .children {
    list-style: none;
    padding-left: 52px;
    margin-top: 16px;
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
}

.comments-section .children .comment {
    background: white;
    padding: 20px;
}

.comments-section .children .comment:hover {
    background: #fafafa;
}

.comments-section #respond {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.comments-section #respond h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0f172a;
}

.comments-section #respond .form-group {
    margin-bottom: 16px;
}

.comments-section #respond textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.comments-section #respond textarea:focus {
    outline: none;
    border-color: #0066FF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.comments-section #respond input[type="text"],
.comments-section #respond input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.comments-section #respond input[type="text"]:focus,
.comments-section #respond input[type="email"]:focus {
    outline: none;
    border-color: #0066FF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.comments-section #respond .submit {
    background: #0066FF;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comments-section #respond .submit:hover {
    background: #0052CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* 评论空状态 */
.comments-section .no-comments {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 15px;
    background: #f8fafc;
    border-radius: 16px;
}

/* 移动端响应式 */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr !important;
    }
    
    .post-sidebar {
        order: -1;
    }
    
    .author-card {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .post-header, .post-content-wrapper {
        padding: 24px !important;
    }
    
    .post-header h1 {
        font-size: 24px !important;
    }
    
    .post-meta {
        gap: 16px !important;
    }
    
    .post-navigation {
        grid-template-columns: 1fr !important;
    }
}
