/* 文章详情样式 */
.article-detail {
    margin-bottom: 20px;
    padding: 20px;
}

.article-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item a {
    color: #007bff;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #2c3e50;
}

.article-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #34495e;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-tags {
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-label {
    color: #666;
    margin-right: 10px;
}

.tag-item {
    display: inline-block;
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: #007bff;
    color: white;
}

.article-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #007bff;
    color: white;
}

/* 作者信息样式 */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.author-bio {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 评论区域样式 */
.comments-section {
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.submit-comment {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-comment:hover {
    background-color: #0056b3;
}

.comments-list {
    margin-top: 20px;
}

.loading-comments {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* 右侧边栏样式 */
.content-right {
    width: 300px;
    margin-left: 20px;
}

.related-articles, .hot-articles, .hot-topics {
    margin-bottom: 20px;
}

.card-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

.card-body {
    padding: 15px;
}

.related-list, .hot-list, .topics-list {
    list-style: none;
    padding: 0;
}

.related-item, .hot-item, .topic-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.related-item:last-child, .hot-item:last-child, .topic-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-title, .hot-title, .topic-name {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.related-title:hover, .hot-title:hover, .topic-name:hover {
    color: #007bff;
}

.related-meta, .topic-count {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

.hot-rank, .topic-rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 8px;
}

/* ===== 新增的关键样式 ===== */

/* 整体布局样式 */
.main-content {
    background-color: #f5f5f5;
    padding: 20px 0;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
}

.content-left {
    flex: 1;
    min-width: 0;
}

/* 卡片基础样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        width: 720px;
    }
    
    .content-right {
        width: 250px;
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .content-right {
        width: 100%;
        margin-left: 0;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-actions {
        flex-wrap: wrap;
    }
}