/* =========================================================
   郑赞欢 · UX 设计师个人站
   基于 "Intelligence Designed To Evolve" 的视觉规格重建
   字体：Inter（UI） / BubbledotICG-FinePos（点阵主字体） / Geist Pixel Circle（本地兜底）
   ========================================================= */

/* ---------- 本地兜底点阵字体 ---------- */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --panel: #0a0a0b;
  --panel-2: #101012;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: clamp(48px, 5.2vw, 48px);

  /* 章节标签渐变（01 — 个人简历 / 02 — 作品集 …） */
  --mx-chip-gradient-angle: 100deg;
  --mx-ultra-gradient-stop-1: 0%;
  --mx-ultra-gradient-stop-2: 20%;
  --mx-ultra-gradient-stop-3: 40%;
  --mx-ultra-gradient-stop-4: 60%;
  --mx-ultra-gradient-stop-5: 80%;
  --mx-ultra-gradient-stop-6: 100%;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.grainient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  background: #110020;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* =========================================================
   1. 首屏 —— 单视口视频背景
   ========================================================= */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  padding: calc(clamp(16px, 2.4vh, 28px) + var(--header-h) + 10px)
           clamp(14px, 3vw, 32px)
           clamp(16px, 2.4vh, 28px);
}

/* ---------- 背景视频 ---------- */
.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  pointer-events: none;
  z-index: 0;
}

/* 视频加载失败/未就绪时的点阵兜底背景 */
.bg-fallback {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center;
  opacity: 0.7;
  animation: fallbackDrift 38s linear infinite;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 84% at 50% 42%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-light-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
}

/* ---------- 首屏内容区 ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1600px;
}

/* ---------- 信任行 ---------- */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatars { display: flex; align-items: center; }

.avatar {
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s var(--ease);
}
.avatar::before {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
}
.avatar i {
  grid-area: 1 / 1;
  z-index: 1;
  font-size: calc(var(--trust-size) * 0.34);
  color: #111;
  line-height: 1;
}
.avatar.a1 { z-index: 1; }
.avatar.a2 { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.avatar.a3 { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }
.avatar.a1:hover { transform: translateY(-2px); }
.avatar.a2:hover { transform: translateY(-4px); }
.avatar.a3:hover { transform: translateY(-2px); }

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 18px 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- 主标题（点阵） ---------- */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-align: center;
  width: 100%;
}

.headline .line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}
.headline .line1 {
  /* 整行统一使用无衬线中文字体并加粗（原「UX Design」的点阵字体已统一） */
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: min(80px, 7.2vw);          /* 桌面端 80px，窄屏按视口等比缩小避免裁切 */
  line-height: 2em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  animation-delay: 0.12s;
}

/* 首屏标题：中文用无衬线粗体（点阵字体不含汉字），英文保留点阵，
   两者用「·」连接，形成一行主标题 */
.headline .hl-cn {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.headline .hl-en {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.03em;
}
.headline .line2 { animation-delay: 0.3s; }

/* 主标题本身不参与通用 reveal，仅逐行淡入 */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

/* TechText 主标题：实心字与虚线矢量轮廓的交互画布 */
.headline--tech {
  position: relative;
  width: 100%;
  height: clamp(108px, 9vw, 142px);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1;
  overflow: visible;
  opacity: 0;
  animation: techTextIn 0.8s var(--ease) 0.12s forwards;
}

.headline--tech canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: inherit;
  opacity: 0;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

.headline--tech.is-ready canvas { opacity: 1; }

.headline--tech-fallback {
  display: block;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.headline--tech.is-ready .headline--tech-fallback { opacity: 0; }

@keyframes techTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 副标题 ---------- */
.subhead {
  margin-top: clamp(12px, 1.8vh, 20px);
  max-width: min(1600px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
  letter-spacing: -0.005em;
}

/* ---------- CTA ---------- */
.cta-wrap { margin-top: clamp(18px, 2.6vh, 30px); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 30px rgba(255, 255, 255, 0.5),
    0 0 64px rgba(255, 255, 255, 0.2);
}

/* ---------- 底部数据 ---------- */
.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 16px);
  width: 100%;
  max-width: 1600px;
  flex-shrink: 0;
}

.stat {
  min-width: 0;
}

.stat-card {
  --stat-radius: clamp(16px, 1.3vw, 20px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  min-height: 100px;
  padding: 12px 14px;
  border-radius: var(--stat-radius);
  background: rgba(0, 0, 0, 0.60);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow:
    inset 0 1px 1px rgba(224, 239, 255, 0.10),
    inset 0 24px 48px rgba(76, 148, 255, 0.035),
    0 16px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease), background 0.42s var(--ease);
  will-change: transform;
  text-align: center;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(56, 143, 255, 0.11), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 48%);
}

.stat:hover .stat-card {
  transform: translateY(-6px) scale(1.012);
  box-shadow:
    inset 0 1px 1px rgba(224, 239, 255, 0.16),
    inset 0 24px 48px rgba(76, 148, 255, 0.06),
    0 22px 44px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(41, 127, 255, 0.12);
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(135, 198, 255, 0.20);
}
.stat-value .suffix { margin-left: 1px; }

