:root {
  --color-bg: #f4f1eb;
  --color-paper: #fbfaf7;
  --color-surface: #ffffff;
  --color-ink: #121212;
  --color-heading: #07111f;
  --color-muted: #656b74;
  --color-subtle: #8b919b;
  --color-line: #ded8cd;
  --color-line-strong: #c9c0b3;
  --color-accent: #1d4ed8;
  --color-accent-dark: #163b8f;
  --color-accent-soft: #e8eefc;
  --shadow-card: 0 10px 26px rgba(18, 18, 18, 0.045);
  --radius-large: 18px;
  --radius-medium: 12px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(7, 17, 31, 0.025) 1px, transparent 1px);
  background-size: 100% 42px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 44px, var(--container));
  margin: 0 auto;
}

.narrow-container {
  width: min(100% - 44px, 860px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 235, 0.95);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand,
.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-title {
  color: var(--color-heading);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.site-tagline {
  color: var(--color-muted);
  font-size: 12px;
}

.primary-nav .menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  margin: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 750;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: var(--color-paper);
  color: var(--color-heading);
  padding: 8px 14px;
  font-weight: 800;
}

.home-lead {
  padding: 42px 0 20px;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: stretch;
}

.featured-story,
.site-position-card,
.widget,
.post-card,
.article,
.empty-state {
  border: 1px solid var(--color-line);
  background: var(--color-paper);
}

.featured-story {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-large);
  padding: clamp(30px, 5vw, 60px);
  box-shadow: var(--shadow-card);
}

.featured-label,
.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  padding-left: 10px;
}

.featured-story h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  color: var(--color-heading);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.featured-excerpt,
.featured-story > p {
  max-width: 700px;
  color: var(--color-muted);
  font-size: 18px;
}

.featured-excerpt p {
  margin: 0 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border-radius: 0;
  padding: 0 20px;
  font-weight: 800;
}

.button-primary {
  background: var(--color-heading);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.button-secondary {
  background: var(--color-paper);
  color: var(--color-heading);
  border: 1px solid var(--color-line-strong);
}

.lead-sidebar {
  display: grid;
  gap: 16px;
}

.site-position-card {
  border-radius: var(--radius-large);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.site-position-card h2 {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.site-position-card p:last-child {
  margin: 0;
  color: var(--color-muted);
}

.widget-title {
  margin: 0 0 12px;
  color: var(--color-heading);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.widget p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.content-section {
  padding: 34px 0 74px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.archive-hero h1 {
  margin: 0;
  color: var(--color-heading);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.post-list {
  min-width: 0;
}

.post-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  border-radius: var(--radius-medium);
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  border-color: var(--color-line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.post-card-no-thumb {
  grid-template-columns: 1fr;
}

.post-card-thumb {
  overflow: hidden;
  border-radius: 10px;
  background: #e8e1d6;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 240ms ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.025);
}

.post-card-body {
  padding: 2px 4px 2px 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-subtle);
  font-size: 12px;
}

.post-meta a {
  color: var(--color-subtle);
}

.post-card h2 {
  margin: 8px 0;
  color: var(--color-heading);
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.post-excerpt {
  color: var(--color-muted);
  font-size: 15px;
}

.post-excerpt p {
  margin: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--color-accent);
  font-weight: 800;
}

.read-more::after {
  content: "→";
  transition: transform 180ms ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.sidebar {
  position: sticky;
  top: 92px;
}

.widget {
  border-radius: var(--radius-medium);
  padding: 20px;
  margin-bottom: 14px;
}

.widget ul,
.topic-list {
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.widget li + li {
  margin-top: 8px;
}

.widget a:hover {
  color: var(--color-accent);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--color-line-strong);
  border-radius: 0;
  padding: 10px 13px;
  color: var(--color-ink);
  background: var(--color-surface);
}

.search-submit {
  border: 0;
  border-radius: 0;
  background: var(--color-heading);
  color: #fff;
  padding: 0 15px;
  font-weight: 800;
}

.article {
  border-radius: var(--radius-large);
  padding: clamp(24px, 5vw, 54px);
  box-shadow: var(--shadow-card);
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin: 12px 0 0;
  color: var(--color-heading);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.article-cover {
  overflow: hidden;
  margin: 0 0 32px;
  border-radius: var(--radius-medium);
}

.article-cover img {
  width: 100%;
}

.article-content {
  color: #222831;
  font-size: 18px;
}

.article-content h2,
.article-content h3 {
  color: var(--color-heading);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.article-content a {
  color: var(--color-accent);
  font-weight: 750;
}

.article-content blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--color-accent);
  padding: 18px 24px;
  background: var(--color-accent-soft);
  color: var(--color-heading);
  font-size: 20px;
}

.article-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.tag-list a {
  display: inline-flex;
  margin: 0 8px 8px 0;
  border-radius: 0;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.post-navigation div,
.pagination .nav-links {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-paper);
  padding: 18px;
}

.archive-hero {
  padding: 50px 0 20px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}

.archive-description {
  max-width: 720px;
  color: var(--color-muted);
}

.empty-state {
  border-radius: var(--radius-medium);
  padding: 32px;
}

.prominent-empty {
  text-align: center;
}

.site-footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.74);
  padding: 46px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: start;
}

.site-footer h2 {
  margin: 0 0 8px;
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 980px) {
  .lead-layout,
  .layout-with-sidebar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow-container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 66px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-medium);
    background: var(--color-paper);
    padding: 14px;
    box-shadow: var(--shadow-card);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .primary-nav a::after {
    display: none;
  }

  .home-lead {
    padding: 24px 0 16px;
  }

  .featured-story {
    min-height: auto;
  }

  .featured-story h1 {
    letter-spacing: -0.045em;
  }

  .post-card,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-card-body {
    padding: 0;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    min-height: 42px;
  }
}