:root {
  --ink: #1f2a24;
  --muted: #66746b;
  --line: #dfe6df;
  --paper: #fffdf8;
  --soft: #eef5ee;
  --leaf: #2f7350;
  --leaf-dark: #1f563a;
  --coral: #cf6b58;
  --gold: #b9904b;
  --white: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--leaf);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--leaf-dark);
}

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94) 0%, rgba(255, 253, 248, 0.82) 40%, rgba(255, 253, 248, 0.25) 78%),
    url("../xiucaoji-hero.png") center right / cover no-repeat;
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  padding: 80px 0 110px;
}

.eyebrow {
  color: var(--leaf);
  font-size: 15px;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 18px;
}

h1 {
  max-width: 660px;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 680px;
  color: #3d4a42;
  font-size: clamp(18px, 2.1vw, 23px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--leaf);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--leaf);
}

.button.secondary {
  color: var(--leaf-dark);
  background: rgba(255, 255, 255, 0.72);
}

main section,
.page-hero {
  padding: 72px 0;
}

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card p,
.article p,
.muted {
  color: var(--muted);
}

.feature-band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.article:last-child {
  border-bottom: 0;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  background: #17241c;
  color: rgba(255, 255, 255, 0.88);
  padding: 34px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer p {
  margin: 0;
}

.contact-line {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.not-found {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.88) 54%, rgba(255, 253, 248, 0.22) 100%),
      url("../xiucaoji-hero.png") center bottom / cover no-repeat;
  }

  .grid,
  .grid.two,
  .article-list {
    grid-template-columns: 1fr;
  }

  main section,
  .page-hero {
    padding: 52px 0;
  }
}
