:root {
  color-scheme: light;
  --ink: #111419;
  --muted: #5f6875;
  --line: #d9dee6;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --panel-soft: #eef3f1;
  --green: #2f6f73;
  --green-dark: #1d4f52;
  --brick: #b85f42;
  --blue: #285fa7;
  --olive: #66704c;
  --shadow: 0 16px 40px rgba(24, 31, 39, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 8px 12px;
  transition: top 160ms ease;
}

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

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

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  min-width: 44px;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a {
  border-radius: 6px;
  padding: 8px 10px;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.lang-link {
  border: 1px solid var(--line);
  background: var(--panel);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 0 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.zh h1 {
  max-width: 100%;
  font-size: clamp(3.1rem, 6vw, 5.6rem);
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px 15px;
  color: var(--ink);
  font-weight: 680;
  text-decoration: none;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.14 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.caption-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brick);
}

.band {
  border-top: 1px solid var(--line);
  padding: 46px 0;
}

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

.section-head h2,
.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p,
.page-title p {
  max-width: 690px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-head.compact {
  margin-top: 16px;
  margin-bottom: 0;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card h3 {
  font-size: 1.22rem;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 680;
}

.tag.green {
  border-color: rgba(47, 111, 115, 0.28);
  color: var(--green-dark);
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 720;
}

.directory {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.directory-list {
  display: grid;
  gap: 10px;
}

.directory-row {
  display: grid;
  grid-template-columns: 144px 1fr auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  text-decoration: none;
}

.directory-row:last-child {
  border-bottom: 1px solid var(--line);
}

.directory-row strong {
  font-size: 1.04rem;
}

.directory-row span {
  color: var(--muted);
}

.arrow {
  color: var(--green-dark);
  font-weight: 760;
}

.page-title {
  padding: 54px 0 34px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.search-field {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.search-field:focus {
  outline: 3px solid rgba(47, 111, 115, 0.16);
  border-color: var(--green);
}

.content-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 52px;
}

.list-card {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.list-card img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
}

.list-card-body {
  padding: 18px 18px 18px 0;
}

.list-card h2 {
  font-size: 1.38rem;
}

.list-card p {
  margin: 9px 0 0;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding-bottom: 56px;
}

.article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-title h1 {
  max-width: 920px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 18px;
}

.article-summary p {
  margin-bottom: 0;
}

.article h2 {
  margin-top: 34px;
  font-size: 1.7rem;
}

.article h3 {
  margin-top: 18px;
  font-size: 1.08rem;
}

.article p,
.article li {
  color: #363d47;
}

.article ul {
  padding-left: 21px;
}

.project-observations li + li {
  margin-top: 8px;
}

.source-notes {
  margin-top: 34px;
}

.source-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

.source-list a {
  display: inline-flex;
  border-bottom: 1px solid rgba(47, 111, 115, 0.26);
  color: var(--green-dark);
  font-weight: 680;
  text-decoration: none;
}

.side-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.facts div:first-child {
  border-top: 0;
  padding-top: 0;
}

.facts dt {
  color: var(--muted);
  font-weight: 680;
}

.facts dd {
  margin: 0;
}

.notice {
  border-left: 4px solid var(--brick);
  background: #fff7f2;
  padding: 14px 16px;
}

.registry-note {
  margin-top: 18px;
}

.registry-note p {
  margin: 0;
  color: #4e3e34;
}

.article-faq {
  margin-top: 42px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.related-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.related-links h2 {
  margin: 0;
  font-size: 1.05rem;
}

.related-links a {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--green-dark);
  font-weight: 680;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="false"] {
    display: none;
  }

  .hero,
  .directory,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

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

  .section-head {
    display: block;
  }

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

  .list-card-body {
    padding: 18px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  h1,
  .zh h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  .directory-row {
    grid-template-columns: 1fr auto;
  }

  .directory-row span {
    grid-column: 1 / -1;
  }

  .footer-inner {
    display: grid;
  }
}
