:root {
  --bg: #ffffff;
  --text: #4b5158;
  --heading: #444a50;
  --muted: #6c7682;
  --light: #8a96a3;
  --line: #edf0f3;
  --line-strong: #dfe5eb;
  --blue: #2f5fbd;
  --blue-dark: #244f9c;
  --blue-soft: #eef5ff;
  --paper: #ffffff;
  --side: 236px;
  --gap: 54px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.skip-link {
  position: absolute;
  top: -999px;
  left: 12px;
  z-index: 50;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--blue-dark);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.layout {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 36px 28px 60px;
  display: grid;
  grid-template-columns: minmax(0, var(--side)) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.sidebar {
  min-width: 0;
  position: sticky;
  top: 28px;
}

.profile-box {
  min-width: 0;
  color: var(--heading);
}

.avatar-frame {
  width: 164px;
  height: 164px;
  margin: 0 auto 18px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 48, 64, 0.08);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

.profile-name {
  margin: 0;
  color: var(--heading);
  font-size: 1.46rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.03em;
}

.profile-en {
  margin: 6px 0 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

.profile-tags {
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
}

.profile-tags li {
  padding: 4px 10px;
  border: 1px solid #d7e5fb;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
}

.profile-links {
  margin: 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  list-style: none;
}

.profile-links li {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f6fc;
  color: var(--blue-dark);
}

.link-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
}

.content-section {
  min-width: 0;
  scroll-margin-top: 76px;
  margin-bottom: 30px;
}

.lead-section {
  margin-bottom: 28px;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.35;
}

h1 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.7rem, 3.6vw, 2.05rem);
  font-weight: 800;
}

h2 {
  margin: 0 0 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.42rem;
  font-weight: 800;
}

h2 span {
  margin-right: 4px;
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

p {
  margin: 0 0 10px;
}

.lead {
  max-width: 850px;
  font-size: 1.02rem;
}

.quick-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tags span {
  padding: 3px 9px;
  border: 1px solid #d7e5fb;
  border-radius: 5px;
  background: #f7fbff;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.clean-list,
.news-list {
  margin: 0;
  padding-left: 1.25rem;
}

.clean-list li,
.news-list li {
  margin: 5px 0;
}

.timeline-item,
.result-item {
  min-width: 0;
  padding: 14px 0 2px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px dashed var(--line);
}

.timeline-date {
  color: var(--heading);
  font-weight: 800;
  white-space: nowrap;
}

.timeline-body p,
.result-item p,
.meta {
  color: var(--muted);
}

.result-item {
  display: block;
}

.meta {
  font-size: 0.92rem;
}

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

.news-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 4px 0;
}

.news-list time {
  color: var(--heading);
  font-weight: 800;
}

.footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--light);
  font-size: 0.88rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  :root {
    --gap: 28px;
    --side: 220px;
  }

  .layout {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .layout {
    display: block;
    padding: 22px 18px 42px;
  }

  .sidebar {
    position: static;
    margin-bottom: 26px;
  }

  .profile-box {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .avatar-frame {
    width: 136px;
    height: 136px;
    margin-bottom: 14px;
  }

  .profile-links {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
  }

  h1 {
    font-size: 1.56rem;
  }

  h2 {
    font-size: 1.26rem;
  }

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

  .timeline-date {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-tags span,
  .profile-tags li {
    font-size: 0.8rem;
  }
}

.content-section, .timeline-body, .result-item, .clean-list li, .news-list li, .lead {
  overflow-wrap: anywhere;
}