.stat-label {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-top: 5px;
  padding-top: 0;
  color: rgba(235, 242, 250, 0.68);
  font-size: clamp(11px, 0.75vw, 12px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

/* ---- 指标卡片流光微动效：与 resume-grid 中的卡片保持一致 ---- */
.stat-effect {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.stat-effect::before,
.stat-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0turn 0.6turn,
    rgba(45, 108, 255, 0.16) 0.7turn,
    rgba(78, 143, 255, 0.5) 0.83turn,
    #8ec5ff 0.9turn,
    #ffffff 0.925turn,
    rgba(78, 143, 255, 0.32) 0.95turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beamSpin 6.5s linear infinite;
  animation-delay: var(--beam-delay, 0s);
}

.stat-effect::after {
  padding: 2px;
  filter: blur(7px);
  opacity: 0.55;
}

/* =========================================================
   2. 固定头部
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: clamp(12px, 2vh, 20px) clamp(14px, 3vw, 32px);
  animation: slideDown 0.7s var(--ease) both;
}

/* 入场动画结束后移除动画层：避免「固定定位 + 子元素 backdrop-filter」
   在关闭 GPU 的软件渲染环境下出现整块头部不绘制的问题 */
.site-header.anim-done { animation: none; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.logo-btn {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #17234a 0%, #07080d 72%);
  box-shadow: var(--nav-shadow);
  transition: transform 0.35s var(--ease);
}
.logo-btn:hover { transform: scale(1.04); }
.logo-btn__strands {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.logo-btn::before,
.logo-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0turn 0.6turn,
    rgba(45, 108, 255, 0.16) 0.7turn,
    rgba(78, 143, 255, 0.5) 0.83turn,
    #8ec5ff 0.9turn,
    #ffffff 0.925turn,
    rgba(78, 143, 255, 0.32) 0.95turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beamSpin 6.5s linear infinite;
}

.logo-btn::after {
  padding: 2px;
  filter: blur(7px);
  opacity: 0.55;
}

.logo-btn img {
  position: relative;
  z-index: 1;
  width: 66%;
  height: 66%;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(0, 242, 255, 0.5));
  mix-blend-mode: screen;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Liquid glass 高光描边：上下边缘亮、中间透明（1.4px 渐变边框） */
.nav-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1.4px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 clamp(6px, 1vw, 11px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: #ffffff; }
.nav-link.is-active { color: #ffffff; }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -5px 0 0 #fff, 5px 0 0 #fff;
}

.sign-in {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---------- 移动端汉堡 ---------- */
.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  transition: background 0.3s var(--ease);
}
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), background 0.3s ease, opacity 0.25s ease;
}
.burger span:nth-child(1) { transform: translateY(-6.5px); }
.burger span:nth-child(2) { transform: translateY(0); }
.burger span:nth-child(3) { transform: translateY(6.5px); }

.burger.is-open { background: #fff; }
.burger.is-open span { background: #000; }
.burger.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.burger.is-open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ---------- 移动端菜单 ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}
.menu-overlay[hidden] { display: none; }

.mobile-sheet {
  position: fixed;
  top: calc(var(--header-h) + 34px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(360px, calc(100vw - 36px));
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s var(--ease) both;
}
.mobile-sheet[hidden] { display: none; }

.sheet-link {
  position: relative;
  padding: 14px 8px;
  border-radius: 16px;
  color: #1b1b1b;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: linkIn 0.45s var(--ease) forwards;
  transition: background 0.25s ease;
}
.sheet-link:hover { background: #f2f2f2; }
.sheet-link:nth-child(1) { animation-delay: 0.06s; }
.sheet-link:nth-child(2) { animation-delay: 0.1s; }
.sheet-link:nth-child(3) { animation-delay: 0.14s; }
.sheet-link:nth-child(4) { animation-delay: 0.18s; }
.sheet-link:nth-child(5) { animation-delay: 0.22s; }

.sheet-link.is-active { font-weight: 600; }
.sheet-link.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sheet-signin {
  margin-top: 10px;
  padding: 14px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  animation: linkIn 0.45s var(--ease) 0.26s forwards;
}
.sheet-signin:hover { background: #323234; }

/* =========================================================
   3. 通用区块
   ========================================================= */
.section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vh, 128px) 0;
  border-top: 0;
  scroll-margin-top: 72px;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 68%);
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: 0;
}

.section-head { max-width: 1600px; margin-bottom: clamp(28px, 5vh, 56px); }

.eyebrow,
.panel-label {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: transparent;
  background-image: linear-gradient(
    var(--mx-chip-gradient-angle),
    #fff3e5 var(--mx-ultra-gradient-stop-1),
    #f6cfb4 var(--mx-ultra-gradient-stop-2),
    #eea4bc var(--mx-ultra-gradient-stop-3),
    #a18cff var(--mx-ultra-gradient-stop-4),
    #64a8ff var(--mx-ultra-gradient-stop-5),
    #c7f8ff var(--mx-ultra-gradient-stop-6)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.section-title em {
  font-style: normal;
  color: #fff;
  background: linear-gradient(180deg, #fff 45%, #8d8d8d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  margin-top: clamp(12px, 1.8vh, 18px);
  max-width: 1600px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: #a8a8a8;
  letter-spacing: -0.005em;
}

/* ---------- 通用小组件 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #cfcfcf;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }

.ghost-btn {
  --ghost-line-color: #c2ccff;
  --ghost-line-opacity: 0.2;
  --ghost-duration: 16s;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid #bad7f71f;
  background:
    radial-gradient(31.2% 40.91% at 50% 151.14%, #bad6f714 0%, #bad6f700 100%),
    #bad6f70f;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: none;
  color: #d1e4fa;
  font-size: 14px;
  font-weight: 400;
  line-height: 46px;
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out, outline 0.2s ease-out;
}

.ghost-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0%,
    var(--ghost-line-color) 40%,
    transparent 40%
  );
  -webkit-mask-image: radial-gradient(#fff 3%, #0000 3%), radial-gradient(#ffffff80 3%, #0000 3%);
  -webkit-mask-position: 0 0, 15px 15px;
  -webkit-mask-size: 30px 30px;
  -webkit-mask-repeat: repeat;
  mask-image: radial-gradient(#fff 3%, #0000 3%), radial-gradient(#ffffff80 3%, #0000 3%);
  mask-position: 0 0, 15px 15px;
  mask-size: 30px 30px;
  mask-repeat: repeat;
  opacity: 0.5;
  animation: beamSpin var(--ghost-duration) linear infinite;
  transition: opacity 1s ease-out;
}

.ghost-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(farthest-side at 50% 100%, var(--ghost-line-color), transparent);
  opacity: 0;
  mix-blend-mode: hard-light;
  transition: opacity 1s ease-out;
}

.ghost-btn__text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d1e4fa;
  background: linear-gradient(#98c0ef 0%, #d8ecf8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ghost-btn:hover::before { opacity: var(--ghost-line-opacity); }
.ghost-btn:hover::after { opacity: 0.15; }
.ghost-btn:focus-visible {
  outline: 2px solid rgba(194, 204, 255, 0.3);
  outline-offset: 2px;
}
.ghost-btn-light { width: auto; padding-inline: 22px; }
.sign-in.ghost-btn {
  height: clamp(44px, 5.2vw, 48px);
  line-height: clamp(44px, 5.2vw, 48px);
}

/* =========================================================
   4. 简历
   ========================================================= */
.resume-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 96px;
  padding: 1px;                 /* 1px 边框槽：流光沿此环流动 */
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
}

/* 卡片内层：真正的卡面（圆角比外层小 1px，露出边框槽） */
.profile-card__inner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 -1px 4px 0 rgba(255, 255, 255, 0.10) inset, 0 1px 4px 0 rgba(255, 255, 255, 0.10) inset;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(10px);
}

.profile-card__bg {
  z-index: 0;
  opacity: 0.88;
}

.profile-card__bg .contact-bg__veil {
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.52) 0%, rgba(10, 10, 11, 0.12) 42%, rgba(10, 10, 11, 0.42) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.28), transparent 62%);
}

