/* Variables */
:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --accent: #28a745;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-sm: 4px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Header */
.header { background: var(--bg-white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.top_header { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: center; }
.top_header a#logo { display: flex; flex-direction: column; align-items: center; }
.top_header a#logo img { height: 100px; width: 100px; object-fit: cover; border-radius: var(--radius); }
.top_header a#logo .site-name { display: block; text-align: center; color: #1a1a1a; font-size: 1.25rem; font-weight: 700; margin-top: 8px; }

/* Navigation */
.nav-warp { background: var(--bg-white); border-top: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.nav-item { padding: 12px 20px; color: var(--text); transition: all 0.3s; }
.nav-item:hover, .nav-item.active { color: var(--primary); background: rgba(0,123,255,0.05); }

/* Banner */
.banner-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 60px 24px; }
.banner-container { max-width: 1200px; margin: 0 auto; text-align: center; color: #fff; }
.banner-content h1 { font-size: 2.5rem; margin-bottom: 16px; }
.banner-content p { font-size: 1.1rem; opacity: 0.9; }

/* Main Layout */
.main-content { max-width: 1200px; margin: 30px auto; padding: 0 24px; }
.content-wrapper { display: flex; gap: 30px; }
.main-column { flex: 1; }
.sidebar { width: 300px; }

/* Section Header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.section-header h2 { font-size: 1.4rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.section-header h2 i { color: var(--primary); }
.more-link { font-size: 0.9rem; color: var(--text-light); }
.more-link:hover { color: var(--primary); }

/* Featured Grid */
.featured-section { margin-bottom: 40px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.featured-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.featured-card:hover { transform: translateY(-4px); }
.featured-card .card-img { height: 150px; background-size: cover; background-position: center; }
.featured-card .card-body { padding: 16px; }
.featured-card .card-cat { font-size: 0.8rem; color: var(--primary); }
.featured-card h3 { font-size: 1rem; margin: 8px 0; }
.featured-card h3 a:hover { color: var(--primary); }
.featured-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.card-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 12px; }

/* News List */
.news-section { margin-bottom: 40px; }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; }
.news-thumb { width: 200px; min-height: 150px; background-size: cover; background-position: center; }
.news-info { flex: 1; padding: 20px; }
.news-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-info h3 a:hover { color: var(--primary); }
.news-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.news-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 16px; }

/* Sidebar Widgets */
.widget-block { background: var(--bg-card); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.widget-title i { color: var(--primary); }

/* Hot List */
.hot-list { list-style: none; }
.hot-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-num { width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.hot-list a { font-size: 0.9rem; color: var(--text); }
.hot-list a:hover { color: var(--primary); }

/* Category List */
.cat-list { list-style: none; }
.cat-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text); }
.cat-list a:hover { color: var(--primary); }
.cat-num { background: var(--bg); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; color: var(--text-light); }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 6px 14px; background: var(--bg); border-radius: 20px; font-size: 0.85rem; color: var(--text); transition: all 0.3s; }
.tag-item:hover { background: var(--primary); color: #fff; }

/* Footer */
.footer { background: var(--bg-white); border-top: 1px solid var(--border); padding: 30px 24px; margin-top: 40px; }
.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; color: var(--text-light); font-size: 0.9rem; }
.footer-content a { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper { flex-direction: column; }
  .sidebar { width: 100%; }
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; height: 200px; }
  .banner-content h1 { font-size: 1.8rem; }
}

/* List Page */
.page-header { background: var(--primary); color: #fff; padding: 30px 0; margin-bottom: 30px; }
.page-header .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-title { font-size: 1.8rem; margin-bottom: 8px; }
.page-breadcrumb { font-size: 0.9rem; opacity: 0.8; }
.page-breadcrumb a { color: #fff; }
.content-wrapper { padding: 0 24px 40px; }
.content-wrapper .container { max-width: 1200px; margin: 0 auto; }
.list-page-grid { display: flex; gap: 30px; }
.main-content { flex: 1; }
.list-sidebar { width: 280px; }
.list-articles { display: flex; flex-direction: column; gap: 20px; }
.list-article-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; transition: transform 0.3s; }
.list-article-item:hover { transform: translateX(4px); }
.list-article-img { width: 200px; min-height: 150px; background-size: cover; background-position: center; }
.list-article-info { flex: 1; padding: 20px; }
.list-article-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.list-article-info h3:hover { color: var(--primary); }
.list-article-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.list-article-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 16px; }
.sidebar-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-title { font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--primary); }
.sidebar-nav-list { list-style: none; }
.sidebar-nav-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list a { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text); }
.sidebar-nav-list a:hover { color: var(--primary); }
.sidebar-nav-list .count { background: var(--bg); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; color: var(--text-light); }
.pagination { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; background: var(--bg-card); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination .current { background: var(--primary); color: #fff; }

/* Article Detail */
.article-detail { background: var(--bg-card); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin-bottom: 30px; }
.detail-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.detail-category { display: inline-block; padding: 4px 12px; background: var(--primary); color: #fff; border-radius: 20px; font-size: 0.8rem; margin-bottom: 12px; }
.detail-title { font-size: 2rem; color: var(--text); margin-bottom: 16px; line-height: 1.4; }
.detail-meta { font-size: 0.85rem; color: var(--text-light); display: flex; gap: 20px; }
.detail-meta span { display: flex; align-items: center; gap: 6px; }
.detail-content { font-size: 1rem; line-height: 1.8; color: var(--text); margin-bottom: 30px; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.detail-content h2, .detail-content h3 { color: var(--text); margin: 24px 0 12px; }
.detail-tags { padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-tags i { color: var(--primary); }
.related-articles { background: var(--bg-card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.related-title { font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.related-title i { color: var(--primary); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* Pagination Fix */
.page-num { padding: 8px 14px; background: var(--bg-card); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); box-shadow: var(--shadow); display: inline-block; }
.page-num:hover { background: var(--primary); color: #fff; }
.page-num-current { background: var(--primary); color: #fff; }
