:root {
  color-scheme: dark;
  --background: #09090b;
  --surface: #121215;
  --ink: #f3f3f5;
  --text: #c4c4ce;
  --muted: #a1a1ad;
  --blue: #a8c1ff;
  --link-hover: #d4e0ff;
  --line: #2c2c33;
  --soft: #202025;
  --hover: #27272f;
  --success: #8ad6ad;
  --success-bg: #182b22;
  --success-line: #2e5140;
  --radius: 20px;
  --font: 'DM Sans', 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 3px solid #80a9ff; outline-offset: 5px; border-radius: 3px; }
::selection { color: #f3f3f5; background: #354769; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { color: var(--ink); }
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 18px; background: var(--soft); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(9,9,11,.96); border-bottom: 1px solid var(--line); }
.nav-container { max-width: 1120px; margin: auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 4px; }
.brand { color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 13px; font-weight: 550; }
nav a:hover { color: var(--blue); text-decoration: none; }
.nav-signature { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 28px; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .16s, transform .16s; }
.nav-signature:hover { background: var(--soft); transform: translateY(-1px); }
.nav-signature:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.page { width: min(1120px, calc(100% - 64px)); margin: 32px auto 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.16); }
.profile-panel { overflow: hidden; margin-bottom: 20px; }
.cover { background: #040a1b; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 5/1; object-fit: contain; }
.profile-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding: 34px 40px 28px; }
.identity { padding-top: 4px; text-align: center; }
.portrait-link { display: block; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 13px; border: 4px solid var(--line); box-shadow: 0 3px 12px #00000040; }
.personality { display: inline-block; margin-top: 10px; padding: 3px 9px; background: var(--soft); color: var(--text); border-radius: 6px; font-size: 10px; }
.hobbies { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
h1 { font-size: 42px; font-weight: 750; letter-spacing: -1.7px; line-height: 1.12; }
.affiliation { margin-top: 7px; margin-bottom: 18px; font-size: 12px; }
.affiliation span { color: var(--muted); }
.introduction > p:not(.affiliation):not(.opportunity) { margin-bottom: 12px; font-size: 13px; line-height: 1.85; }
.introduction strong { font-weight: 650; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--soft); font: 550 11px/1.5 var(--font); transition: background .16s, border-color .16s, transform .16s; }
.button .icon { width: 15px; height: 15px; }
.button:hover { color: var(--ink); background: var(--hover); border-color: #555562; text-decoration: none; transform: translateY(-1px); }
.opportunity { margin-top: 14px; display: flex; align-items: center; gap: 7px; color: var(--success); font-size: 11px; }
.status-dot { width: 6px; height: 6px; display: inline-block; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 3px var(--success-bg); flex-shrink: 0; }
.identity .opportunity { text-align: left; align-items: flex-start; line-height: 1.8; }
.identity .status-dot { margin-top: 7px; }
.section-panel { padding: 30px 34px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { font-size: 23px; letter-spacing: -.6px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; padding: 9px 0; font-size: 12px; }
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { padding-bottom: 0; }
.news-list time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.news-list strong { font-weight: 600; }
.news-emoji { display: inline-block; margin-right: 8px; font-size: 14px; line-height: 1; }
.ccf-rank { color: var(--muted); font-size: .9em; white-space: nowrap; }
.news-highlight p { color: var(--text); }
.news-highlight strong { color: var(--blue); }
.news-list .news-neurips { color: #fff; }
.publication { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); }
.paper-preview { display: block; margin-top: 3px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.paper-preview img { display: block; width: 100%; height: auto; }
.project-logo { background: #fff; padding: 18px; display: grid; place-items: center; }
.project-logo img { width: 110px; max-width: 100%; }
.rank-badge { display: block; height: 20px; width: auto; }
.introduction h1 { margin-bottom: 18px; }
.publication:first-child { padding-top: 2px; }
.publication:last-child { border: 0; padding-bottom: 2px; }
.venue { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.venue > strong { color: var(--text); font-size: 14px; font-weight: 650; }
.repo-stars { display: inline-flex; align-items: center; }
.repo-stars img { display: block; height: 20px; width: auto; }
.venue > span:not(.badge) { color: var(--muted); font-size: 12px; }
.badge { display: inline-block; background: var(--soft); border: 1px solid var(--line); color: var(--muted); padding: 2px 6px; border-radius: 5px; font-size: 8px; line-height: 1.5; white-space: nowrap; }
.accepted-badge { background: var(--success-bg); border-color: var(--success-line); color: var(--success); }
.accepted .venue > strong { color: var(--blue); }
.paper-content h3 { font-size: 14px; line-height: 1.6; font-weight: 650; letter-spacing: -.13px; }
.paper-content h3 a { color: var(--ink); }
.paper-content h3 a:hover { color: var(--blue); }
.paper-role { color: var(--muted); margin-top: 5px; font-size: 11px; }
.paper-role strong { color: var(--text); font-weight: 600; }
.paper-description { font-size: 12px; line-height: 1.75; margin-top: 7px; color: var(--muted); }
.paper-links { display: flex; gap: 15px; margin-top: 10px; }
.paper-links a { font-size: 10px; font-weight: 600; }
.paper-links span { padding-left: 2px; color: var(--blue); }
.education-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.education-entry { border-left: 2px solid var(--line); padding-left: 18px; }
.degree { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.education-entry h3 { font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.education-entry h3 a { color: inherit; }
.education-entry h3 a:hover { color: var(--blue); }
.university-heading a { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.university-seal { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.csu-seal { filter: brightness(1.65); }
.thu-seal { filter: brightness(1.5); }
.education-entry p:not(.degree) { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 3px; }
.education-roles { margin: 8px 0 0; padding-left: 14px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.education-roles li::marker { color: var(--muted); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 3px 28px; color: var(--muted); font-size: 10px; }
footer a { color: var(--muted); }
@media (max-width: 1200px) { .nav-container { margin: 0 32px; } }
@media (max-width: 900px) {
  .nav-container nav { gap: 17px; }
  .profile-body { grid-template-columns: 170px minmax(0,1fr); padding: 28px; gap: 27px; }
  h1 { font-size: 36px; }
  .affiliation span { display: block; }
  .publication { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 112px; }
  .nav-container { margin: 0; min-height: 82px; padding: 11px 18px 8px; gap: 7px; flex-wrap: wrap; }
  .brand { font-size: 13px; }
  .nav-signature { font-size: 25px; margin-left: auto; }
  .nav-container nav { order: 3; width: 100%; gap: 0; justify-content: space-between; padding: 4px 0 0; }
  nav a { font-size: 11px; }
  .page { width: calc(100% - 28px); margin-top: 16px; }
  :root { --radius: 14px; }
  .profile-panel { margin-bottom: 14px; }
  .profile-body { grid-template-columns: 1fr; padding: 22px 20px 20px; gap: 16px; }
  .identity { text-align: left; padding: 0; }
  .portrait-link { width: 96px; }
  .portrait { border-width: 2px; border-radius: 9px; }
  .identity-details { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
  .personality { margin-top: 0; font-size: 9px; }
  .hobbies { margin-top: 0; font-size: 10px; }
  h1 { font-size: 35px; letter-spacing: -1px; }
  .affiliation { margin-bottom: 15px; font-size: 11px; }
  .affiliation span { display: inline; }
  .introduction > p:not(.affiliation):not(.opportunity) { font-size: 12px; line-height: 1.85; }
  .social-links { gap: 7px; margin-top: 17px; }
  .button { min-height: 35px; font-size: 10px; padding: 7px 10px; gap: 5px; }
  .opportunity { font-size: 10px; }
  .section-panel { padding: 22px 20px; margin-bottom: 14px; }
  .section-heading { margin-bottom: 18px; }
  h2 { font-size: 21px; }
  .news-list li { grid-template-columns: 66px minmax(0,1fr); gap: 12px; font-size: 11px; padding: 8px 0; }
  .news-list time { font-size: 10px; }
  .publication { grid-template-columns: 1fr; gap: 16px; padding: 18px 0; }
  .paper-preview { width: 160px; max-width: 100%; }
  .venue { flex-direction: row; align-items: center; gap: 7px; padding: 0; }
  .venue > strong { font-size: 11px; }
  .venue > span:not(.badge) { font-size: 10px; }
  .badge { margin: 0 0 0 auto; font-size: 8px; }
  .paper-content h3 { font-size: 12px; }
  .paper-role, .paper-description { font-size: 10px; }
  .education-grid { grid-template-columns: 1fr; gap: 22px; }
  footer { font-size: 9px; gap: 10px; padding-bottom: 22px; flex-wrap: wrap; }
}
/* Phone layout only; desktop rules above remain unchanged. */
@media screen and (max-width: 600px) {
  html { scroll-padding-top: 124px; }
  .nav-container { padding: 6px 16px; gap: 0; }
  .nav-container nav { padding: 0; gap: 4px; }
  nav a { min-height: 44px; display: flex; align-items: center; font-size: 11px; }
  .page { width: calc(100% - 24px); margin-top: 12px; }
  .profile-body { grid-template-columns: 82px minmax(0, 1fr); gap: 12px 16px; padding: 20px 18px; }
  .identity, .introduction { display: contents; }
  .portrait-link { grid-column: 1; grid-row: 1; width: 82px; }
  .introduction h1 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 32px; letter-spacing: -1px; }
  .identity .opportunity { grid-column: 1 / -1; grid-row: auto; order: 1; margin: 0; padding: 10px 12px; border: 1px solid var(--success-line); border-radius: 8px; background: var(--success-bg); font-size: 11px; line-height: 1.65; }
  .introduction > p, .social-links { grid-column: 1 / -1; }
  .introduction > p:not(.affiliation):not(.opportunity) { margin: 0; font-size: 13px; line-height: 1.8; }
  .social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
  .button { justify-content: center; min-height: 44px; font-size: 11px; }
  .section-panel { padding: 22px 18px; }
  .news-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; font-size: 12px; line-height: 1.75; }
  .news-list time { font-size: 11px; font-weight: 600; }
  .publication { gap: 12px; padding: 20px 0; }
  .paper-preview { width: 150px; }
  .paper-content h3 { font-size: 14px; line-height: 1.65; }
  .paper-role, .paper-description { font-size: 12px; }
  .paper-links { gap: 18px; margin-top: 8px; }
  .paper-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .education-entry h3 { font-size: 14px; }
  .education-entry p:not(.degree), .education-roles { font-size: 12px; }
  .degree { font-size: 11px; }
  footer { font-size: 11px; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media print {
  :root { color-scheme: light; --background: #fff; --surface: #fff; --ink: #111; --text: #333; --muted: #555; --blue: #1749b5; --line: #ddd; --soft: #eee; --success: #24683f; --success-bg: #edf8f1; --success-line: #b9d8c5; }
  body { background: white; font-size: 11px; }
  .site-header, .cover, footer { display: none; }
  .page { width: 100%; margin: 0; }
  .panel { box-shadow: none; }
  .section-panel { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
