/* news.css */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
body { font-size: 16px; line-height: 1.6; color: #333; background-color: #fff; }
a { color: #004276; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.clearfix::after { content: ""; display: table; clear: both; }

/* 通用样式 */
#top { background-color: #f5f5f5; border-bottom: 1px solid #e0e0e0; padding: 8px 0; font-size: 14px; }
.top-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
#when { color: #666; }
.top-r a { margin-left: 15px; color: #666; }
.navbar { background-color: #304c78; color: white; position: relative; }
.navbar-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; height: 50px; }
.logo { display: flex; align-items: center; height: 100%; }
.logo img { height: 40px; max-height: 100%; width: auto; object-fit: contain; }
.nav-links { display: flex; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: white; font-size: 16px; }
.nav-links a:hover { color: #ddd; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.breadcrumb { padding: 15px 0; font-size: 14px; color: #666; max-width: 1200px; margin: 0 auto; padding: 15px; }
.breadcrumb a { color: #004276; }
.main-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; flex-wrap: wrap; }
.article-list-main { flex: 1; min-width: 0; padding-right: 20px; width: 70%; }
.list-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.list-title { font-size: 24px; line-height: 1.4; margin-bottom: 15px; color: #333; text-align: center; }
.news-list { margin-bottom: 30px; }
.news-item { padding: 15px 0; border-bottom: 1px dashed #ddd; }
.news-item h2 { font-size: 18px; margin-bottom: 8px; }
.news-item h2 a { color: #333; }
.news-item h2 a:hover { color: #304c78; }
.news-abst { color: #666; margin-bottom: 8px; line-height: 1.6; }
.news-time { color: #999; font-size: 14px; }
.news-detail-link { color: #304c78; margin-left: 10px; }
.pagination { margin: 30px 0; text-align: center; font-size: 14px; }
.pagination a, .pagination span { display: inline-block; padding: 5px 10px; margin: 0 5px; border: 1px solid #ddd; border-radius: 3px; }
.pagination a:hover { background: #f5f5f5; }
.pagination .current { background: #304c78; color: white; border-color: #304c78; }
.pagination-info { margin-top: 10px; color: #666; }
.article-sidebar { width: 33%; padding-left: 20px; }
.sidebar-section { margin-bottom: 30px; background: #f9f9f9; border-radius: 5px; overflow: hidden; }
.sidebar-title { background: #304c78; color: white; padding: 10px 15px; font-size: 16px; font-weight: bold; }
.sidebar-list li { padding: 10px 15px; border-bottom: 1px solid #eee; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: block; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-list a:hover { color: #304c78; }
#footer { background: #f5f5f5; padding: 20px 0; margin-top: 30px; border-top: 2px solid #304c78; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; text-align: center; }
.footer-links { margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-links a { margin: 0 10px 5px; color: #666; position: relative; }
.footer-links a:not(:last-child):after { content: "|"; position: absolute; right: -10px; color: #ccc; }
.copyright { color: #666; font-size: 14px; }
.no-data { text-align: center; padding: 30px 0; color: #666; font-size: 16px; }

/* 移动端样式 - 必须放在通用样式之后 */
@media (max-width: 992px) {
    .article-list-main { width: 100%; padding-right: 0; order: 1; }
    .article-sidebar { width: 100%; padding-left: 0; margin-top: 30px; order: 2; }
    .main-container { flex-direction: column; }
}

@media (max-width: 768px) {
    .top-container, .navbar-container, .main-container, .footer-container { padding: 0 10px; }
    .nav-links { display: none; position: absolute; top: 50px; left: 0; right: 0; background: #304c78; flex-direction: column; padding: 10px 0; z-index: 1000; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links a { display: block; padding: 10px 15px; }
    .mobile-menu-btn { display: block; }
    .list-title { font-size: 20px; }
    .news-item h2 { font-size: 16px; }
    .footer-links { flex-direction: row; flex-wrap: wrap; }
    .footer-links a { margin: 5px 10px; }
    .footer-links a:after { display: none; }
}

@media (max-width: 480px) {
    .list-title { font-size: 18px; }
    .news-item h2 { font-size: 15px; }
    .footer-links a { margin: 3px 5px; font-size: 14px; }
}