/* =========================================================
   设计系统 · 许文飞个人简历站
   方向：正式 · 编辑设计感
   配色：暖纸米白 + 墨黑 + 低饱和深翠绿(#0f6b4f) + 细金(#b0894e)
   字体：标题衬线(Fraunces / Noto Serif SC) · 正文无衬线(Inter)
   ========================================================= */
:root {
  --primary: #0f6b4f;        /* 低饱和深翠绿，主点缀（由 JS 从 theme 注入） */
  --primary-2: #0d5a42;      /* 深翠绿辅色 */
  --gold: #b0894e;           /* 细金 / 古铜强调，用量极少 */
  --ink: #1c211e;

  --bg: #faf8f3;             /* 暖纸感米白 */
  --bg-2: #ffffff;
  --surface: rgba(15, 107, 79, 0.045);
  --surface-2: rgba(15, 107, 79, 0.08);

  --border: rgba(28, 33, 30, 0.12);
  --border-strong: rgba(28, 33, 30, 0.20);

  --text: #1c211e;           /* 墨黑正文 */
  --muted: #6a7068;

  --shadow: 0 18px 40px rgba(28, 33, 30, 0.08);
  --shadow-soft: 0 10px 24px rgba(28, 33, 30, 0.06);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1440px;
  --gold-gap: 64px;
  --glass-bg: color-mix(in srgb, var(--bg-2) 66%, transparent);
  --glass-brd: color-mix(in srgb, var(--text) 12%, transparent);
  --glass-hi: rgba(255, 255, 255, 0.45);

  --font: "Inter", "Microsoft YaHei", system-ui, -apple-system, "PingFang SC", sans-serif;
  --display: "Fraunces", "Noto Serif SC", Georgia, "Songti SC", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Consolas", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #14171a;
  --bg-2: #1b1f22;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(233, 231, 225, 0.12);
  --border-strong: rgba(233, 231, 225, 0.20);
  --text: #e9e7e1;
  --muted: #98a097;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.30);
  --gold: #c79a5b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}

/* ---------- 高级动态背景 ---------- */
.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .42;
  will-change: transform; z-index: 0;
}
.blob-1 { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; top: -15%; right: -10%; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%); animation: float1 24s ease-in-out infinite alternate; }
.blob-2 { width: 55vw; height: 55vw; max-width: 720px; max-height: 720px; bottom: 5%; left: -12%; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); animation: float2 28s ease-in-out infinite alternate; }
.blob-3 { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; top: 42%; left: 34%; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); animation: float3 32s ease-in-out infinite alternate; }
/* 漂浮几何装饰 */
.ambient-bg::before {
  content: ""; position: absolute; width: 360px; height: 360px; top: 14%; left: 6%;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); border-radius: 50%;
  opacity: .5; animation: floatRing 26s ease-in-out infinite alternate;
}
.ambient-bg::after {
  content: ""; position: absolute; width: 210px; height: 210px; bottom: 10%; right: 12%;
  border: 1px dashed color-mix(in srgb, var(--gold) 32%, transparent); border-radius: 32px;
  opacity: .5; transform: rotate(14deg); animation: floatSquare 30s ease-in-out infinite alternate;
}
.noise { position: absolute; inset: 0; opacity: .035; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }

/* 互动粒子画布 */
.ambient-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* 漂浮装饰光点 */
.deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform; }
.deco-a { width: 92px; height: 92px; top: 22%; right: 16%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 42%, transparent), transparent 70%); filter: blur(6px); opacity: .5; animation: floatDecoA 18s ease-in-out infinite alternate; }
.deco-b { width: 56px; height: 56px; bottom: 22%; left: 20%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 52%, transparent), transparent 70%); filter: blur(4px); opacity: .55; animation: floatDecoB 14s ease-in-out infinite alternate; }
@keyframes floatDecoA { 0% { transform: translate(0, 0); } 100% { transform: translate(34px, -26px); } }
@keyframes floatDecoB { 0% { transform: translate(0, 0); } 100% { transform: translate(-28px, 20px); } }
@keyframes float1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-6%, 8%) scale(1.08); } }
@keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(8%, -6%) scale(1.05); } }
@keyframes float3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-4%, -10%) scale(1.12); } }
@keyframes floatRing { 0% { transform: translate(0,0) rotate(0deg); } 100% { transform: translate(40px,-30px) rotate(60deg); } }
@keyframes floatSquare { 0% { transform: rotate(14deg) translate(0,0); } 100% { transform: rotate(28deg) translate(-30px,34px); } }