.profile-card__inner > :not(.profile-card__bg) {
  position: relative;
  z-index: 1;
}

/* ---- 边框流光微动效（参考 authkit 卡片：蓝色光粒子沿边框流动） ---- */
@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0turn 0.6turn,
    rgba(45, 108, 255, 0.16) 0.7turn,
    rgba(78, 143, 255, 0.5) 0.83turn,
    #8ec5ff 0.9turn,
    #ffffff 0.925turn,
    rgba(78, 143, 255, 0.32) 0.95turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beamSpin 6.5s linear infinite;
}

/* 第二层加模糊，形成光晕 */
.profile-card::after {
  padding: 2px;
  filter: blur(7px);
  opacity: 0.55;
}

@keyframes beamSpin {
  to { --beam-angle: 360deg; }
}

.profile-top { display: flex; align-items: center; gap: 14px; }

.profile-avatar {
  display: block;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: none;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-name {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #64A8FF 0%, #C7F8FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-role { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.profile-meta {
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.profile-meta > div { display: flex; align-items: baseline; gap: 12px; font-size: 13px; }
.profile-meta dt { flex-shrink: 0; width: 42px; color: var(--muted); }
.profile-meta dd { color: #dedede; display: flex; align-items: center; gap: 7px; }

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d17a;
  box-shadow: 0 0 0 3px rgba(52, 209, 122, 0.16);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.profile-caption {
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #64A8FF 0%, #C7F8FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-card .ghost-btn { margin-top: 22px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
}

.tl-item { border-bottom: 1px solid var(--line); }

.tl-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 6px 18px 30px;
  text-align: left;
  transition: background 0.25s ease;
}
.tl-head:hover { background: rgba(255, 255, 255, 0.03); }

.tl-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #1a1a1c;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.tl-item.open .tl-dot { background: #fff; border-color: #fff; transform: scale(1.15); }

.tl-period {
  flex-shrink: 0;
  width: 112px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #64A8FF 0%, #C7F8FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tl-role {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tl-role em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
.tl-role-company {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}
.tl-role-company:hover,
.tl-role-company:focus-visible { color: #0066FF; }

.tl-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 11px;
  transition: transform 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.tl-item.open .tl-toggle { transform: rotate(135deg); background: #fff; color: #000; border-color: #fff; }

.tl-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.tl-item.open .tl-body { grid-template-rows: 1fr; }

.tl-inner { overflow: hidden; padding-left: 30px; }
.tl-inner > p {
  max-width: 980px;
  padding-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #b6b6b6;
}
.tl-list { display: grid; gap: 9px; max-width: 980px; padding-bottom: 16px; }
.tl-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #d2d2d2;
}
.tl-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.tl-inner > .chip-row { padding-bottom: 24px; }

/* 同一家公司下的多段任职 */
.tl-sub { padding-bottom: 20px; }
.tl-sub + .tl-sub { padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.tl-sub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f2f2f2;
}
.tl-sub-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
}
.tl-honor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 980px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, #F5DBAF 0%, #FFF6E6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 13px;
  line-height: 1.65;
}
.tl-honor i { margin-top: 3px; font-size: 12px; color: #8e8e8e; }

/* =========================================================
   5. 作品集
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vh, 32px); }

.filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: #b9b9b9;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.filter.is-active { background: #fff; border-color: #fff; color: #000; }

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

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s var(--ease), opacity 0.35s ease;
}
.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.work-card.is-hidden { display: none; }

/* ---------- 移动端作品：Lenticular 翻转轮播 ---------- */
.mobile-carousel {
  --mobile-card-w: 375px;
  --mobile-card-h: 815px;
  position: relative;
  width: 100%;
}

.mobile-carousel__stage {
  position: relative;
  left: 50%;
  width: min(1600px, calc(100vw - 28px));
  height: calc(var(--mobile-card-h) + 72px);
  transform: translateX(-50%);
  overflow: hidden;
  background: transparent;
  perspective: 1600px;
  perspective-origin: 50% 46%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.mobile-carousel__stage.is-dragging { cursor: grabbing; }

.mobile-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--mobile-card-w);
  min-width: var(--mobile-card-w);
  max-width: var(--mobile-card-w);
  height: var(--mobile-card-h);
  min-height: var(--mobile-card-h);
  max-height: var(--mobile-card-h);
  aspect-ratio: 375 / 815;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #09090c;
  box-shadow: 0 36px 84px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.mobile-carousel__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0turn 0.6turn,
    rgba(45, 108, 255, 0.16) 0.7turn,
    rgba(78, 143, 255, 0.5) 0.83turn,
    #8ec5ff 0.9turn,
    #ffffff 0.925turn,
    rgba(78, 143, 255, 0.32) 0.95turn,
    transparent 1turn
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 8px rgba(72, 159, 255, 0.85));
  opacity: 0;
  animation: beamSpin 6.5s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.3s ease;
}

.mobile-carousel__card:hover::before,
.mobile-carousel__card:focus-visible::before {
  opacity: 1;
  animation-play-state: running;
}

.mobile-carousel__card.is-active {
  border-color: rgba(100, 168, 255, 0.48);
  box-shadow:
    0 42px 96px rgba(0, 0, 0, 0.7),
    0 0 42px rgba(100, 168, 255, 0.15);
}

.mobile-carousel__card img {
  display: block;
  width: var(--mobile-card-w);
  min-width: var(--mobile-card-w);
  max-width: var(--mobile-card-w);
  height: var(--mobile-card-h);
  min-height: var(--mobile-card-h);
  max-height: var(--mobile-card-h);
  aspect-ratio: 375 / 815;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.mobile-carousel__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, 0.58) 100%);
}

