/* =========================================================
   周婕 · 简历网站
   Dark-tech theme · no external dependencies
   ========================================================= */

:root {
  --bg:            #05070d;
  --bg-soft:       #080c16;
  --panel:         rgba(255, 255, 255, 0.035);
  --panel-hover:   rgba(255, 255, 255, 0.06);
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);
  --text:          #e9effc;
  --text-soft:     #b6c2da;
  --muted:         #7f8dab;
  --cyan:          #22d3ee;
  --violet:        #a78bfa;
  --green:         #4ade80;
  --orange:        #fb923c;
  --accent:        var(--cyan);
  --radius:        18px;
  --radius-sm:     12px;
  --max:           1180px;
  --nav-h:         70px;

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* ---------- 背景装饰 ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

.bg-glow {
  position: fixed;
  z-index: -2;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.bg-glow--1 { top: -320px; left: -180px; background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 65%); }
.bg-glow--2 { top: 160px; right: -300px; background: radial-gradient(circle, rgba(167,139,250,0.18), transparent 65%); }

/* ---------- 通用 ---------- */
.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--cyan);
  color: #041016;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.9;
}

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #38bdf8 45%, var(--violet));
  color: #041318;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.65);
}
.btn--primary:hover { box-shadow: 0 14px 36px -12px rgba(34, 211, 238, 0.85); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--outline:hover { border-color: rgba(34,211,238,0.55); background: rgba(34,211,238,0.06); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text-soft);
  background: transparent;
}
.btn--ghost:hover { color: var(--text); border-color: var(--line-strong); }

.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,211,238,0.16), rgba(167,139,250,0.16));
  border: 1px solid rgba(34,211,238,0.32);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.nav__name { font-weight: 650; letter-spacing: 0.02em; }

.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle__current { font-family: var(--mono); letter-spacing: .06em; }

.nav__burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 9px;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 76px) 0 40px; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: center;
}

