:root {
  --bg: #080a0f;
  --ink: #e8edf6;
  --muted: #9ba6b8;
  --soft: #151a24;
  --line: rgba(148, 163, 184, 0.24);
  --accent: #b994ff;
  --accent-soft: rgba(185, 148, 255, 0.13);
  --code: #63f3ce;
  --surface: #101621;
  --surface-strong: #151c29;
  --max: 1040px;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: 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(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.46;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(99, 243, 206, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 148, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

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

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px 9px;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: 0;
}

.brand span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
}

nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.lang-toggle {
  flex: 0 0 auto;
  border: 1px solid rgba(99, 243, 206, 0.35);
  border-radius: 5px;
  background: rgba(99, 243, 206, 0.08);
  color: var(--code);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lang-toggle:hover {
  border-color: var(--code);
  background: rgba(99, 243, 206, 0.14);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 54px;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 40px 0 28px;
}

.hero-copy,
.intro-copy,
.publication,
.simple-list article {
  min-width: 0;
}

.cn-name {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
}

.status-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--code);
  font-family: var(--mono);
  font-size: 12px;
}

.status-line span {
  border: 1px solid rgba(99, 243, 206, 0.22);
  border-radius: 5px;
  background: rgba(16, 22, 33, 0.76);
  padding: 4px 7px;
}

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

h1 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.title {
  max-width: 540px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.tagline {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(20px, 2.35vw, 26px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.hero-links,
.paper-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-links a,
.paper-links a,
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(16, 22, 33, 0.62);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.hero-links a:hover,
.paper-links a:hover,
.contact-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.portrait-frame {
  margin: 0;
  justify-self: end;
  width: 158px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

.intro-grid,
.section-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(145px, 0.31fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.compact {
  padding: 24px 0;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "./ ";
  color: var(--code);
}

.intro-copy,
.about-copy {
  color: var(--muted);
  font-size: 15px;
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  margin-bottom: 10px;
}

.about-copy a,
.section-note a {
  color: var(--code);
  font-weight: 700;
}

.lang-copy.lang-zh {
  display: none;
}

body[data-lang="zh"] .lang-copy.lang-en {
  display: none;
}

body[data-lang="zh"] .lang-copy.lang-zh {
  display: block;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
}

.timeline,
.publication-list,
.simple-list {
  display: grid;
  gap: 6px;
}

.timeline-item,
.publication,
.simple-list article {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child,
.publication:first-child,
.simple-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
}

time,
.venue {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.timeline-item p,
.authors,
.section-note,
.simple-list p {
  font-size: 14px;
}

.authors,
.section-note,
.simple-list p {
  color: var(--muted);
}

.subnote {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--code);
  font-size: 13px;
}

.authors strong {
  color: var(--ink);
  font-weight: 750;
}

.publication h3 {
  max-width: 840px;
}

.publication .authors {
  margin-bottom: 4px;
}

.venue {
  margin-bottom: 8px;
}

.contact {
  align-items: center;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .hero,
  .intro-grid,
  .section-grid,
  .contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    align-items: start;
  }

  .portrait-frame {
    justify-self: start;
    width: min(36vw, 140px);
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  footer {
    padding-left: 18px;
    padding-right: 18px;
    max-width: 390px;
  }

  h1 {
    font-size: 38px;
  }

  .tagline {
    font-size: 19px;
    max-width: 330px;
  }

  .title,
  .intro-copy {
    font-size: 16px;
    max-width: 330px;
  }

  nav {
    gap: 12px 16px;
    font-size: 13px;
    max-width: 330px;
  }

  .status-line {
    max-width: 330px;
  }

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