:root {
  --background: #f8fafc;
  --surface: #fff;
  --text: #263445;
  --muted: #66758a;
  --blue: #286cb0;
  --blue-dark: #1d5287;
  --line: #dfe5ed;
  --pale-blue: #eef5fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 3px;
}
h1, h2, h3, p { margin: 0; }
svg { display: block; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 10px 16px; background: #fff; }
.skip-link:focus { top: 12px; }
.page-shell { max-width: 1120px; margin: 72px auto 40px; padding: 0 28px; display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 40px; align-items: start; }
.sidebar { border-right: 1px solid var(--line); padding-right: 30px; position: sticky; top: 36px; }
.avatar { width: 184px; height: 184px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: #eaf0f6; overflow: hidden; display: grid; place-items: center; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar .icon { width: 76px; height: 76px; color: #7c95ad; }
.profile-name { font-size: 29px; font-weight: 700; line-height: 1.25; letter-spacing: -.65px; overflow-wrap: anywhere; }
.local-name { color: var(--muted); margin-top: 5px; font-size: 15px; }
.identity { margin-top: 20px; font-size: 14px; line-height: 1.8; }
.sidebar-label { margin: 25px 0 9px; font-size: 11px; color: var(--muted); letter-spacing: 1.5px; font-weight: 650; text-transform: uppercase; }
.interests-summary { font-size: 13px; color: var(--muted); line-height: 1.8; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-link { display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--text); font-size: 14px; min-height: 34px; }
.contact-link:hover { color: var(--blue); }
.email-address { margin-top: 10px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.icon-box { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 30px; border-radius: 5px; border: 1px solid #d4e3f3; background: #f5f9fe; color: var(--blue); }
.icon { width: 16px; height: 16px; }
.address { margin-top: 25px; color: var(--muted); font-size: 13px; line-height: 1.9; font-style: normal; }
.main-content { min-width: 0; }
.navigation { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 30px; }
.nav-link { display: block; padding: 6px 17px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 6px; }
.nav-link:hover { background: var(--pale-blue); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--blue); color: #fff; }
.section-title { color: var(--blue); font-size: 23px; line-height: 1.35; font-weight: 650; padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 24px; letter-spacing: -.35px; }
.section-block + .section-block { margin-top: 34px; }
.section-block > h3 { color: var(--blue); font-size: 20px; font-weight: 650; padding-bottom: 10px; margin-bottom: 19px; border-bottom: 1px solid var(--line); }
.biography p + p { margin-top: 16px; }
.biography { font-size: 15px; line-height: 1.9; }
.empty-state { color: var(--muted); font-size: 14px; line-height: 1.8; }
.interest-list, .technology-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interest-list li { border: 1px solid #d9e7f6; background: var(--pale-blue); color: var(--blue-dark); border-radius: 5px; padding: 4px 11px; font-size: 13px; }
.entry { padding: 20px 0; border-bottom: 1px solid var(--line); }
.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry.award { padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry.award:first-of-type { padding-top: 0; }
.award .entry-title { font-weight: 500; }
.award-date { margin-top: 7px; font-size: 14px; color: var(--text); }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.entry-title { font-size: 15px; line-height: 1.65; font-weight: 650; overflow-wrap: anywhere; }
.entry-date { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.entry-subtitle { margin-top: 4px; color: var(--muted); font-size: 14px; }
.entry-description { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.year-heading { color: var(--muted); font-size: 15px; font-weight: 600; margin: 26px 0 15px; }
.year-group:first-of-type .year-heading { margin-top: 0; }
.publication .entry-title { font-size: 16px; }
.authors { font-size: 14px; margin-top: 6px; }
.authors strong { font-weight: 650; }
.venue { font-size: 14px; color: var(--muted); margin-top: 3px; font-style: italic; }
.resource-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.resource-link { font-size: 12px; font-weight: 600; border: 1px solid #ccddef; border-radius: 4px; padding: 2px 10px; display: inline-flex; gap: 5px; align-items: center; min-height: 28px; }
.resource-link:hover { background: var(--pale-blue); text-decoration: none; }
.resource-link .icon { width: 12px; height: 12px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.project.has-image { grid-template-columns: 160px minmax(0, 1fr); }
.project-image { aspect-ratio: 4 / 3; align-self: start; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: #edf3f9; color: var(--muted); font-size: 12px; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.technology-list { gap: 7px; margin-top: 10px; }
.technology-list li { font-size: 11px; background: #eaf0f5; color: #51647b; border-radius: 4px; padding: 1px 7px; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.demo-note { flex-basis: 100%; }
.status { padding: 30px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.status h1, .status h2 { font-size: 22px; color: var(--blue); margin-bottom: 10px; }
.status p { color: var(--muted); font-size: 14px; }
.retry-button { color: #fff; background: var(--blue); border: 0; padding: 7px 16px; border-radius: 5px; margin-top: 18px; }
body.is-loading .page-shell, body.has-error .page-shell { display: block; max-width: 800px; }

@media (min-width: 1400px) { .page-shell { margin-top: 88px; } }
@media (max-width: 900px) {
  .page-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; padding: 0 24px; margin-top: 45px; }
  .sidebar { padding-right: 22px; }
  .avatar { width: 164px; height: 164px; }
  .nav-link { padding: 6px 12px; }
  .project.has-image { grid-template-columns: 120px minmax(0, 1fr); }
  .entry-heading { flex-wrap: wrap; gap: 2px 12px; }
}
@media (max-width: 680px) {
  .page-shell { display: block; margin: 28px auto; padding: 0 22px; }
  .sidebar { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 26px; margin-bottom: 25px; display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 0 19px; }
  .avatar { width: 98px; height: 98px; margin: 0; grid-column: 1; grid-row: 1 / 4; }
  .avatar .icon { width: 48px; height: 48px; }
  .profile-heading { grid-column: 2; }
  .profile-name { font-size: 26px; }
  .identity { grid-column: 2; margin-top: 10px; font-size: 13px; }
  .research-summary { grid-column: 1 / -1; }
  .research-summary .sidebar-label { margin-top: 20px; }
  .contact-group { grid-column: 1 / -1; }
  .contact-group .sidebar-label { margin-top: 17px; }
  .contact-list { display: flex; flex-wrap: wrap; gap: 7px 17px; }
  .contact-link { font-size: 13px; }
  .address { grid-column: 1 / -1; margin-top: 15px; }
  .navigation { gap: 3px; margin-bottom: 25px; }
  .nav-link { padding: 7px 10px; font-size: 12px; }
  .section-title { font-size: 22px; }
  .biography { font-size: 14px; }
  .project.has-image { grid-template-columns: 110px minmax(0, 1fr); gap: 15px; }
  .footer { margin-top: 30px; }
}
@media (max-width: 380px) {
  .page-shell { padding: 0 16px; }
  .nav-link { padding: 7px 8px; }
  .project.has-image { grid-template-columns: minmax(0, 1fr); }
  .project-image { width: 160px; }
}
@media print {
  :root { background: #fff; }
  .page-shell { margin: 0; max-width: none; padding: 0; grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .sidebar { position: static; }
  .navigation, .skip-link { display: none !important; }
  #sections > section[hidden] { display: block !important; margin-top: 30px; }
  .entry { break-inside: avoid; }
}
