:root {
  --bg: #f5f2ec;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --bg-solid: #ffffff;
  --bg-subtle: rgba(15, 23, 42, 0.04);
  --ink: #111827;
  --ink-2: #334155;
  --ink-muted: #64748b;
  --navy: #122038;
  --claret: #881337;
  --claret-soft: rgba(136, 19, 55, 0.09);
  --teal: #0f766e;
  --teal-soft: rgba(15, 118, 110, 0.1);
  --gold: #b45309;
  --gold-soft: rgba(180, 83, 9, 0.1);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --shadow-card: 0 10px 30px -12px rgba(17, 24, 39, 0.08), 0 1px 3px rgba(17, 24, 39, 0.04);
  --shadow-float: 0 18px 44px -14px rgba(17, 24, 39, 0.16);
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #090e1a;
  --bg-elevated: rgba(18, 27, 46, 0.82);
  --bg-solid: #121b2e;
  --bg-subtle: rgba(255, 255, 255, 0.05);
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --ink-muted: #94a3b8;
  --navy: #1e293b;
  --claret: #fb7185;
  --claret-soft: rgba(251, 113, 133, 0.14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-card: 0 14px 36px -12px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 22px 50px -14px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* 氛围背景光晕与建筑感网格 */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.glow-1 {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(136, 19, 55, 0.16), rgba(180, 83, 9, 0.06) 55%, transparent 72%);
}

.glow-2 {
  width: 580px;
  height: 580px;
  bottom: 10%;
  left: -180px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.14), rgba(18, 32, 56, 0.06) 60%, transparent 74%);
}

[data-theme="dark"] .glow-1 {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.16), transparent 70%);
}

[data-theme="dark"] .glow-2 {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 85%);
}

[data-theme="dark"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg-solid);
  padding: 8px 14px;
  border-radius: 8px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 500;
}

/* 悬浮药丸导航 */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 16px;
  margin-top: 14px;
}

.nav-pill {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px -10px rgba(17, 24, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[data-theme="dark"] .nav-pill {
  background: rgba(15, 23, 42, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-monogram {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #122038, #881337);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
  background: var(--bg-subtle);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-solid);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  transform: scale(1.04);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #122038 0%, #243757 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .pdf-btn {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #090e1a;
}

.pdf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(18, 32, 56, 0.4);
}

.pdf-btn svg {
  width: 14px;
  height: 14px;
}

/* 主体容器 */
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Hero 首屏 Bento */
.hero-section {
  padding: 28px 0 16px;
}

.hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.82fr);
  gap: 20px;
  align-items: stretch;
}

.hero-intro {
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 38px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--claret-soft);
  color: var(--claret);
  font-size: 12px;
  font-weight: 600;
}

.privacy-badge svg {
  width: 13px;
  height: 13px;
}

.masked-pill {
  border-style: dashed;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.18);
}

.status-meta {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

.display-title {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  line-height: 1.1;
}

.name-cn {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.name-en {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.tagline {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--claret);
  font-weight: 600;
}

.hero-bio {
  margin: 0 0 24px;
  font-size: 14.8px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* 联系方式轻量化排布 */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-pill:hover {
  border-color: var(--claret);
  background: var(--claret-soft);
  transform: translateY(-1px);
}

.contact-pill svg {
  width: 14px;
  height: 14px;
  color: var(--claret);
  flex-shrink: 0;
}

.copy-tag {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-muted);
  padding-left: 4px;
  border-left: 1px solid var(--border-strong);
}

/* 融入式指标条（无多余方框） */
.hero-metrics {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-cell strong {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.metric-cell span {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* 右侧暗夜工作室证件照卡片 */
.hero-studio-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(155deg, #101b30 0%, #182947 58%, #471525 100%);
  color: #f8fafc;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.studio-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  top: -60px;
  right: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.25), transparent 70%);
  pointer-events: none;
}

.portrait-mat {
  width: 198px;
  aspect-ratio: 3 / 4;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.32);
  position: relative;
  z-index: 1;
}

.portrait-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
}

.studio-caption {
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.studio-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 2px;
}

.studio-school strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  display: block;
}

.studio-school p {
  margin: 2px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.studio-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.cet-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

/* 通用区块标题 */
.section {
  padding-top: 52px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--claret);
  margin-bottom: 4px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* 玻璃卡片基础 */
.glass-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 6px;
}

.glass-card h3 {
  margin: 0 0 12px;
  font-size: 17.5px;
  font-weight: 700;
}

/* 技能图谱 */
.skills-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
}

.card-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.card-header-row h3 {
  margin-bottom: 0;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13.5px;
}

.bar-label strong {
  color: var(--ink);
}

