:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --nav-bg: rgba(245, 245, 247, 0.72);
  --nav-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0d0d0f;
  --bg-elevated: #1d1d1f;
  --bg-soft: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --nav-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  transition: top 0.3s ease;
}

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 顶部导航 ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--nav-border);
}

.nav-inner {
  max-width: 1080px;
  height: 52px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: 0;
}

.logo-text {
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-2);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon,
.icon-sun {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

html[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

html[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ---------- 通用版式 ---------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 130px 28px 20px;
}

.section[id],
.site-nav {
  scroll-margin-top: 76px;
}

.section-alt {
  max-width: none;
  padding: 140px 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-3);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(38px, 5vw, 56px);
}

h3 {
  font-size: 21px;
}

.section-note {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--text-2);
  font-size: 16px;
}

/* ---------- 首屏 ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 72px;
}

.hero-copy h1 {
  font-size: clamp(58px, 9vw, 96px);
  margin-bottom: 18px;
}

.hero-role {
  margin: 0 0 26px;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.hero-desc {
  max-width: 540px;
  margin: 0 0 40px;
  font-size: 17px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(145deg, var(--bg-soft), var(--bg-elevated), var(--bg-soft));
  box-shadow: var(--shadow-md);
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 76px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}

/* ---------- 关于我 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}

.about-copy p {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.8;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy b {
  color: var(--text);
  font-weight: 600;
}

.about-info {
  border-top: 1px solid var(--border-strong);
}

.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--border);
}

.info-row span {
  font-size: 14px;
  color: var(--text-3);
}

.info-row b {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.edu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.edu-card {
  padding: 34px 38px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.edu-period {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.edu-card h3 {
  margin-bottom: 6px;
}

.edu-card p:last-child {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- 工作经历 ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: var(--border-strong);
}

.exp-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  padding-left: 44px;
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text);
}

.exp-head h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.exp-role {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.exp-period {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.exp-body p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.8;
}

.exp-body p:last-child {
  margin-bottom: 0;
}

.exp-body b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- 作品集 ---------- */

.works-mount {
  display: grid;
  gap: 72px;
}

.work-group {
  display: grid;
  gap: 26px;
}

.work-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.work-group-head h3 {
  font-size: 28px;
}

.work-group-note {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.work-group-head .work-ratio {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.work-grid.single {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}

.work-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.media-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-link:hover img {
  transform: scale(1.04);
}

.view-original {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.media-link:hover .view-original,
.media-link:focus-visible .view-original {
  opacity: 1;
  transform: translate(-50%, 0);
}

.work-media-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #2c2c2e 0%, #111 60%, #000 100%);
  overflow: hidden;
}

.audio-eyebrow {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.4);
}

.audio-bars {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

.audio-bars span {
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  animation: audioPulse 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}

@keyframes audioPulse {
  0%, 100% { height: 22px; }
  30% { height: 56px; }
  60% { height: 34px; }
}

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
  pointer-events: none;
}

.work-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: currentColor;
}

.work-card.playing .work-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

.work-card:hover .work-play {
  transform: translate(-50%, -50%) scale(1.06);
}

.work-card.playing:hover .work-play {
  transform: translate(-50%, -50%) scale(0.85);
}

.work-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
}

.work-info h4 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.work-desc {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.work-size {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

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

.work-tags span {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--text-2);
}

.work-info audio {
  width: 100%;
  margin-top: 16px;
  display: block;
}

.works-empty-note {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-3);
  font-size: 15px;
}

.works-empty-note.hidden {
  display: none;
}

/* ---------- 技能 ---------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.skill-card {
  padding: 38px 34px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.skill-desc {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--text-2);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tags span:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- 荣誉 ---------- */

.honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 44px;
}

.honor-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--border);
}

.honor-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding-top: 5px;
}

.honor-list p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.honor-list b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- 联系 ---------- */

.section-contact {
  padding-top: 150px;
  padding-bottom: 150px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-desc {
  margin: 0 0 38px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 36px;
}

.contact-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-card {
  width: min(280px, 100%);
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.qr-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.qr-caption {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 44px 28px 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

/* ---------- 滚动动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .edu-card,
  .skill-card,
  .work-card {
    transition: none;
  }

  .media-link img,
  .audio-bars span {
    animation: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .contact-links {
    justify-content: center;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .contact-links,
  .contact-meta {
    justify-content: center;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 32px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .honor-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 10px 16px 16px;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--nav-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .site-nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 96px 20px 16px;
  }

  .section-alt {
    padding: 104px 20px;
  }

  .nav-inner {
    height: 48px;
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-meta {
    flex-wrap: wrap;
    margin-top: 48px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .edu-row {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 4px;
  }

  .exp-item {
    padding-left: 26px;
  }

  .exp-item::before {
    left: -1px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid.single {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 46px;
  }

  .qr-card {
    width: min(260px, 100%);
  }

  .work-group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .honor-list li {
    gap: 14px;
    padding: 18px 2px;
  }
}