.hero__name {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  background: linear-gradient(120deg, #ffffff 20%, #b9e9f5 55%, #c9bcff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero__tagline {
  margin: 0 0 18px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  font-weight: 500;
  color: #dbe6fb;
  max-width: 34em;
}
.hero__tagline::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero__about {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 36em;
  font-size: 15px;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-size: 13.5px;
  color: var(--text-soft);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.contact-chip:hover { border-color: rgba(34,211,238,0.42); color: var(--text); background: rgba(34,211,238,0.06); }
.contact-chip svg { color: var(--cyan); flex: 0 0 auto; }
.contact-chip__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__photo-wrap {
  position: relative;
  width: min(268px, 100%);
  justify-self: center;
  aspect-ratio: 3 / 4;
}
.hero__photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: conic-gradient(from 140deg, rgba(34,211,238,0.6), rgba(167,139,250,0.15), rgba(34,211,238,0.55), rgba(167,139,250,0.6), rgba(34,211,238,0.6));
  filter: blur(16px);
  opacity: 0.35;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__photo {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0b1120;
  box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero__status {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.28);
  font-size: 12.5px;
  color: #bcf5cf;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- 数据看板 ---------- */
.stats { padding: 64px 0 8px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  overflow: hidden;
}
.stat {
  display: block;
  padding: 30px 26px;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease;
}
.stat:hover { background: rgba(37, 99, 235, 0.045); }
.stat:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.stat::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.stat:hover::after,
.stat:focus-visible::after { opacity: 1; transform: none; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--line);
}
.stat__value {
  font-family: var(--mono);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__suffix { font-size: .62em; margin-left: 2px; }
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 区块 ---------- */
.section { padding: 96px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent 70%);
  border-block: 1px solid rgba(255,255,255,0.05);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 750;
  line-height: 1.2;
}
.section__desc { margin: 0; color: var(--muted); max-width: 58em; font-size: 15px; }
.section__count {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 筛选 ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.is-active {
  color: var(--chip-color, var(--cyan));
  border-color: color-mix(in srgb, var(--chip-color, var(--cyan)) 50%, transparent);
  background: color-mix(in srgb, var(--chip-color, var(--cyan)) 12%, transparent);
}
.chip__count { font-family: var(--mono); font-size: 11px; opacity: .7; }

/* ---------- 项目卡片 ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  --cat: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--cat) 9%, transparent), transparent 55%),
    rgba(255,255,255,0.024);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cat), transparent 70%);
  opacity: .85;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cat) 42%, transparent);
}
.project-card:focus-visible {
  outline: 2px solid var(--cat);
  outline-offset: 3px;
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.project-card__period {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.project-card__role {
  font-size: 12px;
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.project-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 680;
}

.project-card__tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.project-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
  margin-bottom: 18px;
  border-block: 1px solid rgba(255,255,255,0.06);
}
.project-card__metric strong {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cat);
  letter-spacing: -0.01em;
}
.project-card__metric span { font-size: 11.5px; color: var(--muted); }

.project-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  --c: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c);
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  flex: 0 0 auto;
  transition: gap .18s ease, color .18s ease;
}
.project-card:hover .card-arrow { gap: 10px; color: var(--cat); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- 荣誉 ---------- */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.honor {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.honor:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.04);
}
.honor__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
}
.honor__title { margin: 0 0 6px; font-size: 14.5px; font-weight: 620; line-height: 1.55; }
.honor__meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.honor__meta span + span::before { content: "·"; margin-right: 8px; opacity: .5; }

/* ---------- 技能 ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.skill {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.skill__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.skill__name { margin: 0; font-size: 16px; font-weight: 650; }
.skill__level {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
}
.skill__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  margin-bottom: 18px;
}
.skill__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 1s cubic-bezier(.16,1,.3,1);
}
.skill.is-visible .skill__fill { width: var(--level); }
.skill__items { display: flex; flex-wrap: wrap; gap: 6px; }
.skill__items span {
  font-size: 12px;
  color: var(--text-soft);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.055);
}

/* ---------- 教育 ---------- */
.education {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.education__text h2 { margin-bottom: 24px; }
.edu-school { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.edu-degree { color: var(--text-soft); margin: 0 0 4px; }
.edu-period { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0 0 22px; }
.edu-courses-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.edu-courses { display: flex; flex-wrap: wrap; gap: 7px; }
.edu-course {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.education__card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(34,211,238,0.18);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(34,211,238,0.1), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(167,139,250,0.1), transparent 60%),
    rgba(255,255,255,0.025);
}
.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.edu-badge::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }
.edu-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.edu-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.edu-stat span:first-child { color: var(--muted); font-size: 13px; }
.edu-stat span:last-child { font-family: var(--mono); font-size: 14px; color: var(--text); }

/* ---------- 项目详情 ---------- */
.detail { padding-top: var(--nav-h); }

.detail__top {
  padding: 38px 0 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 0;
  transition: color .18s ease, gap .18s ease;
}
.back-link:hover { color: var(--cyan); gap: 12px; }

.detail__header {
  padding: 30px 0 44px;
  border-bottom: 1px solid var(--line);
}
.detail__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.detail__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 780;
  max-width: 22em;
}
.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 14px;
}
.detail__meta strong { color: var(--text-soft); font-weight: 550; }

.detail__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 36px 0 0;
  background: rgba(255,255,255,0.022);
}
.detail__metric { padding: 22px; position: relative; }
.detail__metric + .detail__metric::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line);
}
.detail__metric strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  color: var(--cyan);
  line-height: 1.1;
}
.detail__metric span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

.detail__body { padding: 8px 0 96px; }

.detail__layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.detail__rail { position: sticky; top: calc(var(--nav-h) + 28px); }
.detail__rail nav { display: flex; flex-direction: column; gap: 2px; }
.detail__rail a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 12px;
  border-left: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease;
}
.detail__rail a:hover { color: var(--text); border-left-color: var(--cyan); }

