:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #58645f;
  --paper: #f4f7f2;
  --panel: #ffffff;
  --line: #d4ddd6;
  --teal: #0f766e;
  --brick: #b43b27;
  --blue: #275f86;
  --gold: #a87919;
  --shadow: 0 18px 42px rgba(28, 37, 34, 0.1);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(39, 95, 134, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #f7f8f3 0%, var(--paper) 44%, #eef6f5 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(212, 221, 214, 0.9);
  background: rgba(244, 247, 242, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  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: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--panel);
  font-family: Georgia, "Times New Roman", serif;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--teal);
  background: var(--panel);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--panel);
}

.button.ghost {
  background: transparent;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero.compact {
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  font-size: 4.8rem;
  line-height: 0.96;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.visual-panel {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.visual-panel img {
  width: min(100%, 280px);
  height: auto;
  display: block;
}

.section {
  margin-top: 38px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-note {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.card,
.list-panel,
.article-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(28, 37, 34, 0.07);
}

.card {
  min-height: 186px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.card:hover {
  border-color: var(--teal);
}

.card p,
.article-panel p,
.article-panel li,
.list-panel li {
  color: var(--muted);
  line-height: 1.75;
}

.card p {
  margin: 12px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--muted);
  background: rgba(244, 247, 242, 0.8);
  font-size: 0.86rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.metric {
  border-top: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
}

.metric:nth-child(2) {
  border-top-color: var(--brick);
}

.metric:nth-child(3) {
  border-top-color: var(--blue);
}

.metric:nth-child(4) {
  border-top-color: var(--gold);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.28rem;
}

.metric span {
  color: var(--muted);
  line-height: 1.55;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs a {
  color: var(--blue);
  text-decoration: none;
}

.list-panel {
  padding: 20px 24px;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-list li:last-child a {
  border-bottom: 0;
}

.link-list small {
  color: var(--muted);
}

.article-panel {
  padding: 32px;
}

.article-panel + .article-panel {
  margin-top: 18px;
}

.article-panel h2,
.article-panel h3 {
  margin-bottom: 12px;
}

.article-panel p {
  margin: 0 0 14px;
}

.article-panel ul,
.article-panel ol {
  margin: 0;
  padding-left: 1.3rem;
}

.markdown-body {
  max-width: 920px;
  margin: 0 auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  line-height: 1.28;
}

.markdown-body h1 {
  font-size: 2.35rem;
  margin: 0 0 18px;
}

.markdown-body h2 {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.7rem;
}

.markdown-body h3 {
  margin-top: 24px;
  font-size: 1.25rem;
}

.markdown-body p,
.markdown-body li {
  color: var(--muted);
  line-height: 1.78;
}

.markdown-body blockquote {
  margin: 18px 0;
  border-left: 4px solid var(--teal);
  background: rgba(15, 118, 110, 0.06);
  padding: 12px 16px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  background: rgba(244, 247, 242, 0.92);
  color: var(--ink);
}

.markdown-body pre {
  overflow-x: auto;
  border: 1px solid #263630;
  background: #17211f;
  color: #eef7f2;
  padding: 16px;
}

.markdown-body code {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.markdown-body p code,
.markdown-body li code,
.markdown-body td code {
  background: rgba(24, 32, 29, 0.08);
  padding: 0.12em 0.32em;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto 26px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(28, 37, 34, 0.12);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.status-strip span {
  min-height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .visual-panel {
    min-height: 180px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }

  h1 {
    font-size: 3.2rem;
  }

  .grid,
  .grid.two,
  .meta-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 24px, 520px);
    padding: 28px 0 48px;
  }

  .hero,
  .article-panel {
    padding: 22px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .nav-links a,
  .button {
    width: 100%;
  }

  .nav-links {
    width: 100%;
  }
}
