:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --secondary: #424245;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --line: #d8d8dc;
  --blue: #0066cc;
  --blue-dark: #004f9f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --cover-offset: 3.9rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--surface);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.9rem;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 245, 247, 0.42);
  border-bottom: 1px solid rgba(216, 216, 220, 0.34);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-decoration: none;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 1.8rem);
  font-size: 1rem;
  font-weight: 620;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
}

.language-toggle {
  display: inline-flex;
  gap: 0.18rem;
  padding: 0.22rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(216, 216, 220, 0.52);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.lang-button {
  min-width: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.3rem 0.56rem;
  cursor: pointer;
}

.lang-button.active {
  background: rgba(29, 29, 31, 0.9);
  color: var(--surface);
}

.hero {
  width: min(1040px, calc(100% - 3rem));
  min-height: calc(100svh - var(--cover-offset));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 18vw, 248px);
  gap: clamp(2rem, 6vw, 4.75rem);
  align-items: start;
}

.hero-text {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: clamp(1.12rem, 1.55vw, 1.28rem);
  font-weight: 650;
}

.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 1.03rem;
  font-weight: 650;
}

.eyebrow-line,
.eyebrow-dot {
  display: inline;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.25rem, 7.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 760;
}

#hero-title .lang-zh {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 640;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 720px;
  margin-bottom: 1.8rem;
  color: var(--secondary);
  font-size: clamp(1.22rem, 2.2vw, 1.48rem);
  line-height: 1.45;
}

.advisor-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.advisor-link:hover,
.advisor-link:focus {
  color: var(--blue-dark);
}

.portrait {
  display: block;
  width: clamp(190px, 18vw, 248px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(216, 216, 220, 0.95);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus {
  color: var(--text);
  border-color: #b9b9bf;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.button-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

.button-primary:hover,
.button-primary:focus {
  background: #2d2d30;
  color: var(--surface);
}

.section {
  width: min(1040px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3.1rem, 6vw, 4.8rem) 0;
  border-top: 1px solid rgba(216, 216, 220, 0.85);
}

@supports (animation-timeline: view()) {
  .section {
    animation: section-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
}

@keyframes section-reveal {
  from {
    opacity: 0.18;
    transform: translateY(1.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  margin-bottom: 1.65rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 740;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.research-card {
  min-height: 10.8rem;
  padding: 1.18rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 216, 220, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.research-index {
  margin-bottom: 1.25rem;
  color: var(--blue);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 760;
}

.research-card h3 {
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.28;
}

.research-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.previous-research-card {
  display: grid;
  grid-template-columns: minmax(11rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  margin-top: 0.95rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 216, 220, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.previous-research-head p {
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 730;
}

.previous-research-head h3 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.22;
  font-weight: 720;
}

.previous-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.previous-project-list li {
  display: grid;
  gap: 0.25rem;
}

.previous-topic {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.previous-detail {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.publication-list {
  display: grid;
  gap: 0.95rem;
}

.publication {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 216, 220, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.pub-year {
  color: var(--blue);
  font-size: 0.96rem;
  font-weight: 700;
}

.pub-content h3 {
  margin-bottom: 0.42rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.pub-content p {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.self-author {
  color: var(--text);
  font-family: Georgia, "Times New Roman", "Noto Serif", "Songti SC", serif;
  font-weight: 760;
}

.pub-venue {
  color: var(--secondary) !important;
  font-weight: 650;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.pub-links a,
.download-line {
  color: var(--blue-dark);
  font-weight: 680;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 3vw, 1.35rem);
  align-items: start;
}

.about-copy {
  min-height: 100%;
  padding: 1.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 252, 0.86) 100%);
  border: 1px solid rgba(216, 216, 220, 0.92);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
  color: #515154;
  font-size: 1.06rem;
  line-height: 1.58;
  font-weight: 410;
}

.about-copy p {
  margin-bottom: 1.08rem;
}

.download-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  margin-top: 0.35rem;
  padding: 0.56rem 0.95rem;
  border: 1px solid rgba(216, 216, 220, 0.95);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  font-size: 1rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.78rem;
}

.timeline-card,
.honors-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 216, 220, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.timeline-card {
  display: grid;
  grid-template-columns: minmax(5.7rem, 0.34fr) minmax(0, 1fr);
  gap: 0.95rem;
  min-height: 0;
  padding: 1.1rem 1.2rem;
}

.timeline-card.primary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgba(0, 102, 204, 0.18);
}

.timeline-date {
  grid-row: 1 / 3;
  margin-bottom: 0;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 760;
}

.timeline-card h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 720;
}

.timeline-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 405;
}

.honors-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.honors-card {
  padding: 1.2rem;
}

.honors-card h3 {
  margin-bottom: 0.95rem;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.22;
  font-weight: 730;
}

.honors-card ul {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(216, 216, 220, 0.85);
}

.site-footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  :root {
    --cover-offset: 8.6rem;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.75rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-main,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .portrait {
    grid-row: 1;
    width: 112px;
    border-radius: 16px;
  }

  .timeline-grid,
  .honors-grid,
  .research-list,
  .previous-research-card,
  .previous-project-list,
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --cover-offset: 4.4rem;
  }

  .brand-text {
    display: none;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 4.4rem;
    padding: 0.75rem 1rem;
  }

  .brand {
    display: none;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: clamp(0.5rem, 2.7vw, 0.85rem);
    font-size: clamp(0.86rem, 3.45vw, 0.94rem);
  }

  .nav-links a {
    white-space: nowrap;
  }

  .language-toggle {
    flex: 0 0 auto;
    width: auto;
    padding: 0.16rem;
    box-shadow: none;
  }

  .lang-button {
    min-width: 0;
    padding: 0.24rem 0.42rem;
    font-size: 0.76rem;
  }

  .hero,
  .section {
    width: min(100% - 2rem, 1040px);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-text {
    display: contents;
  }

  .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0.35rem;
    font-size: 1.06rem;
    line-height: 1.35;
  }

  .eyebrow-line {
    display: block;
  }

  .eyebrow-dot {
    display: none;
  }

  h1 {
    grid-column: 1;
    margin-bottom: 0;
    font-size: clamp(1.95rem, 8.65vw, 2.3rem);
    align-self: center;
    white-space: nowrap;
  }

  .hero-summary {
    grid-column: 1 / -1;
    margin-top: 0.95rem;
    margin-bottom: 1.45rem;
    font-size: 1.1rem;
    line-height: 1.42;
  }

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

  .publication {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .research-card {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0 0.8rem;
    min-height: 0;
    padding: 1.15rem;
  }

  .research-index {
    grid-row: 1 / 3;
    margin: 0;
    font-size: 1.56rem;
    line-height: 1.05;
  }

  .research-card h3,
  .research-card p:last-child {
    grid-column: 2;
  }

  .portrait {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: 88px;
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 0.62rem;
  }

  .portrait {
    width: 84px;
  }
}

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

  .section {
    animation: none;
  }

  .button:hover,
  .button:focus {
    transform: none;
  }
}