.mobile-carousel__open {
  position: absolute;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.mobile-carousel__open {
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.mobile-carousel__card:hover .mobile-carousel__open,
.mobile-carousel__card:focus-visible .mobile-carousel__open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.mobile-carousel__controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #d9d9d9;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.mobile-carousel__controls button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-carousel__progress {
  position: relative;
  width: 180px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-carousel__progress i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #64A8FF 0%, #C7F8FF 100%);
  transform: scaleX(0.5);
  transform-origin: left center;
  will-change: transform;
}

.mobile-carousel__card:focus-visible,
.mobile-carousel__stage:focus-visible {
  outline: 2px solid rgba(100, 168, 255, 0.9);
  outline-offset: 4px;
}

/* ---------- 品牌官网作品：沿用移动端交互，16:9 大卡片 ---------- */
.website-carousel .mobile-carousel__stage {
  height: min(972px, calc(56.25vw + 56.25px));
}

.website-carousel .mobile-carousel__card {
  width: min(1600px, calc(100vw - 28px));
  min-width: 0;
  max-width: 1600px;
  height: auto;
  min-height: 0;
  max-height: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
}

.website-carousel .mobile-carousel__card img {
  width: 100%;
  min-width: 0;
  max-width: 1600px;
  height: auto;
  min-height: 0;
  max-height: 900px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* ---------- 智能座舱作品：21:10 视频封面 + 居中说明 ---------- */
.smart-cockpit-carousel .mobile-carousel__stage {
  height: min(1050px, calc(47.62vw + 260px));
}

.smart-cockpit-card {
  width: min(1600px, calc(100vw - 28px));
  min-width: 0;
  max-width: 1600px;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 26px;
  background: transparent;
  box-shadow: none;
}

.smart-cockpit-card::after {
  display: none;
}

.smart-cockpit-card .mobile-carousel__open {
  display: none;
}

.smart-cockpit-card__media {
  width: min(1600px, calc(100vw - 28px));
  aspect-ratio: 1600 / 762;
  overflow: hidden;
  border-radius: 24px;
  background: #050508;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.smart-cockpit-card__media video,
.smart-cockpit-card__media img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  pointer-events: none;
}

.smart-cockpit-card__info {
  padding: 24px 24px 0;
  text-align: center;
}

.smart-cockpit-card__info h3 {
  color: #EDCBA7;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.smart-cockpit-card__info p {
  max-width: 1120px;
  margin: 10px auto 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.smart-cockpit-detail-info {
  width: 100%;
  padding: 28px 24px 48px;
}

.smart-cockpit-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-bottom: 48px;
}

.smart-cockpit-detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 数据可视化作品：3 行 × 4 列分屏 ---------- */
.data-visualization {
  position: relative;
  width: 100%;
}

.data-visualization__viewport {
  position: relative;
  left: 50%;
  width: min(1600px, calc(100vw - 28px));
  height: 691px;
  transform: translateX(-50%);
  overflow: hidden;
  outline: none;
}

.data-visualization__track {
  display: flex;
  width: max-content;
  transition: transform 0.58s var(--ease);
  will-change: transform;
}

.data-visualization__track.is-dragging { transition: none; }

.data-visualization__page {
  display: grid;
  flex: 0 0 1600px;
  grid-template-columns: repeat(4, 385px);
  grid-template-rows: repeat(3, 217px);
  gap: 20px;
  width: 1600px;
}

.data-visualization-card {
  position: relative;
  top: auto;
  left: auto;
  width: 385px;
  min-width: 385px;
  max-width: 385px;
  height: 217px;
  min-height: 217px;
  max-height: 217px;
  aspect-ratio: 385 / 217;
  border-radius: 14px;
  transform: none;
}

.data-visualization-card .data-visualization-media,
.data-visualization-card img,
.data-visualization-card video {
  display: block;
  width: 385px;
  min-width: 385px;
  max-width: 385px;
  height: 217px;
  min-height: 217px;
  max-height: 217px;
  aspect-ratio: 385 / 217;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.data-visualization-card video { background: #050508; }

.data-visualization-card .mobile-carousel__open {
  right: 14px;
  bottom: 12px;
  font-size: 12px;
}

.data-visualization__viewport:focus-visible {
  outline: 2px solid rgba(100, 168, 255, 0.9);
  outline-offset: 4px;
}

.work-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #08080a;
  border-bottom: 1px solid var(--line);
}

.cover-index {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.work-cover .mock {
  position: absolute;
  inset: 0;
  padding: 13% 12%;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .mock { transform: scale(1.035); }

.mock * { display: block; }

/* 案例 01 / 04：仪表盘 */
.mock-dash {
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 10px;
  align-items: stretch;
}
.mock-dash .mock-side {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}
.mock-dash .mock-main {
  display: grid;
  gap: 8px;
  align-content: start;
}
.mock-dash .mock-main i {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}
.mock-dash .mock-main i:first-child { width: 62%; background: rgba(255, 255, 255, 0.24); }
.mock-dash .mock-main i:nth-child(2) { width: 84%; }
.mock-dash .mock-main i:nth-child(3) { width: 46%; }
.mock-dash .mock-chart {
  position: absolute;
  left: 38%;
  right: 12%;
  bottom: 13%;
  height: 34%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.mock-dash .mock-chart b {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.18));
}
.mock-dash .mock-chart b:nth-child(1) { height: 42%; }
.mock-dash .mock-chart b:nth-child(2) { height: 68%; }
.mock-dash .mock-chart b:nth-child(3) { height: 54%; }
.mock-dash .mock-chart b:nth-child(4) { height: 88%; }
.mock-dash .mock-chart b:nth-child(5) { height: 72%; }
.work-card:hover .mock-chart b { animation: barRise 0.9s var(--ease) both; }
.work-card:hover .mock-chart b:nth-child(2) { animation-delay: 0.05s; }
.work-card:hover .mock-chart b:nth-child(3) { animation-delay: 0.1s; }
.work-card:hover .mock-chart b:nth-child(4) { animation-delay: 0.15s; }
.work-card:hover .mock-chart b:nth-child(5) { animation-delay: 0.2s; }

/* 案例 02：设计系统 tokens */
.mock-tokens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  align-content: center;
}
.mock-tokens .tk {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease);
}
.mock-tokens .tk:nth-child(1) { background: rgba(255, 255, 255, 0.92); }
.mock-tokens .tk:nth-child(2) { background: rgba(255, 255, 255, 0.55); }
.mock-tokens .tk:nth-child(3) { background: rgba(255, 255, 255, 0.28); }
.mock-tokens .tk:nth-child(4) { background: rgba(255, 255, 255, 0.14); }
.mock-tokens .tk:nth-child(5) { border-radius: 50%; }
.mock-tokens .tk:nth-child(6) { border-radius: 999px; }
.mock-tokens .tk:nth-child(9) { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0 4px, transparent 4px 9px); }
.work-card:hover .mock-tokens .tk { transform: translateY(-3px); }

/* 案例 03：移动端 */
.mock-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.mock-phones .phone {
  width: 30%;
  max-width: 130px;
  aspect-ratio: 9 / 17;
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  display: grid;
  align-content: start;
  gap: 8px;
}
.mock-phones .phone i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); }
.mock-phones .phone i:first-child { width: 70%; background: rgba(255, 255, 255, 0.68); }
.mock-phones .phone i:nth-child(2) { height: 34px; border-radius: 8px; }
.mock-phones .phone-2 { transform: translateY(14px); }
.work-card:hover .mock-phones .phone { transform: translateY(-4px); }
.work-card:hover .mock-phones .phone-2 { transform: translateY(10px); }

