:root {
  --bg: #f8f9fc;
  --surface: #fff;
  --text: #202938;
  --muted: #647084;
  --line: #e2e7ef;
  --link: #2c5c9f;
  --accent: #c45215;
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; border-radius: 3px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(28px, calc((100% - var(--max)) / 2)); min-height: 74px; border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(12px); }
.wordmark { color: var(--text); font-size: 1.1rem; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav { margin-left: auto; }
@media (max-width: 720px) { .topbar nav { width: 100%; margin-left: 0; } }
nav a { color: var(--muted); font-size: .9rem; padding: 6px 12px; border-radius: 7px; }
nav a:hover { background: #edf2f8; color: var(--link); text-decoration: none; }
.layout { width: min(calc(100% - 56px), var(--max)); margin: 48px auto 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 54px; align-items: start; }
.profile { position: sticky; top: 112px; padding: 25px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 6px 24px #263b5710; }
.avatar { display: block; width: 142px; height: 164px; margin: 0 0 23px; object-fit: cover; object-position: center 37%; border-radius: 12px; background: #edf2f8; }
.profile h1 { margin: 0; font-size: 1.8rem; letter-spacing: .02em; line-height: 1.35; }
.name-en { margin: 5px 0 20px; color: var(--muted); font-size: 1rem; }
.role, .location { margin: 0 0 10px; color: var(--muted); font-size: .875rem; line-height: 1.85; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.profile-links a { border: 1px solid var(--line); border-radius: 7px; padding: 4px 13px; font-size: .875rem; background: #f8faff; }
.profile-links a:hover { background: #edf2fa; text-decoration: none; }
.profile-email { margin: 22px 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.profile-wechat { margin: 6px 0 0; color: var(--muted); font-size: .8rem; grid-column: 1 / -1; overflow-wrap: anywhere; }
.content { min-width: 0; }
.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 23px; }
.section .section-heading-row h2 { margin: 0; }
.aggregate-downloads { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: .875rem; }
.aggregate-downloads strong { color: var(--link); font-size: 1.3rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.first-section { padding-top: 3px; }
.section h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 23px; font-size: 1.45rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
.section h2 span { color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.section p { margin: 0 0 13px; }
.section p:last-child { margin-bottom: 0; }
#research { padding: 24px; margin: 4px 0 2px; border: 1px solid #dce5f1; border-radius: 12px; background: #eff4fa; }
#research h2 { margin-bottom: 12px; }
#research p { color: #4b5c73; font-size: .95rem; }
.experience-item { border-left: 3px solid #cc7848; padding: 2px 0 2px 22px; }
.experience-item h3 { margin: 0; font-size: 1.08rem; font-weight: 650; }
.experience-item .subtitle { color: var(--muted); margin: 5px 0 16px; font-size: .875rem; }
.experience-item ul { padding-left: 19px; margin: 0; }
.experience-item li { margin-bottom: 9px; color: #4c586a; }
.experience-item li:last-child { margin-bottom: 0; }
.experience-item li::marker { color: #879db9; }
.work-list { display: grid; gap: 20px; }
.work-item { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: center; gap: 26px; padding: 23px; border: 1px solid #dbe1eb; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px #23395708; }
.work-item h3 { margin: 12px 0 8px; color: var(--accent); font-size: 1.03rem; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.work-item p { margin: 0 0 9px; color: #5a6679; font-size: .9rem; line-height: 1.85; }
.work-item p strong { color: #46556b; }
.work-item .paper-authors { font-size: .84rem; line-height: 1.7; color: #788293; }
.paper-authors strong { color: var(--text) !important; }
.paper-badges, .paper-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.paper-badges span { padding: 3px 9px; border-radius: 6px; background: #bc4e10; color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.65; }
.paper-badges .author-badge { background: #fff4eb; color: #ac4d18; border: 1px solid #f1d9c8; font-weight: 400; }
.paper-links { margin-top: 13px; }
.paper-links a, .paper-links span { padding: 3px 11px; border: 1px solid #e4e8ef; border-radius: 7px; background: #f4f6fa; color: #546174; font-size: .8rem; font-weight: 550; }
.paper-links a:hover { color: var(--accent); text-decoration: none; border-color: #debda7; }
.paper-figure { min-width: 0; margin: 0; }
.paper-figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 9px; border: 1px solid #edf0f5; background: #fff; }
.paper-figure figcaption { margin-top: 5px; color: #7a8492; font-size: .75rem; text-align: right; }
.model-downloads { padding: 24px; border: 1px solid #dbe1eb; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 16px #23395706; }
.model-downloads h3 { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.model-downloads + .model-downloads { margin-top: 20px; }
.model-downloads .paper-badges { margin-bottom: 10px; }
.model-downloads .model-description { color: #526074; font-size: .95rem; }
.model-downloads .paper-links { margin-bottom: 20px; }
.model-downloads .download-scope { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.model-downloads .model-repo { margin: 3px 0 20px; color: var(--muted); font-size: .875rem; }
.download-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; padding: 18px 0; border-block: 1px solid #edf0f5; }
.download-counts dt { color: var(--muted); font-size: .875rem; }
.download-counts dd { margin: 2px 0 0; color: var(--link); font-size: 1.85rem; font-weight: 650; line-height: 1.5; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.model-downloads .download-status { margin: 13px 0 0; font-size: .75rem; color: #7b8594; }
.compact-list { display: grid; grid-template-columns: 1fr 1fr; list-style: none; padding: 0; margin: 0; gap: 12px; }
.compact-list li { padding: 14px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #526074; font-size: .9rem; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid #edf0f5; }
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--muted); font-size: .8rem; }
.news-list span { font-size: .95rem; }
.contact-section { border-bottom: 0; }
.contact-section p { color: var(--muted); }
.wechat-id { color: var(--text); font-weight: 550; user-select: all; }
footer { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 195px minmax(0, 1fr); gap: 30px; }
  .profile { padding: 22px 18px; }
  .work-item { grid-template-columns: 1fr; gap: 20px; }
  .paper-figure { width: min(100%, 470px); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 130px; }
  .topbar { padding: 12px 20px; min-height: 68px; flex-wrap: wrap; gap: 7px 20px; }
  nav { gap: 0; } nav a { padding: 4px 8px; font-size: .875rem; }
  .layout { width: calc(100% - 36px); display: block; margin-top: 24px; }
  .profile { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; padding: 22px; margin-bottom: 30px; }
  .avatar { grid-column: 1; grid-row: 1 / 5; width: 96px; height: 122px; margin: 0; }
  .profile h1, .profile .name-en, .profile .role, .profile .location { grid-column: 2; }
  .profile h1 { font-size: 1.5rem; } .name-en { margin: 2px 0 10px; font-size: .875rem; }
  .role, .location { font-size: .8rem; margin-bottom: 5px; }
  .profile-links { grid-column: 1 / -1; margin-top: 18px; }
  .profile-email { grid-column: 1 / -1; margin-top: 18px; }
  .section { padding: 28px 0; } .first-section { padding-top: 0; }
  .section h2 { font-size: 1.25rem; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }
  #research { padding: 20px; }
  .work-item { padding: 18px; }
  .compact-list { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 75px 1fr; gap: 12px; }
  .download-counts { gap: 12px; } .download-counts dd { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