/* 鼠标跟随柔光 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 28%), color-mix(in srgb, var(--primary) 12%, transparent), transparent 72%);
  opacity: .9; transition: background .12s ease-out;
}

/* 内容层提升 */
.nav, .hero, .container, .footer, .pf-hero { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--primary); color: #fff; }

/* ---------- 滚动进度条 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--primary); z-index: 200; transition: width .1s linear; }

/* ---------- 导航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; backdrop-filter: blur(12px) saturate(140%); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-school-logo { height: 30px; width: auto; opacity: .95; }
.nav-divider { width: 1px; height: 22px; background: var(--border); margin: 0 2px; }
.light-only { display: block; }
.dark-only { display: none; }
[data-theme="dark"] .light-only { display: none; }
[data-theme="dark"] .dark-only { display: block; }
.nav-logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); transition: border-color .3s; background: var(--bg-2); }
.nav.scrolled .nav-logo-img { border-color: var(--primary); }
.nav-name { font-family: var(--display); font-weight: 600; letter-spacing: 1px; font-size: 18px; color: var(--text); }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a { position: relative; padding: 9px 15px; font-size: 14px; color: var(--muted); border-radius: 10px; transition: color .25s, background .25s; }
.nav-menu a:hover { color: var(--text); background: var(--surface); }
.nav-menu a.active { color: var(--text); }
.nav-menu a.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; background: var(--primary); border-radius: 2px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); cursor: pointer; background: var(--surface); color: var(--text); transition: transform .2s, box-shadow .25s, background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 42%, transparent); transform: translateY(-3px); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-lg { padding: 20px 36px; font-size: 15px; border-radius: 13px; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ========== Hero 首屏 ========== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: min(var(--maxw), 1180px); margin: 0 auto; padding: 60px 42px 70px;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr); grid-template-areas: "personal side" "cta cta"; column-gap: 48px; row-gap: 28px; align-items: stretch;
}

/* ---- 左列：个人信息 ---- */
.hero-personal { grid-area: personal; display: flex; flex-direction: column; align-items: flex-start; }
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.hero-avatar-wrap {
  position: relative; width: 178px; height: 178px; border-radius: 50%; padding: 4px; margin-bottom: 28px;
  background: var(--bg-2);
  box-shadow: var(--shadow), 0 14px 38px color-mix(in srgb, var(--primary) 16%, transparent);
  animation: avatarFloat 6s ease-in-out infinite;
}
/* 简洁描边环（单色，干练） */
.hero-avatar-wrap::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: 0; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
}
.hero-avatar-wrap img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* 外圈虚线旋转环（已简化隐藏） */
.avatar-ring { display: none; }
/* 柔光呼吸（已简化隐藏，保持页面干净） */
.avatar-glow { display: none; }
/* 在线状态点 */
.hero-avatar-online {
  position: absolute; right: 14px; bottom: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: #34d399; border: 3px solid var(--bg-2); z-index: 2;
}
@keyframes ringSpin { to { --ring-angle: 360deg; } }
@keyframes ringSpinRev { to { transform: rotate(-360deg); } }
@keyframes avatarFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glowPulse { 0%, 100% { opacity: .38; transform: scale(.97); } 50% { opacity: .68; transform: scale(1.05); } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .7; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .5px; color: var(--muted); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 22px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero-greet { color: var(--muted); letter-spacing: 4px; font-size: 12px; margin-bottom: 6px; text-transform: uppercase; font-family: var(--mono); }
.hero-name { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: .5px; font-size: clamp(44px, 7vw, 78px); color: var(--text); margin: 0; }
.hero-title { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.6vw, 24px); color: var(--primary); margin: 8px 0 18px; letter-spacing: .5px; }

.hero-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.hero-meta .hm { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); word-break: keep-all; }
.hero-meta .hm-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--primary); }
.hero-meta .hm-major { white-space: nowrap; }
.hero-meta .hm-sep { white-space: nowrap; color: inherit; }
.hero-meta .hm-ic svg { width: 15px; height: 15px; }
.hero-meta .hm b { color: var(--text); font-weight: 600; }

