*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--primary:#2563eb;--primary-dark:#1d4ed8;--bg:#f1f5f9;--card:#fff;--text:#0f172a;--muted:#64748b;--border:#e2e8f0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;background:var(--bg);color:var(--text);line-height:1.75;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-dark)}
img{max-width:100%;height:auto;border-radius:8px}

/* Header */
.top-bar{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}
.header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0.8rem 1.2rem}
.logo{font-size:1.2rem;font-weight:700;color:var(--primary);display:flex;align-items:center;gap:0.5rem}
.logo span{background:var(--primary);color:#fff;padding:0.15rem 0.5rem;border-radius:6px;font-size:0.8rem;letter-spacing:0.05em}
.nav-links{display:flex;gap:1.5rem;list-style:none}
.nav-links a{font-size:0.9rem;color:var(--muted);font-weight:500}
.nav-links a:hover{color:var(--primary)}

/* Hero */
.hero{max-width:1100px;margin:1.5rem auto;padding:0 1.2rem}
.hero-card{background:var(--card);border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,0.06);display:grid;grid-template-columns:1fr 1fr}
.hero-img{height:300px;object-fit:cover;width:100%}
.hero-body{padding:2rem;display:flex;flex-direction:column;justify-content:center}
.hero-tag{display:inline-block;background:var(--primary);color:#fff;font-size:0.7rem;padding:0.2rem 0.6rem;border-radius:4px;margin-bottom:0.8rem;text-transform:uppercase;letter-spacing:0.05em}
.hero-body h2{font-size:1.5rem;margin-bottom:0.6rem;line-height:1.4}
.hero-body p{color:var(--muted);font-size:0.95rem;margin-bottom:1rem}
.hero-body .btn{display:inline-block;background:var(--primary);color:#fff;padding:0.5rem 1.2rem;border-radius:6px;font-size:0.85rem;font-weight:600}

/* Main layout */
.main-layout{max-width:1100px;margin:2rem auto;padding:0 1.2rem;display:grid;grid-template-columns:2fr 1fr;gap:2rem}

/* Article grid */
.section-title{font-size:1.1rem;font-weight:700;margin-bottom:1rem;color:var(--text);padding-bottom:0.5rem;border-bottom:2px solid var(--primary);display:inline-block}
.article-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.article-card{background:var(--card);border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,0.06);transition:transform 0.15s,box-shadow 0.15s}
.article-card:hover{transform:translateY(-3px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.article-card img{width:100%;height:160px;object-fit:cover;border-radius:0}
.article-card-body{padding:1.1rem}
.article-card-body h3{font-size:0.95rem;margin-bottom:0.3rem;line-height:1.4}
.article-card-body .meta{font-size:0.75rem;color:var(--muted);margin-bottom:0.4rem}
.article-card-body p{font-size:0.82rem;color:var(--muted);line-height:1.5}

/* Sidebar */
.sidebar-card{background:var(--card);border-radius:10px;padding:1.2rem;box-shadow:0 1px 3px rgba(0,0,0,0.06);margin-bottom:1.2rem}
.sidebar-card h4{font-size:0.9rem;margin-bottom:0.8rem;color:var(--text);padding-bottom:0.4rem;border-bottom:1px solid var(--border)}
.sidebar-card ul{list-style:none}
.sidebar-card li{margin-bottom:0.6rem}
.sidebar-card li a{font-size:0.82rem;color:var(--muted);display:block;transition:color 0.15s}
.sidebar-card li a:hover{color:var(--primary)}
.tag-cloud{display:flex;flex-wrap:wrap;gap:0.4rem}
.tag{background:var(--bg);color:var(--muted);padding:0.25rem 0.7rem;border-radius:20px;font-size:0.75rem}

/* Article page */
.article-page{max-width:800px;margin:2rem auto;padding:0 1.2rem}
.article-header{margin-bottom:2rem}
.article-header h1{font-size:1.8rem;line-height:1.4;margin-bottom:0.8rem}
.article-header .meta{color:var(--muted);font-size:0.85rem}
.article-featured{width:100%;max-height:400px;object-fit:cover;border-radius:12px;margin-bottom:2rem}
.article-content{font-size:1.05rem;line-height:2;color:#334155}
.article-content h2{font-size:1.3rem;margin:2rem 0 0.8rem;color:var(--text)}
.article-content p{margin-bottom:1.2rem}
.article-content ul, .article-content ol{margin:1rem 0 1rem 2rem}
.article-content li{margin-bottom:0.5rem}
.breadcrumb{font-size:0.8rem;color:var(--muted);margin-bottom:1rem}
.breadcrumb a{color:var(--muted)}
.article-back{display:inline-block;margin-bottom:1.5rem;font-size:0.85rem}

/* Static pages */
.static-page{max-width:700px;margin:3rem auto;padding:0 1.2rem}
.static-page h1{font-size:1.5rem;margin-bottom:1.5rem}
.static-page p{margin-bottom:1rem;color:#334155;line-height:1.8}
.static-page h2{font-size:1.15rem;margin:1.5rem 0 0.8rem}

/* Footer */
footer{background:var(--text);color:#94a3b8;padding:2rem 1.2rem;margin-top:3rem}
.footer-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.footer-col h5{color:#fff;margin-bottom:0.8rem;font-size:0.9rem}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:0.4rem}
.footer-col a{color:#94a3b8;font-size:0.82rem}
.footer-bottom{max-width:1100px;margin:1.5rem auto 0;padding-top:1.5rem;border-top:1px solid #334155;text-align:center;font-size:0.78rem}

@media(max-width:768px){
  .main-layout{grid-template-columns:1fr}
  .hero-card{grid-template-columns:1fr}
  .hero-img{height:200px}
  .article-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .nav-links{display:none}
}
