.article-detail-container {
    padding: 40px 0;
    display: flex;
    gap: 30px;
}

.article-detail-main {
    flex: 1;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-category {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f1f1f1;
    color: #666;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: #999;
    font-size: 0.9rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
}

.article-meta-item svg {
    margin-right: 8px;
}

.article-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    color: #666;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background-color: #000;
    color: #fff;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    line-height: 1.8;
    color: #666;
    margin-bottom: 50px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #000;
    background-color: #f8f9fa;
    font-style: italic;
}

.article-content strong {
    color: #333;
    font-weight: bold;
}

.article-content em {
    font-style: italic;
}

.article-tags {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    color: #666;
    font-weight: bold;
    margin-right: 10px;
}

.article-tag {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.article-navigation {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.article-nav-prev,
.article-nav-next {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    flex: 1;
}

.article-nav-prev:hover,
.article-nav-next:hover {
    color: #000;
}

.article-nav-prev {
    justify-content: flex-start;
}

.article-nav-next {
    justify-content: flex-end;
}

.nav-arrow {
    font-size: 1.5rem;
    margin: 0 10px;
}

.nav-content {
    max-width: 250px;
}

.nav-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.nav-date {
    font-size: 0.8rem;
    color: #999;
}

.comments-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    display: inline-block;
}

.comments-count {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.comment-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-half {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #333;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    float: left;
    margin-right: 20px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    overflow: hidden;
}

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

.comment-author {
    font-weight: bold;
    color: #333;
}

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

.comment-text {
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

.comment-action {
    display: inline-block;
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: #666;
}

.related-articles {
    margin-bottom: 50px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-article-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-article-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.related-article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 15px;
}

.related-article-category {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f1f1f1;
    color: #666;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.related-article-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

.related-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-title a:hover {
    color: #000;
}

.related-article-date {
    color: #999;
    font-size: 0.8rem;
}

/* 侧边栏样式 */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-widget {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #000;
}

/* 作者信息 */
.author-info {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #eee;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-bio {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.author-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social-link:hover {
    background-color: #000;
    color: #fff;
}

/* 热门文章 */
.popular-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-article-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.popular-article-item:hover {
    transform: translateX(5px);
}

.popular-article-item:last-child {
    margin-bottom: 0;
}

.popular-article-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-article-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.popular-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-article-title a:hover {
    color: #000;
}

.popular-article-meta {
    color: #999;
    font-size: 0.8rem;
}

/* 文章目录 */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 10px;
}

.toc-h2 {
    font-weight: bold;
}

.toc-h3 {
    padding-left: 20px;
    font-size: 0.9rem;
}

.toc-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc-link:hover {
    color: #000;
}

@media (max-width: 992px) {
    .article-detail-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-nav-prev,
    .article-nav-next {
        justify-content: flex-start;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}