/* 教育经历：左对齐（去掉左侧图标），学历 + 专业换到下一行；突出显示「学历 · 专业」 */
.hero-meta .hm.hm-edu { width: 100%; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 0; text-align: left; }
.hero-meta .hm.hm-edu .hm-edu-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero-meta .hm.hm-edu .hm-school { font-size: 13.5px; }
.hero-meta .hm.hm-edu .hm-dm { font-size: 14px; color: var(--text); font-weight: 600; font-family: var(--display); letter-spacing: .3px; }

.hero-type { font-family: var(--display); color: var(--muted); font-size: 15px; font-style: italic; min-height: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 7px; }
.hero-type .caret { display: inline-block; width: 2px; height: 16px; background: var(--primary); border-radius: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.hc-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); transition: color .2s, transform .2s; }
.hc-item svg { width: 15px; height: 15px; color: var(--primary); }
.hc-item:hover { color: var(--primary); transform: translateY(-1px); }
.hc-item b { color: var(--text); font-weight: 600; }

.hero-cta { grid-area: cta; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 40px; border: 1px solid var(--border-strong); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--primary); border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } }

/* ---- 右列：数据大屏 + 技能/荣誉 双栏思维网络（与左列个人信息等高） ---- */
.hero-side { grid-area: side; display: flex; flex-direction: column; gap: 22px; height: 100%; min-height: 0; }
.hero-dual { display: flex; align-items: flex-start; gap: 22px; flex: 1 1 0; min-height: 0; }
.dash-card, .hero-tags-card, .hero-honors-card {
  position: relative; width: 100%;
  background:
    radial-gradient(160px 160px at 90% -12%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    var(--glass-bg);
  border: 1px solid var(--glass-brd); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.dash-card { padding: 30px 32px; flex: 0 0 auto; justify-content: center; }
.hero-tags-card, .hero-honors-card { padding: 22px 22px; flex: 1 1 0; min-height: 0; }
.dash-card::before, .hero-tags-card::before, .hero-honors-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-hi), transparent); opacity: .9;
}
.dash-card:hover, .hero-tags-card:hover, .hero-honors-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.dash-head { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .5px; color: var(--text); margin-bottom: 20px; }
.hero-tags-card .dash-head, .hero-honors-card .dash-head { margin-bottom: 14px; font-size: 16px; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }

/* 思维网络画布（技能 / 荣誉）：在卡片内呈现为正方形的词云框 */
.mindnet { flex: none; width: 100%; max-width: 100%; aspect-ratio: 1 / 1; max-height: 100%; margin: auto; display: block; }

