
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --bg: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-alt: #F1F5F9;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
}
* {margin: 0; padding: 0; box-sizing: border-box;}
body {font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7;}
a {text-decoration: none; color: inherit;}
.container {max-width: 1280px; margin: 0 auto; padding: 0 24px;}

.site-header {background: var(--bg-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);}
.header-inner {max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; gap: 40px;}
.site-logo {font-size: 1.5rem; font-weight: 800; color: var(--text);}
.site-logo span {color: var(--primary);}
.header-nav {display: flex; gap: 4px; list-style: none; margin-left: auto;}
.header-nav a {padding: 10px 18px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; transition: all 0.2s;}
.header-nav a:hover {background: var(--primary-light); color: var(--primary);}
.header-nav a.active {background: var(--primary); color: #fff;}

/* Hero */
.blog-hero {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-hero .container {position: relative; z-index: 1;}
.blog-hero .hero-badge {display: inline-block; background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px;}
.blog-hero h1 {font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; line-height: 1.2;}
.blog-hero p {font-size: 1.25rem; opacity: 0.9; max-width: 650px; line-height: 1.8;}
.blog-hero .stats {display: flex; gap: 40px; margin-top: 40px;}
.blog-hero .stat {text-align: center;}
.blog-hero .stat-num {font-size: 2.5rem; font-weight: 800; color: var(--accent);}
.blog-hero .stat-label {font-size: 0.9rem; opacity: 0.8;}

/* Featured */
.featured-section {padding: 80px 0; background: var(--bg-alt);}
.section-header {display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;}
.section-title {font-size: 2rem; font-weight: 800;}
.section-link {color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 8px;}
.section-link:hover {gap: 12px;}

.featured-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;}
.featured-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.featured-card:hover {transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary);}
.featured-card-img {
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}
.featured-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.featured-card-body {padding: 24px;}
.featured-card-cat {display: inline-block; background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px;}
.featured-card-title {font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4;}
.featured-card-title a:hover {color: var(--primary);}
.featured-card-excerpt {color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px;}
.featured-card-meta {display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border);}

/* Categories */
.categories-section {padding: 80px 0;}
.categories-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;}
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.category-card:hover {transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary);}
.category-icon {font-size: 2.5rem; margin-bottom: 12px;}
.category-name {font-weight: 700; margin-bottom: 4px;}
.category-count {font-size: 0.85rem; color: var(--text-muted);}

/* All Articles */
.articles-section {padding: 80px 0;}
.articles-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 28px;}
.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.article-card:hover {transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary);}
.article-card-img {
    height: 160px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.article-card-body {padding: 24px; flex: 1; display: flex; flex-direction: column;}
.article-card-cat {display: inline-block; background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; width: fit-content;}
.article-card-title {font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; flex: 1;}
.article-card-title a:hover {color: var(--primary);}
.article-card-excerpt {color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; flex: 1;}
.article-card-footer {display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted);}
.read-time {display: flex; align-items: center; gap: 6px;}
.article-card-link {color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 6px;}
.article-card-link:hover {gap: 10px;}

/* Site Footer */
.site-footer {background: var(--text); color: #fff; padding: 80px 0 30px; margin-top: 80px;}
.footer-grid {display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px;}
.footer-col h4 {font-size: 1.1rem; margin-bottom: 16px;}
.footer-col p {color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7;}
.footer-col ul {list-style: none;}
.footer-col ul li {margin-bottom: 10px;}
.footer-col ul li a {color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color 0.2s;}
.footer-col ul li a:hover {color: var(--accent);}
.footer-bottom {text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); font-size: 0.9rem;}

/* Responsive */
@media (max-width: 1000px) {
    .featured-grid {grid-template-columns: 1fr;}
    .footer-grid {grid-template-columns: 1fr 1fr;}
}
@media (max-width: 768px) {
    .header-inner {{flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px;}}
    .header-nav {{margin-left: 0; width: 100%; justify-content: center;}}
    .blog-hero h1 {{font-size: 2.2rem;}}
    .blog-hero .stats {{gap: 20px; flex-wrap: wrap;}}
    .articles-grid {{grid-template-columns: 1fr;}}
    .footer-grid {{grid-template-columns: 1fr; gap: 30px;}}
}
