/* ===== 新闻采集系统 - 主样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: #fff;
    border-bottom: 2px solid #1890ff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-brand a {
    font-size: 22px;
    font-weight: 700;
    color: #1890ff;
    text-decoration: none;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.nav-links a {
    padding: 6px 14px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    background: #1890ff;
    color: #fff;
}

/* ===== 内容区 ===== */
.main-content {
    min-height: 60vh;
}
.section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.section-header h2 {
    font-size: 18px;
    color: #333;
}
.section-header h2 a {
    text-decoration: none;
    color: #333;
}
.section-header h2 a:hover {
    color: #1890ff;
}
.section-header .more {
    color: #999;
    font-size: 13px;
    text-decoration: none;
}
.section-header .more:hover {
    color: #1890ff;
}

/* ===== 新闻列表 ===== */
.news-list {
    list-style: none;
    padding: 8px 0;
}
.news-list li {
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f0f0f0;
    transition: background 0.15s;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list li:hover {
    background: #f8fbff;
}
.news-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}
.news-list li a:hover {
    color: #1890ff;
}
.news-list .meta {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.news-list .img-tag {
    color: #ff4d4f;
    font-size: 12px;
    margin-right: 4px;
}

/* ===== 文章详情 ===== */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.article-meta span {
    margin-right: 20px;
}
.article-meta .img-tag {
    background: #fff2f0;
    color: #ff4d4f;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-body p {
    margin-bottom: 15px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.article-nav {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.article-nav a {
    color: #1890ff;
    text-decoration: none;
}

/* ===== 分页 ===== */
.pagination {
    text-align: center;
    padding: 15px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 4px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}
.pagination a:hover {
    border-color: #1890ff;
    color: #1890ff;
}
.pagination .current {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* ===== 空提示 ===== */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: #fff;
    border-radius: 8px;
}
.empty-tip code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    margin-top: 20px;
}
.footer a { color: #1890ff; text-decoration: none; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-links a {
        padding: 4px 10px;
        font-size: 13px;
    }
    .article-detail {
        padding: 20px 15px;
    }
    .article-title {
        font-size: 20px;
    }
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }
    .news-list .meta {
        margin-top: 4px;
    }
}