.hero-stats { display: flex; gap: 16px; justify-content: space-between; }
.hero-stats .hs { --tc: var(--primary); flex: 1; min-width: 80px; text-align: center; padding: 18px 8px; border-radius: 14px; background: color-mix(in srgb, var(--tc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 28%, transparent); transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.hero-stats .hs:nth-child(1) { --tc: #d97706; }
.hero-stats .hs:nth-child(2) { --tc: #059669; }
.hero-stats .hs:nth-child(3) { --tc: #2563eb; }
.hero-stats .hs:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--tc) 14%, transparent); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 6px 18px color-mix(in srgb, var(--tc) 18%, transparent); }
.hero-stats .hs b { font-family: var(--display); font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; line-height: 1; display: block; color: var(--tc); }
.hero-stats .hs span { font-size: 13px; color: var(--text); font-weight: 500; font-family: inherit; letter-spacing: .5px; margin-top: 8px; display: block; }

.hero-tags-card .tag-cloud { max-height: none; overflow: hidden; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud .tag {
  --tc: var(--primary);
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--tc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
  color: color-mix(in srgb, var(--tc) 78%, var(--ink));
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.tag-cloud .tag:hover { transform: translateY(-3px); background: var(--tc); border-color: var(--tc); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--tc) 35%, transparent); }

/* ---------- 布局 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; position: relative; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 38px; max-width: 720px; position: relative; }
.section-head::after { content: attr(data-index); position: absolute; right: 0; top: -30px; font-family: var(--display); font-size: clamp(90px, 13vw, 150px); font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--border-strong); opacity: .35; line-height: 1; pointer-events: none; z-index: -1; }
.section-tag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.section-tag::before { content: ""; width: 30px; height: 1px; background: var(--primary); border-radius: 2px; }
.section-title { font-family: var(--display); font-size: clamp(28px, 4.6vw, 42px); font-weight: 600; margin: 14px 0 6px; letter-spacing: -.5px; color: var(--text); }
.section-sub { font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }

/* ---------- 关于我：主图 + 胶片序列轮播 ---------- */
.about-carousel-wrap {
  position: relative; max-width: var(--maxw); margin: 0 auto;
}
.ac-stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 640px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  background: var(--bg-2);
}
.ac-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.015);
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); z-index: 0;
}
.ac-slide.on { opacity: 1; transform: scale(1); z-index: 1; }
.ac-slide img { width: 100%; height: 100%; object-fit: cover; }
.ac-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 70px 38px 34px;
  background: linear-gradient(to top, rgba(15,18,16,.72), rgba(15,18,16,.25) 55%, transparent);
  color: #fff; pointer-events: none;
}
.ac-caption .ac-idx { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: #d4e8e0; margin-bottom: 6px; }
.ac-caption .ac-title { font-family: var(--display); font-size: clamp(22px, 3.6vw, 34px); font-weight: 600; line-height: 1.2; }

.ac-filmstrip {
  margin-top: 26px; width: 100%; overflow: hidden; border-radius: var(--radius); padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ac-filmstrip-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.ac-thumb {
  position: relative; flex: none; width: 152px; height: 114px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; opacity: .6;
  transition: opacity .35s, border-color .35s, box-shadow .35s;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-thumb.active { opacity: 1; border-color: var(--primary); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 30%, transparent); }
.ac-thumb::after {
  content: attr(data-label); position: absolute; left: 8px; bottom: 8px; right: 8px;
  font-size: 10px; color: #fff; font-family: var(--mono); letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: .3s;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.ac-thumb:hover::after, .ac-thumb.active::after { opacity: 1; transform: translateY(0); }

/* ---------- 跑马灯（保留容器，弱化隐藏） ---------- */
.marquee { display: none; }

/* ---------- 经历分组 ---------- */
.exp-groups { display: grid; gap: 38px; }
.exp-group { --g: var(--primary); --g2: var(--primary-2); }
.exp-group.work { --g: #0f6b4f; --g2: #0d5a42; }      /* 工作：深翠绿 */
.exp-group.project { --g: #b0894e; --g2: #8a6a3b; }    /* 项目：细金 */
.exp-group.student { --g: #3f6f63; --g2: #2f554c; }    /* 学生：静谧青 */

.exp-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.exp-group-head .gh-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--g); background: color-mix(in srgb, var(--g) 12%, transparent); border: 1px solid color-mix(in srgb, var(--g) 30%, transparent); }
.exp-group-head .gh-icon svg { width: 20px; height: 20px; }
.exp-group-head h3 { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--text); }
.exp-group-head p { color: var(--muted); font-size: 12px; font-family: var(--mono); margin-top: 2px; }

.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }

.exp-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--glass-bg); border: 1px solid var(--glass-brd); border-left: 3px solid var(--g);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--g) 40%, var(--border)); }
.exp-card > * { position: relative; z-index: 1; }
.exp-type { position: absolute; top: 18px; right: 18px; font-size: 11px; font-family: var(--mono); padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--g) 35%, transparent); color: var(--g); background: color-mix(in srgb, var(--g) 8%, transparent); }
.exp-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.exp-logo { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--display); font-size: 18px; background: var(--g); }
.exp-logo img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.exp-info { display: flex; flex-direction: column; gap: 4px; }
.exp-time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.exp-role { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); }
.exp-company { font-size: 13px; color: var(--muted); }
.exp-group.project .exp-company { font-weight: 600; font-size: 13.5px; color: var(--g); font-family: var(--display); }
.exp-desc { font-size: 14px; color: var(--muted); margin-top: 12px; flex: 1; line-height: 1.8; }
.exp-highlights { list-style: none; margin-top: 12px; display: grid; gap: 9px; flex: 1; padding-left: 0; }
.exp-highlights li { font-size: 13.5px; padding-left: 18px; position: relative; color: var(--text); line-height: 1.7; }
.exp-highlights li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 1px; background: var(--g); transform: rotate(45deg); }

