:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --ink: #17252b;
  --ink-soft: #33464e;
  --muted: #64747a;
  --navy: #18364a;
  --teal: #167873;
  --coral: #c9563e;
  --line: #d7e0df;
  --line-strong: #b9c8c6;
  --shell: 1160px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
canvas {
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
canvas {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.lang-en {
  display: none !important;
}

html[data-language="en"] .lang-zh {
  display: none !important;
}

html[data-language="en"] .lang-en {
  display: revert !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
}

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

.content-shell,
.nav-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(185, 200, 198, 0.72);
  background: rgba(244, 247, 246, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

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

.brand-copy strong {
  font-size: 14px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--coral);
  transition: right 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
}

.language-switch button {
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--teal);
}

.resume-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 112px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #edf3f2;
}

#data-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-axis {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: rgba(24, 54, 74, 0.13);
}

.axis-x {
  left: 0;
  right: 0;
  top: 72%;
  height: 1px;
}

.axis-y {
  top: 0;
  bottom: 0;
  right: max(24px, calc((100vw - var(--shell)) / 2 + 94px));
  width: 1px;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 76px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow-index {
  color: var(--coral);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 520;
  line-height: 1.48;
}

.hero-context {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #116762;
}

.button-secondary {
  color: var(--navy);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--navy);
  background: #fff;
}

.hero-coordinate {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--shell)) / 2));
  bottom: 26px;
  display: flex;
  gap: 16px;
  color: rgba(51, 70, 78, 0.66);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.signal-band {
  color: #fff;
  background: var(--navy);
}