.detail__section { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.detail__section > h2 {
  margin: 0 0 18px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail__section > h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}
.detail__section p { margin: 0 0 14px; color: var(--text-soft); }
.detail__section p:last-child { margin-bottom: 0; }

.detail__bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.detail__bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}
.detail__bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.1);
}
.detail__bullets--results li::before { background: var(--green); box-shadow: 0 0 0 4px rgba(74,222,128,0.1); }

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  padding: 0 0 26px 42px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: attr(data-n);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.24);
}
.step::after {
  content: "";
  position: absolute;
  left: 13px; top: 31px; bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(34,211,238,0.22), rgba(34,211,238,0.02));
}
.step:last-child::after { display: none; }
.step h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 640; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.stack { display: flex; flex-wrap: wrap; gap: 7px; }
.stack span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-soft);
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.download:hover { border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.05); transform: translateY(-2px); }
.download__icon {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.22);
  color: var(--cyan);
}
.download__text strong { display: block; font-size: 14px; font-weight: 600; }
.download__text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.download.is-pending { cursor: default; opacity: .8; }
.download.is-pending .download__icon { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,0.03); }

.qa { display: grid; gap: 10px; }
.qa details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.022);
  overflow: hidden;
}
.qa details[open] { border-color: rgba(34,211,238,0.28); background: rgba(34,211,238,0.035); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "Q";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 5px;
  padding: 1px 5px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.qa summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
}
.qa details[open] summary::after { transform: rotate(45deg); color: var(--cyan); }
.qa__answer {
  padding: 0 20px 20px 44px;
  color: var(--text-soft);
  font-size: 14px;
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.detail__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__name { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.footer__note { color: var(--muted); font-size: 13px; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(127,141,171,0.75);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 回顶 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top button {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 24, 0.9);
  color: var(--text-soft);
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  transition: border-color .18s ease, color .18s ease;
}
.to-top button:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(3, 5, 10, 0.92);
  backdrop-filter: blur(10px);
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 实习经历 ---------- */
.internship-list { display: grid; gap: 22px; }

.internship {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 58px -46px rgba(30, 64, 140, 0.5);
}

.internship__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  background: linear-gradient(165deg, #f8fbff 0%, #edf4ff 100%);
  border-right: 1px solid rgba(37, 99, 235, 0.12);
}

.internship__logo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 208px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.14);
}
.internship__logo img { width: 100%; height: auto; }

.internship__company { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.internship__role { margin: 0 0 2px; color: #2563eb; font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.internship__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.internship__summary { margin: 0; color: var(--text-soft); font-size: 13.4px; line-height: 1.7; }

.internship__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.internship__tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31, 64, 120, 0.1);
  color: var(--text-soft);
  font-size: 11px;
  font-family: var(--mono);
}

.internship__body { padding: 30px 34px 30px 32px; }
.internship__work-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
}

