body {
  font-family: "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.sidebar {
  width: 180px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 16px 12px;
  position: sticky;
  top: 40px;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  margin-bottom: 16px;
}
.sidebar li:last-child {
  margin-bottom: 0;
}
.sidebar a {
  display: block;
  font-weight: 600;
  color: #1f4fbf;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar a:hover {
  background-color: rgba(42, 122, 226, 0.1);
  color: #17408f;
}
.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.resume-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 6px;
}
.lang-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 118px;
  padding: 3px;
  border-radius: 999px;
  background: #e8eef7;
  box-shadow: inset 0 1px 2px rgba(23, 64, 143, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.lang-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 999px;
  background: #2a7ae2;
  box-shadow: 0 2px 6px rgba(42, 122, 226, 0.4);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-switch[data-lang="en"]::before {
  transform: translateX(100%);
}
.lang-switch a {
  position: relative;
  z-index: 1;
  padding: 8px 0;
  text-align: center;
  color: #4a5d78;
  border-radius: 999px;
  text-decoration: none;
}
.lang-switch a:hover {
  color: #17408f;
  text-decoration: none;
}
.lang-switch a[aria-current="page"] {
  color: #fff;
  pointer-events: none;
}
.export {
  position: relative;
}
.export-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #e8eef7;
  color: #1f4fbf;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.export-toggle:hover,
.export-toggle[aria-expanded="true"] {
  background: #2a7ae2;
  color: #fff;
  box-shadow: 0 4px 12px rgba(42, 122, 226, 0.35);
}
.export-toggle:active {
  transform: scale(0.96);
}
.export-toggle:focus-visible {
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}
.export-toggle svg {
  width: 16px;
  height: 16px;
}
.export-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(23, 64, 143, 0.14);
}
.export-menu button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #223;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.export-menu button:hover,
.export-menu button:focus-visible {
  background: rgba(42, 122, 226, 0.1);
  color: #17408f;
}
.export-menu button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.export-menu .fmt {
  width: 2.8em;
  color: #2a7ae2;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.export-menu .hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: #7a8799;
}
.export-status {
  margin: 4px 10px 6px;
  font-size: 0.75rem;
  color: #5a6a82;
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch::before,
  .export-toggle {
    transition: none;
  }
}
.container {
  flex: 1;
  max-width: 960px;
  margin: 0;
  padding: 40px 36px 60px;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  position: relative;
}
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    padding: 24px 16px 40px;
  }
  .sidebar {
    width: 100%;
    position: static;
    padding: 12px;
  }
  .sidebar ul {
    display: flex;
    gap: 12px;
    justify-content: space-between;
  }
  .sidebar li {
    margin-bottom: 0;
  }
  .sidebar a {
    text-align: center;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-top {
    width: 100%;
  }
  .header-top h1 {
    width: 100%;
  }
  .resume-tools {
    position: absolute;
    top: 16px;
    right: 16px;
    margin-top: 0;
  }
  .container {
    padding: 28px 20px 40px;
  }
}
header {
  border-bottom: 3px solid #2a7ae2;
  margin-bottom: 32px;
  padding-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #2a7ae2;
  flex-shrink: 0;
  margin-top: 4px;
}
.header-content {
  flex: 1;
}
h1 {
  margin: 0;
  font-size: 2.4rem;
}
.aka {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: #555;
  font-weight: 500;
}
h2 {
  margin-top: 32px;
  font-size: 1.6rem;
  color: #2a7ae2;
  border-left: 6px solid #2a7ae2;
  padding-left: 12px;
}
h3 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #555;
}
h3:first-child {
  margin-top: 8px;
}
ul {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #2a7ae2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid #2a7ae2;
  outline-offset: 2px;
}
.publications ol {
  margin: 0;
  padding-left: 1.4em;
}
.publications li {
  margin-bottom: 14px;
  line-height: 1.55;
}
.publications a {
  display: block;
  margin-top: 2px;
  color: #5a7394;
  font-size: 0.92em;
  word-break: normal;
  overflow-wrap: anywhere;
}
.highlight {
  font-weight: bold;
}
.summary {
  font-size: 1.1rem;
}
.intro {
  margin-top: 12px;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 14px;
  font-size: 0.95rem;
  color: #444;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.contact-item:hover {
  text-decoration: none;
  color: #17408f;
}
.contact-item:hover .contact-label {
  text-decoration: underline;
}
.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.section-content p {
  margin: 8px 0;
}
footer {
  margin-top: 48px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}
body.capturing .resume-tools,
body.capturing footer img[alt="visitors"] {
  display: none !important;
}
body.capturing .container {
  box-shadow: none;
  border-radius: 0;
}
.pdf-host {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 760px;
  background: #fff;
  z-index: -1;
}
.pdf-host .container {
  width: 760px !important;
  max-width: 760px !important;
  margin: 0;
  padding: 28px 36px 40px;
  box-shadow: none;
  border-radius: 0;
}
.pdf-host header {
  flex-direction: row !important;
  align-items: flex-start !important;
}
.pdf-host .header-top {
  display: block;
  width: auto;
}
.pdf-host .header-top h1 {
  width: auto;
}
.pdf-host .resume-tools,
.pdf-host footer img[alt="visitors"] {
  display: none !important;
}
@page {
  size: A4;
  margin: 12mm;
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .page-wrapper {
    display: block;
    max-width: none;
    padding: 0;
  }
  .sidebar,
  .resume-tools {
    display: none;
  }
  footer img[alt="visitors"] {
    display: none;
  }
  .container {
    max-width: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  header {
    flex-direction: row !important;
    border-bottom-color: #000;
    break-inside: avoid;
  }
  .avatar {
    border-color: #999;
  }
  h2,
  h3 {
    color: #000;
    border-left-color: #000;
    break-after: avoid;
    break-inside: avoid;
  }
  p,
  li {
    break-inside: avoid;
    orphans: 3;
    widows: 3;
  }
  .publications li {
    break-inside: avoid;
  }
  a {
    color: inherit;
  }
}