.signal-grid {
  min-height: 114px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.signal-item {
  min-width: 0;
  display: grid;
  align-content: center;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  padding: 24px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-item strong {
  grid-row: span 2;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.signal-item span {
  align-self: center;
  color: #b9d2d0;
  font-size: 12px;
}

.signal-stack strong {
  font-family: Consolas, monospace;
  font-size: 17px;
}

.section-band {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-white {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1fr;
  gap: 48px;
}

.section-heading {
  min-width: 0;
}

.section-number {
  display: block;
  margin-bottom: 14px;
  color: var(--coral);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.section-kicker,
.column-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 31px;
  line-height: 1.35;
  letter-spacing: 0;
}

.about-copy {
  padding-top: 42px;
  color: var(--ink-soft);
  font-size: 17px;
}

.about-copy > p {
  margin: 0;
}

.focus-line {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.focus-line > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-line strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.8;
}

.education-column {
  padding-left: 36px;
  border-left: 1px solid var(--line-strong);
}

.education-item {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}

.education-item time {
  color: var(--coral);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.education-item h3 {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.education-item p,
.education-item small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.education-item small {
  margin-top: 8px;
}

.section-heading-wide {
  display: grid;
  grid-template-columns: 52px 210px 1fr;
  align-items: baseline;
  margin-bottom: 46px;
}

.section-heading-wide .section-number,
.section-heading-wide .section-kicker {
  margin: 0;
}

.section-heading-wide h2 {
  font-size: 28px;
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  padding: 31px 26px 31px 0;
  color: var(--teal);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.timeline-content {
  min-width: 0;
  padding: 28px 0 32px 34px;
  border-left: 1px solid var(--line);
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.entry-type {
  margin: 0 0 3px;
  color: var(--coral) !important;
  font-size: 11px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.4;
}

.entry-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.entry-code {
  flex: 0 0 auto;
  color: #8b9b9f;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.timeline-content ul,
.research-item ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-content li,
.research-item li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.timeline-content li::before,
.research-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.73em;
  width: 5px;
  height: 5px;
  background: var(--teal);
}

.research-section {
  background: #eef3f2;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.research-item {
  min-width: 0;
  padding: 34px 38px 36px 0;
}

.research-item + .research-item {
  padding-left: 38px;
  border-left: 1px solid var(--line-strong);
}

.research-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--teal);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.research-item h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.5;
}

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

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.tech-list span {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.publication-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.publication-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.publication-index {
  color: var(--coral);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.publication-item h3 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.publication-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.publication-item a,
.publication-venue {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
}

.publication-item a:hover,
.publication-item a:focus-visible {
  color: var(--coral);
}

.publication-item .icon {
  width: 13px;
  height: 13px;
}

.skills-section {
  background: #f3f6f5;
}

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

.skill-group {
  min-width: 0;
  min-height: 184px;
  position: relative;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.54);
}

.skill-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #9aa9ad;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.skill-group h3 {
  margin: 0 0 25px;
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
}

.skill-group p {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.skill-group small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.awards-block {
  display: grid;
  grid-template-columns: 210px 1fr;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.awards-heading > span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 30px;
}

.awards-list > div {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.awards-list time,
.awards-list > div > span {
  color: var(--muted);
  font-size: 11px;
}

.awards-list strong {
  color: var(--navy);
  font-size: 14px;
}

.awards-list > div > span {
  text-align: right;
  font-weight: 750;
}

.contact-section {
  padding: 80px 0;
  color: #fff;
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: end;
}

.contact-section .section-kicker {
  color: #86c8c4;
}

.contact-section h2 {
  max-width: 650px;
  color: #fff;
  font-size: 35px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e0eceb;
  font-size: 14px;
}

.contact-links > a:hover,
.contact-links > a:focus-visible {
  color: #fff;
}

.contact-resumes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.contact-resumes a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.contact-resumes a:hover,
.contact-resumes a:focus-visible {
  border-color: #8bc9c5;
  background: rgba(255, 255, 255, 0.07);
}

.site-footer {
  color: #b7c6c9;
  background: #102733;
}

.site-footer .content-shell {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 10px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-footer .icon {
  width: 14px;
  height: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid rgba(201, 86, 62, 0.45);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .education-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    padding: 24px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .education-item {
    padding: 0 22px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .section-heading-wide {
    grid-template-columns: 46px 160px 1fr;
  }

  .timeline-item {
    grid-template-columns: 160px 1fr;
  }

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

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .content-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand {
    min-width: 0;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-shell {
    gap: 12px;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-switch button {
    min-width: 34px;
    height: 28px;
    padding: 0 6px;
  }

  .resume-button {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
  }

  .resume-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    min-height: calc(100svh - 104px);
  }

  .hero-content {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 21px;
  }

  .hero-context {
    font-size: 12px;
  }

  .eyebrow {
    max-width: 300px;
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.7;
  }

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

  .button {
    min-height: 42px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero-coordinate {
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    gap: 1px;
    text-align: right;
  }

  .axis-y {
    right: 40px;
  }

  .signal-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .signal-item {
    grid-template-columns: 70px 1fr;
    min-height: 76px;
    padding: 18px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .signal-item strong {
    font-size: 26px;
  }

  .signal-stack strong {
    font-size: 15px;
  }

  .section-band {
    padding: 64px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 27px;
  }

  .about-copy {
    padding-top: 0;
    font-size: 15px;
  }

  .education-column {
    grid-column: auto;
    display: block;
    padding-top: 26px;
  }

  .education-item {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading-wide {
    display: grid;
    grid-template-columns: 42px 1fr;
    row-gap: 9px;
    margin-bottom: 30px;
  }

  .section-heading-wide h2 {
    grid-column: 1 / -1;
    font-size: 25px;
  }

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

  .timeline-date {
    padding: 20px 0 0;
  }

  .timeline-content {
    padding: 14px 0 27px;
    border-left: 0;
  }

  .entry-header {
    gap: 12px;
  }

  .entry-header h3 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .entry-code {
    display: none;
  }

  .timeline-content li,
  .research-item li {
    font-size: 13px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-item,
  .research-item + .research-item {
    padding: 28px 0;
    border-left: 0;
  }

  .research-item + .research-item {
    border-top: 1px solid var(--line-strong);
  }

  .publication-item {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .publication-item h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-group {
    min-height: 148px;
    padding: 24px;
  }

  .awards-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .awards-list > div {
    grid-template-columns: 82px 1fr;
    gap: 10px 14px;
  }

  .awards-list > div > span {
    grid-column: 2;
    text-align: left;
  }

  .contact-section {
    padding: 64px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-links > a {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .hero-coordinate,
  #data-canvas,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .section-band,
  .contact-section {
    padding: 40px 0;
    break-inside: avoid;
  }
}
