:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --panel: #ffffff;
  --ink: #16211c;
  --muted: #5f6d65;
  --line: #dce4dd;
  --pine: #145c43;
  --pine-dark: #0b4430;
  --pine-soft: #e8f3ed;
  --blue: #2f5e8e;
  --blue-soft: #eaf1f8;
  --gold: #98651e;
  --gold-soft: #fff4df;
  --rose: #95495a;
  --rose-soft: #fbecf0;
  --shadow: 0 24px 70px rgba(33, 51, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 3%, rgba(20, 92, 67, 0.1), transparent 30rem),
    radial-gradient(circle at 92% 15%, rgba(47, 94, 142, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--pine);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pine-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(20, 92, 67, 0.22);
  outline-offset: 4px;
  border-radius: 7px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 228, 221, 0.9);
  background: rgba(247, 247, 242, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid #b6d3c4;
  border-radius: 12px;
  background: var(--pine-soft);
  color: var(--pine);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.global-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: #3f4c45;
  font-size: 13px;
  font-weight: 730;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav a:hover {
  background: var(--pine-soft);
  color: var(--pine);
}

main > section,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 92px;
}

.hero {
  min-height: 690px;
  padding: clamp(76px, 10vw, 132px) 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--pine);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(58px, 6.4vw, 92px);
  font-weight: 620;
  line-height: 0.98;
}

.hero-line {
  white-space: nowrap;
}

.hero-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: #314038;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.hero-note {
  max-width: 700px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions,
.paper-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.button.primary {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
  box-shadow: 0 10px 26px rgba(20, 92, 67, 0.18);
}

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

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

.button.secondary:hover {
  border-color: #b5c9bc;
  background: #fff;
}

.button.small {
  min-height: 39px;
  padding: 8px 13px;
  font-size: 12px;
}

.mechanism-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #cbd9d0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-formula {
  max-width: 100%;
  padding: 18px 0 20px;
  overflow-x: auto;
  color: var(--ink);
  font-size: clamp(22px, 2.7vw, 35px);
}

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

.role-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.role-list strong {
  color: var(--pine);
}

.role-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.focus-strip {
  margin-top: 16px;
  padding: 16px;
  border-radius: 13px;
  background: var(--pine-soft);
}

.focus-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--pine);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.focus-strip strong {
  display: block;
  font-size: 14px;
}

.first-visit {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 22px 64px rgba(22, 33, 28, 0.13);
}

.first-visit-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.first-visit-head > span {
  color: #9bcab5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.first-visit h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.25;
}

.reading-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.reading-path li {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 6px 25px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.reading-path li:first-child {
  padding-left: 0;
  border-left: 0;
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #9bcab5;
  font-size: 11px;
  font-weight: 850;
}

.reading-path strong {
  display: block;
  font-size: 15px;
}

.reading-path p {
  margin: 6px 0 9px;
  color: #bdc8c2;
  font-size: 13px;
  line-height: 1.55;
}

.reading-path a {
  color: #bde4d2;
  font-size: 12px;
  font-weight: 750;
}

.section {
  padding: clamp(86px, 11vw, 142px) 0 0;
}

.section-heading,
.research-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.research-intro h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 620;
  line-height: 1.08;
}

.section-heading > p,
.research-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

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

.idea-card,
.paper-card,
.example-card,
.document-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.idea-card {
  min-height: 285px;
  padding: 26px;
  border-radius: 19px;
}

.idea-card.featured {
  border-color: #b7d1c3;
  background: var(--pine-soft);
}

