/* ============================================================
   邱鑫宇 · 在线简历  —  style.css
   暗色科技渐变风 + 毛玻璃 + 滚动动画
   ============================================================ */

/* ---------- 设计变量（深色为默认） ---------- */
:root {
  --bg: #050816;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(120, 160, 255, 0.45);
  --text: #e8ecf6;
  --text-dim: #9aa6c4;
  --text-faint: #6b7596;
  --brand: #6d8bff;
  --brand-2: #22d3ee;
  --brand-3: #a855f7;
  --accent: #38f9d7;
  --grad: linear-gradient(120deg, #6d8bff 0%, #22d3ee 50%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(109,139,255,0.18), rgba(34,211,238,0.14), rgba(168,85,247,0.18));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --nav-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #eef1f8;
  --bg-2: #e3e8f4;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(20, 30, 70, 0.12);
  --border-glow: rgba(80, 110, 240, 0.5);
  --text: #16203a;
  --text-dim: #4a567a;
  --text-faint: #7a85a8;
  --brand: #4f6dff;
  --brand-2: #0891b2;
  --brand-3: #9333ea;
  --accent: #0ea5a0;
  --grad: linear-gradient(120deg, #4f6dff 0%, #0891b2 50%, #9333ea 100%);
  --grad-soft: linear-gradient(120deg, rgba(79,109,255,0.14), rgba(8,145,178,0.12), rgba(147,51,234,0.14));
  --shadow: 0 18px 50px rgba(40, 60, 120, 0.18);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { color: var(--brand-2); font-weight: 600; }
::selection { background: rgba(109, 139, 255, 0.35); color: #fff; }

/* ---------- 背景层 ---------- */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.bg-aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: 0;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(109,139,255,0.28), transparent 70%),
    radial-gradient(45% 55% at 75% 25%, rgba(34,211,238,0.22), transparent 70%),
    radial-gradient(40% 50% at 55% 60%, rgba(168,85,247,0.22), transparent 70%);
  filter: blur(40px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
[data-theme="light"] .bg-aurora { opacity: 0.55; }
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, -2%, 0) scale(1.02); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
}
[data-theme="light"] .bg-grid { background-image:
    linear-gradient(rgba(20,30,70,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,30,70,0.06) 1px, transparent 1px); }

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- 自定义鼠标光晕 ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,139,255,0.16), transparent 65%);
  transform: translate(-50%, -50%); pointer-events: none;
  transition: opacity 0.3s; mix-blend-mode: screen;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- 加载动画 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__terminal { width: min(90%, 420px); }
.loader__code {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 13px; color: var(--text-dim); line-height: 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
}
.loader__prompt { color: var(--brand-2); }
.loader__ok { color: var(--accent); }
.loader__dots { animation: blink 1s steps(4) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.loader__bar {
  margin-top: 14px; height: 4px; border-radius: 4px;
  background: var(--surface-strong); overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--grad); transition: width 0.2s linear;
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: var(--grad); box-shadow: 0 0 12px rgba(109,139,255,0.7);
}

