@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202530;
  --muted: #575f6c;
  --blue: #24558b;
  --rule: #e2e6ed;
  --wash: #f5f7fa;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 .94rem/1.65 Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:where(a, button):focus-visible { outline: 2px solid #356daa; outline-offset: 4px; }
section { scroll-margin-top: 24px; }
.frame { width: min(960px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 1; top: 8px; left: 8px; transform: translateY(-160%); padding: 6px 12px; background: #fff; border: 1px solid var(--blue); }
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 62px; }
.site-name { color: var(--ink); font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 27px; }
nav a { color: #414b59; font-size: .85rem; font-weight: 500; }
.language { font-family: inherit; font-size: .75rem; font-weight: 600; line-height: 1.2; min-width: 42px; padding: 6px 8px; color: var(--blue); border: 1px solid #ccd8e7; border-radius: 4px; background: #fff; cursor: pointer; }
.language:hover { background: var(--wash); }

.profile { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 31px; padding-block: 54px 41px; align-items: start; }
.portrait { width: 144px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--rule); background: var(--wash); }
.profile-copy { max-width: 690px; }
h1 { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 15px; color: #1d2430; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 700; }
.cn-name { color: var(--muted); font-size: .51em; font-weight: 500; letter-spacing: .04em; }
.affiliation { margin-top: 8px; color: #4d5868; font-size: .93rem; }
.bio { margin-top: 12px; max-width: 66ch; }
.bio strong { font-weight: 600; }
.job-search { max-width: 66ch; margin-top: 13px; padding: 8px 12px; border-left: 2px solid #9bb9d9; border-radius: 0 4px 4px 0; background: var(--wash); font-size: .86rem; }
.job-search a { font-weight: 600; white-space: nowrap; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 12px; font-size: .86rem; font-weight: 600; }
.profile-links a + a { border-left: 1px solid #ccd4df; margin-left: 13px; padding-left: 13px; }

.section { padding-top: 25px; border-top: 1px solid var(--rule); }
.section + .section { margin-top: 28px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.section-heading h2 { font-size: 1.47rem; font-weight: 700; line-height: 1.25; letter-spacing: -.027em; }
.section-heading p { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.publication { display: grid; grid-template-columns: 240px minmax(0,1fr); column-gap: 25px; align-items: center; padding-block: 17px; }
.publication + .publication { border-top: 1px solid #ebedf2; }
.thumbnail { display: grid; place-items: center; aspect-ratio: 1.8; overflow: hidden; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.publication h3 { font-size: 1rem; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.publication h3 a { color: #224c7a; }
.authors { margin-top: 4px; color: #424b59; font-size: .835rem; line-height: 1.52; }
.authors strong { color: #202530; font-weight: 700; }
.venue { font-size: .79rem; color: var(--muted); margin-top: 4px; }
.venue strong { color: #263d5c; font-weight: 700; }
.paper-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; font-size: .75rem; font-weight: 600; line-height: 1.25; }
.paper-links a { border: 1px solid #d5dfeb; border-radius: 4px; padding: 3px 8px; }
.paper-links a:hover { background: #eef4fa; text-decoration: none; }

.internship-list { list-style: none; padding: 0; }
.internship-entry { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; column-gap: 25px; padding-block: 15px; }
.internship-entry + .internship-entry { border-top: 1px solid #ebedf2; }
.internship-brand { display: grid; place-items: center; }
.internship-brand img { height: auto; }
.jd-logo { width: 178px; }
.nio-logo { width: 110px; }
.internship-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.internship-heading h3 { font-size: 1rem; }
.internship-content p { color: var(--muted); font-size: .85rem; }
.internship-content .internship-period { white-space: nowrap; font-size: .8rem; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 18px; padding-block: 10px; }
.timeline li + li { border-top: 1px solid #ebedf2; }
.timeline h3 { font-size: .94rem; }
.timeline p, .timeline time, .timeline .dates { color: var(--muted); font-size: .83rem; }
.timeline time, .timeline .dates { white-space: nowrap; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 27px; padding-block: 18px 28px; border-top: 1px solid var(--rule); font-size: .8rem; }

@media (max-width: 690px) {
  .frame { width: calc(100% - 36px); }
  .header-inner { min-height: 54px; gap: 12px; }
  .internship-entry { grid-template-columns: 130px minmax(0, 1fr); column-gap: 16px; }
  .jd-logo { width: 126px; }
  .nio-logo { width: 84px; }
  nav { gap: 12px; }
  nav a { font-size: .77rem; }
  .profile { grid-template-columns: 92px minmax(0, 1fr); gap: 17px; padding-block: 32px 28px; }
  .portrait { width: 92px; }
  .publication { grid-template-columns: 160px minmax(0,1fr); column-gap: 15px; }
}
@media (max-width: 480px) {
  .site-name { font-size: .84rem; }
  .internship-entry { grid-template-columns: 82px minmax(0, 1fr); column-gap: 12px; }
  .internship-heading { flex-wrap: wrap; column-gap: 12px; row-gap: 0; margin-bottom: 2px; }
  .jd-logo { width: 82px; }
  .nio-logo { width: 62px; }
  nav { gap: 10px; }
  nav a { font-size: .72rem; }
  .profile { grid-template-columns: 72px minmax(0,1fr); gap: 12px 14px; align-items: center; }
  .profile-copy { display: contents; }
  .bio, .job-search, .profile-links { grid-column: 1 / -1; margin-top: 0; }
  .portrait { width: 72px; }
  h1 { column-gap: 9px; }
  .affiliation { font-size: .79rem; }
  .bio { font-size: .86rem; }
  .profile-links { font-size: .75rem; }
  .profile-links a + a { margin-left: 7px; padding-left: 7px; }
  .publication { grid-template-columns: 1fr; align-items: start; gap: 9px; padding-block: 15px; }
  .thumbnail { width: 100%; max-width: 360px; aspect-ratio: 2.25; justify-self: start; }
  .timeline li { flex-direction: column; gap: 1px; }
}
@media (max-width: 350px) {
  nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
