:root {
    --primary: #2b6cb0;
    --accent: #319795;
    --bg: #f7fafc;
    --card-bg: #ffffff;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text-dark); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--card-bg); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 40px; }
.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-item a { color: var(--text-dark); font-weight: 500; padding: 5px 0; border-bottom: 2px solid transparent; transition: all 0.2s; }
.nav-item a:hover, .nav-item.active a { color: var(--primary); border-bottom-color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 60px 0; text-align: center; color: #fff; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.1rem; opacity: 0.9; }

/* Main Content */
.main-content { padding: 40px 0; }
.content-wrapper { display: flex; gap: 30px; }
.article-section { flex: 1; }
.section-title { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--primary); }

/* Article Grid */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.article-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.article-image { height: 180px; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-image img { transform: scale(1.05); }
.article-info { padding: 20px; }
.article-info h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.article-info h3 a { color: var(--text-dark); }
.article-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.article-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Sidebar */
.sidebar { width: 300px; flex-shrink: 0; }
.sidebar-widget { background: var(--card-bg); border-radius: 8px; padding: 20px; margin-bottom: 25px; box-shadow: var(--shadow); }
.widget-title { font-size: 1rem; color: var(--text-dark); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.widget-title i { color: var(--primary); }
.article-list { list-style: none; }
.article-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.article-list li:last-child { border-bottom: none; }
.article-list a { color: var(--text-dark); font-size: 0.95rem; display: block; margin-bottom: 5px; }
.article-list .date { font-size: 0.8rem; color: var(--text-light); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { background: var(--bg); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; color: var(--text-light); transition: all 0.2s; }
.tag-item:hover { background: var(--primary); color: #fff; }

/* Pagination */
.pagination { display: flex; justify-content: center; margin-top: 30px; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text-dark); font-size: 0.9rem; }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Article Detail */
.article-detail { flex: 1; background: var(--card-bg); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
.article-header { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: 1.8rem; color: var(--text-dark); margin-bottom: 15px; }
.article-header .article-meta { gap: 20px; color: var(--text-light); }
.article-body { font-size: 1rem; line-height: 1.8; color: var(--text-dark); }
.article-body p { margin-bottom: 15px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; }
.article-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--primary); color: #fff; border-radius: 4px; transition: background 0.2s; }
.btn-back:hover { background: var(--accent); color: #fff; }

/* Footer */
.footer { background: var(--text-dark); color: #a0aec0; padding: 30px 0; text-align: center; }
.footer a { color: #a0aec0; }
.footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .nav-list { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--card-bg); flex-direction: column; padding: 20px; gap: 15px; box-shadow: var(--shadow); }
    .nav-list.active { display: flex; }
    .nav-toggle { display: block; }
    .hero-content h1 { font-size: 1.8rem; }
    .article-grid { grid-template-columns: 1fr; }
}
