:root {
  --blue: #07549b;
  --bright-blue: #1779e6;
  --ink: #20252b;
  --muted: #626a73;
  --line: #e1e6eb;
  --page: #f3f6fa;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  color: var(--ink);
  font: 14px/1.65 Arial, Helvetica, sans-serif;
  background:
  linear-gradient(
    rgba(243, 246, 250, 0.55),
    rgba(243, 246, 250, 0.68)
  ),
  url("assets/tech-background.webp") center center / cover fixed no-repeat;
}

#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.content-card,
.footer {
  position: relative;
  z-index: 1;
}

.container { width: min(900px, calc(100% - 36px)); margin-inline: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #d8dee6;
  box-shadow: 0 1px 5px rgba(30,50,70,.05);
}
.nav-wrap {
  width: calc(100% - 32px);
  max-width: none;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-title {
  margin-right: auto;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: stretch; gap: 8px; }
.nav-links a {
  position: relative;
  padding: 20px 14px 17px;
  color: #3f4851;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: #0876e1; }
.nav-links a:hover::after,
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: #1685f5;
}
.nav-toggle { display: none; }

.content-card {
  position: relative;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 52px 68px;
  background: rgba(255,255,255,.97);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(43,61,79,.12);
}
.profile-section {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 42px;
  align-items: center;
  gap: 30px;
  padding: 4px 0 38px;
}
.portrait-box {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
}
.profile-photo {
  width: 176px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
  border: 5px solid #e7edf3;
  box-shadow: 0 9px 18px rgba(10,38,63,.22);
}
.profile-info h1 {
  margin: 0 0 14px;
  color: #15191d;
  font: 700 18px/1.2 Arial, sans-serif;
}
.profile-list {
  list-style: square;
  padding-left: 20px;
  margin: 0 0 22px;
}
.profile-list li { margin: 8px 0; padding-left: 4px; }
.links-line { margin: 0; color: var(--muted); font-size: 11px; }
.social-links { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.social-links a {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease;
}
.social-links a:hover { transform: translateY(-2px); color: white; }
.scholar { background: #4285f4; }
.orcid { background: #a6ce39; }
.linkedin { background: #0a66c2; }
.email { background: #e94235; }
.cv-icon { background: #1b6ca8; }

.section { padding: 30px 0 18px; border-top: 0; }
.section + .section { border-top: 1px solid #eef1f4; }
.section h2 {
  margin: 0 0 22px;
  padding-bottom: 8px;
  color: var(--blue);
  font: 700 20px/1.25 Arial, Helvetica, sans-serif;
  border-bottom: 1px solid #d9e0e6;
}
.section h3 { margin: 28px 0 14px; color: var(--blue); font: 700 17px/1.3 Arial, Helvetica, sans-serif; }
.section p { text-align: justify; }
.selected-list,
.pub-list { padding-left: 24px; }
.selected-list li,
.pub-list li,
#patents li { margin: 0 0 18px; padding-left: 8px; text-align: justify; }
.pub-list em,
.selected-list em { font-family: Arial, Helvetica, sans-serif; }
.pub-list a,
.selected-list .doi-link {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #83bfff;
  border-radius: 9px;
  font-size: 10px;
  text-decoration: none;
}
.note { color: var(--muted); font-size: 11px; }
.research-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.research-blocks > h2 { grid-column: 1 / -1; }
.research-blocks article { padding: 18px; background: #f7f9fb; border: 1px solid #e2e8ee; border-radius: 5px; }
.research-blocks article h3 { margin-top: 0; font-size: 15px; }
.research-blocks article p { margin-bottom: 0; color: #4f5962; }
.cv-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cv-table th { color: var(--blue); background: #f2f6fa; text-align: left; }
.cv-table th,
.cv-table td { padding: 10px 9px; border: 1px solid #dce3e9; vertical-align: top; }
#contact { padding-bottom: 10px; }
.footer { padding: 2px 0 36px; color: #66727c; text-align: center; font-size: 11px; }

/* Expanded lower-page layout */
.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--bright-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 24px;
}
.section-intro h2 { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.section-intro > p { max-width: 390px; margin: 0; color: var(--muted); text-align: left; }

.themes-section { padding-top: 42px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.theme-card {
  position: relative;
  min-height: 250px;
  padding: 25px 22px 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbfe, #eef4f9);
  border: 1px solid #dce7f0;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(33, 69, 101, .06);
}
.theme-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(23, 121, 230, .16);
  border-radius: 50%;
}
.theme-number {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  margin: 0 auto 20px;

  color: #ffffff;
  background: var(--bright-blue);
  border-radius: 6px;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;

  box-shadow: 0 5px 12px rgba(23, 121, 230, 0.22);
}

.theme-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}
.theme-card p { margin: 0; color: #52606c; text-align: left; }

.recognition-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  padding: 34px 0;
  border-top: 1px solid #eef1f4;
}
.panel-section {
  padding: 27px 26px 22px;
  background: rgba(248, 250, 252, .88);
  border: 1px solid #dfe7ee;
  border-radius: 9px;
}
.panel-section h2 { margin-bottom: 17px; }
.award-list,
.patent-list { margin: 0; padding: 0; list-style: none; }
.award-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8ee;
}
.award-list li:last-child,
.patent-list li:last-child { border-bottom: 0; }
.award-list time { color: var(--blue); font-size: 12px; font-weight: 700; }
.patent-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8ee;
  text-align: left;
}
.patent-list small { display: block; margin-top: 5px; color: var(--muted); }
.status {
  align-self: start;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.status.granted { color: #156b42; background: #dff4e8; }
.status.filed { color: #81550c; background: #fff0cc; }

.cv-section { padding-top: 43px; }
.cv-heading { align-items: center; }
.outline-button {
  flex: none;
  padding: 8px 13px;
  color: var(--blue);
  border: 1px solid #8cb6dc;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.outline-button:hover { color: #fff; background: var(--blue); }
.cv-section > h3 { margin: 26px 0 10px; }
.experience-timeline { position: relative; margin-top: 12px; }
.experience-timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 20px;
  left: 155px;
  width: 1px;
  background: #cbd9e5;
}
.experience-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 52px;
  padding: 17px 0;
}
.experience-timeline article::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 151px;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid var(--bright-blue);
  border-radius: 50%;
}
.experience-timeline time { padding-top: 2px; color: var(--blue); font-size: 11px; font-weight: 700; text-align: right; }
.experience-timeline h4 { margin: 0 0 3px; font-size: 15px; }
.experience-timeline p { margin: 0; font-weight: 600; text-align: left; }
.experience-timeline span { color: var(--muted); font-size: 12px; }

.contact-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 55px;
  margin-top: 22px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #0c4f86, #1479b9);
  border-radius: 10px;
}
.contact-section .section-kicker { color: #a9d9ff; }
.contact-section h2 { color: #fff; border-color: rgba(255,255,255,.3); }
.contact-section p { color: rgba(255,255,255,.83); text-align: left; }
.contact-details { display: grid; gap: 19px; }
.contact-details > div { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.22); }
.contact-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-details span { display: block; margin-bottom: 5px; color: #a9d9ff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-details p { margin: 0; }
.contact-details a { color: #fff; font-size: 16px; font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .nav-wrap { width: calc(100% - 28px); min-height: 54px; }
  .nav-toggle { display: block; border: 1px solid #b9c6d2; border-radius: 4px; padding: 6px 9px; color: var(--blue); background: white; font: 700 10px Arial; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 14px 15px; flex-direction: column; background: white; border-top: 1px solid #e5e9ed; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 8px; }
  .nav-links a::after { display: none; }
  .content-card { width: min(680px,calc(100% - 24px)); margin-top: 18px; padding: 34px 28px; }
  .profile-section { grid-template-columns: 150px 1fr; gap: 22px; }
  .profile-photo { width: 138px; }
  .social-links { grid-column: 1 / -1; flex-direction: row; }
  .research-blocks { grid-template-columns: 1fr; }
  .section-intro { align-items: start; flex-direction: column; gap: 10px; }
  .theme-grid,
  .recognition-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: auto; }
  .contact-section { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 540px) {
  body { font-size: 13px; }
  .site-title { font-size: 16px; }
  .content-card { padding: 28px 18px; border-radius: 7px; }
  .profile-section { grid-template-columns: 1fr; text-align: center; }
  .profile-list { display: inline-block; text-align: left; }
  .links-line { line-height: 2; }
  .profile-photo { width: 150px; }
  .section h2 { font-size: 18px; }
  .section p,
  .selected-list li,
  .pub-list li,
  #patents li { text-align: left; }
  .cv-table { display: block; overflow-x: auto; white-space: nowrap; }
  .panel-section { padding: 23px 18px 17px; }
  .cv-heading { align-items: flex-start; }
  .experience-timeline::before { left: 5px; }
  .experience-timeline article { grid-template-columns: 1fr; gap: 5px; padding: 16px 0 16px 24px; }
  .experience-timeline article::before { left: 1px; top: 22px; }
  .experience-timeline time { text-align: left; }
  .contact-section { padding: 27px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .social-links a { transition: none; }
}
@media (max-width: 820px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  #network-bg {
    opacity: 0.25;
  }
}

.special-text {
  font-size: 18px;
  color: #d14b32;
}

/* Education and Work Experience 标题居中 */
.cv-section > h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* 仅在电脑和平板端将时间轴真正居中 */
@media (min-width: 541px) {
  .experience-timeline {
    position: relative;
    left: -60px;

    width: 100%;
    max-width: 680px;
    margin: 12px auto 0;
  }

  /* 中间竖线 */
  .experience-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  /* 左边日期，右边经历 */
  .experience-timeline article {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* 时间轴圆点 */
  .experience-timeline article::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .experience-timeline time {
    text-align: right;
  }

  .experience-timeline article > div {
    text-align: left;
  }

  .experience-timeline article p {
    text-align: left;
  }
}
