:root {
  color-scheme: light;
  --ink: #19211f;
  --muted: #66706b;
  --line: #dce4df;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --forest: #245a48;
  --leaf: #7fa35b;
  --clay: #b76548;
  --water: #4f88a5;
  --gold: #d5a94b;
  --shadow: 0 18px 45px rgba(28, 45, 38, 0.12);
  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);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 228, 223, 0.85);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(12px);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-nav a,
.text-link,
.pub-links a,
.contact-links a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active,
.text-link:hover,
.pub-links a:hover,
.contact-links a:hover {
  color: var(--forest);
}

.site-nav a.active {
  font-weight: 850;
}

.language-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.lang-button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.lang-button.active {
  background: var(--forest);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 80px) clamp(30px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 34px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #3f4b46;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

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

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.secondary {
  color: var(--forest);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 780;
  object-fit: contain;
  background: #edf5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  padding: 22px clamp(18px, 5vw, 56px);
  background: #f5f8f5;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(34px, 5vw, 58px);
}

.page-hero > div:first-child {
  max-width: 980px;
}

.page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.compact-top {
  padding-top: 0;
}

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

.page-preview {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-preview h2 {
  margin-bottom: 0;
}

.page-preview p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-preview .button {
  width: fit-content;
  align-self: end;
}

.soft-band {
  background: #f3f7f3;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading.row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.research-grid article,
.note-grid article,
.publication-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.research-grid p,
.note-grid p,
.project-item p,
.publication-item p,
.timeline-item p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-item > span {
  color: var(--forest);
  font-weight: 850;
}

.edu-logo-wrap {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 45, 38, 0.06);
}

.edu-logo-wrap img {
  display: block;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.edu-logo-wrap img[src$=".svg"] {
  max-width: 62px;
  max-height: 46px;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

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

.project-status {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(36, 90, 72, 0.12);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.project-status.planning {
  background: rgba(181, 101, 72, 0.13);
  color: var(--clay);
}

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

.tag-row span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #52605a;
  font-size: 0.82rem;
}

.filter-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter-button.active {
  background: var(--forest);
  color: #fff;
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-item {
  transition: opacity 160ms ease, transform 160ms ease;
}

.publication-item.is-hidden {
  display: none;
}

.pub-meta {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 800;
}

.pub-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-links a,
.contact-links a,
.text-link {
  color: var(--forest);
  font-weight: 800;
}

.resource-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.resource-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.resource-row:first-child {
  border-top: 0;
}

.resource-row.head {
  background: #eef4ef;
  color: #3f4b46;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: start;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 80px);
  background: #edf3ef;
  border-bottom: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 860px;
}

.privacy-note {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.contact-links {
  justify-content: flex-end;
}

.wechat-card {
  width: min(100%, 260px);
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.wechat-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.wechat-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.visit-section {
  display: grid;
  grid-template-columns: 180px 180px minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px clamp(18px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.visit-section div {
  display: grid;
  gap: 2px;
}

.visit-section strong {
  color: var(--forest);
  font-size: 1.7rem;
  line-height: 1;
}

.visit-section span,
.visit-section p {
  color: var(--muted);
  font-size: 0.88rem;
}

.visit-section p {
  margin: 0;
}

.visit-section code {
  color: var(--forest);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 6vw, 80px);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header,
  .section-heading.row,
  .page-hero,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

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

  .header-tools {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .hero,
  .contact-section,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-visual img {
    min-height: 0;
  }

  .signal-strip,
  .research-grid,
  .page-preview-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-panel {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 16px;
  }

  .timeline-item > div:not(.edu-logo-wrap) {
    grid-column: 1 / -1;
  }

  .project-status {
    width: fit-content;
  }

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

  .filter-group {
    width: 100%;
    overflow-x: auto;
  }

  .header-tools {
    flex-direction: column;
  }
}
