:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #0f172a;
  --text-soft: #475569;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --border: #e2e8f0;
  --radius: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Yu Gothic", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.logo span { color: var(--accent); }
.main-nav {
  display: flex;
  gap: 20px;
  margin-left: 8px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--accent); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: border-color 0.15s;
}
.search:focus { border-color: var(--accent); }
.subscribe-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.subscribe-btn:hover { background: #1d4ed8; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
.hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.hero-body { padding: 24px 28px 28px; }
.tag-feature {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-body h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 10px 0 12px;
  letter-spacing: -0.01em;
}
.hero-body p { color: var(--text-soft); margin-bottom: 16px; }
.read-more {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card .kicker { display: block; padding: 14px 16px 0; }
.card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 6px 16px 8px;
}
.card p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 16px 16px;
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.widget-title {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.trending { list-style: none; counter-reset: t; }
.trending li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.trending li:last-child { border-bottom: none; }
.trending .rank {
  font-weight: 800;
  color: var(--accent);
  min-width: 18px;
}
.trending a { text-decoration: none; color: var(--text); font-size: 14px; }
.trending a:hover { color: var(--accent); }

.cat-list { list-style: none; }
.cat-list li { padding: 7px 0; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}
.cat-list a span {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 12px;
}

.newsletter p { color: var(--text-soft); font-size: 14px; margin-bottom: 12px; }
.newsletter form { display: flex; flex-direction: column; gap: 8px; }
.newsletter input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  color: var(--text-soft);
  font-size: 14px;
}
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--text-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-title {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
}
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-soft);
  font-size: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-hero {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.article-body { font-size: 17px; }
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-size: 24px;
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.article-body ul {
  margin: 0 0 20px 22px;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.article-tags { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags .tag {
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.related { list-style: none; }
.related li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.related li:last-child { border-bottom: none; }
.related a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.related a:hover { color: var(--accent); }

/* ---------- Category ---------- */
.cat-header {
  margin-bottom: 28px;
}
.cat-header h1 {
  font-size: 32px;
  letter-spacing: -0.01em;
}
.cat-header p {
  color: var(--text-soft);
  margin-top: 6px;
}
.cat-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
.cat-filters a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 7px 16px;
  border-radius: 999px;
  transition: all 0.15s;
}
.cat-filters a:hover,
.cat-filters a.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .search { width: 130px; }
  .hero-img { height: 220px; }
  .hero-body h1 { font-size: 24px; }
}