.internship__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.internship__list li {
  position: relative;
  padding-left: 17px;
  color: var(--text-soft);
  font-size: 13.7px;
  line-height: 1.74;
}
.internship__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 1024px) {
  .internship { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .internship { grid-template-columns: 1fr; }
  .internship__aside {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  }
  .internship__logo { max-width: 180px; margin-bottom: 4px; }
  .internship__tags { margin-top: 4px; padding-top: 10px; }
  .internship__body { padding: 24px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__photo-wrap { order: -1; width: 210px; justify-self: start; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .project-grid { grid-template-columns: 1fr; }
  .honor-grid, .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail__layout { grid-template-columns: 1fr; gap: 32px; }
  .detail__rail { display: none; }
  .education { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .container, .nav__inner { width: min(100% - 32px, var(--max)); }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 18px;
    background: rgba(5, 7, 13, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px; font-size: 15px; }
  .nav__burger { display: block; }
  .nav__name { display: none; }
  .nav__actions .btn--primary { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .section { padding: 72px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .honor-grid, .skill-grid { grid-template-columns: 1fr; }
  .detail__metrics { grid-template-columns: repeat(2, 1fr); }
  .detail__metric:nth-child(3)::before { display: none; }
  .detail__metric:nth-child(1), .detail__metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .downloads { grid-template-columns: 1fr; }
  .project-card { padding: 22px; }
  .hero__photo-wrap { width: 166px; }
  .detail__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .skill__fill { width: var(--level); }
}

/* =========================================================
   明亮蓝白主题
   （覆盖上面的深色默认值）
   ========================================================= */
:root {
  --bg:            #f4f8ff;
  --bg-soft:       #eaf2ff;
  --panel:         rgba(255, 255, 255, 0.76);
  --panel-hover:   rgba(255, 255, 255, 0.96);
  --line:          rgba(31, 64, 120, 0.12);
  --line-strong:   rgba(31, 64, 120, 0.24);
  --text:          #0f2240;
  --text-soft:     #35507a;
  --muted:         #677d9e;
  --cyan:          #2563eb;
  --violet:        #6366f1;
  --green:         #0f9d6e;
  --orange:        #e58a2b;
  --shadow:        0 24px 60px -30px rgba(30, 64, 140, 0.30);
}

body {
  background:
    radial-gradient(900px 620px at 88% -12%, #e2efff 0%, transparent 62%),
    radial-gradient(720px 520px at -12% 18%, #eaf3ff 0%, transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 44%, #f9fcff 100%);
  background-attachment: fixed;
  color: var(--text);
}

::selection { background: rgba(37, 99, 235, 0.20); color: #0f2240; }

.bg-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
}
.bg-glow { opacity: 0.9; }
.bg-glow--1 { background: radial-gradient(circle, rgba(37,99,235,0.13), transparent 65%); }
.bg-glow--2 { background: radial-gradient(circle, rgba(99,102,241,0.11), transparent 65%); }

.skip-link { background: var(--cyan); color: #fff; }

.btn--primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6 52%, #6366f1);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.72);
}
.btn--primary:hover { box-shadow: 0 16px 34px -14px rgba(37, 99, 235, 0.85); }
.btn--outline { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { background: #f2f7ff; border-color: rgba(37, 99, 235, 0.45); }
.btn--ghost { background: rgba(255,255,255,0.72); color: var(--text-soft); }
.btn--ghost:hover { background: #fff; color: var(--text); }

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px -28px rgba(30, 64, 140, 0.45);
}
.nav__mark {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(99,102,241,0.12));
  border-color: rgba(37, 99, 235, 0.28);
}
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); background: rgba(37, 99, 235, 0.07); }

.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.nav__back:hover {
  color: var(--text);
  border-color: rgba(37, 99, 235, 0.4);
  background: #fff;
}

.hero__name { background: linear-gradient(118deg, #0b2a5e 10%, #2563eb 52%, #6366f1 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__tagline { color: var(--text); }
.hero__tagline::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.hero__about { color: var(--muted); }
.hero__title { color: var(--text-soft); }

.contact-chip {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-soft);
  box-shadow: 0 10px 22px -20px rgba(30, 64, 140, 0.6);
}
.contact-chip:hover { background: #fff; color: var(--text); border-color: rgba(37, 99, 235, 0.4); }

.hero__photo-ring {
  opacity: 0.3;
  background: conic-gradient(from 140deg, rgba(37,99,235,0.55), rgba(99,102,241,0.14), rgba(37,99,235,0.5), rgba(99,102,241,0.5), rgba(37,99,235,0.55));
}
.hero__photo {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 32px 64px -34px rgba(30, 64, 140, 0.38);
}
.hero__status {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 157, 110, 0.3);
  color: #0b7a58;
  box-shadow: 0 12px 26px -20px rgba(15, 157, 110, 0.55);
}

.stats__grid {
  background: #fff;
  box-shadow: 0 24px 60px -44px rgba(30, 64, 140, 0.5);
}
.stat__value { background: linear-gradient(120deg, #0b2a5e, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section--alt {
  background: linear-gradient(180deg, #eaf3ff, rgba(234, 243, 255, 0) 72%);
  border-block-color: rgba(31, 64, 120, 0.08);
}

.chip { background: #fff; }
.chip:hover { background: #f7faff; }

.project-card {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--cat) 10%, transparent), transparent 55%),
    #ffffff;
  box-shadow: 0 22px 52px -46px rgba(30, 64, 140, 0.55);
}
.project-card:hover { box-shadow: 0 28px 60px -42px rgba(30, 64, 140, 0.5); }
.project-card__role { background: #f1f6ff; color: var(--text-soft); border-color: var(--line); }
.project-card__metrics { border-block-color: var(--line); }

.honor {
  background: #fff;
  box-shadow: 0 18px 42px -42px rgba(30, 64, 140, 0.5);
  font-family: inherit;
  color: inherit;
}
.honor:hover { background: #f8fbff; border-color: rgba(37, 99, 235, 0.3); }
.honor__icon { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.2); }

.skill {
  background: #fff;
  box-shadow: 0 18px 42px -42px rgba(30, 64, 140, 0.5);
}
.skill__level { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.2); }
.skill__bar { background: rgba(37, 99, 235, 0.1); }
.skill__items span { background: #f3f8ff; border-color: rgba(31, 64, 120, 0.08); }

.edu-course { background: #f3f8ff; }
.education__card {
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(99, 102, 241, 0.08), transparent 60%),
    #fff;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 24px 58px -46px rgba(30, 64, 140, 0.5);
}

.detail__metrics { background: #fff; }
.stack span { background: #f3f8ff; }
.download { background: #fff; }
.download:hover { background: #f5faff; border-color: rgba(37, 99, 235, 0.4); }
.download__icon { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.2); }
.qa details { background: #fff; }
.qa details[open] { background: #f6faff; border-color: rgba(37, 99, 235, 0.28); }

.footer { background: rgba(255, 255, 255, 0.62); }
.footer__bottom { border-top-color: rgba(31, 64, 120, 0.08); color: rgba(103, 125, 158, 0.95); }

.to-top button {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
  box-shadow: 0 12px 26px -20px rgba(30, 64, 140, 0.55);
}

.lightbox { background: rgba(11, 24, 48, 0.86); }
.lightbox__close { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- 荣誉 → 项目 ---------- */
.honor--link {
  position: relative;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
}
.honor--link:hover .honor__title { color: var(--cyan); }
.honor__go {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform .18s ease, color .18s ease;
}
.honor--link:hover .honor__go { color: var(--cyan); transform: translate(3px, -50%); }
.honor--link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.honor-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 34, 64, 0.38);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.honor-modal[hidden] { display: none; }
.honor-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 82vh;
  overflow: auto;
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(15, 34, 64, 0.5);
}
.honor-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.honor-modal__close:hover { color: var(--cyan); border-color: rgba(37, 99, 235, 0.35); }
.honor-modal__eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--cyan);
}
.honor-modal__title { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.honor-modal__desc { margin: 0 0 6px; color: var(--text-soft); font-size: 13.5px; }
.honor-modal__hint { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; }
.honor-modal__list { display: grid; gap: 10px; }
.honor-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.honor-option:hover { background: #fff; border-color: rgba(37, 99, 235, 0.4); transform: translateY(-1px); }
.honor-option:focus { outline: none; }
.honor-option:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.honor-option__num { font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.honor-option__text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.honor-option__text strong { font-size: 14px; font-weight: 620; line-height: 1.5; }
.honor-option__text span { font-size: 11.5px; color: var(--muted); }
.honor-option__arrow { color: var(--muted); flex: 0 0 auto; }

/* ---------- 项目获奖 ---------- */
.detail__awards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.detail__awards span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #8a5a12;
  background: #fff8e9;
  border: 1px solid rgba(229, 138, 43, 0.28);
}
.detail__awards svg { flex: 0 0 auto; color: #d97706; }

/* ---------- 教育背景照片 ---------- */
.education__card--photo { padding: 0; overflow: hidden; }
.edu-photo { position: relative; margin: 0; border-radius: inherit; overflow: hidden; }
.edu-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.edu-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--text-soft);
}

/* ---------- 数字人 ---------- */
.dh {
  position: fixed;
  right: 26px;
  top: auto;
  bottom: 76px;
  width: 92px;
  z-index: 120;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.dh__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 873;
  perspective: 620px;
  transition: transform .25s ease;
}
.dh:hover .dh__stage { transform: scale(1.08); }
.dh.is-dragging .dh__stage { transform: scale(1.04); }
.dh__glow {
  position: absolute;
  inset: 10% -18% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}
.dh__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease;
}
.dh__figure:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }
.dh.is-dragging .dh__figure { cursor: grabbing; }
.dh__sprite,
.dh__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.dh__back {
  transform: translate3d(-5px, 4px, -30px) scale(.985);
  filter: brightness(.55) blur(1px);
  opacity: .2;
}
.dh__sprite {
  transform: translateZ(0);
  filter:
    drop-shadow(2px 3px 0 rgba(30, 58, 138, 0.55))
    drop-shadow(0 16px 14px rgba(21, 52, 102, 0.22));
  animation: dhFloat 5s ease-in-out infinite;
}
@keyframes dhFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.dh__hint {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 22px -18px rgba(30, 64, 140, 0.6);
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
  pointer-events: none;
  animation: dhHint 2.6s ease-in-out infinite;
}
.dh__hint.is-hidden { display: none; }
@keyframes dhHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -3px); }
}

/* ---------- 数字人对话 ---------- */
.dh-chat {
  position: fixed;
  z-index: 130;
  width: min(372px, calc(100vw - 24px));
  height: min(530px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(31, 64, 120, 0.14);
  border-radius: 18px;
  box-shadow: 0 36px 90px -30px rgba(15, 34, 64, 0.45);
  overflow: hidden;
  animation: dhChatIn .18s ease;
}
.dh-chat[hidden] { display: none; }
@keyframes dhChatIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.dh-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: linear-gradient(135deg, #eef5ff, #f9fcff);
  border-bottom: 1px solid var(--line);
}
.dh-chat__avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.dh-chat__who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; line-height: 1.3; }
.dh-chat__who strong { font-size: 13.5px; }
.dh-chat__who span {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-chat__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.dh-chat__icon:hover { color: var(--cyan); border-color: rgba(37, 99, 235, 0.35); }
.dh-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(180deg, #f8fbff, #f4f9ff);
}
.dh-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.dh-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(31, 64, 120, 0.1);
  color: var(--text-soft);
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 20px -20px rgba(30, 64, 140, 0.55);
}
.dh-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #4f6bf5);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dh-sticker { display: block; width: 112px; height: auto; margin-top: 8px; border-radius: 10px; }
.dh-note {
  align-self: center;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  font-size: 11px;
  color: var(--muted);
}
.dh-typing { display: flex; align-items: center; gap: 4px; padding: 13px 14px; }
.dh-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8aa4c8;
  animation: dhType 1.15s infinite;
}
.dh-typing span:nth-child(2) { animation-delay: .15s; }
.dh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dhType {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.dh-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 13px 10px;
  background: #f4f9ff;
}
.dh-chat__suggestions button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.dh-chat__suggestions button:hover { color: var(--cyan); border-color: rgba(37, 99, 235, 0.4); background: #f9fcff; }
.dh-chat__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.dh-chat__form input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.dh-chat__form input:focus {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.dh-chat__send {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff;
  cursor: pointer;
}
.dh-chat__send:hover { filter: brightness(1.06); }
.dh-chat__foot {
  margin: 0;
  padding: 0 12px 9px;
  background: #fff;
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 760px) {
  .nav__links {
    background: #fff;
    border-bottom-color: var(--line);
    box-shadow: 0 20px 40px -30px rgba(30, 64, 140, 0.5);
  }
  .honor-modal__panel { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .dh { width: 68px; right: 12px; top: auto; bottom: 84px; }
  .dh__hint { display: none; }
  .dh-chat {
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: 10px !important;
    width: auto !important;
    height: min(72vh, 540px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dh__sprite, .dh__hint { animation: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .bg-grid, .bg-glow, .nav, .to-top, .lightbox, .hero__cta, .filter,
  .detail__rail, .back-link, .footer__bottom,
  .dh, .dh-chat, .honor-modal { display: none !important; }
  body { background: #fff; color: #111; }
  .section, .hero, .detail { padding: 18px 0; }
  .project-card, .honor, .skill, .education__card, .detail__metrics {
    background: #fff; border-color: #ddd; color: #111;
  }
  .hero__name { color: #111; -webkit-text-fill-color: #111; }
  .hero__photo-wrap { display: none; }
}
