:root {
  --bg: #f4f6f8;
  --panel: #fff;
  --text: #202327;
  --muted: #626971;
  --line: #e4e7ea;
  --blue: #1268d5;
  --header: #41464b;
  --shadow: 0 1px 2px rgba(25, 30, 35, .06), 0 4px 14px rgba(25, 30, 35, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html [data-lang="en"] { display: none; }
html.lang-en [data-lang="zh"] { display: none; }
html.lang-en [data-lang="en"] { display: revert; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { color: #fff; background: var(--header); }
.topbar-inner {
  width: min(calc(100% - 40px), 1110px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto;
}
.brand { color: #fff; font-size: 1.12rem; font-weight: 700; }
.brand:hover { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 24px; }
nav { display: flex; gap: 25px; }
nav a { color: #d3d6d9; font-size: .9rem; }
nav a:hover { color: #fff; text-decoration: none; }
.language-switch { display: flex; padding: 2px; background: #2f3337; border-radius: 5px; }
.language-switch button { padding: 4px 8px; color: #cfd2d5; background: transparent; border: 0; border-radius: 3px; cursor: pointer; font: inherit; font-size: .75rem; }
.language-switch button.is-active { color: #24282c; background: #fff; }

.site-layout {
  width: min(calc(100% - 40px), 1110px);
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin: 24px auto 55px;
}
.profile-card,
.panel {
  background: var(--panel);
  border: 1px solid #eaedef;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.profile-card {
  position: sticky;
  top: 24px;
  padding: 28px 24px 25px;
  text-align: center;
}
.avatar {
  width: 132px;
  height: 132px;
  display: block;
  margin: 0 auto 17px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
  border: 3px solid #f0f2f4;
}
.profile-card h1 { margin: 0; font-size: 1.55rem; line-height: 1.35; }
.name-en { margin: 2px 0 14px; color: var(--muted); font-size: .84rem; }
.profile-role { margin: 0; font-weight: 600; }
.profile-school { margin: 5px 0 20px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.profile-links { padding-top: 15px; border-top: 1px solid var(--line); text-align: left; }
.profile-links a { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: .82rem; overflow-wrap: anywhere; }
.link-icon {
  flex: 0 0 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 700;
}

.main-content { min-width: 0; display: grid; gap: 16px; }
.panel { min-width: 0; padding: 30px 32px; scroll-margin-top: 18px; }
.panel h2 { margin: 0 0 22px; font-size: 1.18rem; line-height: 1.3; }
.panel h2 small { margin-left: 7px; color: #8a9096; font-size: .72rem; font-weight: 500; letter-spacing: .03em; }
.about-panel p { max-width: 760px; margin: 0 0 12px; }
.research-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.research-tags span { padding: 4px 10px; color: #4d5964; background: #f2f4f6; border: 1px solid #e4e8eb; border-radius: 4px; font-size: .76rem; }

.record-list { display: grid; gap: 25px; }
.record { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: start; gap: 7px; }
.record + .record { padding-top: 24px; border-top: 1px solid var(--line); }
.record-logo { width: 29px; min-height: 22px; display: flex; align-items: flex-start; justify-content: flex-start; padding-top: 2px; }
.record-logo img { display: block; max-width: 100%; object-fit: contain; }
.logo-njust img { width: 20px; height: 20px; }
.logo-snnu img { width: 24px; height: 24px; }
.logo-iflytek img { width: 29px; height: 9px; margin-top: 3px; }
.record-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.record-heading h3 { margin: 0; font-size: 1rem; }
.degree-inline { margin-left: 7px; color: #68717a; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.record-heading time { flex: none; color: var(--muted); font-size: .78rem; font-style: italic; }
.record p { margin: 2px 0 0; color: #4f555b; font-size: .88rem; }
.record-role { color: var(--text) !important; font-weight: 500; }

.award-list { margin: 0; padding: 0; list-style: none; }
.award-list li { display: grid; grid-template-columns: 105px minmax(0, 1fr) 48px; gap: 15px; padding: 8px 0; border-bottom: 1px dashed #e7e9eb; }
.award-list li:last-child { border-bottom: 0; }
.award-list span { color: #6e757c; font-size: .78rem; }
.award-list b { font-weight: 400; }
.award-list p { margin: 0; }
.award-list time { color: var(--muted); font-size: .78rem; text-align: right; }

.publication-list { display: grid; gap: 24px; }
.publication { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 16px; }
.publication-body { min-width: 0; }
.publication + .publication { padding-top: 24px; border-top: 1px solid var(--line); }
.publication h3 { margin: -2px 0 5px; font-size: 1.16rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.publication p { margin: 3px 0; color: #50565c; font-size: .8rem; overflow-wrap: anywhere; }
.publication .authors { color: var(--text); }
.publication .venue { color: #5d6670; font-style: italic; }
.publication-badge { display: inline-block; margin-left: 5px; padding: 1px 5px; color: #fff; background: #27a95f; border-radius: 3px; font-size: .66rem; font-style: normal; font-weight: 600; vertical-align: 1px; }
.publication .publication-summary { margin-top: 6px; color: #5a6269; line-height: 1.5; }
.publication-thumbnail { width: 88px; height: 58px; display: grid; place-items: center; margin: 0; padding: 2px; overflow: hidden; background: #fff; border: 0; border-radius: 2px; }
.publication-thumbnail a { display: block; width: 100%; }
.publication-thumbnail img { display: block; width: 100%; height: 54px; object-fit: contain; }
.patent-thumbnail { width: 48px; height: 45px; margin-left: 18px; align-content: center; color: #5b7fa2; background: #eef4f8; text-align: center; }
.patent-thumbnail span { font: 700 1rem Georgia, serif; }
.patent-thumbnail small { display: block; margin-top: 1px; font-size: .58rem; letter-spacing: .12em; }
.publication-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.publication-links a { font-size: .8rem; }

.hobby-intro { margin: -5px 0 18px; color: var(--muted); }
.hobby-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hobby-list li { display: flex; align-items: center; gap: 9px; padding: 12px; background: #f6f7f8; border: 1px solid #e7e9eb; border-radius: 7px; }
.hobby-list strong { font-size: .82rem; font-weight: 600; }
.hobby-icon { font-size: 1.2rem; line-height: 1; }
.hobby-icon-text { min-width: 25px; color: #506270; font-size: .68rem; font-weight: 800; }

footer { padding: 25px 20px 35px; color: #8a9096; text-align: center; font-size: .75rem; }
footer p { margin: 0; }

@media (max-width: 780px) {
  .topbar-inner { width: calc(100% - 30px); min-height: 54px; }
  nav { display: none; }
  .header-actions { gap: 0; }
  .site-layout { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .profile-card { position: static; padding: 23px 20px; }
  .avatar { width: 96px; height: 96px; margin-bottom: 12px; font-size: 1.65rem; }
  .profile-links { max-width: 290px; margin: 0 auto; }
  .panel { padding: 24px 20px; border-radius: 9px; }
  .record-heading { display: block; }
  .record-heading time { display: block; margin-top: 2px; }
  .award-list li { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; }
  .award-list span { grid-column: 1 / -1; }
  .record { grid-template-columns: 29px minmax(0, 1fr); gap: 6px; }
  .record-logo { width: 27px; }
  .logo-njust img { width: 19px; height: 19px; }
  .logo-snnu img { width: 17.5px; height: 17.5px; }
  .logo-iflytek img { width: 27px; }
  .publication { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .publication-thumbnail { width: 70px; height: 48px; padding: 1px; }
  .publication-thumbnail img { height: 46px; }
  .patent-thumbnail { width: 42px; height: 40px; margin-left: 14px; }
  .publication h3 { font-size: 1rem; }
  .hobby-list { grid-template-columns: repeat(2, 1fr); }
}
