:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #202522;
  --muted: #626b65;
  --accent: #345f52;
  --line: #e1e5df;
  --soft: #f2f5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 42px 18px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.resume {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 42px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: 170px;
  padding-right: 140px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--text);
}

.avatar {
  position: absolute;
  top: 33px;
  right: 0;
  width: 116px;
  height: 151px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  line-height: 1.1;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 10px 4px 8px;
  background: color-mix(in srgb, var(--soft) 75%, #fff);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1;
}

.email-link:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  text-decoration: none;
}

.email-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-label {
  color: var(--accent);
  font-weight: 700;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 16px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px 6px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.links a:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--link-color) 45%, var(--line));
  box-shadow: 0 8px 20px rgba(32, 37, 34, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--link-color);
  fill: currentColor;
  stroke: none;
}

.link-csdn .link-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-github {
  --link-color: #24292f;
}

.link-orcid {
  --link-color: #a6ce39;
}

.link-orcid .link-icon path {
  fill: #fff;
}

.link-csdn {
  --link-color: #c71d23;
}

section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.hero + section {
  border-top: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.08rem;
  line-height: 1.4;
}

h3 {
  font-size: 1rem;
  line-height: 1.55;
}

p {
  color: var(--muted);
  line-height: 1.82;
}

strong {
  color: var(--text);
}

.research-line {
  color: var(--text);
  line-height: 1.82;
}

time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.item-head {
  margin-bottom: 6px;
}

.paper-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.35rem;
}

.paper-list li {
  padding-left: 4px;
}

.paper-list p {
  color: var(--text);
}

.paper-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.simple-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.35rem;
}

.simple-list li {
  padding-left: 4px;
}

.no-marker-list {
  padding-left: 0;
  list-style: none;
}

.no-marker-list li {
  padding-left: 0;
}

.simple-list p,
.simple-list h3 {
  color: var(--text);
}

.simple-list p + p {
  margin-top: 6px;
}

.resume-list p {
  color: var(--muted);
}

.education-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
}

.education-list time {
  margin-top: 0;
  text-align: right;
}

@media (max-width: 720px) {
  body {
    padding: 22px 12px;
  }

  .resume {
    padding: 28px 20px;
  }

  .hero {
    min-height: 0;
    padding-right: 0;
  }

  .avatar {
    position: static;
    width: 96px;
    height: 126px;
    margin: 16px 0 0;
  }

  .education-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .education-list time {
    text-align: left;
  }

}

@media print {
  body {
    padding: 0;
    background: #fff;
  }

  .resume {
    width: 100%;
    padding: 0;
    border: 0;
  }
}