/* ---------- 技能 ---------- */
.skills-wrap {
  display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center;
  background: var(--glass-bg); border: 1px solid var(--glass-brd); border-radius: var(--radius-lg);
  padding: 38px 42px; backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-soft);
}
.skills-radar { position: relative; display: grid; place-items: center; }
#radar { width: 100%; max-width: 340px; }
.radar-node { cursor: pointer; }
.radar-node .rn-hit { fill: transparent; }
.radar-tip {
  position: absolute; transform: translate(-50%, -128%);
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .3px;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s ease; z-index: 6; box-shadow: var(--shadow-soft);
}
.radar-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.radar-tip.show { opacity: 1; }
.skills-bars { display: grid; gap: 18px; }
.skill-row .s-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.skill-row .s-head b { color: var(--primary); font-family: var(--mono); }
.skill-track { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; border: 1px solid var(--glass-brd); }
.skill-fill { height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }

/* ---------- 作品集预览：卡片堆叠 ---------- */
.pf-stack-wrap {
  position: relative;
  width: 100%;
  max-width: min(760px, 80vw);
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  border-radius: var(--radius-lg);
}
.pf-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: flat;
}
.pf-stack-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .55s ease, box-shadow .35s;
  will-change: transform, opacity;
  z-index: 1;
}
.pf-stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s;
  pointer-events: none;
}
.pf-stack-card:hover img { transform: scale(1.04); }
.pf-stack-card .pf-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(15,18,16,.78) 0%, rgba(15,18,16,.25) 55%, transparent 80%);
  color: #fff;
  pointer-events: none;
}
.pf-stack-card .pf-cat {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #d8e6df;
  margin-bottom: 6px;
  opacity: .9;
}
.pf-stack-card .pf-t {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

/* 堆叠层级（最多 6 张，DOM 顺序第一张在最上层）
   直的层叠：X 长度偏移 + 轻微缩放 + 极小 Y 偏移。
   关键修复：X 偏移(长度)必须大于缩放造成的宽度收缩，深层卡片才能从右侧露出来；
   之前偏移被收得太小(< 缩放收缩)，导致第 2~6 张整张藏在第 1 张后面 → 看似"没有堆叠"。
   注意：preserve-3d 上下文里 translate3d 用 % 会被解析为 0/拍平(已踩坑)，偏移一律用长度(px)。 */
.pf-stack-card:nth-child(1) { transform: translate3d(0, 0, 0) scale(1); z-index: 6; }
.pf-stack-card:nth-child(2) { transform: translate3d(14px, 3px, 0) scale(.985); z-index: 5; }
.pf-stack-card:nth-child(3) { transform: translate3d(28px, 5px, 0) scale(.97); z-index: 4; }
.pf-stack-card:nth-child(4) { transform: translate3d(42px, 7px, 0) scale(.955); z-index: 3; }
.pf-stack-card:nth-child(5) { transform: translate3d(52px, 9px, 0) scale(.94); z-index: 2; }
.pf-stack-card:nth-child(6) { transform: translate3d(60px, 11px, 0) scale(.925); z-index: 1; }

/* 桌面(≥1024px)：卡片更宽且两侧留白充足，加大 X 偏移呈现明显扇形层叠；
   80vw 卡片 + 130px 偏移在 1024 屏刚好贴边不裁，更宽屏更宽松。
   注：已移除 perspective，缩放仅由 scale() 决定，偏移量可直接与缩放收缩比较，层叠稳定不闪烁。 */
@media (min-width: 1024px) {
  .pf-stack-card:nth-child(2) { transform: translate3d(28px, 3px, 0) scale(.985); }
  .pf-stack-card:nth-child(3) { transform: translate3d(56px, 5px, 0) scale(.97); }
  .pf-stack-card:nth-child(4) { transform: translate3d(86px, 7px, 0) scale(.955); }
  .pf-stack-card:nth-child(5) { transform: translate3d(108px, 9px, 0) scale(.94); }
  .pf-stack-card:nth-child(6) { transform: translate3d(130px, 11px, 0) scale(.925); }
}

/* 入场：仅淡入，不再从右侧 stagger 飞入 */
.pf-stack.in .pf-stack-card { opacity: 1; }

/* 悬停：保持堆叠布局不变，仅给顶层卡片加重阴影 */
.pf-stack-card.top { box-shadow: 0 26px 56px rgba(28,33,30,.20); }
.pf-stack:hover .pf-stack-card.top { box-shadow: 0 40px 84px rgba(28,33,30,.32); }
.pf-stack-card.no-trans { transition: none !important; }

.pf-stack-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px; /* 卡片→胶囊的间距，与下方按钮间距一致 */
}
.pf-stack-dots button {
  position: relative;
  width: 30px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  overflow: hidden;
  transition: background .3s, transform .3s;
}
.pf-stack-dots button:hover { transform: scaleY(1.5); }
.pf-stack-dots button.fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary);
  transform-origin: left center;
  transform: scaleX(0);
  animation: dotFill var(--dur, 3500ms) linear forwards;
}
.pf-stage:hover .pf-stack-dots button.fill::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pf-more { display: flex; gap: 14px; flex-wrap: nowrap; justify-content: center; margin-top: 48px; }
.pf-more .btn { white-space: nowrap; flex-shrink: 0; }

