/* 文章区域 */
.article-section {
    padding: 120px 0 80px;
    background: #fff;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-main {
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    font-size: 16px;
    color: var(--primary-color);
}

.article-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

/* 文章内容 */
.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

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

.article-content h2 {
    font-size: 24px;
    color: #333;
    margin: 40px 0 20px;
}

/* 文章底部 */
.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-tags {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags span {
    color: #666;
    font-weight: bold;
}

.article-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-green);
    color: #666;
    border-radius: 20px;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed #eee;
    padding-top: 30px;
}

.article-nav a {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
    background: var(--light-green);
}

.article-nav a:hover {
    color: var(--primary-color);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-nav a.prev::before {
    content: '←';
    margin-right: 8px;
}

.article-nav a.next::after {
    content: '→';
    margin-left: 8px;
}

/* 相关文章 */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-content .date {
    font-size: 12px;
    color: #999;
}

/* 导航文字样式 */
.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-text small {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}


/* 侧边栏样式 */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-list-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.article-list-item:hover h4 {
    color: var(--primary-color);
}

.article-list-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-info {
    flex: 1;
}

.article-list-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-list-info .date {
    font-size: 12px;
    color: #999;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .article-section {
        padding: 100px 0 60px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-meta span {
        margin: 0 8px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-nav {
        flex-direction: column;
        gap: 15px;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .article-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media screen and (max-width: 576px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-nav a {
        width: 100%;
    }
} 