:root {
    --primary: #003366;
    --accent: #FF6600;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text-main); line-height: 1.6; background: #fff; }

/* --- 统一头部 --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.logo { font-size: 24px; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 25px; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 15px; transition: 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); font-weight: bold; }
.mobile-btn { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* --- 列表页 Banner --- */
.page-banner {
    padding: 140px 20px 60px;
    background: linear-gradient(rgba(0,51,102,0.9), rgba(0,51,102,0.9)), url('https://images.unsplash.com/photo-1532012197267-da84d127e765?auto=format&fit=crop&q=80') center/cover;
    color: #fff; text-align: center;
}
.page-banner h1 { font-size: 36px; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; opacity: 0.8; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* --- 主体内容布局 --- */
.main-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: flex; gap: 40px; }

/* 左侧列表 */
.article-list { flex: 2; }
.article-item { 
    display: flex; gap: 25px; padding: 30px 0; 
    border-bottom: 1px solid #eee; transition: 0.3s;
}
.article-item:hover { transform: translateX(5px); }
.article-img { width: 220px; height: 140px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }

.article-content { flex-grow: 1; }
.article-content h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.article-content h3 a { text-decoration: none; color: inherit; transition: 0.3s; }
.article-content h3 a:hover { color: var(--accent); }
.article-excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { font-size: 13px; color: #94a3b8; display: flex; gap: 20px; }

/* 右侧侧边栏 */
.sidebar { flex: 1; }
.sidebar-widget { background: var(--bg-light); padding: 25px; border-radius: 12px; margin-bottom: 30px; }
.widget-title { font-size: 18px; color: var(--primary); margin-bottom: 20px; border-left: 4px solid var(--accent); padding-left: 15px; }

.category-list { list-style: none; }
.category-list li { margin-bottom: 12px; }
.category-list a { text-decoration: none; color: var(--text-main); font-size: 15px; display: flex; justify-content: space-between; transition: 0.3s; }
.category-list a:hover { color: var(--accent); }
.category-list span { color: #cbd5e1; font-size: 12px; }

.hot-post { display: flex; gap: 15px; margin-bottom: 15px; }
.hot-post-img img{ width: 80px; height: 60px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.hot-post-info h4 { font-size: 14px; line-height: 1.4; margin-bottom: 5px; }
.hot-post-info a { text-decoration: none; color: var(--text-main); }

/* 分页 */
.pagination { display: flex; gap: 10px; margin-top: 40px; }
.page-link { 
    padding: 8px 15px; border: 1px solid #ddd; text-decoration: none; 
    color: var(--text-main); border-radius: 4px; font-size: 14px;
}
.page-num-current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-num {border-radius: 4px; font-size: 14px;text-decoration:none;padding: 8px 15px; border: 1px solid #ddd;}
/* --- 统一底部 --- */
footer { background: #0f172a; color: #94a3b8; padding: 80px 20px 30px; margin-top: 60px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 25px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid #334155; font-size: 13px; }

/* 移动端适配 */
@media (max-width: 992px) {
    .main-container { flex-direction: column; }
    .sidebar { order: 2; }
    .article-list { order: 1; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 65px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 15px 0; }
    .mobile-btn { display: block; }
    .article-item { flex-direction: column; }
    .article-img { width: 100%; height: 180px; }
    .page-banner h1 { font-size: 28px; }
}