/* ---------- 通用容器 ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; }
.section__head { margin-bottom: 44px; }
.section__en {
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  letter-spacing: 0.35em; color: var(--brand); text-transform: uppercase;
}
.section__title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-top: 6px;
  letter-spacing: -0.5px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* ---------- 毛玻璃卡片 ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--grad-soft);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6; pointer-events: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  position: relative; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s;
  font-family: inherit;
}
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(109,139,255,0.4); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(109,139,255,0.6); }
.btn--ghost {
  color: var(--text); background: var(--surface-strong);
  border: 1px solid var(--border);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--border-glow); }
/* 流光动画 */
.btn--primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn--primary:hover::before { left: 130%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--surface-strong); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; display: grid; place-items: center;
  transition: transform 0.25s, border-color 0.25s;
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.08); border-color: var(--border-glow); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 90;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--surface-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nav__logo-mark {
  font-family: "JetBrains Mono", monospace; color: var(--brand-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 8px; border-radius: 8px; font-size: 14px;
}
.nav__logo-text { letter-spacing: 0.5px; }
.nav__links { display: flex; gap: 28px; }
.nav__link { font-size: 14px; color: var(--text-dim); position: relative; transition: color 0.25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); transition: width 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: calc(var(--nav-h) + 40px) 24px 60px;
  position: relative;
}
.hero__inner {
  max-width: var(--maxw); width: 100%;
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center;
}
.hero__text { min-width: 0; }
.hero__eyebrow { font-family: "JetBrains Mono", monospace; color: var(--brand-2); letter-spacing: 0.2em; font-size: 14px; margin-bottom: 14px; }
.hero__title { font-size: clamp(38px, 6.5vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.hero__role { font-size: clamp(18px, 2.6vw, 28px); margin: 18px 0; font-family: "JetBrains Mono", monospace; color: var(--text-dim); min-height: 1.4em; }
.typewriter { color: var(--brand-2); }
.caret { color: var(--brand); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__summary { color: var(--text-dim); font-size: clamp(15px, 1.8vw, 18px); max-width: 640px; margin-bottom: 26px; }

.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag {
  padding: 7px 15px; border-radius: 999px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  backdrop-filter: blur(8px);
  animation: floatTag 6s ease-in-out infinite;
  transition: transform 0.25s, border-color 0.25s, color 0.25s;
}
.tag:hover { transform: translateY(-4px); border-color: var(--border-glow); color: var(--brand-2); }
@keyframes floatTag { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero__tags .tag:nth-child(odd) { animation-delay: -3s; }
.hero__tags .tag:nth-child(3n) { animation-delay: -1.5s; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.meta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; min-width: 130px; backdrop-filter: blur(10px);
}
.meta-card__label { display: block; font-size: 12px; color: var(--text-faint); letter-spacing: 0.05em; }
.meta-card__value { display: block; font-size: 17px; font-weight: 700; margin-top: 4px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__contact { display: flex; gap: 30px; flex-wrap: wrap; }
.hero__contact li { display: flex; flex-direction: column; }
.hero__contact-label { font-size: 12px; color: var(--text-faint); }
.copy-inline {
  background: none; border: none; color: var(--text); font-size: 15px; cursor: pointer;
  font-family: inherit; padding: 2px 0; border-bottom: 1px dashed var(--border); transition: color 0.25s;
}
.copy-inline:hover { color: var(--brand-2); }
.copy-inline.is-copied { color: var(--accent); border-color: var(--accent); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--border); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll-dot { width: 4px; height: 8px; border-radius: 4px; background: var(--brand-2); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- HERO 头像 ---------- */
.hero__avatar-wrap { position: relative; justify-self: center; text-align: center; }
.hero__avatar-wrap::before {
  content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: var(--grad-soft); filter: blur(46px); z-index: -1;
}
.hero__avatar-ring {
  width: clamp(168px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%;
  padding: 4px; background: var(--grad); margin: 0 auto;
  box-shadow: 0 0 42px rgba(109,139,255,0.5), 0 14px 44px rgba(0,0,0,0.45);
  animation: avatarFloat 6s ease-in-out infinite;
}
.hero__avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--bg);
}
@keyframes avatarFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__avatar-name { margin-top: 18px; font-size: 18px; font-weight: 700; }
.hero__avatar-role { font-size: 13px; color: var(--brand-2); font-family: "JetBrains Mono", monospace; }

/* ---------- 关于我 ---------- */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.about__card { padding: 36px; }
.about__lead { font-size: 19px; font-weight: 600; margin-bottom: 16px; line-height: 1.6; }
.about__text { color: var(--text-dim); }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.stat { text-align: left; }
.stat__num { font-size: 38px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "JetBrains Mono", monospace; }
.stat__suffix { font-size: 20px; font-weight: 700; color: var(--brand-2); margin-left: 2px; }
.stat__label { display: block; font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.about__side .side-card { padding: 28px; height: 100%; }
.side-card__title { font-size: 18px; margin-bottom: 16px; }
.creed li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); font-size: 14px; }
.creed li:last-child { border-bottom: none; }

/* ---------- 技术栈 ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.skill-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 24px 60px rgba(60,90,200,0.25); }
.skill-card__icon { font-size: 28px; margin-bottom: 12px; }
.skill-card__title { font-size: 18px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--text);
  transition: transform 0.2s, color 0.2s;
}
.chips li:hover { transform: translateY(-3px); color: var(--brand-2); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand), var(--brand-2), transparent);
}
.timeline__item { position: relative; margin-bottom: 28px; }
.timeline__node {
  position: absolute; left: -35px; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand-2);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.15); transition: all 0.35s var(--ease);
}
.timeline__item.is-active .timeline__node { background: var(--brand-2); box-shadow: 0 0 18px rgba(34,211,238,0.8); transform: scale(1.25); }
.timeline__content { padding: 26px 28px; transition: transform 0.35s var(--ease), border-color 0.35s; }
.timeline__item.is-active .timeline__content { border-color: var(--border-glow); transform: translateX(6px); }
.timeline__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.timeline__date { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--brand-2); }
.timeline__badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--text-dim); }
.timeline__role { font-size: 20px; font-weight: 700; }
.timeline__company { color: var(--text-dim); margin: 4px 0 14px; font-size: 14px; }
.timeline__list li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--text-dim); font-size: 14.5px; }
.timeline__list li::before { content: "▹"; position: absolute; left: 0; color: var(--brand-2); }

/* ---------- 项目卡片 ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { padding: 26px; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; overflow: hidden; }
.project-card:hover { transform: translateY(-8px); border-color: var(--border-glow); box-shadow: 0 28px 64px rgba(60,90,200,0.3); }
.project-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.project-card__no { font-family: "JetBrains Mono", monospace; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ptag { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-dim); }
.project-card__title { font-size: 19px; font-weight: 700; line-height: 1.4; }
.project-card__date { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--brand-2); margin: 6px 0 12px; }
.project-card__desc { color: var(--text-dim); font-size: 14px; }
.project-card__detail {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.4s, margin 0.4s; margin-top: 0;
}
.project-card:hover .project-card__detail { max-height: 140px; opacity: 1; margin-top: 14px; }
.project-card__detail p { font-size: 13.5px; color: var(--text); border-top: 1px solid var(--border); padding-top: 12px; }

/* ---------- 数据可视化 ---------- */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.dash__radar, .dash__bars { padding: 28px; }
.dash__title { font-size: 17px; margin-bottom: 18px; }
.chart { width: 100%; height: 340px; }
.radar-canvas { width: 100%; height: 100%; display: block; }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; font-size: 13.5px; }
.bar__name { color: var(--text-dim); }
.bar__track { height: 8px; border-radius: 8px; background: var(--surface-strong); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width 1.1s var(--ease); box-shadow: 0 0 10px rgba(109,139,255,0.5); }
.bar__pct { text-align: right; font-family: "JetBrains Mono", monospace; color: var(--brand-2); }

.dash__kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { padding: 26px 20px; text-align: center; transition: transform 0.3s var(--ease), border-color 0.3s; }
.kpi:hover { transform: translateY(-6px); border-color: var(--border-glow); }
.kpi__num { font-size: 40px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "JetBrains Mono", monospace; }
.kpi__unit { font-size: 20px; font-weight: 700; color: var(--brand-2); }
.kpi__label { display: block; font-size: 13px; color: var(--text-faint); margin-top: 6px; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 24px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer__name { font-size: 18px; font-weight: 700; }
.footer__copy { color: var(--text-faint); font-size: 13px; }
.footer__terminal {
  margin-top: 8px; background: var(--surface-strong); border: 1px solid var(--border);
  color: var(--brand-2); padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-family: "JetBrains Mono", monospace; font-size: 13px; transition: border-color 0.25s, transform 0.25s;
}
.footer__terminal:hover { border-color: var(--border-glow); transform: translateY(-2px); }

/* ---------- 终端彩蛋 ---------- */
.terminal {
  position: fixed; right: 24px; bottom: 24px; width: min(440px, 92vw); height: 320px; z-index: 200;
  background: rgba(8, 12, 24, 0.92); border: 1px solid var(--border-glow); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(30px) scale(0.96); opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  font-family: "JetBrains Mono", monospace;
}
.terminal.is-open { transform: none; opacity: 1; pointer-events: auto; }
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f56; } .terminal__dot--y { background: #ffbd2e; } .terminal__dot--g { background: #27c93f; }
.terminal__title { font-size: 12px; color: var(--text-faint); margin-left: 6px; }
.terminal__close { margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.terminal__body { flex: 1; overflow-y: auto; padding: 14px; font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.terminal__line { margin-bottom: 6px; word-break: break-word; }
.terminal__line code { background: rgba(109,139,255,0.18); padding: 1px 6px; border-radius: 5px; color: var(--brand-2); }
.terminal__line--accent { color: var(--accent); }
.terminal__line--brand { color: var(--brand-2); }
.terminal__input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.terminal__prompt { color: var(--accent); font-size: 13px; }
.terminal__input input { flex: 1; background: none; border: none; color: var(--text); font-family: inherit; font-size: 13px; outline: none; }

/* ---------- 浮动终端入口（醒目） ---------- */
.term-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 85;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 28px rgba(109,139,255,0.5);
  animation: termPulse 2.4s ease-in-out infinite;
  transition: transform 0.25s var(--ease), filter 0.25s;
}
.term-fab:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.08); }
.term-fab__icon { font-family: "JetBrains Mono", monospace; font-size: 16px; }
@keyframes termPulse {
  0%,100% { box-shadow: 0 10px 28px rgba(109,139,255,0.5), 0 0 0 0 rgba(109,139,255,0.55); }
  50% { box-shadow: 0 10px 28px rgba(109,139,255,0.5), 0 0 0 14px rgba(109,139,255,0); }
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 46px; height: 46px;
  border-radius: 50%; background: var(--grad); color: #fff; border: none; cursor: pointer;
  font-size: 20px; box-shadow: 0 10px 28px rgba(109,139,255,0.5);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, box-shadow 0.25s;
}
.back-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { box-shadow: 0 14px 36px rgba(109,139,255,0.75); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--surface-strong); border: 1px solid var(--border-glow); color: var(--text);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero__avatar-wrap { order: -1; }
  .hero__text { margin: 0 auto; }
  .hero__summary { margin-left: auto; margin-right: auto; }
  .hero__tags, .hero__meta, .hero__cta, .hero__contact { justify-content: center; }
  .hero__contact { gap: 30px; }
  .term-fab { left: 16px; bottom: 16px; padding: 11px 16px; font-size: 13px; }
}
@media (max-width: 920px) {
  .about { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash__kpi { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; top: var(--nav-h); right: 0; width: 70%; max-width: 280px; height: calc(100vh - var(--nav-h));
    background: var(--surface-strong); backdrop-filter: blur(18px);
    flex-direction: column; gap: 0; padding: 20px; transform: translateX(100%);
    transition: transform 0.35s var(--ease); border-left: 1px solid var(--border);
  }
  .nav__links.is-open { transform: none; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .hamburger { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 18px; }
  .bar { grid-template-columns: 100px 1fr 40px; }
  .terminal { right: 12px; left: 12px; width: auto; }
}

/* 尊重无障碍：减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