.bar-label span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fill-teal { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.fill-navy { background: linear-gradient(90deg, #1e3a8a, #3b82f6); }
.fill-claret { background: linear-gradient(90deg, #881337, #e11d48); }
.fill-gold { background: linear-gradient(90deg, #b45309, #f59e0b); }

/* 项目领域堆叠条 */
.domain-breakdown {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.breakdown-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 9px;
}

.mono-dim {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.stacked-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  gap: 3px;
}

.seg {
  display: block;
  height: 100%;
  border-radius: 4px;
}

.seg-ai { background: #0f766e; }
.seg-global { background: #881337; }
.seg-hw { background: #d97706; }

.legend-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-muted);
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-ai { background: #0f766e; }
.dot-global { background: #881337; }
.dot-hw { background: #d97706; }

.skills-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--ink-2);
  border: 1px solid var(--border);
}

.pill-accent {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(15, 118, 110, 0.25);
  font-weight: 600;
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clean-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.list-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--claret);
  margin-top: 8px;
  flex-shrink: 0;
}

.clean-list strong {
  display: block;
  font-size: 13.8px;
  color: var(--ink);
}

.clean-list small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

/* 工作经历时间轴 */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.timeline-block {
  position: relative;
}

.exp-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.exp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.date-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.dept-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-subtle);
  padding: 3px 10px;
  border-radius: 999px;
}

.role-title {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--claret);
}

.exp-summary-stats {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg-subtle);
}

.exp-summary-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exp-summary-stats strong {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}

.exp-summary-stats span {
  font-size: 11px;
  color: var(--ink-muted);
}

.company-note {
  margin: 0 0 18px;
  font-size: 13.8px;
  color: var(--ink-muted);
  padding-left: 12px;
  border-left: 2.5px solid var(--claret);
}

/* 筛选条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.active {
  background: var(--bg-solid);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.ghost-action {
  border: none;
  background: transparent;
  color: var(--teal);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.ghost-action:hover {
  background: var(--teal-soft);
}

/* 2列 Bento 项目卡片 */
.bento-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proj-card {
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--bg-solid);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.proj-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.proj-featured {
  border-color: rgba(136, 19, 55, 0.22);
}

.proj-span-2 {
  grid-column: span 2;
}

.proj-card.is-hidden {
  display: none;
}

.proj-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.proj-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--claret);
  background: var(--claret-soft);
  padding: 4px 8px;
  border-radius: 7px;
  flex-shrink: 0;
}

.proj-titles {
  flex: 1;
  min-width: 0;
}

.proj-titles h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}

.proj-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

.proj-kpi {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.kpi-hot {
  background: var(--claret-soft);
  color: var(--claret);
}

.proj-body {
  margin: 0;
  font-size: 13.4px;
  color: var(--ink-2);
  line-height: 1.65;
}

.proj-extra {
  font-size: 12.5px;
  color: var(--ink-muted);
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--bg-subtle);
}

.proj-toggle {
  align-self: flex-start;
  margin-top: auto;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}

.proj-toggle:hover {
  text-decoration: underline;
}

/* 两段兼职卡片 */
.dual-exp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.mini-kpi-row strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  margin-right: 4px;
}

.exp-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.6px;
  color: var(--ink-2);
}

/* 学术高光卡片 */
.research-split {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 16px;
}

.spotlight-paper {
  border-radius: 20px;
  padding: 26px 28px;
  background: linear-gradient(145deg, #101b30 0%, #192948 65%, #3f1624 100%);
  color: #f8fafc;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
}

.paper-top-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.paper-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  font-size: 12px;
  font-weight: 600;
}

.paper-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.spotlight-paper h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.45;
  color: #ffffff;
}

.paper-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.citation-box {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.citation-box code {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
  font-size: 11.8px;
  word-break: break-word;
}

.paper-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

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

.paper-tags span {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
}

.copy-paper-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.copy-paper-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.edu-detail-card {
  display: flex;
  flex-direction: column;
}

.edu-prose {
  margin: 12px 0 18px;
  font-size: 13.8px;
  color: var(--ink-2);
}

.edu-highlights {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.edu-highlights div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
}

.edu-highlights strong {
  display: block;
  font-size: 12px;
  color: var(--teal);
}

.edu-highlights span {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 校园经历 */
.campus-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* 荣誉墙 */
.awards-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.award-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.award-tile:hover {
  transform: translateY(-2px);
}

.award-tile.is-hidden {
  display: none;
}

.tile-gold {
  border-color: rgba(180, 83, 9, 0.35);
  background: linear-gradient(155deg, rgba(254, 243, 199, 0.45), var(--bg-elevated));
}

[data-theme="dark"] .tile-gold {
  background: linear-gradient(155deg, rgba(180, 83, 9, 0.18), var(--bg-elevated));
}

.tile-teal {
  border-color: rgba(15, 118, 110, 0.25);
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tile-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.tile-rank {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink-2);
}

.rank-national {
  background: var(--claret);
  color: #ffffff;
}

.rank-municipal {
  background: var(--teal-soft);
  color: var(--teal);
}

.rank-first {
  background: var(--gold-soft);
  color: var(--gold);
}

.rank-second {
  background: var(--claret-soft);
  color: var(--claret);
}

.award-tile strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

/* 页脚 */
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.footer-contacts button {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}

.footer-contacts button:hover {
  color: var(--claret);
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111827;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 渐入动效 */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.will-animate {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 980px) {
  .hero-bento,
  .skills-layout,
  .research-split,
  .dual-exp-grid,
  .campus-pair {
    grid-template-columns: 1fr;
  }

  .hero-studio-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
  }

  .studio-caption {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .bento-projects {
    grid-template-columns: 1fr;
  }

  .proj-span-2 {
    grid-column: span 1;
  }

  .awards-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-intro,
  .glass-card,
  .spotlight-paper {
    padding: 20px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-studio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .studio-dates {
    justify-content: center;
    gap: 12px;
  }

  .awards-wall {
    grid-template-columns: 1fr;
  }

  .pdf-btn span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* 打印 / 导出 PDF */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .ambient-bg,
  .nav-wrap,
  .filter-bar,
  .segmented,
  .proj-toggle,
  .copy-paper-btn,
  .copy-tag,
  .toast {
    display: none !important;
  }

  .glass-card,
  .hero-intro,
  .hero-studio-card,
  .spotlight-paper,
  .proj-card,
  .award-tile {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .proj-card,
  .award-tile {
    display: flex !important;
  }

  .proj-extra {
    display: block !important;
  }

  .hero-studio-card,
  .spotlight-paper {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
  }

  .spotlight-paper h3,
  .paper-desc,
  .paper-ref,
  .studio-school p,
  .studio-dates {
    color: #111827 !important;
  }
}
