/* 帖子页面专用样式 */
.breadcrumb {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    font-size: 12px;
    color: #878a8c;
}

.breadcrumb a {
    color: #0079d3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.post-container {
    padding: 20px;
}

.post-header {
    margin-bottom: 20px;
}

.post-container .post-meta {
    font-size: 12px;
    color: #878a8c;
    margin-bottom: 10px;
}

.post-container .post-meta a {
    color: #0079d3;
    text-decoration: none;
}

.post-container .post-meta a:hover {
    text-decoration: underline;
}

.post-container .post-title {
    font-size: 24px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-container .post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #1c1c1c;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.post-url {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.post-url a {
    color: #0079d3;
    text-decoration: none;
    word-break: break-all;
    font-size: 14px;
}

.post-url a:hover {
    text-decoration: underline;
}

/* 视频嵌入样式 */
.video-embed {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

.video-embed video {
    width: 100%;
    border-radius: 8px;
}

.video-link {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-link .media-icon {
    font-size: 20px;
}

.video-link a {
    color: #0079d3;
    text-decoration: none;
    word-break: break-all;
    font-size: 14px;
}

.video-link a:hover {
    text-decoration: underline;
}

.post-container .post-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.vote-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-container .vote-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: #878a8c;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-container .vote-btn:hover {
    background: #e1e5e9;
    color: #1c1c1c;
}

.post-container .vote-btn.upvoted {
    background: #ff4500;
    color: white;
    border-color: #ff4500;
}

.post-container .vote-btn.downvoted {
    background: #7193ff;
    color: white;
    border-color: #7193ff;
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #878a8c;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 评论区样式 */
.comments-section {
    margin-top: 30px;
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.comments-header {
    margin-bottom: 20px;
}

.comments-header h3 {
    font-size: 18px;
    color: #1c1c1c;
    font-weight: 600;
}

.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: white;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #0079d3;
}

.comment-form-actions {
    margin-top: 10px;
}

.comment-form .btn {
    border-radius: 20px;
}

.comment {
    border-left: 2px solid #e1e5e9;
    padding-left: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #878a8c;
}

.comment-author {
    font-weight: 600;
    color: #0079d3;
}

.comment-content {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #1c1c1c;
    font-size: 14px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.comment-vote {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #878a8c;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 2px;
}

.comment-vote-btn:hover {
    background: #f0f0f0;
    color: #0079d3;
}

.reply-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #878a8c;
    font-size: 12px;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 2px;
}

.reply-btn:hover {
    background: #f0f0f0;
    color: #0079d3;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    display: none;
    transition: all 0.3s ease;
}

.reply-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    background: white;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #0079d3;
}

.empty-comments {
    text-align: center;
    padding: 40px;
    color: #878a8c;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.alert-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

/* 帖子页面响应式设计 */
@media (max-width: 768px) {
    .post-container .post-title {
        font-size: 20px;
    }
    
    .post-container {
        padding: 15px;
    }
    
    .post-container .post-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .vote-buttons {
        gap: 5px;
    }
    
    .post-container .vote-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}