
:root{
  --accent:#ff4d4f;
  --muted:#6b6b6b;
  --bg:#f5f7fb;
  --card:#ffffff;
  --maxw:1100px;
  --radius:12px;
  --shadow: 0 6px 20px rgba(16,24,40,0.08);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:#0f172a;}
a{color:var(--accent);text-decoration:none;}
.container{max-width:var(--maxw);margin:0 auto;padding:20px;}
.header{background:linear-gradient(90deg,#0f172a 0%, #0b1220 100%);color:#fff;padding:18px 0;border-radius:0 0 18px 18px;box-shadow:0 6px 30px rgba(2,6,23,0.2);}
.header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.brand{display:flex;align-items:center;gap:12px;}
.logo{width:48px;height:48px;border-radius:8px;background:linear-gradient(135deg,#ff4d4f,#ff7a59);display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:18px;}
.site-title{font-size:20px;font-weight:700;line-height:1;}
.site-sub{font-size:12px;opacity:0.9;color:#dce6ff}
.nav a{margin-left:14px;color:#cfe2ff;font-weight:600;font-size:14px;}
.search{display:flex;align-items:center;gap:8px}
.search input{padding:8px 10px;border-radius:10px;border:0;outline:none;min-width:180px;}
.hero{display:grid;grid-template-columns:1fr;gap:16px;margin-top:18px;margin-bottom:22px;}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.card{background:var(--card);padding:14px;border-radius:12px;box-shadow:var(--shadow);}
.card .thumb{height:160px;border-radius:8px;background:#e6eefc;margin-bottom:10px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:600}
.meta{font-size:13px;color:var(--muted);margin-bottom:8px}
.title{font-size:18px;font-weight:700;margin:6px 0 10px}
.excerpt{color:#334155;font-size:14px;line-height:1.5}
.main-section{display:grid;grid-template-columns: 2fr 1fr; gap:20px;}
.sidebar .card{padding:12px}
.badge{display:inline-block;background:rgba(255,77,79,0.12);color:var(--accent);padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px}

.footer{margin-top:28px;padding:18px;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:var(--shadow);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.small{font-size:13px;color:var(--muted)}

/* Responsive */
@media (max-width:1000px){
  .grid{grid-template-columns:repeat(2,1fr);}
  .main-section{grid-template-columns:1fr; }
}
@media (max-width:600px){
  .nav{display:none}
  .brand .site-title{font-size:16px}
  .grid{grid-template-columns:1fr}
  .hero .search{justify-content:flex-end}
  .header .wrap{flex-direction:column;align-items:flex-start;gap:10px;padding:10px}
  .logo{width:44px;height:44px}
  .search input{min-width:120px}
  .card .thumb{height:200px}
}
