:root {
  --brand-primary: #18342f;
  --brand-secondary: #416b5b;
  --brand-accent: #b88a44;
  --text-primary: #142522;
  --text-secondary: #52625d;
  --background: #f3eee4;
  --surface: #fffcf5;
  --border: #e0d5c3;
  --success: #2f7d58;
  --warning: #a86618;
  --danger: #a23a32;
  --shadow: 0 16px 40px rgba(24, 52, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}

a {
  color: var(--brand-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(184, 138, 68, 0.5);
  outline-offset: 3px;
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 238, 228, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 44px;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand-primary);
  padding: 8px 12px;
  font-weight: 700;
}

.hero-band {
  background: linear-gradient(110deg, #18342f 0%, #416b5b 58%, #7a6b50 100%);
  color: #fffdf7;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 72px 0 84px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-accent);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1,
.archive-header h1,
.article-body h1,
.not-found h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: 20px;
  color: rgba(255, 253, 247, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--brand-primary);
  border-radius: 6px;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--brand-primary);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button[type="submit"],
input[type="submit"] {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #1b211e;
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.62);
  color: #fffdf7;
}

.hero-card,
.content-card,
.fact-panel,
.not-found {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--text-primary);
  padding: 28px;
}

.hero-card h2,
.section-heading h2,
.section-grid h2,
.fact-panel h2,
.content-card h2 {
  margin: 0 0 12px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 64px 0;
}

.section-grid article {
  border-top: 3px solid var(--brand-accent);
  padding-top: 18px;
}

.text-link {
  font-weight: 800;
}

.content-band {
  padding: 18px 0 80px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.content-card {
  overflow: hidden;
}

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: #d8cbb8;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h2 {
  font-size: 20px;
}

.card-body h2 a {
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--brand-secondary);
  background: #f7f0e5;
  font-size: 13px;
  font-weight: 800;
}

.layout-main,
.article-layout {
  padding: 56px 0 80px;
}

.archive-header,
.article-body {
  max-width: 820px;
}

.article-body {
  margin-inline: auto;
}

.article-body h2 {
  margin-top: 38px;
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: var(--text-secondary);
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.post-meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.featured-image {
  margin: 26px 0;
}

.fact-panel {
  margin-top: 42px;
  padding: 22px;
}

.fact-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.fact-panel dt {
  color: var(--text-secondary);
  font-size: 13px;
}

.fact-panel dd {
  margin: 0;
  font-weight: 700;
}

.lz100-lead-form {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lz100-lead-form p {
  margin: 0;
}

.lz100-lead-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 800;
}

.lz100-lead-form input,
.lz100-lead-form select,
.lz100-lead-form textarea,
.search-field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
}

.lz100-hp-field {
  position: absolute;
  left: -9999px;
}

.lz100-form-success {
  margin: 18px 0;
  border: 1px solid rgba(47, 125, 88, 0.35);
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(47, 125, 88, 0.09);
  color: var(--success);
  font-weight: 800;
}

.site-footer {
  padding: 42px 0;
  background: var(--brand-primary);
  color: rgba(255, 253, 247, 0.82);
}

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

.site-footer a,
.site-footer nav span {
  display: inline-flex;
  margin: 0 0 8px 16px;
}

.site-footer a {
  color: #fffdf7;
}

.empty-note {
  color: var(--text-secondary);
}

.not-found {
  max-width: 680px;
  padding: 36px;
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

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

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

  .primary-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    box-shadow: var(--shadow);
  }

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

  .primary-nav ul {
    display: grid;
    gap: 8px;
  }

  .hero-grid,
  .section-grid,
  .card-grid,
  .footer-grid,
  .fact-panel dl {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0 60px;
    gap: 30px;
  }

  .lead {
    font-size: 18px;
  }

  .site-footer a,
  .site-footer nav span {
    margin: 0 16px 8px 0;
  }
}
