/* ========== 文章列表页 (公开) ========== */
.page-header-articles {
    background-image: url('/public/images/guide-bg.jpg');
}

.articles-filter-section {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.articles-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    background: white;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.filter-tab:hover { color: #667eea; border-color: #667eea; }
.filter-tab.active { background: #667eea; color: white; border-color: #667eea; }

.articles-search-form { display: flex; gap: 8px; }
.search-input { padding: 8px 16px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; width: 200px; }
.search-btn { padding: 8px 20px; border: none; border-radius: 20px; background: #667eea; color: white; cursor: pointer; font-size: 14px; }
.search-btn:hover { background: #5a6fd6; }

.articles-list-section { padding: 40px 0 60px; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-card-cover {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-cover img { transform: scale(1.05); }

.article-card-body { padding: 20px; }

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.article-category-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #eef0ff;
    color: #667eea;
}

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

.article-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.article-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-title a:hover { color: #667eea; }

.article-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-views { font-size: 12px; color: #aaa; }

.article-read-more {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.article-read-more:hover { text-decoration: underline; }

/* 分页 */
.articles-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.articles-pagination .page-btn,
.articles-pagination .page-num {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.articles-pagination .page-num.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.articles-pagination .page-btn:hover,
.articles-pagination .page-num:hover { border-color: #667eea; color: #667eea; }
.articles-pagination .page-num.current:hover { color: white; }

.page-ellipsis { padding: 8px 6px; color: #999; }

.articles-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
}

.articles-empty .empty-icon { font-size: 60px; margin-bottom: 16px; }
.articles-empty .empty-hint { font-size: 14px; color: #aaa; }

/* ========== 文章详情页 (公开) ========== */
.article-breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.article-breadcrumb a { color: #667eea; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { color: #333; }

.article-detail { padding: 40px 0 60px; }

.article-detail-header { margin-bottom: 30px; }

.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-detail-meta .article-author { font-size: 13px; color: #888; }

.article-detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin: 0 0 12px;
}

.article-detail-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.article-detail-cover {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.article-detail-cover img { width: 100%; display: block; }

.article-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-detail-content h1 { font-size: 26px; margin: 24px 0 16px; }
.article-detail-content h2 { font-size: 22px; margin: 20px 0 14px; }
.article-detail-content h3 { font-size: 18px; margin: 18px 0 12px; }
.article-detail-content p { margin-bottom: 14px; }
.article-detail-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.article-detail-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article-detail-content pre { background: #282c34; color: #abb2bf; padding: 20px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.article-detail-content pre code { background: none; padding: 0; color: inherit; }
.article-detail-content blockquote { border-left: 4px solid #667eea; padding-left: 16px; margin: 16px 0; color: #666; }
.article-detail-content a { color: #667eea; text-decoration: none; }
.article-detail-content a:hover { text-decoration: underline; }
.article-detail-content ul, .article-detail-content ol { margin: 12px 0; padding-left: 24px; }
.article-detail-content li { margin-bottom: 6px; }

.article-detail-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 13px;
    background: #f0f1ff;
    color: #667eea;
}

.article-detail-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-nav-prev, .article-nav-next { font-size: 14px; }
.article-nav-next { text-align: right; }

.nav-label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }

.article-detail-nav a { color: #667eea; text-decoration: none; }
.article-detail-nav a:hover { text-decoration: underline; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
    .articles-filter-bar { flex-direction: column; align-items: stretch; }
    .articles-search-form { width: 100%; }
    .search-input { flex: 1; }
    .article-detail-title { font-size: 24px; }
    .article-detail-nav { grid-template-columns: 1fr; }
    .article-nav-next { text-align: left; }
}