/* 案例 04：风控审批 */
.mock-review {
  display: grid;
  gap: 9px;
  align-content: center;
}
.mock-review .rv-row {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}
.mock-review .rv-row i,
.mock-review .rv-row b {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}
.mock-review .rv-row i { background: rgba(255, 255, 255, 0.3); }
.mock-review .rv-row:first-child i { background: rgba(255, 255, 255, 0.82); }
.mock-review .rv-actions { display: flex; gap: 8px; margin-top: 5px; }
.mock-review .rv-actions em {
  display: block;
  width: 30%;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}
.mock-review .rv-actions em:last-child { width: 16%; background: rgba(255, 255, 255, 0.12); }
.work-card:hover .mock-review .rv-row:first-child i { background: #fff; }

/* 案例 05：流程 */
.mock-flow { position: relative; }
.mock-flow .node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}
.mock-flow .node.n1 { left: 16%; top: 46%; }
.mock-flow .node.n2 { left: 42%; top: 24%; }
.mock-flow .node.n3 { left: 42%; top: 70%; }
.mock-flow .node.n4 { left: 70%; top: 46%; width: 22px; height: 22px; }
.mock-flow .node.n5 { left: 86%; top: 24%; background: rgba(255, 255, 255, 0.35); }
.mock-flow .edge {
  position: absolute;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: left center;
}
.mock-flow .edge.e1 { left: 18%; top: 48%; width: 27%; transform: rotate(-22deg); }
.mock-flow .edge.e2 { left: 18%; top: 50%; width: 27%; transform: rotate(22deg); }
.mock-flow .edge.e3 { left: 45%; top: 47%; width: 27%; }
.work-card:hover .mock-flow .node { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1); }
.work-card:hover .mock-flow .node.n4 { transform: scale(1.12); }

