:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-strong: #edf2f7;
  --text: #27313c;
  --muted: #657180;
  --line: #e5eaf0;
  --accent: #165d9c;
  --accent-soft: #eaf3fb;
  --accent-2: #0d7c72;
  --shadow: 0 18px 50px rgba(30, 56, 82, 0.09);
  --max-width: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #0b477c; }

.skip-link {
  position: fixed;
  z-index: 200;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(229, 234, 240, .85);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  place-items: center;
  background: var(--text);
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links a {
  position: relative;
  padding: 20px 0;
  color: #5d6875;
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right .22s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-toggle { display: none; }

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(56px, 7vw, 108px);
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 108px;
  padding: 46px 0 40px;
}

.portrait {
  width: 196px;
  height: 196px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  object-fit: cover;
  object-position: 50% 36%;
  box-shadow: 0 12px 32px rgba(22, 93, 156, .11);
}

.profile-card h1 {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.4px;
}

.affiliation { margin: 10px 0 0; font-weight: 650; line-height: 1.5; }
.focus { margin: 17px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.profile-links { display: grid; gap: 9px; }
.profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #485562;
  font-size: 15px;
  text-decoration: none;
}
.profile-link:hover { color: var(--accent); }
.profile-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }

.cv-button {
  width: 100%;
  max-width: 198px;
  margin-top: 24px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--text);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.cv-button:hover { background: var(--text); color: white; }
.cv-button svg { width: 16px; height: 16px; fill: currentColor; }

.content-column { min-width: 0; padding-top: 68px; }
.section { padding: 28px 0 64px; border-bottom: 1px solid var(--line); }

