:root {
  --navy: #0f2f56;
  --navy-2: #173f70;
  --blue: #2167ae;
  --blue-soft: #edf5ff;
  --orange: #dd6b20;
  --orange-soft: #fff7ed;
  --ink: #172033;
  --muted: #5c677a;
  --line: #dce4ee;
  --surface: #f6f8fb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 47, 86, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, label:focus-visible { outline: 3px solid rgba(33, 103, 174, .35); outline-offset: 4px; }
.wrapper { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 228, 238, .85);
  backdrop-filter: blur(12px);
}
.site-header .wrapper { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 28px; }
.site-title { color: var(--navy); font-size: 20px; font-weight: 760; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; }
.trigger { display: flex; align-items: center; gap: 25px; }
.page-link { color: #344054; font-size: 14px; font-weight: 600; }
.page-link:hover { color: var(--blue); }
.language-link {
  display: inline-flex;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid #cfe1f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.nav-trigger, .menu-icon { display: none; }

.page-content { min-height: calc(100vh - 150px); }
.home { container-type: inline-size; }
.profile-layout { display: grid; grid-template-columns: minmax(150px, 225px) minmax(0, 1fr); gap: clamp(28px, 5vw, 58px); align-items: start; padding: 48px 0 20px; }
.profile-sidebar { position: sticky; top: 96px; text-align: center; }
.profile-sidebar .hero-photo { width: 172px; margin: 0 auto 17px; }
.profile-sidebar .hero-photo::after { display: none; }
.profile-sidebar .hero-photo img { width: 172px; height: 172px; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 10px 28px rgba(15, 47, 86, .13); }
.profile-sidebar h1 { margin: 0 0 9px; color: var(--navy); font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.profile-sidebar h1 span { display: block; margin-top: 4px; color: #657287; font-size: 16px; font-weight: 580; letter-spacing: 0; }
.profile-role { margin: 0; color: #526174; font-size: 14px; line-height: 1.55; }
.profile-role span { display: block; white-space: nowrap; }
.profile-location { width: min(190px, 100%); margin: 11px auto 13px; color: var(--muted); font-size: 13px; text-align: left; }
.profile-location i { width: 17px; color: var(--blue); }
.profile-links { display: flex; width: min(190px, 100%); margin: 0 auto; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14px; font-weight: 680; }
.profile-links a:hover { color: var(--blue); }
.profile-links i { width: 17px; color: var(--blue); text-align: center; }
.profile-content { min-width: 0; padding-top: 2px; }
.profile-content .section-heading { margin-bottom: 20px; }
.profile-content .job-market { margin: 25px 0 0; }
.profile-content .about-section { margin-bottom: clamp(54px, 6vw, 76px); }
.hero {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 74px 0 52px;
}
.hero-photo { position: relative; }
.hero-photo::after {
  position: absolute;
  z-index: -1;
  inset: 14px -12px -14px 12px;
  background: linear-gradient(145deg, #d8eafd, #fff2e7);
  border-radius: 28px;
  content: "";
}
.hero-photo img { display: block; width: 188px; height: 188px; object-fit: cover; border: 5px solid var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.eyebrow, .section-kicker { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(36px, 5vw, 55px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: #526174; font-size: .55em; font-weight: 580; letter-spacing: 0; }
.hero-lead { max-width: 770px; margin: 0 0 9px; color: #27364a; font-size: clamp(18px, 2.3vw, 23px); line-height: 1.55; }
.hero-meta { margin: 0; color: var(--muted); font-size: 14px; }
.job-market { display: flex; max-width: 760px; margin: 22px 0 20px; padding: 13px 16px; align-items: flex-start; gap: 11px; background: var(--orange-soft); border: 1px solid #fed7aa; border-radius: 10px; color: #7c3b12; font-size: 14px; line-height: 1.5; }
.job-market strong { color: #9a4312; }
.job-market-copy p { margin: 6px 0 4px; }
.job-market-copy b { color: #7c3b12; }
.job-market-copy a { color: #9a4312; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(154, 67, 18, .28); text-underline-offset: 2px; }
.job-market-copy small { display: block; color: #94613f; font-size: 11px; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; background: #22a06b; border: 2px solid #d1fae5; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 160, 107, .14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 42px; padding: 8px 16px; align-items: center; gap: 8px; color: var(--navy); background: var(--white); border: 1px solid #cfd9e6; border-radius: 8px; font-size: 14px; font-weight: 700; }
.button:hover { background: var(--surface); border-color: #a8b9cd; }
.button-primary { color: var(--white); background: var(--navy); border-color: var(--navy); }
.button-primary:hover { color: var(--white); background: var(--navy-2); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 78px; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow); }
.metrics-compact { grid-template-columns: repeat(2, 1fr); }
.metric { position: relative; padding: 22px 24px; text-align: center; }
.metric + .metric::before { position: absolute; top: 22%; bottom: 22%; left: 0; width: 1px; background: rgba(255,255,255,.17); content: ""; }
.metric strong { display: block; color: var(--white); font-size: 24px; line-height: 1.25; }
.metric span { color: #c9d8e9; font-size: 13px; }

.content-section { margin-bottom: 86px; }
.section-heading { margin-bottom: 25px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 3.5vw, 36px); line-height: 1.2; letter-spacing: -.03em; }
.about-section { margin: 0; }
.about-copy { max-width: 940px; padding: 2px 0 2px 24px; border-left: 3px solid #b9d4ef; }
.about-copy p { margin: 0; color: #46556a; font-size: 16px; line-height: 1.85; }
.about-copy p + p { margin-top: 13px; }
.about-copy strong { color: var(--navy); font-weight: 720; }
.internship-entry { margin: 0; color: #46556a; font-size: 16px; line-height: 1.8; }
.internship-entry em { color: var(--muted); }
.internship-entry strong { color: var(--navy); }
.internship-entry a { font-weight: 700; }
.contact-section { padding-bottom: 12px; }
.contact-entry { margin: 0; color: #46556a; font-size: 16px; }
.contact-entry p { margin: 0 0 9px; }
.contact-entry a { font-weight: 750; }
.contact-entry small { color: #7a8596; font-size: 12px; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 12px; }
.contact-methods > div { display: flex; min-width: 230px; padding: 12px 14px; flex: 1 1 240px; flex-wrap: wrap; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.contact-methods > div > span { width: 100%; color: var(--muted); font-size: 12px; font-weight: 700; }
.contact-badge { padding: 2px 7px; color: #526174 !important; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 10px !important; }
.experience-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 36px rgba(15, 47, 86, .06); }
.experience-header { display: flex; padding: 25px 28px; align-items: flex-start; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, #f5f9ff, #fffaf5); border-bottom: 1px solid var(--line); }
.experience-header h3 { margin: 0; color: var(--navy); font-size: 24px; }
.experience-header p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.experience-meta { display: flex; flex-direction: column; align-items: flex-end; color: var(--navy); text-align: right; }
.experience-meta span { color: var(--muted); font-size: 13px; }
.experience-summary { padding: 26px 28px; }
.experience-summary p { max-width: 850px; margin: 0; color: var(--muted); font-size: 15px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.achievement { padding: 27px; }
.achievement + .achievement { border-left: 1px solid var(--line); }
.achievement-number { display: block; margin-bottom: 7px; color: var(--orange); font-size: 21px; font-weight: 820; }
.achievement h4 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.achievement p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.award-line { margin: 0; padding: 14px 27px; color: #6f3b15; background: var(--orange-soft); border-top: 1px solid #ffdfbf; font-size: 14px; }
.award-line i { margin-right: 6px; color: var(--orange); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.featured-project { grid-column: 1 / -1; background: linear-gradient(145deg, #f5f9ff, #fff); border-color: #cbdff4; }
.project-topline { display: flex; margin-bottom: 12px; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.tag { padding: 3px 9px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-weight: 750; }
.project-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 21px; line-height: 1.35; }
.project-card p { margin: 0 0 11px; color: var(--muted); font-size: 14px; }
.compact-list { margin: 12px 0; padding-left: 20px; color: #3d4a5d; font-size: 14px; }
.compact-list li { margin: 5px 0; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.project-tags span { padding: 4px 9px; color: #526174; background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 650; }

.publication-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.publication-visual { position: relative; display: block; min-height: 0; padding: 0; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
.publication-visual img { display: block; width: 100%; height: auto; object-fit: contain; }
.publication-visual strong { font-size: clamp(29px, 4vw, 42px); line-height: 1.1; letter-spacing: -.04em; }
.publication-visual small { color: #bad0e7; font-size: 14px; }
.venue-badge { position: absolute; top: 28px; left: 28px; align-self: flex-start; padding: 4px 9px; color: #79400f; background: #ffedd5; border-radius: 999px; font-size: 11px; font-weight: 800; }
.publication-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 28px; }
.publication-stats span { padding: 5px 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 5px; color: #e4eef8; font-size: 11px; }
.publication-copy { padding: 30px 32px; }
.publication-copy h3 { margin: 0 0 13px; color: var(--navy); font-size: 20px; line-height: 1.45; }
.publication-copy p { margin: 7px 0; color: var(--muted); font-size: 14px; }
.publication-copy .authors { color: #3e4c60; }
.publication-copy .venue { color: var(--orange); }
.publication-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.publication-links a { padding: 6px 12px; color: var(--navy); background: var(--white); border: 1px solid #cbd7e5; border-radius: 6px; font-size: 13px; font-weight: 750; }
.publication-links a:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }

.two-column-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.timeline-item { position: relative; margin-left: 5px; padding: 0 0 25px 23px; border-left: 2px solid #d9e3ef; }
.timeline-item::before { position: absolute; top: 7px; left: -6px; width: 10px; height: 10px; background: var(--blue); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px #bad3ec; content: ""; }
.timeline-item span, .timeline-item small { color: var(--muted); font-size: 12px; }
.timeline-item h3 { margin: 3px 0 2px; color: var(--navy); font-size: 16px; line-height: 1.4; }
.timeline-item p { margin: 0; color: #536176; font-size: 14px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #46556a; font-size: 14px; }
.news-list time { color: var(--blue); font-size: 12px; font-weight: 750; }

.site-footer { padding: 27px 0; color: #9db0c5; background: #0c2746; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row p { margin: 0; font-size: 13px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: #c8d7e7; font-size: 18px; }
.social-links a:hover { color: var(--white); }
.footer-text { margin: 15px 0 0; color: #7189a2; font-size: 11px; }

.page-header { padding-top: 45px; }
.page-title { color: var(--navy); }
.page-body { padding-bottom: 60px; }
.publication-item { margin-bottom: 22px; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pub-title { color: var(--navy); }
.pub-links { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .wrapper { width: min(100% - 30px, 760px); }
  .site-header .wrapper { min-height: 60px; }
  .site-nav { position: relative; }
  .site-nav label { display: block; width: 38px; height: 38px; cursor: pointer; }
  .menu-icon { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; }
  .menu-icon svg { width: 19px; fill: var(--navy); }
  .trigger { position: absolute; top: 47px; right: 0; display: none; min-width: 180px; padding: 9px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
  .nav-trigger:checked ~ .trigger { display: flex; }
  .page-link, .language-link { width: 100%; min-height: 38px; padding: 7px 10px; justify-content: flex-start; border-radius: 6px; }
  .page-link:hover { background: var(--surface); }
  .hero { grid-template-columns: 150px 1fr; gap: 30px; padding-top: 55px; }
  .hero-photo img { width: 150px; height: 150px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3)::before { display: none; }
  .metric:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.17); }
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement + .achievement { border-top: 1px solid var(--line); border-left: 0; }
  .publication-card { grid-template-columns: 1fr; }
  .publication-visual { min-height: 0; }
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding: 42px 0 35px; text-align: center; }
  .hero-photo { width: 136px; margin: 0 auto; }
  .hero-photo img { width: 136px; height: 136px; }
  .hero-actions { justify-content: center; }
  .job-market { text-align: left; }
  .metrics { margin-bottom: 58px; border-radius: 12px; }
  .metric { padding: 17px 10px; }
  .metric strong { font-size: 19px; }
  .metric span { font-size: 11px; }
  .content-section { margin-bottom: 62px; }
  .experience-header { flex-direction: column; }
  .experience-meta { align-items: flex-start; text-align: left; }
  .achievement { padding: 23px; }
  .project-grid, .two-column-section { grid-template-columns: 1fr; }
  .project-card, .publication-copy { padding: 23px; }
  .two-column-section { gap: 35px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@container (max-width: 539px) {
  .profile-layout { grid-template-columns: 1fr; gap: 38px; padding: 42px 0 20px; }
  .profile-sidebar { position: static; }
  .profile-content { padding-top: 0; }
}

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