/* 案例 06：品牌 */
.mock-type { display: grid; place-items: center; }
.mock-type .type-a {
  font-family: var(--font-display);
  font-size: clamp(70px, 12vw, 130px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
}
.mock-type .type-word {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: #fff;
}
.mock-type .type-dots {
  position: absolute;
  right: 14%;
  top: 18%;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 5px;
}
.mock-type .type-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.work-card:hover .mock-type .type-a { color: rgba(255, 255, 255, 0.3); }

/* 卡片文字 */
.work-meta { padding: clamp(16px, 1.8vw, 22px); }
.work-kicker { font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.work-meta h3 { margin-top: 8px; font-size: clamp(16px, 1.7vw, 19px); font-weight: 600; letter-spacing: -0.025em; }
.work-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: #a4a4a4; }
.work-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
.work-more i { transition: transform 0.35s var(--ease); font-size: 11px; }
.work-card:hover .work-more i { transform: translateX(5px); }

/* =========================================================
   6. 技能与工具
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}

.radar-panel,
.tools-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 -1px 4px 0 rgba(255, 255, 255, 0.10) inset, 0 1px 4px 0 rgba(255, 255, 255, 0.10) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tools-panel { height: 100%; }

.radar-wrap { display: grid; place-items: center; }
.radar { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.radar .radar-grid-line { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.radar .radar-axis { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }

.radar-area {
  fill: rgba(100, 168, 255, 0.2);
  stroke: #64A8FF;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.radar.is-live .radar-area { animation: radarIn 0.95s var(--ease) both; }

.radar .radar-point {
  fill: #64A8FF;
  r: 4;
  transition: r 0.3s var(--ease), fill 0.3s ease;
}
.radar .radar-point.is-hot { r: 6.5; fill: #fff; }
.radar .radar-point-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  fill: #b9b9b9;
  letter-spacing: -0.01em;
}
.radar .radar-point-label.is-hot { fill: #fff; }
.radar .radar-center-text {
  font-family: var(--font-display);
  font-size: 15px;
  fill: #fff;
  letter-spacing: 0.04em;
}

.radar-legend { margin-top: 22px; display: grid; gap: 2px; }
.radar-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  color: #d0d0d0;
  cursor: default;
  transition: background 0.25s ease, color 0.25s ease;
}
.radar-legend li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  margin-right: auto;
  order: -1;
  margin-left: 2px;
}
.radar-legend li span { flex: 1; margin-left: 10px; }
.radar-legend li b { font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; }
.radar-legend li.is-hot { background: rgba(255, 255, 255, 0.07); color: #fff; }
.radar-legend li.is-hot::before { background: #fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab:hover { color: #fff; }
.tab.is-active { background: #fff; color: #000; }

.tool-panels { flex: 1 1 auto; display: flex; }

.tool-panel { display: none; width: 100%; }
.tool-panel.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  column-gap: clamp(20px, 3vw, 64px);
  align-content: start;
  animation: panelIn 0.45s var(--ease) both;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 240px) 40px;
  align-items: center;
  gap: 14px;
  height: 80px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tool-name { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #dcdcdc; }
.tool-name i { width: 16px; text-align: center; font-size: 13px; color: #9a9a9a; }
.tool-icon {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tool-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.tool-track b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.55));
  transition: width 0.9s var(--ease);
}
.tool-track b.is-live {
  width: var(--v);
  background: linear-gradient(90deg, #64A8FF 0%, #C7F8FF 100%);
}

.tool-val { font-size: 12.5px; color: #9a9a9a; text-align: right; font-variant-numeric: tabular-nums; }

.flow-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.flow-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: #d4d4d4;
}
.flow-num { font-family: var(--font-display); font-size: 13px; color: #8e8e8e; letter-spacing: 0.06em; }

/* =========================================================
   7. 联系与页脚
   ========================================================= */
.section-contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.contact-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.96;
}

.contact-bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 12, 0.96) 0%, rgba(8, 7, 12, 0.74) 38%, rgba(8, 7, 12, 0.10) 76%, rgba(8, 7, 12, 0.24) 100%),
    linear-gradient(180deg, rgba(8, 7, 12, 0.52) 0%, rgba(8, 7, 12, 0.08) 34%, rgba(8, 7, 12, 0.12) 66%, rgba(8, 7, 12, 0.58) 100%);
}