.intro { padding-top: 26px; }
.intro h2 {
  max-width: 900px;
  margin: 11px 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -2.3px;
}
.intro h2 span { color: #8a96a3; }
.intro > p:not(.eyebrow) { max-width: 990px; margin: 0 0 16px; font-size: 18px; }

.interest-row,
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.interest-row { margin-top: 27px; }
.interest-row span,
.tag-row span {
  padding: 6px 11px;
  border: 1px solid #d9e6f1;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-heading h2 {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.15;
}
.section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.legend { margin: -12px 0 21px 56px; color: var(--muted); font-size: 13px; }
.publication-list { display: grid; gap: 14px; }
.publication {
  padding: 21px 22px 21px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.publication:hover { transform: translateY(-2px); border-color: #cadbe9; box-shadow: var(--shadow); }
.publication.featured { border-left: 4px solid var(--accent); }
.pub-index { display: flex; justify-content: center; color: #9aa5b0; font-family: Georgia, serif; font-size: 13px; font-weight: 700; }
.pub-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.venue,
.status { padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.venue { background: var(--accent); color: white; }
.venue.muted { background: #73808d; }
.status { background: #e8f6f3; color: var(--accent-2); }
.status.review { background: #f3f0e9; color: #77663e; }
.publication h3 { margin: 9px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.4; }
.publication-link { color: inherit; text-decoration: none; }
.publication-link:hover h3 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.publication-link:focus-visible { outline: 3px solid rgba(22, 93, 156, .28); outline-offset: 3px; }
.publication p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.internship-card {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 10px 28px rgba(30, 56, 82, .06);
}
.internship-brand {
  width: 160px;
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid #eceff2;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 18px rgba(30, 56, 82, .16);
}
.internship-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.internship-date { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.internship-card h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; line-height: 1.3; }
.internship-company { margin: 5px 0 15px; color: var(--muted); font-size: 14px; font-weight: 650; }
.internship-supervisor { margin: 0 0 15px; color: #53606d; font-size: 15px; }
.internship-label { margin: 0 0 5px; color: var(--text); font-size: 14px; font-weight: 750; }
.internship-directions { margin: 0; padding-left: 20px; color: #53606d; font-size: 15px; }
.internship-directions li + li { margin-top: 5px; }

.project-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfdff, #f3f7fa);
}
.project-topline { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.project-card + .project-card { margin-top: 20px; }
.litespec-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.litespec-header h3 { flex: 1; min-width: 0; }
.project-title-link,
.project-title-link:visited { color: var(--text); text-decoration: none; }
.project-title-link:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.litespec-logo { display: block; flex: 0 0 auto; width: clamp(198px, 23.4vw, 270px); max-width: 45%; height: auto; }
.litespec-card > p { margin: 6px 0 0; }
.litespec-card .detail-list { margin-top: 10px; margin-bottom: 0; }
.education-date { margin: 0 0 5px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.project-card h3,
.education-card h3 { margin: 0; font-family: Georgia, serif; font-size: 23px; line-height: 1.3; }
.project-collaboration { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.project-collaboration a { color: var(--accent); }
.project-description { margin: 6px 0 0; color: #53606d; }
.airport-card { display: flow-root; }
.airport-card .project-topline { display: block; }
.airport-card .project-partner { float: right; margin: 0 0 8px 24px; }
.airport-card .detail-list { margin-top: 10px; margin-bottom: 0; }
.project-partner { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateY(-10px); }
.partner-logo { width: 90px; height: 90px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #f7f7f7; object-fit: contain; box-shadow: 0 7px 18px rgba(30, 56, 82, .08); }
.project-role { flex: 0 0 auto; padding: 5px 10px; border-radius: 6px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.project-card > p { color: #53606d; }
.detail-list { padding-left: 20px; color: #475461; font-size: 15px; }
.detail-list li { margin-bottom: 8px; padding-left: 5px; }
.tag-row { margin-top: 21px; }

.education-card { display: grid; grid-template-columns: 94px 1fr; gap: 24px; align-items: start; }
.school-mark { width: 94px; height: 94px; padding: 3px; border: 1px solid var(--line); border-radius: 50%; background: white; object-fit: contain; box-shadow: 0 8px 22px rgba(167, 30, 50, .12); }
.education-copy > p:not(.education-date) { margin: 6px 0 14px; color: var(--muted); }

footer { padding: 28px 0 55px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
footer p { margin: 0; }
footer a { text-decoration: none; }

@media (max-width: 1080px) {
  .nav-shell { width: min(calc(100% - 32px), var(--max-width)); }
  .brand { display: grid; }
  .nav-toggle {
    margin-left: auto;
    width: 42px;
    height: 42px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 5px;
    border: 0;
    border-radius: 9px;
    background: var(--surface);
    cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { width: 100%; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    width: auto;
    max-height: 0;
    padding: 0 18px;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: max-height .25s ease, padding .25s ease, opacity .2s ease;
  }
  .nav-links.open { max-height: 520px; padding: 10px 18px; border-color: var(--line); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; }
  .nav-links a::after { display: none; }
}

@media (max-width: 820px) {
  .page-shell { width: min(calc(100% - 36px), var(--max-width)); grid-template-columns: 1fr; gap: 0; }
  .profile-card { position: relative; top: 0; padding: 42px 0 18px; display: grid; grid-template-columns: 122px 1fr; column-gap: 24px; align-items: center; }
  .portrait { width: 122px; height: 122px; grid-row: 1 / span 4; }
  .profile-card h1 { margin: 0; font-size: 27px; }
  .profile-card .affiliation { margin-top: 4px; }
  .focus { margin: 4px 0 0; }
  .profile-links { margin-top: 22px; grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .cv-button { grid-column: 1 / -1; }
  .content-column { padding-top: 22px; }
  .intro h2 { letter-spacing: -1.5px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-shell { width: min(calc(100% - 28px), var(--max-width)); }
  .profile-card { grid-template-columns: 92px 1fr; column-gap: 18px; }
  .portrait { width: 92px; height: 92px; }
  .profile-card h1 { font-size: 24px; }
  .affiliation, .focus { font-size: 13px; }
  .profile-links { grid-template-columns: 1fr; }
  .intro h2 { font-size: 39px; }
  .intro > p:not(.eyebrow) { font-size: 16px; }
  .section { padding-bottom: 48px; }
  .section-heading h2 { font-size: 28px; }
  .publication { grid-template-columns: 42px 1fr; padding-right: 14px; }
  .publication h3 { font-size: 17px; }
  .legend { margin-left: 0; }
  .internship-card { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .internship-brand { width: 132px; }
  .project-topline { display: block; }
  .litespec-header { gap: 14px; }
  .litespec-header h3 { font-size: 20px; }
  .project-partner { margin-top: 15px; transform: none; }
  .project-role { display: inline-block; }
  .education-card { grid-template-columns: 64px 1fr; gap: 16px; }
  .school-mark { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