/* 极窄屏：缩小按钮内边距与字号，确保两个按钮仍在一行 */
@media (max-width: 480px) {
  .pf-more { gap: 10px; }
  .pf-more .btn { padding: 12px 18px; font-size: 13px; }
}

/* ---------- 联系方式 ---------- */
.contact-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.contact-bg-word { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: clamp(90px, 16vw, 200px); font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--border-strong); opacity: .25; letter-spacing: -4px; pointer-events: none; line-height: 1; white-space: nowrap; }
.contact-card { position: relative; width: min(820px, 100%); z-index: 1; background: var(--glass-bg); border: 1px solid var(--glass-brd); border-radius: var(--radius-lg); padding: 44px 48px 48px; box-shadow: var(--shadow-soft); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); overflow: hidden; }
.contact-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); }
.cc-top { text-align: center; margin-bottom: 32px; }
.cc-greet { font-family: var(--display); font-size: clamp(22px, 4vw, 30px); font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cc-lead { color: var(--muted); font-size: 14.5px; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.cc-tile { display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); transition: transform .25s, border-color .25s, background .25s; }
.cc-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: var(--surface-2); }
.cc-tile .cc-hd { display: flex; align-items: center; gap: 10px; }
.cc-tile .cc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--primary); flex: none; }
.cc-tile .cc-ic svg { width: 20px; height: 20px; }
.cc-tile .cc-k { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: .3px; }
.cc-tile .cc-v { font-size: 14px; font-weight: 500; color: var(--muted); word-break: break-word; }
.cc-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cc-cta { display: inline-flex; }
.cc-social { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cc-social a { padding: 10px 16px; border-radius: 11px; font-size: 13px; font-family: var(--mono); background: var(--surface); border: 1px solid var(--border); transition: .25s; }
.cc-social a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 悬浮操作按钮（返回顶部 / 电话 / 微信） ---------- */
.fab-group { position: fixed; right: 22px; bottom: 22px; z-index: 99; display: flex; flex-direction: column; gap: 12px; }
.fab-item { position: relative; }
.fab { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; text-decoration: none; border: 1px solid var(--glass-brd); background: color-mix(in srgb, var(--bg-2) 45%, transparent); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 6px 28px color-mix(in srgb, var(--ink) 20%, transparent); color: var(--text); transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.fab svg { width: 22px; height: 22px; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 10px 32px color-mix(in srgb, var(--primary) 28%, transparent); color: #fff; background: var(--primary); border-color: var(--primary); }
.fab-top { /* 始终可见 */ }
.fab-pop { position: absolute; right: 58px; top: 50%; transform: translateY(-50%) translateX(10px); min-width: 190px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
.fab-pop.show { opacity: 1; visibility: visible; transform: translateY(-50%); }
.fab-pop .fp-title { font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fab-pop .fp-val { display: flex; align-items: center; gap: 10px; }
.fab-pop .fp-val span { color: var(--muted); word-break: break-all; font-size: 13px; }
.fab-pop .fp-copy { margin-left: auto; border: none; background: var(--primary); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.fab-pop .fp-copy:hover { filter: brightness(1.08); }
.fab-pop .fp-tip { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "personal" "cta" "side"; gap: 36px; padding-top: 110px; text-align: center; }
  .hero-personal { align-items: center; }
  .hero-badge { align-self: center; }
  .hero-avatar-wrap { margin-inline: auto; }
  .hero-meta, .hero-contact-row, .hero-cta { justify-content: center; }
  .hero-meta .hm { text-align: left; justify-content: flex-start; }
  .hero-side { height: auto; min-height: auto; }
  .dash-card { flex: none; min-height: auto; height: auto; padding: 22px 20px; }
  .hero-tags-card, .hero-honors-card { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: 1 / 1; padding: 16px; }
  .hero-dual { flex: none; gap: 14px; }
  .mindnet { min-height: 0; aspect-ratio: auto; }
  .hero-meta .hm.hm-edu { justify-content: center; align-items: center; text-align: center; }
  .hero-meta .hm.hm-edu .hm-edu-text { align-items: center; }
  .ac-stage { aspect-ratio: 4 / 3; max-height: 420px; }
  .ac-caption { padding: 56px 24px 26px; }
  .ac-thumb { width: 100px; height: 68px; }
  .skills-wrap { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .cc-grid { grid-template-columns: 1fr; }
  .nav-menu { position: fixed; top: 72px; right: 0; width: 230px; flex-direction: column; gap: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 0 0 0 14px; padding: 10px; transform: translateX(110%); transition: transform .3s; box-shadow: var(--shadow-soft); z-index: 100; }
  .nav-menu.open { transform: none; }
  .nav-menu a { padding: 13px 14px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .pf-stack-wrap { max-height: 320px; }
  .pf-stack-card .pf-ov { padding: 18px; }
  .section { padding: 72px 0; }
  .section-head::after { top: -18px; }
  .hero-inner { padding: 100px 20px 64px; gap: 30px; overflow-x: hidden; }
  .hero-avatar-wrap { width: 128px; height: 128px; }
  .avatar-ring { inset: -9px; }
  .hero-meta .hm { font-size: 12.5px; gap: 8px; }
  .hero-meta .hm-ic { width: 24px; height: 24px; }
  .hero-meta .hm-ic svg { width: 13px; height: 13px; }
  .dash-head { font-size: 16px; margin-bottom: 14px; }
  .hero-stats { gap: 6px; flex-wrap: nowrap; justify-content: center; }
  .hero-stats .hs { padding: 10px 4px; flex: 1 1 0; min-width: 0; }
  .hero-stats .hs b { font-size: 28px; }
  .hero-stats .hs span { font-size: 11px; letter-spacing: .3px; margin-top: 6px; }
  .hero-contact-row { flex-direction: column; align-items: center; gap: 8px; }
  .hc-item { min-width: 0; max-width: 100%; }
  .hc-item b { word-break: break-all; }
  .pf-stack-dots { margin-top: 40px; }
  .pf-more { margin-top: 40px; }
  .tag-cloud { gap: 8px; }
  .tag-cloud .tag { font-size: 12px; padding: 7px 13px; }
  /* 移动端悬浮按钮 */
  .fab-group { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 44px; height: 44px; }
  .fab svg { width: 20px; height: 20px; }
  .fab-pop { right: 54px; min-width: 168px; }
  .contact-card { padding: 28px 22px 32px; }
  /* 移动端保留校徽 logo 与名字 logo，仅微调尺寸适配小屏 */
  .nav-school-logo { height: 26px; }
  .nav-name { font-size: 15px; letter-spacing: .5px; }
  .nav-logo-img { margin-right: 0; width: 34px; height: 34px; }
}

/* ---------- 桌面端默认 110% 缩放（让内容在 1440 屏上更饱满） ---------- */
@media (min-width: 981px) {
  html { zoom: 1.1; }
  /* Firefox 不支持 zoom，使用 transform 兼容 */
  @supports not (zoom: 1) {
    html { transform: scale(1.1); transform-origin: top left; }
    body { width: 90.909%; }
  }
}
