﻿:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #e6e6e6;
  --link: #2f6f9f;
  --link-hover: #1f4f75;
  --soft: #f8f9fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.nav-wrap {
  width: min(980px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  text-transform: lowercase;
}

.nav-links a {
  color: #444444;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links .active {
  color: var(--link);
  text-decoration: none;
}

main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 44px;
  align-items: start;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cover-image {
  width: 100%;
  max-height: 220px;
  margin: 28px 0 6px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.feature-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 4px 0 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 500;
}

h2 {
  margin: 46px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  text-transform: lowercase;
}

h2:first-child {
  margin-top: 0;
}

.education-title {
  font-weight: 700;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
}

p {
  margin-bottom: 14px;
}

.lead {
  color: #333333;
  font-size: 17px;
}

.motto {
  margin: 64px 0 0;
  color: #333333;
  font-family: "LiSu", "隶书", "STLiti", "华文隶书", serif;
  font-size: 28px;
  line-height: 1.8;
  text-align: center;
}

.timeline,
.plain-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:first-child {
  padding-top: 0;
}

.timeline li:last-child {
  border-bottom: 0;
}

.date {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.works-note {
  padding: 20px 22px;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.plain-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #777777;
}

.contact-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(100% - 28px, 980px);
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  main,
  .footer-inner {
    width: min(100% - 28px, 980px);
  }

  main {
    padding-top: 34px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    margin-top: 38px;
  }

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