/* A dedicated visual system for the personal research homepage. */
:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: #101310;
  --text: #f2f3ed;
  --muted: #a0a69d;
  --accent: #c3fa8b;
  --line: #2a3028;
  --sans: "Inter Tight", "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button { font: inherit; cursor: pointer; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { color: var(--accent); font-weight: 400; }
.container { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.mono, .eyebrow { font-family: var(--mono); }
.eyebrow { margin-bottom: 25px; color: var(--accent); font-size: 11px; font-weight: 400; letter-spacing: .12em; line-height: 1.6; }
.section { padding: 100px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
h2 { font-size: clamp(34px, 4.3vw, 56px); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -80px; padding: 10px 18px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.top-bar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
#scroll-progress { width: 0; height: 100%; background: var(--accent); }
#nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(9,11,10,.94); backdrop-filter: blur(18px); }
.nav-inner { width: min(1400px, calc(100% - 80px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nav-logo { display: inline-flex; align-items: center; font-size: 22px; font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.identity-mark { margin-right: 12px; font-size: 30px; color: var(--accent); line-height: 1; }
.logo-period { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 500; }
.nav-links a.active { color: var(--accent); }
.menu-toggle { display: none; }
#hero { overflow: hidden; padding: 29px 0 0; background: radial-gradient(ellipse at 82% 50%, #172211 0%, #0b0e0a 35%, var(--bg) 70%); }
.hero-topline { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.hero-topline > span:first-child { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #c3fa8b55; }
.hero-layout { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; min-height: 640px; gap: 32px; }
.hero-container { position: relative; z-index: 2; padding: 54px 0 55px; }
.hero-container > .eyebrow { margin-bottom: 20px; font-size: 10px; }
.hero-name { font-size: clamp(62px, 7.2vw, 102px); letter-spacing: -.065em; font-weight: 400; line-height: 1.04; white-space: nowrap; }
.hero-name > span { color: var(--accent); }
.hero-statement { margin-top: 23px; font-size: clamp(30px, 3.1vw, 43px); line-height: 1.12; font-weight: 300; letter-spacing: -.035em; }
.hero-role { margin-top: 27px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero-role a { color: var(--text); }
.hero-role a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 32px; padding: 4px 8px; font-size: 12px; font-weight: 650; line-height: 1.25; white-space: nowrap; flex-shrink: 0; }
.button-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 3px solid transparent; border-radius: 5px; background: #172017; background-clip: padding-box; color: #ccff99; }
.button-icon svg { transition: transform .2s; }
.button:hover .button-icon svg { transform: translate(1px, -1px); }
.button-primary { color: #090b0a; background: #ccff99; }
.button-primary:hover { color: #090b0a; background: #daffb2; }
.hero-social { display: flex; align-items: center; gap: 20px; margin-top: 27px; }
.hero-social > a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 32px; color: #a9afa5; }
.hero-social > a:hover { color: var(--accent); }
.hero-social > a:last-child > img { filter: grayscale(1) brightness(2); }
.wechat-qr { display: none; position: absolute; z-index: 20; bottom: 42px; left: 50%; width: 174px; padding: 10px; transform: translateX(-50%); background: white; color: #111; box-shadow: 0 12px 50px #0009; text-align: center; font-size: 11px; }
.wechat-qr img { width: 154px; display: block; margin-bottom: 5px; }
.wechat-link:hover .wechat-qr, .wechat-link:focus-visible .wechat-qr { display: block; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
#research-field { position: absolute; inset: -12% -25%; width: 150%; height: 124%; pointer-events: none; }
.portrait { position: relative; width: min(300px, 78%); padding: 10px; border: 1px solid #67734e; background: #10180ed9; box-shadow: 0 22px 80px #0008; }
.portrait::before, .portrait::after { content: ''; position: absolute; width: 16px; height: 16px; border-color: var(--accent); border-style: solid; }
.portrait::before { left: -4px; top: -4px; border-width: 1px 0 0 1px; }
.portrait::after { right: -4px; bottom: -4px; border-width: 0 1px 1px 0; }
.portrait-photo { overflow: hidden; background: #293120; aspect-ratio: 1 / 1.12; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.1) saturate(1.08) brightness(1.02); }
.portrait figcaption { display: flex; justify-content: space-between; padding: 13px 0 2px; font-size: 8px; letter-spacing: .09em; color: #ccd6c2; }
.visual-label { position: absolute; bottom: 20px; font-size: 8px; letter-spacing: .16em; color: #96aa80; }
.hero-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: .12em; color: #a0a69d; }
.hero-bottom a span { margin-left: 16px; color: var(--accent); }
.section-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.section-note { color: var(--muted); font-size: 14px; margin-top: 22px; }
.about-content { padding-top: 39px; color: #bac0b5; font-size: 17px; line-height: 1.85; }
.about-content p + p { margin-top: 19px; }
.about-content p a { color: var(--text); border-bottom: 1px solid #4f5a45; }
.about-content p a:hover { color: var(--accent); border-color: var(--accent); }
.about-content strong { color: var(--accent); font-weight: 500; }
.about-content .cta { font-size: 14px; color: var(--muted); }
.text-link { display: inline-flex; gap: 24px; color: var(--accent); margin-top: 25px; font-size: 14px; }
#news { background: #0c0f0b; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 23px 0; border-top: 1px solid var(--line); }
.news-date { color: #939e8b; font-size: 10px; padding-top: 4px; white-space: nowrap; }
.news-text { color: #b3bbad; font-size: 14px; line-height: 1.8; }
.news-text a, .news-text strong { color: var(--text); font-weight: 500; }
.news-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-text a.first-author-paper { color: var(--accent); }
.news-archive { margin-top: 8px; }
.news-archive summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; list-style: none; border-top: 1px solid var(--line); color: var(--accent); font-size: 12px; cursor: pointer; }
.news-archive summary::-webkit-details-marker { display: none; }
.details-icon { font-size: 20px; transition: transform .2s; }
.news-archive[open] .details-icon { transform: rotate(45deg); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 58px; }
.citation-badge { display: flex; align-items: center; gap: 22px; padding: 11px 16px; border: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.pub-card { display: grid; grid-template-columns: .95fr 1.45fr; align-items: center; column-gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.pub-thumb img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; object-position: left center; }
.pub-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.pub-index { color: #849179; font-size: 9px; letter-spacing: .1em; }
.pub-badge { padding: 4px 9px; border: 1px solid #394133; color: #bbc5b1; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.pub-badge.accepted { color: var(--accent); border-color: #50613d; background: #182112; }
.pub-title { font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; text-wrap: pretty; }
.pub-authors { margin-top: 14px; color: #939c8b; font-size: 12px; line-height: 1.8; }
.pub-authors strong { color: var(--text); font-weight: 600; }
.pub-links { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 18px; }
.pub-links a { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; }
.pub-links a::after { content: '↗'; font: 16px var(--sans); }
.pub-links a:hover { color: white; }
#honors-and-awards, #educations, #internships { padding-block: 64px; }
#honors-and-awards .container, #educations .container, #internships .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.section-heading { font-size: 32px; letter-spacing: -.035em; line-height: 1.2; }
.section-num { display: block; margin-bottom: 24px; font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.section-num::after { content: ' / BACKGROUND'; }
.award-shelf { display: grid; grid-template-columns: 58px 1fr; gap: 24px; padding: 23px 0; border-top: 1px solid var(--line); }
.award-year, .award-month { color: #96a18d; font-size: 10px; }
.award-entry { display: flex; gap: 16px; align-items: baseline; }
.award-detail { display: flex; flex-direction: column; gap: 6px; }
.award-title { font-size: 15px; line-height: 1.6; }
.award-rank { color: var(--accent); font-size: 11px; white-space: nowrap; }
.award-org { color: var(--muted); font-size: 12px; }
.education-card, .internship-card { --logo-size: 96px; display: grid; grid-template-columns: var(--logo-size) minmax(0, 1fr); align-items: center; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.education-logo, .internship-logo { position: relative; display: grid; place-items: center; width: var(--logo-size); height: var(--logo-size); }
.education-logo img, .internship-logo img { max-height: var(--logo-size); width: 100%; object-fit: contain; }
.education-logo-fallback, .internship-logo-fallback { font-size: 9px; color: var(--muted); }
.education-content, .internship-content { display: grid; gap: 5px; }
.education-date, .internship-date { color: #a7b19d; font-size: 10px; }
.education-degree, .internship-role { font-size: 20px; letter-spacing: -.02em; }
.education-school, .internship-place { font-size: 13px; line-height: 1.7; color: var(--muted); }
.education-location { color: #86907c; font-size: 11px; }
#footer { padding: 25px 0; }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; font-size: 8px; letter-spacing: .04em; color: #88927f; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { .hero-container { animation: enter .8s ease-out both; } }
@media (min-width: 1600px) { .hero-layout { min-height: 730px; } }
@media (max-width: 1080px) {
  .container { width: calc(100% - 72px); }
  .nav-inner { width: calc(100% - 48px); }
  .nav-links { gap: 20px; }
  .hero-layout { gap: 0; min-height: 610px; }
  .hero-name { font-size: 76px; }
  .hero-visual { min-height: 440px; }
  .section-split, #honors-and-awards .container, #educations .container, #internships .container { gap: 55px; grid-template-columns: .75fr 1.25fr; }
  .pub-card { gap: 30px; }
  .pub-title { font-size: 21px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 65px; }
  .nav-inner { min-height: 66px; width: calc(100% - 40px); flex-wrap: wrap; gap: 0; }
  .nav-logo { font-size: 20px; }
  .identity-mark { font-size: 25px; }
  .js .menu-toggle { display: flex; align-items: center; gap: 15px; color: var(--text); background: none; border: 1px solid var(--line); font-size: 12px; padding: 8px 12px; }
  .nav-links { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 20px; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 13px 0; border-top: 1px solid var(--line); }
  .nav-links > .nav-contact { align-self: flex-start; margin-top: 8px; padding: 4px 8px; border-top: 0; }
  #hero { padding-top: 23px; }
  .hero-topline { font-size: 8px; letter-spacing: .025em; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-container { padding: 50px 0 15px; }
  .hero-name { font-size: clamp(56px, 12vw, 82px); }
  .hero-statement { font-size: 36px; }
  .hero-role { margin-top: 23px; }
  .hero-visual { min-height: 345px; }
  #research-field { inset: -15% -10%; width: 120%; height: 125%; }
  .portrait { width: 220px; }
  .visual-label { bottom: 18px; font-size: 7px; }
  .hero-bottom { font-size: 7px; padding-block: 16px; }
  .hero-bottom > span { max-width: 50%; }
  .hero-bottom a { white-space: nowrap; align-self: center; }
  .hero-bottom a span { margin-left: 5px; }
  .section-split, #honors-and-awards .container, #educations .container, #internships .container { grid-template-columns: 1fr; gap: 32px; }
  .section-intro h2 br { display: none; }
  .section-intro h2 br::after { content: ' '; }
  .section-intro h2 { max-width: 390px; }
  .about-content { padding-top: 0; font-size: 16px; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; }
  .news-item { grid-template-columns: 95px 1fr; gap: 15px; padding: 21px 0; }
  .news-date { font-size: 9px; }
  .news-text { font-size: 13px; }
  .section-header { align-items: start; gap: 15px; margin-bottom: 35px; }
  .citation-badge { margin-top: 35px; gap: 10px; font-size: 8px; padding: 9px 10px; white-space: nowrap; }
  .pub-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 34px; }
  .pub-thumb img { max-height: 240px; }
  .pub-title { font-size: 22px; }
  .pub-authors { font-size: 12px; }
  .pub-links { gap: 26px; }
  .pub-links a { padding-block: 6px; }
  .section-heading { font-size: 32px; }
  .section-num { margin-bottom: 18px; }
  #honors-and-awards, #educations, #internships { padding-block: 48px; }
  .award-shelf { gap: 16px; }
  .award-entry { gap: 12px; }
  .education-card, .internship-card { --logo-size: 80px; gap: 20px; }
  .footer-meta { flex-wrap: wrap; font-size: 7px; gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