.section-contact::before {
  z-index: 1;
  background-image: radial-gradient(rgba(99, 102, 241, 0.5) 1px, transparent 1px);
  opacity: 0.20;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 58%, transparent 100%);
}

.section-contact > .container { z-index: 2; }

.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.contact-title .line { display: block; }
.contact-title .line2 {
  background: linear-gradient(90deg, #64A8FF 0%, #C7F8FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 3vh, 34px);
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: clamp(30px, 5vh, 54px);
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact-list span { width: 52px; color: var(--muted); font-size: 12.5px; }
.contact-list a, .contact-list em { font-style: normal; color: #e2e2e2; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: clamp(26px, 4vh, 40px) 0; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-note {
  max-width: 760px;
  margin-left: auto;
  text-align: right;
  color: #6f6f6f;
  line-height: 1.6;
}

/* =========================================================
   8. 案例弹层
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 0;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn 0.28s ease both;
}

.modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0b;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.38s var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

.modal-body { padding: clamp(24px, 3.4vw, 44px); }

#caseModal.is-image-case .modal-panel {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #08080a;
  overflow: auto;
  animation: none;
  transform: none;
}

#caseModal.is-image-case .modal-backdrop { background: rgba(0, 0, 0, 0.96); }

#caseModal.is-image-case .modal-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 260;
}

#caseModal.is-image-case .modal-body {
  min-height: 100%;
  padding: 0;
  background: #08080a;
}

.mobile-case-view {
  transform: translate3d(var(--flip-x, 0), var(--flip-y, 0), 0) scale(var(--flip-scale, 0.45));
  transform-origin: center;
  opacity: 0.18;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.mobile-case-view.is-open {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.mobile-case-media {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0b0b0d;
}

.mobile-case-media img,
.mobile-case-media video {
  display: block;
  width: max(1440px, 100%);
  min-width: 1440px;
  max-width: none;
  height: auto;
  margin: 0 auto;
  opacity: 0;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
  transition: opacity 0.35s ease;
}

.mobile-case-media video { background: #000; }

.mobile-case-media.is-loaded img,
.mobile-case-media.is-loaded video { opacity: 1; }

.mobile-case-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8e8e8e;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.mobile-case-media.is-loaded .mobile-case-loader { display: none; }

.mobile-case-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 0.20);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-case-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: calc(100% - 32px);
  height: 60px;
  border-radius: 30px;
  background: linear-gradient(90deg, #06F 0%, #3BAAFF 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 102, 255, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.mobile-case-action a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 102, 255, 0.45);
}

.m-hero { position: relative; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.m-eyebrow { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.m-title { margin-top: 12px; font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.m-summary { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: #b4b4b4; max-width: 620px; }

.m-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.m-meta > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.m-meta dt { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.m-meta dd { margin-top: 6px; font-size: 13.5px; color: #e4e4e4; }

.m-section { margin-top: 30px; }
.m-section h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.m-section p { font-size: 14.5px; line-height: 1.75; color: #c2c2c2; }

.m-steps { display: grid; gap: 12px; }
.m-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.m-step-index { font-family: var(--font-display); font-size: 14px; color: #8e8e8e; padding-top: 2px; }
.m-step b { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.m-step p { font-size: 13.5px; line-height: 1.7; color: #a9a9a9; margin: 0; }

.m-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.m-metric { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.m-metric b { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.03em; }
.m-metric span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* =========================================================
   9. 浮动元素 / 提示
   ========================================================= */
.scroll-cue {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(16px, 3vh, 28px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #d6d6d6;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.scroll-cue:hover { color: #fff; transform: translateY(-2px); }
.scroll-cue.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

.scroll-cue-line {
  display: block;
  width: 1.5px;
  height: 14px;
  background: linear-gradient(180deg, #fff, transparent);
  animation: cueMove 1.8s ease-in-out infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 250;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   10. 动画
   ========================================================= */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
}
.anim.in {
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.cta-wrap.anim.in { animation-name: revealPulse; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes headlineFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translate(-50%, -12px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes linkIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes radarIn {
  from { opacity: 0; transform: scale(0.25); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes barRise {
  from { transform: scaleY(0.4); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes cueMove {
  0%, 100% { transform: translateY(-2px); opacity: 0.5; }
  50% { transform: translateY(3px); opacity: 1; }
}

@keyframes fallbackDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-26px, -26px, 0); }
}

/* 无 JS 时保持内容可见 */
.no-js .anim { opacity: 1; transform: none; filter: none; animation: none; }

/* =========================================================
   11. 响应式
   ========================================================= */
@media (max-width: 980px) {
  .skills-grid { grid-template-columns: 1fr; }
  .radar { max-width: 320px; }
}

@media (max-width: 900px) {
  .resume-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

@media (max-width: 720px) {
  .nav-pill,
  .sign-in { display: none; }

  .header-row { justify-content: space-between; gap: 12px; }
  .logo-btn { width: 48px; height: 48px; }
  .burger { display: block; }

  /* 移动端隐藏浮动提示，避免与横向指标卡片重叠 */
  .scroll-cue { display: none; }

  .headline { letter-spacing: -0.08em; line-height: 1.05; }
  .contact-title { letter-spacing: -0.05em; }

  .stats {
    display: flex;
    gap: 10px;
    width: calc(100% + 28px);
    max-width: none;
    margin-inline: -14px;
    padding: 3px 14px 11px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .stats::-webkit-scrollbar { display: none; }

  .stat {
    flex: 0 0 min(74vw, 280px);
    scroll-snap-align: center;
  }

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

  .tool-row { grid-template-columns: 1fr 38px; }
  .tool-track { grid-column: 1 / -1; order: 3; }

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

  .tl-head { flex-wrap: wrap; gap: 6px 14px; padding-left: 28px; }
  .tl-period { width: auto; order: 1; }
  .tl-role { order: 3; flex-basis: 100%; }
  .tl-toggle { order: 2; margin-left: auto; }
  .tl-inner { padding-left: 28px; }
}

@media (max-width: 420px) {
  .trust { --trust-size: 34px; }
  .headline { letter-spacing: -0.09em; }
  .trust-pill { padding: 0 12px 0 calc(var(--trust-size) * 0.5); font-size: 12px; }
  .stat-value { font-size: 23px; }
  .stat-label { font-size: 11.5px; }
  .scroll-cue { right: 12px; bottom: 12px; padding: 8px 12px; }
}

@media (max-height: 700px) {
  .page { padding-top: calc(clamp(12px, 2vh, 20px) + 56px); }
  .trust { margin-bottom: 12px; }
  .headline { font-size: clamp(26px, 5.4vw, 54px); line-height: 1.02; }
  .headline .line1 { font-size: min(54px, 6.4vw); }
  .subhead { margin-top: 10px; font-size: 13.5px; }
  .cta-wrap { margin-top: 14px; }
  .cta { padding: 9px 22px; }
  .ghost-btn { height: 38px; line-height: 38px; }
  .stat-card { height: 100px; min-height: 100px; padding: 10px 12px; }
  .stat-value { font-size: clamp(20px, 1.7vw, 26px); }
}

/* 触屏设备不依赖 hover */
@media (hover: none) {
  .work-card:hover,
  .stat:hover .stat-card { transform: none; }
}

/* =========================================================
   12. 动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .anim,
  .headline .line,
  .sheet-link {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .headline { color: #fff !important; }
  .bg-fallback { animation: none; }
}

/* =========================================================
   13. 打印
   简历改为直接交付原始 PDF 文件（assets/resume.pdf），
   页面本身不再提供 HTML 打印版，打印时按浏览器默认行为输出页面。
   ========================================================= */

@media print {
  .bg-video { display: none; }
}