.idea-index,
.example-label {
  color: var(--pine);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.idea-card h3,
.paper-card h3,
.example-card h3,
.document-card h3 {
  margin: 18px 0 12px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  line-height: 1.22;
}

.compact-formula {
  max-width: 100%;
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(247, 247, 242, 0.84);
  overflow-x: auto;
  font-size: 14px;
}

.idea-card p,
.paper-card > p,
.example-card > p,
.document-card > p,
.document-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.docs-section,
.examples-section {
  position: relative;
}

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

.document-card {
  position: relative;
  min-height: 470px;
  padding: clamp(28px, 4vw, 43px);
  border-radius: 24px;
  overflow: hidden;
}

.document-card.start-here {
  border-color: #accbb9;
  background: linear-gradient(155deg, #ffffff, var(--pine-soft));
}

.document-card.review-overview {
  grid-column: 1 / -1;
  min-height: 390px;
  border-color: #c5d5e3;
  background: linear-gradient(145deg, #ffffff, var(--blue-soft));
}

.document-card.review-overview h3 {
  max-width: 760px;
}

.document-card.bridge-overview {
  grid-column: 1 / -1;
  min-height: 390px;
  border-color: #c8cfe3;
  background:
    radial-gradient(circle at 88% 16%, rgba(47, 94, 142, 0.16), transparent 17rem),
    linear-gradient(145deg, #ffffff, #eef0fb);
}

.document-card.bridge-overview h3 {
  max-width: 880px;
}

.document-card.bridge-overview .document-number {
  color: rgba(47, 94, 142, 0.09) !important;
}

.document-topline,
.paper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.current,
.status-pill.corrected {
  background: var(--pine-soft);
  color: var(--pine);
}

.status-pill.advanced,
.status-pill.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill.working {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-pill.bridge {
  color: #344a8c;
  background: #e8ebfa;
}

.document-number {
  position: absolute;
  top: 32px;
  right: 36px;
  margin: 0;
  color: rgba(20, 92, 67, 0.08) !important;
  font-family: Georgia, serif;
  font-size: 106px !important;
  font-weight: 700;
  line-height: 1;
}

.document-card h3 {
  position: relative;
  max-width: 510px;
  margin-top: 68px;
  font-size: clamp(29px, 3.2vw, 42px);
}

.document-card ul {
  margin: 24px 0 30px;
  padding-left: 1.2em;
}

.document-card li + li {
  margin-top: 7px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pine);
  font-size: 14px;
  font-weight: 850;
}

.paper-card {
  min-height: 405px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border-radius: 19px;
}

.paper-card h3 {
  margin-bottom: 7px;
}

.paper-title {
  margin-top: 0;
  color: #33423a !important;
  font-weight: 700;
}

.paper-actions {
  margin-top: auto;
  padding-top: 23px;
}

.quiet-link {
  padding: 7px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.evidence-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.evidence-boundary {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 11px 11px 0;
  background: var(--gold-soft);
  color: #5c4a2f;
  font-size: 13px;
}

.example-card {
  min-height: 310px;
  padding: 27px;
  border-radius: 19px;
}

.primary-example {
  border-color: #b7d1c3;
}

.trap-card {
  background: var(--ink);
  color: #fff;
}

.trap-card .example-label {
  color: #9bcab5;
}

.trap-card h3 {
  color: #fff;
}

.trap-links {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.trap-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.trap-links a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.trap-links span {
  color: #aebbb4;
  font-size: 11px;
}

.connection-section {
  padding-top: clamp(76px, 9vw, 112px);
}

.connection-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 28px;
}

.connection-intro h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 620;
  line-height: 1.12;
}

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

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

.connection-card {
  min-width: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-decoration: none;
}

.connection-card:hover {
  border-color: #b5c9bc;
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(33, 51, 42, 0.08);
}

.connection-card.knowledge {
  border-color: #b7d1c3;
  background: linear-gradient(155deg, #fff, rgba(232, 243, 237, 0.72));
}

.connection-card.runtime {
  border-color: #c6d5e3;
}

.connection-card.delivery {
  border-color: #e1cfad;
}

.connection-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-card h3 {
  margin: 17px 0 10px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  line-height: 1.2;
}

.connection-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.connection-card strong {
  margin-top: auto;
  color: var(--pine);
  font-size: 13px;
}

.research-section {
  padding-bottom: 120px;
}

.maintenance-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.maintenance-panel summary {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 27px;
  cursor: pointer;
  list-style: none;
}

.maintenance-panel summary::-webkit-details-marker {
  display: none;
}

.maintenance-panel summary > span:first-child {
  display: grid;
}

.maintenance-panel summary strong {
  font-size: 17px;
}

.maintenance-panel summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.summary-action {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 11px;
  font-weight: 850;
}

.maintenance-panel[open] .summary-action::after {
  content: " · 收起";
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.maintenance-grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 26px;
  background: #fff;
}

.maintenance-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.maintenance-grid a,
.maintenance-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.maintenance-grid a:hover {
  color: var(--pine);
}

.legacy-note {
  margin-top: 16px;
  padding: 19px 22px;
  border-radius: 15px;
  background: rgba(234, 241, 248, 0.72);
}

.legacy-note strong {
  color: var(--blue);
}

.legacy-note p {
  margin: 6px 0 0;
  color: #52616d;
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #eff1ec;
}

.footer-inner {
  min-height: 170px;
  padding-block: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer strong {
  font-family: Georgia, serif;
  font-size: 19px;
}

.footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer nav a {
  color: #45534b;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 50px;
  }

  .mechanism-card {
    max-width: 620px;
  }

  .reading-path,
  .idea-grid,
  .paper-grid,
  .example-grid,
  .connection-grid {
    grid-template-columns: 1fr;
  }

  .connection-card {
    min-height: 0;
  }

  .reading-path li,
  .reading-path li:first-child {
    padding: 19px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .reading-path li:first-child {
    border-top: 0;
  }

  .idea-card,
  .paper-card,
  .example-card {
    min-height: auto;
  }

  .section-heading,
  .research-intro,
  .connection-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    width: 100%;
    min-height: 0;
    padding: 11px 18px 0;
    display: block;
  }

  .brand {
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 17px;
  }

  .global-nav {
    width: calc(100% + 36px);
    margin-left: -18px;
    padding: 0 18px 10px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .global-nav::-webkit-scrollbar {
    display: none;
  }

  main > section,
  .footer-inner {
    width: min(100% - 30px, 1120px);
  }

  section[id] {
    scroll-margin-top: 112px;
  }

  .hero {
    padding: 62px 0 54px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-line {
    white-space: normal;
  }

  .hero-lead {
    margin-top: 23px;
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .mechanism-card {
    padding: 23px;
    border-radius: 21px;
  }

  .role-list {
    grid-template-columns: 1fr;
  }

  .first-visit {
    padding: 24px;
    border-radius: 19px;
  }

  .section {
    padding-top: 84px;
  }

  .document-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: auto;
    padding: 25px;
  }

  .document-number {
    top: 24px;
    right: 25px;
    font-size: 78px !important;
  }

  .document-card h3 {
    margin-top: 52px;
  }

  .maintenance-panel summary {
    padding: 19px;
  }

  .maintenance-grid > div {
    padding: 22px;
  }

  .footer-inner {
    min-height: 0;
    display: grid;
    justify-content: stretch;
  }

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

@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }

  .hero-actions {
    gap: 8px;
  }

  .section-heading h2,
  .research-intro h2,
  .connection-intro h2 {
    font-size: 38px;
  }

  .idea-card,
  .paper-card,
  .example-card,
  .connection-card {
    padding: 22px;
  }

  .trap-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
