:root {
  --brand: #526f5d;
  --brand-dark: #294438;
  --brand-soft: #dfe9df;
  --accent: #a9895d;
  --paper: #fffdf8;
  --cream: #f5f0e6;
  --ink: #344139;
  --muted: #6c7971;
  --line: rgba(41, 68, 56, 0.15);
  --shadow: 0 20px 60px rgba(41, 68, 56, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brand-dark);
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--brand);
  border-radius: 50% 50% 42% 58%;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 14px;
}
.site-nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--brand-dark); }

.hero {
  min-height: 570px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 84% 28%, var(--brand-soft), transparent 29rem),
    linear-gradient(145deg, var(--paper), var(--cream));
}
.hero-shell, .section-shell, .page-shell, .article-page {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.hero-shell { padding: 92px 0; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}
h1, h2, h3 {
  color: var(--brand-dark);
  font-family: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}
h1 { margin: 0; font-size: clamp(42px, 7vw, 78px); font-weight: 500; line-height: 1.15; }
.hero h1 { max-width: 850px; }
.hero-intro, .page-intro, .article-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}
.hero-intro { margin: 26px 0 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 700;
}
.section { padding: 82px 0; }
.section.paper { background: var(--paper); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 50px); font-weight: 500; }
.text-link { color: var(--brand-dark); font-weight: 700; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.category-card, .article-card, .category-list-item, .narrow-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .82);
  box-shadow: var(--shadow);
}
.category-card {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.category-card > span { color: var(--brand-dark); font-family: Georgia, "Songti SC", serif; font-size: 25px; }
.category-card p { color: var(--muted); }
.category-card b { margin-top: auto; color: var(--accent); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { padding: 26px; }
.article-card h3 { margin: 8px 0 12px; font-size: 25px; line-height: 1.4; }
.article-card > p:not(.article-meta) { color: var(--muted); }
.article-meta { margin: 0; color: var(--accent); font-size: 13px; letter-spacing: .04em; }
.empty-state {
  padding: 38px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 253, 248, .55);
}

.page-hero {
  padding: 90px 0 72px;
  background: linear-gradient(145deg, var(--paper), var(--brand-soft));
}
.page-hero h1 { max-width: 920px; font-size: clamp(40px, 6vw, 68px); }
.breadcrumbs { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--brand-dark); }
.category-list { display: grid; gap: 16px; }
.category-list-item {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.category-list-item h2 { margin: 0 0 5px; font-size: 27px; }
.category-list-item p { margin: 0; color: var(--muted); }
.category-list-item > span { color: var(--accent); white-space: nowrap; }

.article-page { padding: 84px 0; }
.article-header { max-width: 880px; margin: 0 auto 44px; }
.article-header h1 { font-size: clamp(38px, 6vw, 64px); }
.article-summary { margin: 24px 0 16px; }
.cover { max-width: 1040px; margin: 0 auto 50px; }
.cover img { width: 100%; max-height: 600px; object-fit: cover; border-radius: 26px; }
.article-layout {
  max-width: 1040px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  gap: 54px;
  align-items: start;
}
.article-body {
  padding: 38px 46px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.article-body h2 { margin: 2.2em 0 .7em; font-size: 32px; }
.article-body h3 { margin: 1.8em 0 .5em; font-size: 24px; }
.article-body p { margin: 1.15em 0; }
.article-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li { margin: .4em 0; }
.article-body blockquote, .narrow-panel blockquote {
  margin: 1.7em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--accent);
  background: var(--cream);
  color: var(--brand-dark);
}
.article-body figure { margin: 30px 0; }
.article-body figure img { border-radius: 18px; }
.article-body pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: #26342d; color: #f5f0e7; }
.article-aside {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-top: 2px solid var(--accent);
  color: var(--muted);
}
.article-aside strong { color: var(--brand-dark); }
.unresolved-link { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.narrow-panel { width: min(760px, calc(100% - 40px)); margin: auto; padding: 38px 46px; font-size: 18px; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 190px;
  margin: auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: start;
}
.footer-shell strong { color: var(--brand-dark); font-family: Georgia, "Songti SC", serif; font-size: 20px; }
.footer-shell p { max-width: 600px; margin: 6px 0 0; color: var(--muted); }
.footer-shell nav { display: flex; gap: 20px; }
.footer-shell small { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 860px) {
  .nav-shell { min-height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-nav { width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .hero { min-height: 510px; }
  .category-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { display: block; }
  .article-aside { position: static; margin-top: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-shell, .section-shell, .page-shell, .article-page, .nav-shell, .footer-shell {
    width: min(100% - 28px, 1160px);
  }
  .hero-shell { padding: 72px 0; }
  .hero { min-height: 470px; }
  .section { padding: 58px 0; }
  .page-hero { padding: 62px 0 50px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .category-grid, .article-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 180px; }
  .category-list-item { align-items: flex-start; flex-direction: column; }
  .article-page { padding: 56px 0; }
  .article-body, .narrow-panel { width: 100%; padding: 26px 20px; border-radius: 18px; }
  .article-body h2 { font-size: 27px; }
  .article-body h3 { font-size: 21px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-shell small { grid-column: auto; }
}
