:root {
  --primary: #2563eb;
  --accent: #0ea5e9;
  --primary-light: rgba(37, 99, 235, 0.1);
  --radius: 10px;
  --space: 24px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --surface: #ffffff;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --link-hover: #0ea5e9;
  --card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --gradient-hero: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  --warm-section: #eff6ff;
  --cool-section: #f0fdf4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }

.page-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 48px; }

/* Header */
.site-header {
  background: var(--surface);
  padding: 0 32px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand a { font-size: 22px; font-weight: 800; color: #1e3a8a; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
.brand a::before { content: ""; display: inline-block; width: 24px; height: 24px; background: var(--primary); border-radius: 6px; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { font-size: 14px; color: var(--muted); padding: 8px 16px; border-radius: 6px; transition: all .15s; font-weight: 500; }
.header-nav a:hover { color: var(--primary); background: var(--bg); }

/* Hero */
.media-hero, .notfound-hero {
  background: var(--gradient-hero);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-top: var(--space);
  color: #fff;
  box-shadow: var(--shadow);
}
.media-hero h1, .notfound-hero h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; color: #fff; }
.media-hero p, .notfound-hero p { color: rgba(255,255,255,.9); font-size: 16px; max-width: 800px; }

/* Layout */
.two-column-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  margin-top: var(--space);
  align-items: start;
}
.main-column { min-width: 0; }

/* Section Cards & Article Cards */
.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.article-shell {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Grid Layouts */
.layout-block-review_columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.layout-block-related_compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--card-hover); border-color: #cbd5e1; transform: translateY(-2px); }
.post-card .post-cover { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.post-card .post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-card .content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .muted { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.post-card .content > span.muted { margin-top: auto; font-size: 12px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.sidebar-block { margin-bottom: 32px; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sidebar-title::before { content: ""; display: inline-block; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; line-height: 1.5; }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { color: var(--text); font-weight: 500; display: block; }
.sidebar-list a:hover { color: var(--primary); }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { display: inline-block; padding: 6px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; font-size: 13px; color: var(--muted); font-weight: 500; transition: all .2s; }
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Article Page Specifics */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--primary); font-weight: 500; }
.article-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; color: var(--text); letter-spacing: -0.5px; }
.meta-line { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.meta-line span { display: flex; align-items: center; gap: 6px; }
.article-summary { background: var(--warm-section); border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; color: #1e293b; margin-bottom: 32px; line-height: 1.7; }
.article-body { font-size: 17px; line-height: 1.8; color: #334155; }
.article-body p { margin-bottom: 1.5em; }
.article-body h2 { font-size: 1.5em; font-weight: 700; margin: 2em 0 1em; color: var(--text); }
.article-body h3 { font-size: 1.25em; font-weight: 700; margin: 1.5em 0 0.8em; color: var(--text); }
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; box-shadow: var(--shadow); }

/* Share Bar */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; padding: 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.share-label { font-size: 14px; font-weight: 600; color: var(--text); margin-right: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 16px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; border: 0; cursor: pointer; transition: opacity .2s; }
.share-btn:hover { opacity: 0.9; }
.share-x { background: #000; }
.share-fb { background: #1877f2; }
.share-in { background: #0a66c2; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }
.share-rd { background: #ff4500; }
.share-mail { background: #64748b; }
.share-copy { background: #0ea5e9; }

/* Pagination & Prev/Next */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text); transition: all .2s; }
.pagination a:hover, .pagination span.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.prev-next > * { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; line-height: 1.5; color: var(--muted); transition: all .2s; }
.prev-next a:hover { border-color: var(--primary); color: var(--primary); }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 32px 24px; border-radius: var(--radius); margin-top: 48px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.sitemap-bar { font-size: 13px; border-top: 1px solid #1e293b; padding-top: 16px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hidden-identity, .schema-json { display: none; }

@media (max-width: 960px) {
  .two-column-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .layout-block-review_columns, .layout-block-related_compact { grid-template-columns: 1fr; }
  .site-header { height: auto; padding: 16px 20px; }
  .header-nav { width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .article-title { font-size: 26px; }
  .article-shell { padding: 24px; }
}