/* ==========================================================================
   刘君钰 · 2026 个人作品集
   视觉参考：Valorant 官网 —— 暗蓝底 / 血红点缀 / 超粗中文标题 / 编号索引
   结构：单页滚动（首屏 → 关于 → 经历 → 作品 → 联系）
   —— 想整体换色，只改下面 :root 里的变量即可
   ========================================================================== */

:root {
  /* —— 颜色 —— */
  --bg:        #0F1923;   /* 主背景 */
  --bg-deep:   #09121A;   /* 更深一层背景 */
  --bg-soft:   #16222C;   /* 卡片背景 */
  --red:       #FF4655;   /* 主强调色 */
  --red-deep:  #C2323F;
  --cyan:      #22D3C5;   /* 喷漆用的辅助色（青） */
  --white:     #ECE8E1;   /* 主文字（偏暖白） */
  --dim:       #7C8A95;   /* 次级文字 */
  --dim-2:     #4E5B66;   /* 更弱的文字 */

  /* —— 线条 —— */
  --line:      rgba(236, 232, 225, .14);
  --line-soft: rgba(236, 232, 225, .08);
  --line-red:  rgba(255, 70, 85, .45);

  /* —— 尺寸 —— */
  --nav-h:     74px;
  --gutter:    clamp(20px, 4vw, 56px);
  --maxw:      min(92vw, 1560px);   /* R86: 宽屏封顶收紧，标题/正文不再过度分散 */
  --pill-h:    clamp(58px, 5.4vw, 80px);   /* 气泡高度 */

  /* —— 字体 —— */
  --font-display: 'Oswald', 'Bahnschrift', 'Arial Narrow', 'Noto Sans SC',
                  'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body:    'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei',
                  'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --back: cubic-bezier(.34, 1.56, .64, 1);  /* 回弹（气泡入场用） */
}

/* ==========================================================================
   基础
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

/* R80: 大屏视觉尺寸一致性 —— 容器等比后正文字号轻微跟随，避免宽屏文字显小 */
@media (min-width: 1500px) { body { font-size: 15.5px; } }
@media (min-width: 1750px) { body { font-size: 16px; } }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #22303C; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.wrap {
  width: 100%;
  max-width: 92vw; max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

/* 锚点跳转时给固定导航（+ 吸顶的板块切换条）留出空间 */
section[id] { scroll-margin-top: calc(var(--nav-h) + 76px); }
#hero { scroll-margin-top: 0; }
.work-block { scroll-margin-top: calc(var(--nav-h) + 150px); }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* 小标签：// 视觉设计师 */
/* R73 方案A：战术斜切标签（无畏契约菜单语言），替换 // 小字 */
/* R74 方案A 正式版：第一行 红色斜切小四边形(短文字)+灰色说明文字，第二行大标题 */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 20px 5px 14px;
  color: #fff;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.kicker__desc {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .45);
}
/* 首页 hero 大标题区不受方案A影响，保持原样 */
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.hero__kicker::before { content: '//'; opacity: .9; }

/* 章节标题 */
/* R75 严格对标参考图三行结构：
   第一行 kicker(chip+灰字) / 第二行 大标题(无边框) / 第三行 描述(红竖线+文字) */
.sec-head {
  position: relative;
  display: block;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.6vw; font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--white);
}
.sec-head h2 em { font-style: normal; color: var(--red); }
.sec-head > p {
  margin: 16px 0 0;
  max-width: 620px;
  border-left: 4px solid var(--red);
  padding-left: 16px;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.75;
}

/* 按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 34px 15px 30px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #fff; color: var(--bg); transform: translateX(4px); }

/* 细线 + 红色短线 */
.rule { position: relative; height: 1px; background: var(--line); }
.rule::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  width: 56px; height: 3px;
  background: var(--red);
}

/* 扫描线纹理 */
.texture {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg, rgba(236, 232, 225, .030) 0 1px, transparent 1px 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

/* 滚动入场（仅在 JS 可用时才隐藏，避免脚本失效导致内容不可见） */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; }

/* 顶部滚动进度条 */
.sprog {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}
.sprog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  box-shadow: 0 0 12px rgba(255, 70, 85, .8);
  transition: width .1s linear;
}

/* —— 装饰元素（立绘 / 喷漆贴纸） —— */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.deco img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .55));
}
.deco--float img { animation: decoFloat var(--d, 13s) ease-in-out var(--fd, 0s) infinite alternate; }
@keyframes decoFloat {
  from { transform: translate3d(0, -9px, 0) rotate(-1.4deg); }
  to   { transform: translate3d(0, 9px, 0) rotate(1.4deg); }
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: fixed;
  top:0; right:0; bottom:auto; left:0;
  height: var(--nav-h);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: var(--gutter); padding-right: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-solid {
  background: rgba(9, 18, 26, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 30px; height: 30px;
  flex: none;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;   /* R122: 导航品牌字放大 */
  letter-spacing: .18em;
  line-height: 1.1;
}
.brand__text small {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--dim-2);
}

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 26px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  position: relative;
  display: block;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--white); }

/* 实时时钟小组件 */
.clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--dim-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.clock b { color: var(--white); font-weight: 600; font-size: 14px; letter-spacing: .14em; }
.clock .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: blink 2.4s var(--ease) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span { width: 16px; height: 2px; background: var(--white); }

/* ==========================================================================
   ① 首屏 · 全屏视频 + 文字统一靠左
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 0;
  /* 深紫底色：四周不再是黑边，而是参考图的紫粉宇宙 */
  background: linear-gradient(118deg, #170d2e 0%, #221040 34%, #2c1152 58%, #1a0c33 100%);
}
.hero__bg > .texture { opacity: .5; }

/* 流动的极光色块：三团渐变光斑慢慢漂，让边缘"活"起来 */
.hero__aurora {
  position: absolute;
  top:-12%; right:-12%; bottom:-12%; left:-12%;
  filter: blur(70px) saturate(1.25);
  opacity: .8;
}
.hero__aurora i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero__aurora i:nth-child(1) {
  width: 58vw; height: 58vw;
  left: -14vw; top: -18vh;
  background: radial-gradient(circle, rgba(168, 64, 255, .5), rgba(168, 64, 255, 0) 66%);
  animation: auroraA 16s ease-in-out infinite alternate;
}
.hero__aurora i:nth-child(2) {
  width: 46vw; height: 46vw;
  right: -10vw; bottom: -16vh;
  background: radial-gradient(circle, rgba(255, 72, 199, .42), rgba(255, 72, 199, 0) 66%);
  animation: auroraB 19s ease-in-out infinite alternate;
}
.hero__aurora i:nth-child(3) {
  width: 34vw; height: 34vw;
  left: 30vw; bottom: -12vh;
  background: radial-gradient(circle, rgba(64, 190, 255, .3), rgba(64, 190, 255, 0) 66%);
  animation: auroraC 23s ease-in-out infinite alternate;
}
@keyframes auroraA { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, 7vh) scale(1.18); } }
@keyframes auroraB { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-7vw, -6vh) scale(.92); } }
@keyframes auroraC { from { transform: translate(0, 0); } to { transform: translate(6vw, -8vh) scale(1.22); } }

/* 视频层：不用卡片边框，改靠遮罩把四边羽化溶进渐变背景，
   所以没有可见轮廓，画面像是从紫粉底色里透出来的 */
.hero__frame {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -4vw;
  width: 74vw; width: min(74vw, 1240px);
  height: 88vh; height: min(88vh, 900px);
  transform: translateY(-50%);
  overflow: hidden;
  will-change: transform;
  /* 横向化得快（给左侧文字让位）+ 纵向软进出，两张蒙版取交集 */
  --hmask: linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .5) 8%,
    rgba(0, 0, 0, 1) 26%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, .55) 93%,
    rgba(0, 0, 0, 0) 100%);
  --vmask: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .65) 9%,
    rgba(0, 0, 0, 1) 26%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, .5) 93%,
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: var(--hmask), var(--vmask);
  -webkit-mask-composite: source-in;
          mask-image: var(--hmask), var(--vmask);
          mask-composite: intersect;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  filter: saturate(1.06) contrast(1.05);
  /* R100: 右下角视频自带 logo 裁掉——放大并以偏左上为不动点，右缘裁约14%、下缘裁约17% */
  transform: scale(1.26);
  transform-origin: 36% 26%;
}
/* R118: 动画图仅在窄屏使用（手机端替代视频），桌面端隐藏 */
.hero__anim { display: none; }

/* 画框内上下轻压暗，把注意力收到人物脸上 */
.hero__frame::after {
  content: '';
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 8, 34, .18) 0%, rgba(16, 8, 34, 0) 22%, rgba(16, 8, 34, 0) 74%, rgba(16, 8, 34, .22) 100%);
}

/* 遮罩：整体轻很多——只保证左侧文字可读，四边透出极光 */
.hero__veil {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(96deg,
      rgba(18, 9, 38, .92) 0%,
      rgba(18, 9, 38, .78) 20%,
      rgba(18, 9, 38, .38) 42%,
      rgba(18, 9, 38, .05) 62%,
      rgba(18, 9, 38, 0) 82%),
    linear-gradient(180deg,
      rgba(18, 9, 38, .5) 0%,
      rgba(18, 9, 38, 0) 16%,
      rgba(18, 9, 38, 0) 80%,
      rgba(18, 9, 38, .58) 100%);
}

/* 文字区（鼠标视差作用对象） */
.hero__stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 92vw; max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 96px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .6s var(--ease);
  will-change: transform;
}
.hero__col { width: 100%; max-width: 740px; }

.hero__kicker { margin-bottom: 20px; }

/* 主标题：2026 是序号，个人作品集是主体 */
.hero__title { margin: 0; }
.hero__year {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4vw; font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: .52em;
  color: var(--red);
}
.hero__year::after {
  content: '';
  flex: none;
  width: 6vw; width: clamp(48px, 6vw, 96px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.hero__cn {
  display: block;
  margin-top: clamp(8px, 1.2vw, 14px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 7.6vw; font-size: clamp(50px, 7.6vw, 124px);
  line-height: 1.02;
  letter-spacing: .05em;
  white-space: nowrap;
  color: transparent;
  filter: drop-shadow(0 18px 44px rgba(150, 60, 255, .4)) drop-shadow(0 24px 70px rgba(0, 0, 0, .45));
}
/* 渐变必须落在每个字自己身上：
   如果只给父元素加 background-clip:text，字一旦被 transform（hover 弹跳）
   就会脱离父级裁剪 → 文字变成透明的直接消失 */
.hero__cn .ch {
  display: inline-block;
  background-image: linear-gradient(105deg,
    #f4f0fa 0%, #f4f0fa 34%,
    #ff8ae2 44%, #b98cff 52%,
    #7ee7ff 60%, #f4f0fa 72%, #f4f0fa 100%);
  background-size: 260% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* 逐字错开一点，看起来像一道光带从左到右扫过去 */
  animation: titleShine 7s ease-in-out infinite;
}
@keyframes titleShine {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
.hero__cn .ch:nth-child(1) { animation-delay: 0s; }
.hero__cn .ch:nth-child(2) { animation-delay: .22s; }
.hero__cn .ch:nth-child(3) { animation-delay: .44s; }
.hero__cn .ch:nth-child(4) { animation-delay: .66s; }
.hero__cn .ch:nth-child(5) { animation-delay: .88s; }

/* 鼠标扫过：字像被点到一样弹跳（这条写在后面，覆盖上面的 shine 延迟） */
.hero__cn:hover .ch { animation: chBounce .7s var(--ease) both; }
.hero__cn:hover .ch:nth-child(1) { animation-delay: 0s; }
.hero__cn:hover .ch:nth-child(2) { animation-delay: .06s; }
.hero__cn:hover .ch:nth-child(3) { animation-delay: .12s; }
.hero__cn:hover .ch:nth-child(4) { animation-delay: .18s; }
.hero__cn:hover .ch:nth-child(5) { animation-delay: .24s; }
@keyframes chBounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-16px) scale(1.1) rotate(-3deg); }
  55%  { transform: translateY(3px) scale(.98); }
  75%  { transform: translateY(-6px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* 名字：署名级别，不再是主体 */
.hero__name {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7vw; font-size: clamp(16px, 1.7vw, 25px);
  letter-spacing: .42em;
  color: rgba(236, 232, 225, .92);
}
.hero__name span {
  font-size: .82em;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}

/* 往下滚的入口 */
.hero__enter {
  margin-top: clamp(34px, 5vw, 54px);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.5vw; font-size: clamp(19px, 1.5vw, 23px);   /* R121: 放大醒目 */
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, .85);
  transition: color .25s var(--ease);
}
.hero__enter:hover { color: var(--white); }
.hero__enter .line {
  width: 72px; height: 2px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.hero__enter:hover .line { width: 106px; background: var(--red); }

/* 底部状态条 */
.hero__foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) 22px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.hero__foot .rack {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__foot .rack::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 22%; height: 100%;
  background: var(--red);
  animation: rack 4.5s var(--ease) infinite;
}
@keyframes rack {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(560%); }
}

/* 窄屏：画框退到背后当氛围底，文字靠下铺满 */
@media (max-width: 860px) {
  .hero { align-items: flex-end; }
  .hero__stage { padding-bottom: 118px; }
  .hero__col { max-width: none; }
  .hero__cn { font-size: clamp(40px, 12.5vw, 96px); }
  .hero__name { letter-spacing: .3em; }
  .hero__frame {
    top: 6vh;
    right: auto;
    left: 50%;
    width: 138vw;
    height: 62vh;
    transform: translateX(-50%);
    --hmask: linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .35) 14%,
      rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, .35) 86%, rgba(0, 0, 0, 0) 100%);
    --vmask: linear-gradient(180deg,
      rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, 1) 22%,
      rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0) 100%);
  }
  .hero__veil {
    background:
      linear-gradient(180deg,
        rgba(18, 9, 38, .78) 0%,
        rgba(18, 9, 38, .4) 26%,
        rgba(18, 9, 38, .72) 62%,
        rgba(18, 9, 38, .94) 100%),
      linear-gradient(100deg, rgba(18, 9, 38, .5) 0%, rgba(18, 9, 38, .08) 82%);
  }
}

/* ==========================================================================
   内页外壳（关于 / 经历 / 作品 / 联系都在这层里）
   ========================================================================== */
.page {
  position: relative;
  /* 用 clip 而不是 hidden：同样能裁掉溢出，
     但不会生成滚动容器 —— 否则里面的 .wk-nav 吸顶会静默失效 */
  overflow: clip;
}
.page__bg {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: .75;
}

.section { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 44px; padding-top: clamp(32px, 4.4vw, 62px); padding-bottom: clamp(32px, 4.4vw, 62px); }
/* 内容还没做的板块，留白收一半 */
.section--tight { padding-top: 26px; padding-bottom: 26px; padding-top: clamp(18px, 2.4vw, 32px); padding-bottom: clamp(18px, 2.4vw, 32px); }

/* ==========================================================================
   ② 个人档案
   ========================================================================== */
.profile__grid {
  position: relative;
  display: grid;
  /* R121: 工牌/简历两栏收窄、栏距缩小 —— 原尺寸在 1366~1600 笔记本上
     会把左栏压到 70~170px，邮箱(自然宽 184px)放不下，电话/邮箱重叠 */
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 320px) minmax(300px, 430px);
  grid-template-rows: auto auto;
  gap: 0 3vw; gap: 0 clamp(24px, 3vw, 44px);
  align-items: start;
}
.profile__intro { grid-column: 1; grid-row: 1; }
.profile__grid .info { grid-column: 1; grid-row: 2; }
.profile__grid .badge-stage { grid-column: 2; grid-row: 1 / span 2; }
.profile__grid .resume-panel { grid-column: 3; grid-row: 1 / span 2; }

.profile__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.6vw; font-size: clamp(38px, 4.6vw, 84px);
  line-height: .96;
  letter-spacing: .04em;
  white-space: nowrap;   /* 名字必须一行，禁止换行 */
}
.profile__en {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.4vw; font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--dim);
}
.profile__lead {
  margin: 30px 0 0;
  max-width: 560px;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  color: rgba(236, 232, 225, .74);
  font-size: 14.5px;
}

/* 个人信息表（R123: 恢复 R121 版——三栏二维码属于「随时联系」板块，此处改回） */
.info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4vw; gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 3.2vw, 44px);
}
.info__item { padding: 15px 0 13px; border-top: 1px solid var(--line); min-width: 0; }
.info__k {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.info__v { font-size: 18px; color: var(--white); letter-spacing: .01em; overflow-wrap: anywhere; }
.info__v a:hover { color: var(--red); }

/* 照片卡片 */
.photo { position: relative; margin: 0; z-index: 1; }
.photo__glow {
  position: absolute;
  top:-14%; right:-10%; bottom:-8%; left:-10%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,70,85,.34), transparent 66%);
  filter: blur(46px);
  z-index: -1;
  pointer-events: none;
}
.photo__frame {
  position: relative;
  border: 1px solid rgba(236, 232, 225, .22);
  background: #fff;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.photo__frame img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.photo:hover .photo__frame img { transform: scale(1.025); }
.photo__frame::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  border-top: 22px solid var(--red);
  border-left: 22px solid transparent;
}
.photo__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 0;
}
.photo__cap b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .14em;
}
.photo__cap span {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim-2);
}

/* ==========================================================================
   ③ 工作经历时间轴（描边立绘横向年代轴：立绘站轴上 + 分段同色进度 + 年份信息列）
   ========================================================================== */
.tl2 { position: relative; }

.tl2__stage{
  position: relative;
  height: 40vw; height: clamp(300px, 40vw, 470px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2%;
}
.tl2__agent{
  position: relative;
  width: 22%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: .17;
  filter: brightness(.6);
  transform: translateY(16px) scale(.97);
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
}
.tl2__agent img{
  height: 28vw; height: clamp(210px, 28vw, 380px);
  width: auto;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .55));
}
.tl2__agent img.tall{ height: clamp(230px, 30.6vw, 418px); }
.tl2__agent.is-lit{ opacity: 1; filter: none; transform: none; }

.tl2__axis{
  position: relative;
  height: 3px;
  background: rgba(236, 232, 225, .13);
  margin: 0 2%;
}
.tl2__axis::before{
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 100%;
  clip-path: inset(0 calc(100% - var(--tl-progress, 0%)) 0 0);
  background: linear-gradient(90deg,
    #f2c94c 0%, #f2c94c 13%,
    #8ee05e 37.7%,
    #f472b6 62.3%,
    #8b7bff 87%, #8b7bff 100%);
  box-shadow: 0 0 10px rgba(236, 232, 225, .25);
}
.tl2__dot{
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--c, var(--red));
  opacity: .25;
  transition: opacity .4s, box-shadow .4s;
}
.tl2__dot.is-lit{ opacity: 1; box-shadow: 0 0 10px var(--c, var(--red)); }

.tl2__row{
  display: flex;
  justify-content: space-between;
  padding: 18px 2% 0;
  margin: 0;
  list-style: none;
}
.tl2__item{ width: 22%; text-align: center; }
.tl2__year{
  display: block;
  font-family: var(--font-display);
  font-size: 4vw; font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  color: rgba(236, 232, 225, .22);
  transition: color .4s, text-shadow .4s;
}
.tl2__item.is-lit .tl2__year{
  color: var(--c, var(--red));
  text-shadow: 0 0 22px color-mix(in srgb, var(--c, var(--red)) 40%, transparent);
}
.tl2__date{
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--dim);
}
.tl2__tag{
  display: inline-block;
  margin-top: 10px;
  padding: 3.5px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  white-space: nowrap;
  color: var(--c, var(--red));
  border: 1px solid color-mix(in srgb, var(--c, var(--red)) 55%, transparent);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.tl2__co{
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: .02em;
  color: var(--white);
}
@media (min-width:1380px){
  .tl2__co{ white-space:nowrap; }
}
.tl2__desc{
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--dim);
}

/* 进场动画沿用 reveal 系统 */
.js .tl2__item{ opacity: 0; transform: translateY(26px); }
.tl2__item.is-in{
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* 窄屏：立绘缩小，年份列折成两行两列 */
@media (max-width: 780px){
  .tl2__stage{ height: auto; padding: 0 1%; }
  .tl2__agent{ width: 24%; }
  .tl2__agent img{ height: 33vw; }
  .tl2__agent img.tall{ height: 36.5vw; }
  .tl2__row{ flex-wrap: wrap; gap: 20px 0; }
  .tl2__item{ width: 50%; }
  .tl2__co{ font-size: 15px; }
  .tl2__desc{ font-size: 13px; padding: 0 5%; }
  .tl2__date{ font-size: 12px; }
}
/* ==========================================================================
   ④ 作品 · 页首 + 四板块切换条
   ========================================================================== */
.works { position: relative; z-index: 2; }

/* 能力板块「封面」：立绘只在这一层里，往下滚就不再出现。
   整屏做成 flex 纵列，文字块垂直居中，让上下留白均衡、内容不贴边 */
.wk-cover {
  position: relative;
  min-height: 60vh; min-height: clamp(480px, 60vh, 620px);   /* R121: 压掉与时间轴之间的大片空白 */
  display: flex;
  flex-direction: column;
}

/* —— 中央巨型描边字：填补「文字在左、立绘在右」中间的空白 —— */
.wk-ghost {
  position: absolute;
  left: 24%;
  right: auto;
  top: 56%;
  transform: translateY(-50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12.5vw; font-size: clamp(90px, 12.5vw, 185px);
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 232, 225, .11);
  user-select: none;
  pointer-events: none;
}
.wk-ghost em {
  font-style: normal;
  color: rgba(255, 70, 85, .16);
  -webkit-text-stroke-color: rgba(255, 70, 85, .28);
}

/* 右缘压暗层：立绘放大后只压最右侧一条，保证切换条与后续文字的对比度
   （换成 ::after 伪元素，不挡住 .wk-nav） */
.wk-cover::after {
  content: '';
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(15, 25, 35, 0) 58%,
    rgba(15, 25, 35, .22) 82%,
    rgba(15, 25, 35, .5) 100%);
}

.wk-head {
  position: relative;
  z-index: 3;
  /* R73 真根因：wk-head 的盒子横跨整个封面右半区，把文件夹的鼠标事件全吃了。
     纯展示块（无链接），放行鼠标给下层文件夹 */
  pointer-events: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(40px, 5.5vh, 72px);   /* R121: 封面文字上移 */
  padding-bottom: clamp(40px, 5.5vh, 64px);
}

/* —— 封面文字的出场：先隐，再逐个弹出（--pd 是各自的延迟）—— */
.js .wk-step { opacity: 0; }
.wk-cover.is-on .wk-step {
  animation: wkPop .82s var(--back) both;
  animation-delay: var(--pd, 0s);
}
@keyframes wkPop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.95);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.wk-head__num {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
}
.wk-head h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 7.6vw; font-size: clamp(44px, 7.6vw, 118px);
  line-height: 1.02;
  letter-spacing: .02em;
  text-shadow: 0 6px 40px rgba(9, 18, 26, .8);
}
.wk-head h2 em { font-style: normal; color: var(--red); }
.wk-head__en {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.15vw; font-size: clamp(12px, 1.15vw, 16px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
}
.wk-head__lead {
  margin: 30px 0 0;
  max-width: 60ch;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  color: rgba(236, 232, 225, .82);
  font-size: 15px;
  line-height: 1.85;
}
/* 句子里高饱和的关键词（颜色写在行内 --c 上） */
.wk-head__lead i {
  font-style: normal;
  font-weight: 700;
  color: var(--c, var(--red));
}

/* —— 四种能力的色彩索引 —— */
.wk-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.wk-keys li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  background: rgba(9, 18, 26, .55);
  border: 1px solid var(--line);
  border-left: 3px solid var(--c, var(--red));
  backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease);
}
.wk-keys li:hover {
  transform: translateY(-3px);
  background: rgba(9, 18, 26, .8);
  border-color: var(--line-red);
}
.wk-keys b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--c, var(--red));
}
.wk-keys span {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--white);
}

/* 大立绘：只占封面这一屏（top/bottom 都锁在 0，绝不会溢出到下面的公众号板块）。
   立体弹出：进入封面时从「景深处」（远、斜、小、糊）沿 Z 轴弹到眼前，
   之后由鼠标位置驱动 --ry / --rx 做跟随倾斜（JS 写入）；
   位置由脚本写 --art-y 做轻微滚动视差 */
.wk-art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1.5vw;
  width: 48vw; width: clamp(340px, 48vw, 720px);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform:
    translate3d(0, var(--art-y, 0px), 0)
    perspective(1100px)
    rotateY(var(--ry, 0deg))
    rotateX(var(--rx, 0deg))
    translateZ(0)
    scale(1);
  transition: opacity 1.2s var(--ease);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
/* 弹出：只有 is-on 时播一次；变量都是活的，
   动画结束后 fill 住的是 var() 本身，鼠标倾斜照常生效 */
.wk-cover.is-on .wk-art {
  opacity: 1;
  animation: artPop 1.35s var(--back) .12s both;
}
@keyframes artPop {
  from {
    transform:
      translate3d(0, var(--art-y, 0px), 0)
      perspective(1100px)
      rotateY(24deg) rotateX(9deg)
      translateZ(-300px) scale(.8);
    filter: blur(12px) brightness(.6);
  }
  60% {
    filter: blur(0) brightness(1);
  }
  to {
    transform:
      translate3d(0, var(--art-y, 0px), 0)
      perspective(1100px)
      rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg))
      translateZ(0) scale(1);
    filter: blur(0) brightness(1);
  }
}
/* ==========================================================
   文件夹 v2（玻璃前板 + 曲别针喷漆贴纸 + 图标扇形炸出）
   设计稿固定 560×430，用 --wkf-k 整体缩放适配屏幕
   ========================================================== */
.wkf {
  position: absolute;
  left: 40%;
  top: 50%;
  width: 560px;
  height: 430px;
  transform: translate(-50%, -50%) scale(var(--wkf-k, .48));
  font-family: 'Baloo 2', 'Arial Black', 'Segoe UI', sans-serif;
  pointer-events: auto;   /* 唤醒整个文件夹：悬停任意位置都能弹出图标 */
}
.wkf-shape {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  width: 560px;
  height: 430px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .55));
}
/* 夹口露出的纸页 */
.wkf-inside {
  position: absolute;
  left: 0; right: 0; top: 44px; bottom: 0;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.wkf-paper {
  position: absolute;
  background: #FDFCF8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(120, 60, 20, .25);
}
.wkf-paper--a { left: 60px; top: 40px; width: 188px; height: 284px; transform: rotate(-6deg); }
.wkf-paper--a::before {
  content: '';
  position: absolute;
  top:20px; right:20px; bottom:20px; left:20px;
  border-radius: 6px;
  background: linear-gradient(150deg, #F6C98F, #EFA05E);
}
.wkf-paper--b { left: 190px; top: 34px; width: 172px; height: 276px; transform: rotate(-1deg); }
.wkf-paper--b::before {
  content: '';
  position: absolute;
  top:18px; right:18px; bottom:18px; left:18px;
  border-radius: 6px;
  background: repeating-linear-gradient(180deg, #D9E4EC 0 2px, transparent 2px 26px);
}
/* 前板：磨砂玻璃 */
.wkf-front {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  z-index: 5;
  border-radius: 28px;
  background: linear-gradient(168deg, rgba(255, 224, 190, .78) 0%, rgba(248, 192, 138, .62) 48%, rgba(240, 164, 102, .66) 100%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, .62) inset,
    0 1px 0 rgba(255, 255, 255, .4) inset,
    0 24px 48px rgba(0, 0, 0, .35);
}
.wkf-front::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; top: 6px;
  height: 44%;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), transparent);
  pointer-events: none;
}
.wkf-face {
  position: absolute;
  left: 0; right: 0; top: 70px;
  text-align: center;
  z-index: 6;
}
.wkf-face b {
  font-family: 'Baloo 2', 'Arial Black', sans-serif;
  font-size: 66px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #E05A24;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .3);
}
.wkf-face span {
  display: block;
  margin-top: 4px;
  font-family: 'Baloo 2', 'Arial Black', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 11px;
  color: #E05A24;
}
.wkf-pen { position: absolute; right: 38px; bottom: 30px; width: 34px; height: 34px; opacity: .9; }
/* 喷漆贴纸：别在右上角，玻璃外 */
.wkf-sticker {
  position: absolute;
  z-index: 6;
  right: 26px; top: 66px;
  width: 182px;
  transform: rotate(5deg);
  transition: transform .32s cubic-bezier(.34, 1.56, .4, 1);
  will-change: transform;
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, .75))
    drop-shadow(0 10px 18px rgba(120, 60, 20, .38));
}
.wkf.is-open .wkf-sticker { z-index: 9; transform: rotate(-2deg) scale(1.08) translateY(-10px); }
/* 提示小字：移到整个文件夹下方居中 */
.wkf-tip {
  position: absolute;
  z-index: 7;
  left: 50%; top: calc(100% + 10px);
  width: max-content;
  transform: translateX(-50%) rotate(-2deg);
  text-align: center;
  font-family: 'Baloo 2', 'Segoe UI', sans-serif;
  /* tip 在 scale(var(--wkf-k)) 容器内，会被同步缩小；除以 k 恢复 15px 实际观感（=占位文案字号） */
  font-size: calc(15px / var(--wkf-k, .5));
  font-weight: 800;
  letter-spacing: calc(1.2px / var(--wkf-k, .5));
  color: #9FE8F5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 12px rgba(127, 216, 232, .35);
  animation: wkf-tip-wiggle 2.6s ease-in-out infinite;
}
@keyframes wkf-tip-wiggle {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(-1deg) translateY(3px); }
}
/* 曲别针 */
.wkf-clip {
  position: absolute;
  z-index: 7;
  right: 24px; top: 42px;
  width: 48px; height: 92px;
  transform: rotate(22deg);
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .35));
}
.wkf.is-open .wkf-clip { transform: rotate(28deg) translateY(-3px); }
/* 图标：默认缩没在贴纸处，open 时从贴纸中心炸到扇形位 */
.wkf-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22%;
  box-shadow: 0 14px 26px rgba(120, 60, 20, .32), inset 0 1.5px 0 rgba(255, 255, 255, .35);
  position: relative;
  width: 68px; height: 68px;
}
.wkf-ic-ca { background: #F6F4EF; }
.wkf-ic-img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(120, 60, 20, .35));
}
.wkf-pop {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 10;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--r, 0deg)) scale(0);
  opacity: 0;
  transition: transform .3s cubic-bezier(.3, 1.55, .4, 1), opacity .12s ease-out;
  transition-delay: var(--d, 0s);
  will-change: transform;
}
.wkf.is-open .wkf-pop { transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(var(--r, 0deg)) scale(var(--pop-k, 1)); opacity: 1; }
/* 悬停命中区（覆盖贴纸，唤醒 pointer-events） */
.wkf-hit {
  position: absolute;
  z-index: 8;
  right: -30px; top: 40px;
  width: 224px; height: 224px;
  border-radius: 30px;
  cursor: pointer;
  pointer-events: auto;
}
@media (max-width: 1500px) { .wkf { --wkf-k: .45; --pop-k: 2.1; } }
@media (max-width: 1300px) { .wkf { --wkf-k: .42; --pop-k: 2.3; } }
@media (max-width: 1100px) { .wkf { --wkf-k: .38; --pop-k: 2.5; } }
@media (max-width: 900px) {
  .wkf { --wkf-k: .34; --pop-k: 2.9; top: 50%; }
  .wk-cover.is-on .wk-art { opacity: 1; }
  .wk-ghost { font-size: clamp(84px, 16vw, 130px); left: -2%; }
}

/* 四个板块的切换条 */
.wk-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 70;
  background: rgba(9, 18, 26, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wk-nav__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wk-nav__item {
  position: relative;
  display: block;
  padding: 13px 14px 14px;
  border-left: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.wk-nav__item:first-child { border-left: 0; }
.wk-nav__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--c, var(--dim-2));
  opacity: .6;
  transition: opacity .25s var(--ease);
}
.wk-nav__item.is-active b { opacity: 1; }
.wk-nav__item strong {
  display: block;
  margin: 5px 0 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  color: var(--dim);
  transition: color .25s var(--ease);
}
.wk-nav__item i {
  display: block;
  font-style: normal;
  font-size: 13.5px;
  letter-spacing: .05em;
  line-height: 1.45;
  color: var(--dim-2);
}
a.wk-nav__item:hover { background: rgba(236, 232, 225, .04); }
a.wk-nav__item:hover strong { color: var(--white); }

.wk-nav__item.is-active { background: rgba(236, 232, 225, .055); }
.wk-nav__item.is-active strong { color: var(--white); }
.wk-nav__item.is-active i { color: var(--dim); }
.wk-nav__item.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--c, var(--red));
  box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--red)) 55%, transparent);
}
.wk-nav__item.is-todo { opacity: .55; }
a.wk-nav__item.is-todo:hover { opacity: 1; }
.wk-nav__item.is-soon { opacity: .42; }

/* —— 数据条 —— */
.stats-row { position: relative; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 780px;
  margin-bottom: clamp(28px, 3.6vw, 46px);
}
.stat { padding: 24px 24px 22px; background: var(--bg); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.2vw; font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--white);
  font-variant-numeric: tabular-nums;   /* 数字递增时宽度不跳 */
}
.stat b em {
  font-style: normal;
  font-size: .48em;
  font-weight: 700;
  color: var(--red);
  margin-left: 3px;
  letter-spacing: 0;
}
/* 注意用 > ：大数字里也套了一个 span（数字递增用），
   不限定直接子元素会把那个数字也变成小标签样式 */
.stat > span {
  display: block;
  margin-top: 11px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--dim);
}

/* ==========================================================================
   阅读量列表（FlowingMenu 式：外显阅读量，悬停跑马灯 + 截图划过）
   ========================================================================== */
.flow {
  position: relative;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}

.flow__item {
  position: relative;
  overflow: hidden;
  height: 11.5vh; height: clamp(76px, 11.5vh, 112px);
  border-top: 1px solid var(--line);
}
.flow__item:first-child { border-top: 0; }

/* 外显行：编号 + 标题 + 大号阅读量 */
.flow__link {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  width: 100%;
  height: 100%;
  padding: 0 12px; padding: 0 clamp(12px, 1.8vw, 24px);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  font: inherit;
}
.flow__num {
  flex: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--dim-2);
}
.flow__t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.5vw; font-size: clamp(15.5px, 1.5vw, 20px);
  letter-spacing: .04em;
  color: var(--dim);
  transition: color .3s var(--ease);
}
.flow__item:hover .flow__t { color: rgba(236, 232, 225, .85); }
.flow__reads {
  flex: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2vw; font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--white);
  font-variant-numeric: tabular-nums;   /* 数字递增时宽度不跳 */
  transition: color .25s var(--ease), transform .35s var(--back);
}
.flow__item:hover .flow__reads { color: var(--red); transform: translateX(-6px); }
.flow__item:focus-within .flow__reads { color: var(--red); }

/* 悬停时划入的红色跑马灯层 */
.flow__marquee {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--red);
  transform: translate3d(0, 101%, 0);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.flow__inner {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: flowScroll var(--flow-dur, 12s) linear infinite;
}
@keyframes flowScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--flow-w, 320px)), 0, 0); }
}
.flow__part {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: clamp(22px, 3vw, 46px);   /* 间距算进 part 宽度里，循环才无缝 */
  color: #fff;
}
.flow__part span {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.7vw; font-size: clamp(20px, 2.7vw, 31px);
  line-height: 1;
  letter-spacing: .08em;
  padding-right: clamp(18px, 2.4vw, 38px);
}
/* 截图胶囊（5:1 的后台数据条，横着放最合适） */
.flow__img {
  display: block;
  flex: none;
  width: 30vw; width: clamp(300px, 30vw, 520px);
  height: 8vh; height: clamp(52px, 8vh, 78px);
  border-radius: 999px;
  background-size: cover;
  background-position: 50% 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
}

.flow__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px; margin: 0 0 clamp(30px, 4vw, 46px);
  font-family: var(--font-display);
  font-size: 14.4px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.flow__hint::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  flex: none;
}

/* 触屏设备没有 hover：跑马灯永远不划入，隐藏掉省性能 */
@media (hover: none) {
  .flow__marquee { display: none; }
  .flow__hint { text-transform: none; letter-spacing: .08em; font-family: var(--font-body); }
}

/* ==========================================================================
   灯箱（点气泡看原图）
   ========================================================================== */
.lb {
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(52px, 6vw, 72px) clamp(16px, 4vw, 56px) clamp(76px, 8vw, 100px);
}
.lb.is-open { display: flex; }
.lb__bg {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background: rgba(6, 11, 16, .94);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
  animation: lbFade .3s var(--ease);
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb__box {
  position: relative;
  z-index: 1;
  width: 1320px; width: min(1320px, 100%);
  animation: lbPop .4s var(--back);
}
@keyframes lbPop {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.lb__img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.lb__cap { font-size: 14px; color: rgba(236, 232, 225, .8); }
.lb__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--red);
  white-space: nowrap;
}
.lb__btn {
  position: absolute;
  top: -18px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 18, 26, .9);
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease);
}
.lb__btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lb__close { top: -60px; right: 0; }
.lb__nav {
  position: absolute;
  left: 0; right: 0; bottom: -64px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.lb__nav .lb__btn { position: static; }

/* ==========================================================================
   无限循环滚动（瓦友社 / 全国大赛 / 手游赛事）
   ========================================================================== */
.mq {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(14px, 1.8vw, 22px);
  padding-top: 8px; padding-bottom: 8px;
}
.mq::before,
.mq::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 7vw; width: clamp(36px, 7vw, 130px);
  z-index: 2;
  pointer-events: none;
}
.mq::before { left: 0;  background: linear-gradient(90deg, var(--bg), rgba(15,25,35,0)); }
.mq::after  { right: 0; background: linear-gradient(270deg, var(--bg), rgba(15,25,35,0)); }

.mq__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: mqMove var(--dur, 40s) linear infinite;
  /* R120: 去掉 will-change —— 运行中的 transform 动画本身就会提升合成层；
     写死 will-change 会让离屏暂停后图层仍被强制保留，白占 GPU 内存 */
}
.mq__track[data-mq-rev] { animation-direction: reverse; }
.mq:hover .mq__track { animation-play-state: paused; }
@keyframes mqMove {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0); }
}

.mq__item {
  flex: none;
  width: 14.6vw; width: clamp(146px, 14.6vw, 204px);
  margin: 0 14px 0 0; margin: 0 clamp(14px, 1.5vw, 22px) 0 0;   /* figure 默认有外边距，必须清掉 */
}
.mq__card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 265 / 375;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform .4s var(--ease), border-color .3s var(--ease),
              box-shadow .4s var(--ease);
}
.mq__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.mq__item:hover .mq__card {
  transform: translateY(-5px);
  border-color: var(--line-red);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .55);
}
.mq__item:hover .mq__card img { transform: scale(1.045); }

.mq__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}
.mq__label b { color: var(--red); font-weight: 700; letter-spacing: .18em; }

/* —— 说明文字块 —— */
.note {
  max-width: 74ch;
  margin: 0;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.6vw, 32px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  color: rgba(236, 232, 225, .74);
  font-size: 14.5px;
}
.note b { color: var(--white); font-weight: 700; }

/* —— 未完成板块 —— */
.soon {
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.8vw, 34px);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  color: var(--dim);
}
.soon b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--white);
}
.soon span { font-size: 13.5px; }

/* —— 备用版式：宽幅截图列表（一排一张，铺满宽度）——
   后面做新板块时可以直接用：
   <div class="shots">
     <figure class="shot">
       <span class="shot__idx">01</span>
       <div class="shot__frame"><img src="…" alt="…"></div>
     </figure>
   </div>
   —— 适合 5:1 左右的横条截图 —— */
.shots { display: grid; gap: clamp(12px, 1.5vw, 20px); }
.shot {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
  margin: 0;
}
.shot__idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 225, .32);
  transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease);
}
.shot__frame {
  position: relative;
  border: 1px solid var(--line);
  background: #F2F3F4;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.shot__frame::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
  z-index: 2;
}
.shot__frame img { width: 100%; height: auto; }
.shot:hover .shot__frame {
  border-color: var(--line-red);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .38);
}
.shot:hover .shot__frame::before { transform: scaleY(1); }
.shot:hover .shot__idx { color: var(--red); -webkit-text-stroke-color: var(--red); }

/* —— 备用版式：竖版图片网格 —— */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.grid-4 img { width: 100%; height: auto; border: 1px solid var(--line); }

/* ==========================================================================
   ⑤ 联系方式 + 页脚
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* R123: 固定三栏 电话/微信/邮箱 */
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact__cell {
  /* R126: 用户要的"居中"= 内容在格子里水平+垂直都居中（QR 栏最高，其余两栏内容沉在中间） */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 26px;
  background: var(--bg);
  transition: background .3s var(--ease);
  text-align: center;
}
.contact__cell:hover { background: var(--bg-soft); }
.contact__cell .k {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.15vw; font-size: clamp(15.5px, 1.15vw, 17.5px);   /* R123: 标签放大醒目 */
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact__qr { display: block; }
.contact__qr img {
  display: block;
  margin-left: auto; margin-right: auto;   /* R125: 二维码随栏居中 */
  width: 8vw; width: clamp(104px, 8vw, 128px);
  height: auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 26px rgba(15, 18, 30, .35);
}
.contact__cell .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7vw; font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: .06em;
  color: var(--white);
  word-break: break-all;
}
.contact__cell:hover .v { color: var(--red); }

/* R123: 地图板块下方补充文本框（随机应变处理能力） */
.adapt-box {
  /* R125: 小卡片化——贴在地图下方，不再横贯整行；字号不变 */
  max-width: 720px;
  margin-top: clamp(14px, 1.8vw, 24px);
  padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 34px);
  background: var(--bg-soft, rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
}
.adapt-box__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  margin-bottom: 12px;
}
.adapt-box__spray {
  flex: 0 0 auto;
  width: 6vw; width: clamp(58px, 6vw, 86px);
  transform: rotate(-8deg);
}
.adapt-box__spray img {
  display: block;
  width: 100%;
  height: auto;
  animation: decoFloat var(--d, 10s) ease-in-out infinite alternate;
}
.adapt-box__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.2vw; font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--white);
}
.adapt-box__title em { font-style: normal; color: var(--red); }
.adapt-box__text {
  margin: 0;
  max-width: 72ch;
  font-size: 1.1vw; font-size: clamp(14.5px, 1.1vw, 16px);
  line-height: 1.9;
  color: var(--dim);
}

.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.foot__inner a:hover { color: var(--red); }

/* ==========================================================================
   响应式
   ========================================================================== */

/* 作品切换条换行 */
@media (max-width: 1000px) {
  .wk-nav__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-nav__item:nth-child(odd) { border-left: 0; }
  .wk-nav__item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* 档案：名字 → 照片 → 信息表 */
@media (max-width: 1080px) {
  .profile__grid { grid-template-columns: 1fr; }
  /* R121: badge/resume 必须一并收进第 1 列 —— 漏掉就会生成隐式列，
     把信息表挤扁导致电话/邮箱重叠（其他电脑错版的根因） */
  .profile__intro,
  .profile__grid .info,
  .profile__grid .photo,
  .profile__grid .badge-stage,
  .profile__grid .resume-panel { grid-column: 1; grid-row: auto; }
  .profile__intro { order: 1; }
  .profile__grid .photo { order: 2; max-width: 420px; margin-top: clamp(28px, 6vw, 44px); }
  .profile__grid .info { order: 3; }
  .profile__grid .badge-stage { order: 4; height: 440px; margin-top: clamp(16px, 2.4vw, 28px); }
  .profile__grid .resume-panel { order: 5; margin-top: clamp(24px, 3.4vw, 40px); }
}

/* 阅读量列表在窄屏：标题截断、阅读量缩小，跑马灯在触屏已隐藏 */
@media (max-width: 960px) {
  .flow__reads { font-size: clamp(20px, 6vw, 28px); }
  .flow__t { font-size: 14.5px; }
  .deco--sm-hide { display: none; }
}

/* 移动端导航 */
@media (max-width: 900px) {
  .nav__links, .nav__right .clock { display: none; }
  .nav__toggle { display: flex; }

  .nav.is-open {
    height: auto;
    flex-wrap: wrap;
    padding-top: 16px; padding-bottom: 16px;
    background: rgba(9, 18, 26, .97);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    gap: 0;
  }
  .nav.is-open .nav__links a { padding: 12px 0; font-size: 17px; letter-spacing: .1em; }
  .nav.is-open .nav__links a::after { left: 0; right: auto; width: 40px; }

  .hero__foot { padding-bottom: 16px; font-size: 13px; letter-spacing: .18em; }
  .hero__name span { display: none; }

  .deco--sm-hide { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .info { grid-template-columns: 1fr; }
  .hero__cn { font-size: clamp(38px, 15.5vw, 72px); }
  .hero__year { font-size: 15px; letter-spacing: .4em; }
  .hero__foot .rack { display: none; }
  .hero__foot { justify-content: center; }
  .contact { grid-template-columns: 1fr; }   /* R123: 固定三栏后窄屏降单列 */
  .contact__cell { padding: 20px 18px; }
  .stat { padding: 20px 18px; }
  .wk-nav__item { padding: 12px 12px 13px; }
  .wk-nav__item strong { font-size: 13.5px; }
  .wk-nav__item i { display: none; }
  .mq__item { width: 138px; margin-right: 12px; }
  .lb__nav { bottom: -52px; }
  .lb__btn { width: 38px; height: 38px; }
}

/* 减少动效：默认不启用。
   作品集本身靠动效撑起观感，而很多内嵌/预览环境（含无头浏览器）会误报
   prefers-reduced-motion: reduce，导致跑马灯、数字递增、立绘全部静掉。
   改成显式开关：网址加 ?motion=reduce 才关动效（脚本会给 html 加 .is-motion-off）。 */
html.is-motion-off { scroll-behavior: auto; }
html.is-motion-off .deco--float img,
html.is-motion-off .flow__inner,
html.is-motion-off .hero__foot .rack::after,
html.is-motion-off .hero__aurora i,
html.is-motion-off .hero__cn,
html.is-motion-off .mq__track,
html.is-motion-off .wk-art img { animation: none !important; }
html.is-motion-off .hero__cn { background-position: 30% 0; }
html.is-motion-off .js .wk-step { opacity: 1; }
html.is-motion-off .wk-cover.is-on .wk-step { animation: none; }
html.is-motion-off .js .wk-art { transition: none; animation: none; transform: none; }
html.is-motion-off .tl2__axis::before { transition: none; }

/* ==========================================================================
   板块 02 · 项目执行能力 —— 立体交互地图
   --------------------------------------------------------------------------
   地图 SVG 由 assets/js/project-map.js 注入 .pmap__canvas；
   五座城市的光柱是 HTML 里的 .pmap__pin，靠内联 --x / --y 定位，
   所以 .pmap__canvas 的宽高比必须和地图 viewBox（1060 × 970.1）一致。
   ========================================================================== */
.pmap {
  position: relative;
  isolation: isolate;
  contain: paint;                 /* 地图内部怎么重绘都不会波及页面其它部分 */
  margin-top: clamp(22px, 3.2vw, 44px);
  padding: clamp(16px, 2.4vw, 34px);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 62% 54% at 52% 44%, rgba(34, 211, 197, .11), transparent 72%),
    linear-gradient(180deg, #0B1A22 0%, #08131A 58%, #060F15 100%);
  overflow: hidden;
}

/* 网格底纹 */
.pmap::before {
  content: '';
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 197, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 197, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 0%, rgba(0, 0, 0, .3) 62%, transparent 84%);
          mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 0%, rgba(0, 0, 0, .3) 62%, transparent 84%);
}

/* 背后的大光环 */
.pmap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  width: 104%; width: min(104%, 1120px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(34, 211, 197, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(34, 211, 197, .022), inset 0 0 140px rgba(34, 211, 197, .05);
  pointer-events: none;
}

.pmap__canvas {
  position: relative;
  z-index: 1;
  width: 88%; width: min(88%, 860px);          /* 地图整体缩小 */
  margin-left: auto; margin-right: auto;
  aspect-ratio: 1060 / 970.1;
  /* 边缘裁切：放大一点、由 .pmap 的 overflow:hidden 裁掉外圈空白刻度环 */
  transform: scale(1.1);
  transform-origin: 52% 42%;
}

.pmap__svg {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* 底层（静态厚度）单独一层，浏览器会缓存它的位图：
   悬停改省份颜色时只需要重画顶层，厚度的 9 次填充不用重来 */
.pmap__svg--base {
  will-change: transform;
  transform: translateZ(0);       /* 提成独立合成图层：滚动时靠合成器平移，不用重新光栅化 */
  backface-visibility: hidden;
}
.pmap__svg--front { z-index: 1; }

/* —— 省份（顶面）—— */
/* 注意：这里**不能**加 fill 过渡、也**不能**加 filter: drop-shadow。
   两者都会让这块大路径每帧重新光栅化，正是之前卡顿的主因。
   高亮用「亮填充 + 亮描边」实现，一次性切换。 */
.pmap__prov {
  fill: url(#pmFill);
  stroke: rgba(34, 211, 197, .30);
  stroke-width: 1;
  stroke-linejoin: round;
}
.pmap__prov.is-on {
  fill: url(#pmFillOn);
  stroke: #9BFBF0;
  stroke-width: 1.8;
}

/* —— 南海诸岛缩略框 —— */
.pmap__inset-box {
  fill: rgba(7, 28, 36, .94);
  stroke: rgba(34, 211, 197, .42);
  stroke-width: 1.1;
}
/* 岛屿与九段线都在这条路径里，线段本身极细，靠描边把它们「加粗」出来，
   否则缩到 0.9 倍后只剩几个掉帧的浅点，看不清 */
.pmap__inset-land {
  fill: rgba(150, 240, 235, .88);
  stroke: rgba(168, 250, 245, .96);
  stroke-width: 1.05;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(34, 211, 197, .6));
}
.pmap__inset-name {
  fill: rgba(96, 232, 224, .92);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-anchor: middle;
}

/* —— 五座城市的光柱 —— */
.pmap__pins { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; pointer-events: none; }

.pmap__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 86px;
  height: 134px;
  padding: 0;
  border: 0;
  background: none;
  /* 光柱底端对准城市坐标，所以整体往上抬满自身高度 */
  transform: translate(-50%, -100%);
  pointer-events: auto;
  cursor: pointer;
  color: var(--cyan);
}
.pmap__pin:focus { outline: none; }
.pmap__pin.is-on { z-index: 4; }

.pmap__pin-vis { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; }

/* 竖直光柱 */
.pmap__pin-beam {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 2px;
  height: 90px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(34, 211, 197, 0) 0%,
    rgba(34, 211, 197, .22) 40%,
    rgba(34, 211, 197, .95) 100%);
  transition: height .3s var(--ease), width .3s var(--ease);
}
/* 落脚处的雾光 */
.pmap__pin-halo {
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 62px;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 60%, rgba(34, 211, 197, .5), transparent 70%);
  filter: blur(6px);
  opacity: .72;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
/* 地面扩散光环 */
.pmap__pin-ring {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 26px;
  margin: 0 0 -13px -13px;
  border: 1px solid rgba(34, 211, 197, .75);
  border-radius: 50%;
  animation: pmPulse 2.8s ease-out infinite;
}
@keyframes pmPulse {
  0%   { transform: scale(.45); opacity: .85; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
/* 城市点 */
.pmap__pin-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  margin: 0 0 -5px -5px;
  border-radius: 50%;
  background: #CFFFF8;
  box-shadow: 0 0 8px rgba(34, 211, 197, .95), 0 0 20px rgba(34, 211, 197, .6);
  transition: transform .3s var(--ease);
}
/* 顶部奖杯 */
.pmap__pin-ico {
  position: absolute;
  left: 50%;
  bottom: 92px;
  width: 27px;
  height: 27px;
  margin-left: -13.5px;
  filter: drop-shadow(0 0 9px rgba(34, 211, 197, .75));
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.pmap__pin-ico svg { display: block; width: 100%; height: 100%; }

/* 城市名标签（--lx 是左右微调，杭州/上海挨得近要让开） */
.pmap__pin-name {
  position: absolute;
  left: 50%;
  bottom: 122px;
  transform: translate(calc(-50% + var(--lx, 0px)), 0);
  padding: 4px 11px 5px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--white);
  background: rgba(9, 24, 31, .9);
  border: 1px solid rgba(34, 211, 197, .42);
  transition: color .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease);
}

/* 悬停 / 键盘聚焦 / 已点亮 —— 三种状态同一套表现 */
.pmap__pin:hover .pmap__pin-beam,
.pmap__pin:focus-visible .pmap__pin-beam,
.pmap__pin.is-on .pmap__pin-beam { width: 3px; height: 100px; }

.pmap__pin:hover .pmap__pin-dot,
.pmap__pin:focus-visible .pmap__pin-dot,
.pmap__pin.is-on .pmap__pin-dot { transform: scale(1.55); }

.pmap__pin:hover .pmap__pin-ico,
.pmap__pin:focus-visible .pmap__pin-ico,
.pmap__pin.is-on .pmap__pin-ico { transform: translateY(-4px) scale(1.12); color: #9BFBF0; }

.pmap__pin:hover .pmap__pin-halo,
.pmap__pin:focus-visible .pmap__pin-halo,
.pmap__pin.is-on .pmap__pin-halo { opacity: 1; transform: translateX(-50%) scale(1.2); }

.pmap__pin:hover .pmap__pin-name,
.pmap__pin:focus-visible .pmap__pin-name,
.pmap__pin.is-on .pmap__pin-name {
  color: #04171C;
  background: var(--cyan);
  border-color: var(--cyan);
}

.pmap__pin:focus-visible .pmap__pin-name { box-shadow: 0 0 0 2px rgba(34, 211, 197, .45); }

/* 「案例」小角标：只有带大卡片的光柱（成都）才有，提示这个站可展开更多 */
.pmap__pin-case {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px 2px;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  vertical-align: 1.5px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 197, .5);
}
.pmap__pin:hover .pmap__pin-name .pmap__pin-case,
.pmap__pin.is-on .pmap__pin-name .pmap__pin-case,
.pmap__pin:focus-visible .pmap__pin-name .pmap__pin-case {
  color: #04171C;
  border-color: rgba(4, 23, 28, .45);
}

/* —— 跟随光标的弹窗 ——
   外层 .pmap__pop 只负责跟随位移（transform，不带过渡 → 跟手、不重排）
   内层 .pmap__pop-card 负责缩放 + 淡入（带过渡）
   早前用 left/top 定位，每帧都要重排，是卡顿的第二个来源 */
.pmap__pop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  --mx: 50%;
  --my: 50%;
  --ox: 24px;
  --oy: -50%;
  pointer-events: none;
  transform: translate(var(--mx), var(--my));
  will-change: transform;
}
/* 水平方向靠翻转（靠近面板右缘就翻到光标左边）；
   垂直方向的 --oy 由 JS 每帧算 —— 卡片要夹在「面板在视口里的可见区间」内。 */
.pmap__pop.is-flip-x { --ox: calc(-100% - 24px); }

.pmap__pop-card {
  display: block;
  width: 25vw; width: clamp(238px, 25vw, 322px);
  transform: translate(var(--ox), var(--oy)) scale(.94);
  transform-origin: 0 50%;
  opacity: 0;
  visibility: hidden;
  background: rgba(8, 22, 29, .97);
  border: 1px solid rgba(34, 211, 197, .38);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .62), 0 0 34px rgba(34, 211, 197, .15);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.pmap__pop.is-flip-x .pmap__pop-card { transform-origin: 100% 50%; }
.pmap__pop.is-open .pmap__pop-card {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--ox), var(--oy)) scale(1);
}

.pmap__pop-media {
  display: block;
  aspect-ratio: var(--ar, 4 / 3);
  max-height: 44vh;
  overflow: hidden;
  background: #06141A;
}
.pmap__pop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* 竖图（杭州站 675×1200）：不要 cover 裁掉上下，整张居中放在卡片中间 */
.pmap__pop.is-tall .pmap__pop-media {
  aspect-ratio: auto;
  max-height: none;
  display: grid;
  place-items: center;
}
.pmap__pop.is-tall .pmap__pop-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58vh; max-height: min(58vh, 560px);
  object-fit: contain;
}

.pmap__pop-body { display: block; padding: 12px 14px 14px; }
.pmap__pop-meta {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.pmap__pop-title {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: .05em;
  color: var(--white);
}
.pmap__pop-text {
  display: block;
  margin-top: 7px;
  font-size: 12.6px;
  line-height: 1.72;
  color: rgba(236, 232, 225, .72);
}
/* 「点击查看完整案例」——只有带大弹窗的城市才有 */
.pmap__pop-more {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(34, 211, 197, .22);
  font-size: 13.5px;
  font-style: normal;
  letter-spacing: .12em;
  color: var(--cyan);
}
.pmap__pop-more[hidden] { display: none; }

.pmap__hint {
  position: relative;
  z-index: 1;
  margin: clamp(10px, 1.4vw, 16px) 0 0;
  text-align: center;
  font-size: 14.4px;
  letter-spacing: .22em;
  color: var(--dim-2);
}
/* 触屏没有光标，提示换成「点一下」 */
.pmap__hint-mb { display: none; }

/* 窄屏：城市名默认收起（杭州/上海太近会叠），点亮时才显示 */
@media (max-width: 900px) {
  .pmap { padding: clamp(12px, 3vw, 20px); }
  .pmap__pin { width: 56px; height: 86px; }
  .pmap__pin-beam { height: 52px; }
  .pmap__pin:hover .pmap__pin-beam,
  .pmap__pin:focus-visible .pmap__pin-beam,
  .pmap__pin.is-on .pmap__pin-beam { height: 60px; }
  .pmap__pin-halo { width: 44px; height: 24px; bottom: -12px; }
  .pmap__pin-ring { width: 20px; height: 20px; margin: 0 0 -10px -10px; }
  .pmap__pin-ico { bottom: 56px; width: 17px; height: 17px; margin-left: -8.5px; }
  .pmap__pin-name { bottom: 80px; opacity: 0; font-size: 12px; padding: 3px 8px 4px; }
  .pmap__pin.is-on .pmap__pin-name,
  .pmap__pin:focus-visible .pmap__pin-name { opacity: 1; }
  .pmap__pop-card { width: min(64vw, 282px); }
  .pmap__hint-pc { display: none; }
  .pmap__hint-mb { display: inline; }
}

html.is-motion-off .pmap__pin-ring { animation: none; opacity: .5; }
html.is-motion-off .pmap__prov,
html.is-motion-off .pmap__pin-beam,
html.is-motion-off .pmap__pin-dot,
html.is-motion-off .pmap__pin-ico,
html.is-motion-off .pmap__pin-halo,
html.is-motion-off .pmap__pin-name,
html.is-motion-off .pmap__pop-card,
html.is-motion-off .pmd,
html.is-motion-off .pmd__box { transition: none; }

/* ==========================================================================
   性能相关
   ========================================================================== */

/* 地图滚出视口 / 标签页切走 → 停掉光环脉冲（由 project-map.js 加 is-idle） */
.pmap.is-idle .pmap__pin-ring { animation-play-state: paused; }

/* —— 低配自动降级（html.is-lite）——
   判定在 project-map.js：核数 ≤4 或内存 ≤4G 或系统开了「减少动态效果」。
   也可以手动覆盖：网址后面加 ?perf=lite 或 ?perf=full */
.is-lite .pmap__pin-ring { animation: none; opacity: .45; }
.is-lite .pmap__depth { shape-rendering: optimizeSpeed; }   /* 厚度层关抗锯齿，肉眼几乎看不出 */
.is-lite .pmap__prov { transition: none; }
.is-lite .pmap__pop-card { transition: opacity .14s linear, visibility .14s; }
/* 低配只砍最吃 GPU 的（厚度层/光环/极光漂移）。
   成都大卡片的展开过渡很便宜，砍掉会让"移上去直接展开"变得很生硬，所以保留。 */
.is-lite .hero__aurora i { animation: none; }

/* ==========================================================================
   成都站 · 大弹窗
   ========================================================================== */
/* —— 成都站大卡片 ——
   注意：它挂在 .pmap 面板**内部**（不是 body），所以是「浮在地图上的同层卡片」，
   光标移上光柱就直接展开，没有「先弹一层小卡、再点进二层」这一步。
   .pmap 上有 overflow:hidden + contain:paint，卡片天然被地图边框裁住，跑不出面板；
   另外 contain:paint 会让面板成为 fixed 子元素的包含块，所以这里只能用 absolute —— 别改回 fixed。 */
.pmd {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.8vw, 26px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s;
}
.pmd.is-open { opacity: 1; visibility: visible; }

/* 只在地图范围内轻轻压暗，不做全屏遮罩、不用 backdrop blur（低配机上 blur 很贵） */
.pmd__bg {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background:
    radial-gradient(ellipse 80% 78% at 50% 50%, rgba(4, 11, 15, .30), rgba(4, 11, 15, .60));
}

.pmd__box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* 两个上限都要：min(100%) 保证不跑出地图面板，min(84vh) 保证矮屏幕下也能完整看到卡片 */
  width: 100%; width: min(100%, 880px);
  max-height: 100%; max-height: min(100%, 84vh);
  background:
    linear-gradient(180deg, #0C1B24 0%, #08131A 100%);
  border: 1px solid rgba(34, 211, 197, .34);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(34, 211, 197, .12);
  transform: translateY(18px) scale(.985);
  transition: transform .32s var(--ease);
  overflow: hidden;
}
.pmd.is-open .pmd__box { transform: none; }

.pmd__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--white);
  background: rgba(9, 24, 31, .9);
  border: 1px solid rgba(34, 211, 197, .34);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.pmd__close:hover,
.pmd__close:focus-visible { color: #04171C; background: var(--cyan); }

.pmd__head {
  flex: 0 0 auto;
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 3vw, 40px) clamp(14px, 1.6vw, 20px);
  border-bottom: 1px solid rgba(34, 211, 197, .16);
}
.pmd__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4vw; font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--white);
}
.pmd__title em { font-style: normal; color: var(--red); }
.pmd__meta {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dim);
}

.pmd__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 2.2vw, 28px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 40px);
}

.pmd__lead {
  margin: 0 0 18px; margin: 0 0 clamp(18px, 2.2vw, 26px);
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(236, 232, 225, .8);
}

.pmd__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.pmd__fig {
  margin: 0;
  background: #06141A;
  border: 1px solid var(--line-soft);
}
.pmd__fig--w { grid-column: 1 / -1; }
.pmd__fig img {
  display: block;
  width: 100%;
  height: auto;
  background: #06141A;
  /* R100: 统一比例裁切，两列不再因原图高度差露出深色底 */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.pmd__fig figcaption {
  padding: 9px 12px 10px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--dim);
}
.pmd__fig figcaption b {
  margin-right: 6px;
  font-family: var(--font-display);
  color: var(--cyan);
}

.pmd__note {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--red);
  background: rgba(255, 70, 85, .05);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(236, 232, 225, .76);
}
.pmd__note b { color: var(--white); }

@media (max-width: 900px) {
  /* 窄屏地图面板本身就矮（约 1.09:1），卡片直接铺满面板、内部滚动看完整案例 */
  .pmd { padding: 7px; }
  .pmd__box { width: 100%; max-height: 100%; }
  .pmd__head { padding: 14px 16px 10px; }
  .pmd__title { font-size: 22px; }
  .pmd__meta { font-size: 11px; letter-spacing: .06em; }
  .pmd__body { padding: 12px 14px 16px; }
  .pmd__lead { margin-bottom: 14px; font-size: 12.5px; line-height: 1.8; }
  .pmd__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pmd__fig--w { grid-column: auto; }
  .pmd__close { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 12px; }
  .pmd__note { padding: 11px 13px; font-size: 12px; }
}

/* ==========================================================================
   板块 03 · 对接设计产出 —— 3D 胶带卷（俯视桌面，Three.js）
   进视口后胶带卷沿蛇形路径连续滚动铺开，40 张封面按原始比例贴在胶带上
   （不裁切，白色间隔来自胶带底色），走完定格。逻辑见 assets/js/tape3d.js。
   ========================================================================== */
.tape-stage {
  position: relative;
  margin-top: clamp(14px, 2vw, 30px);
  height: 50vh; height: clamp(340px, 50vh, 560px); /* JS 会按路径高宽比精调（fitStageHeight） */
}

/* 3D 画布：透明背景 */
.tape-canvas {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

/* 胶带定格提示（鼠标悬停暂停的说明，右下角淡字） */
.tape-hint {
  position: absolute;
  right: 2px;
  bottom: -2px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.8px;
  letter-spacing: .18em;
  color: var(--dim-2);
  opacity: .75;
  pointer-events: none;   /* 别挡鼠标进入胶带 */
  transition: opacity .2s ease;
}
.tape-stage.is-hold .tape-hint { opacity: 1; }

/* WebGL 不可用时的静态图片墙兜底 */
.tape-fallback {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  z-index: 1;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  padding: 8px 2px;
}
.tape-fallback img {
  width: 24vw; width: clamp(180px, 24vw, 300px);
  height: auto;
  background: #f5f2ea;
  padding: 6px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}

/* 动效总开关关闭时行为不变（tape3d.js 内部直接定格在完成态） */

@media (max-width: 720px) {
  .tape-stage { height: clamp(340px, 52vh, 480px); }
}


/* ==========================================================================
   ② 个人档案 · 3D 工牌 + 简历展示区
   ========================================================================== */
.badge-stage {
  position: relative;
  height: 66vh; height: clamp(520px, 66vh, 710px);
  z-index: 1;
}
/* R72：假织带方案废弃（3D 绳悬点不在画布中线，对不齐）。
   改为把画布整体上提，顶边贴住上一板块底边，让 3D 绳直接从接缝垂下 */
.badge-stage {
  /* R73：画布顶边贴住 hero 底边（无空隙），绳子加长后从接缝垂下约 110px 到金属夹 */
  margin-top: calc(-1 * clamp(32px, 4.4vw, 62px) - 2px);
}
.badge-stage .badge-canvas {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.badge-stage.is-drag .badge-canvas { cursor: grabbing; }
.badge-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.8px;
  letter-spacing: .22em;
  color: var(--dim-2);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.badge-stage.is-touched .badge-stage__hint { opacity: 0; }
.badge-fallback {
  position: absolute;
  top:10%; right:10%; bottom:10%; left:10%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-fallback img {
  max-width: 78%;
  max-height: 100%;
  border: 6px solid #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

/* 简历展示区 */
.resume-panel {
  position: relative;
  min-height: 58vh; min-height: clamp(480px, 58vh, 640px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
  z-index: 1;
}
.resume-panel::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  border-top: 22px solid var(--red);
  border-left: 22px solid transparent;
  z-index: 2;
  pointer-events: none;
}
.resume-panel__idle[hidden],
.resume-panel__full[hidden] { display: none; }
.resume-panel__idle {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 24px);
  padding: 0 18px; padding: 0 clamp(18px, 2vw, 30px);
}
.resume-panel__spray {
  width: 9vw; width: clamp(96px, 9vw, 148px);
  flex: none;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .45));
  animation: decoFloat 9s ease-in-out infinite;
}
.resume-panel__tip {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2vw; font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: .14em;
  line-height: 2;
  color: var(--dim);
}
.resume-panel__full {
  position: absolute;
  top:14px; right:14px; bottom:14px; left:14px; top:clamp(14px, 1.6vw, 22px); right:clamp(14px, 1.6vw, 22px); bottom:clamp(14px, 1.6vw, 22px); left:clamp(14px, 1.6vw, 22px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.resume-panel__page {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .5);
}
.resume-panel__full.pop .resume-panel__page {
  animation: resumePop .72s cubic-bezier(.2, .9, .25, 1.05) both;
}
@keyframes resumePop {
  from { transform: scale(.16) translate(-34%, -78%); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}
.resume-panel__dl {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 10px 18px;
  border: 1px solid rgba(236, 232, 225, .3);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--white);
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.resume-panel__dl:hover { border-color: var(--red); color: var(--red); }

@media (min-width: 1441px) {
  /* 名字区在工牌高度内垂直居中（工牌列高 clamp(500,62vh,660)） */
  .profile__intro { padding-top: clamp(40px, 8.5vh, 110px); }
  .profile__grid .info { margin-top: clamp(12px, 1.2vw, 18px); }
}
@media (max-width: 1440px) {
  /* R121: 中档宽度（笔记本+系统缩放高发区）统一单列堆叠，杜绝挤压错版 */
  .profile__grid { grid-template-columns: 1fr; }
  .profile__grid .badge-stage { grid-column: 1; grid-row: auto; height: 440px; }
  .profile__grid .resume-panel { grid-column: 1; grid-row: auto; min-height: 480px; width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .profile__grid { grid-template-columns: 1fr; }
  .profile__grid .badge-stage { grid-column: 1; grid-row: auto; height: 440px; margin-top: 8px; }
  .profile__grid .resume-panel { grid-column: 1; grid-row: auto; min-height: 480px; }
}


/* ---- 简历放大提示 + 大图灯箱 ---- */
.resume-panel__zoom-hint {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25vw; font-size: clamp(16px, 1.25vw, 19px);   /* R121: 放大醒目 */
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(236, 232, 225, .88);
  text-align: center;
}
.resume-panel__page { cursor: default; }
.resume-lightbox {
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  z-index: 99990;
  background: rgba(4, 6, 12, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  cursor: zoom-out;
  animation: lbIn .28s ease both;
}
.resume-lightbox[hidden] { display: none; }
/* 灯箱两档：打开默认放大档（1.9 倍看细节），点击图片在 放大 ↔ 适屏 之间切换；
   点击图片外的背景或按 ESC 关闭 */
.resume-lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}
.resume-lightbox.is-zoom { overflow: auto; cursor: zoom-out; }
.resume-lightbox.is-zoom img {
  max-width: none;
  max-height: none;
  width: auto;
  height: 175vh;      /* 默认放大：纵向简历放大到约 1.86 倍屏高，细节可读 */
  cursor: zoom-out;   /* 再点一下缩回适屏 */
  margin: auto;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Case 03 · 自媒体运营 · 数据截图气泡墙 ===== */
.bubble-field {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin: clamp(18px, 2.4vw, 34px) auto 0;
  padding: 0;
}
.bub {
  position: absolute;
  top: 0; left: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  transform: rotate(var(--r, 0deg));
  transition: transform .42s cubic-bezier(.22, 1.4, .36, 1);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.bub:hover,
.bub:focus-visible {
  transform: rotate(0deg) scale(1.07);
  z-index: 40;
  outline: none;
}
/* 弹出层：气泡「弹」出来的弹性动画（过冲 → 回弹 → 收敛） */
.bub__pop {
  display: block;
  position: relative;
  opacity: 0;
  transform: scale(.2) translateY(46px) rotate(var(--pr, -8deg));
}
.bubble-field.is-in .bub__pop {
  animation: bub-pop .92s cubic-bezier(.26, 1.28, .38, 1) var(--pd, 0s) both;
}
@keyframes bub-pop {
  0%   { opacity: 0; transform: scale(.18) translateY(52px) rotate(var(--pr, -8deg)); }
  38%  { opacity: 1; transform: scale(1.13) translateY(-12px) rotate(calc(var(--pr, -8deg) * -.16)); }
  58%  { transform: scale(.95) translateY(5px) rotate(calc(var(--pr, -8deg) * .07)); }
  76%  { transform: scale(1.035) translateY(-3px) rotate(calc(var(--pr, -8deg) * -.03)); }
  90%  { transform: scale(.99) translateY(1px); }
  100% { transform: none; opacity: 1; }
}
/* 弹出瞬间的气泡外扩脉冲 */
.bub__ring {
  position: absolute;
  top:-2px; right:-2px; bottom:-2px; left:-2px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, .78);
  opacity: 0;
  pointer-events: none;
}
.bubble-field.is-in .bub__ring {
  animation: bub-ring .9s ease-out var(--pd, 0s) both;
}
@keyframes bub-ring {
  0%   { opacity: .85; transform: scale(.84); }
  65%  { opacity: .3; }
  100% { opacity: 0; transform: scale(1.22); }
}
/* 悬浮层：上下浮 + 左右漂 + 轻微摇摆（每个气泡周期/相位/幅度不同） */
.bub__inner {
  display: block;
  position: relative;
  animation: bub-bob var(--bd, 4.6s) ease-in-out var(--bl, 0s) infinite alternate;
  /* R120: 同上，去 will-change，动画运行时自动提层，离屏即释放 */
}
.bubble-field.is-hovering .bub__inner {
  animation-play-state: paused;
}
@keyframes bub-bob {
  from {
    transform: translateY(calc(var(--by, 7px) * -1)) translateX(calc(var(--bx, 3px) * -1))
               rotate(calc(var(--sw, 1deg) * -1));
  }
  to {
    transform: translateY(var(--by, 7px)) translateX(var(--bx, 3px))
               rotate(var(--sw, 1deg));
  }
}
.bub img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, .95);
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 18, 30, .16), 0 3px 10px rgba(15, 18, 30, .10);
  opacity: var(--op, 1);
  filter: blur(var(--bzz, 0px));
  transition: opacity .32s ease, filter .32s ease, box-shadow .32s ease;
}
.bub:hover img,
.bub:focus-visible img {
  opacity: 1;
  filter: none;
  box-shadow: 0 24px 56px rgba(15, 18, 30, .26), 0 6px 16px rgba(15, 18, 30, .14);
}
/* 平台角标：白底胶囊 + 平台色圆点/文字，右上角悬浮 */
.bub__tag {
  position: absolute;
  top: -12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--tc, #333);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 18, 30, .18), 0 1px 3px rgba(15, 18, 30, .10);
  pointer-events: none;
}
.bub__tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc, #333);
  flex: 0 0 auto;
}
/* 大图灯箱 */
.bub-lightbox {
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 3vh 3vw;
  /* 性能：去掉全屏 backdrop blur —— 它会把整个页面每帧重模糊，
     叠加气泡动画后直接把帧率拖死；加深遮罩色替代 */
  background: rgba(10, 11, 16, .93);
  opacity: 0;
  transition: opacity .28s ease;
  cursor: zoom-out;
}
/* 灯箱打开期间：全页动效冻结 + 隐藏光标 WebGL，把 GPU 让给大图 */
body.lb-open .bub__inner { animation-play-state: paused !important; }
body.lb-open .glow-cursor-canvas { display: none; }
.bub-lightbox.is-open { opacity: 1; }
.bub-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
/* 注：这里刻意不做 prefers-reduced-motion 降级 —— 作品集是展示型页面，
   气泡弹出/浮动就是内容本身；且部分机器默认开着系统「减少动画」，降级会导致动效完全消失。 */

/* 胶带定格提示：大标题下方的高亮胶囊版 */
.sec-head .tape-hint--head, .sec-head p.tape-hint--head {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 36px 0 2px;
  padding: 7px 15px 8px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .14em;
  color: #ffd76a;
  background: rgba(255, 215, 106, .10);
  border: 1px solid rgba(255, 215, 106, .38);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 1;
}
.tape-hint--head::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd76a;
  box-shadow: 0 0 10px rgba(255, 215, 106, .9);
  animation: hint-pulse 1.8s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.7); }
}

/* ==========================================================================
   ⑥ AI 工作成果（#work-ai）
   ========================================================================== */
.ai-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
.ai-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}
.ai-card::before {
  content: '';
  position: absolute;
  top:0; right:auto; bottom:0; left:0;
  width: 3px;
  background: var(--ai-c, #5B8CFF);
  opacity: .85;
}
.ai-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--ai-c, #5B8CFF) 45%, transparent);
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .75);
}
.ai-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--ai-c, #5B8CFF);
  margin-bottom: 14px;
}
.ai-card__t {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8vw; font-size: clamp(18px, 1.8vw, 24px);
  color: var(--white);
}
.ai-card__d {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--dim);
}
.ai-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.ai-card__tags li {
  padding: 4px 12px 5px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(235, 238, 246, .8);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---- R29 间距收紧 ---- */
#timeline { padding-top: 8px; padding-bottom: 10px; padding-top: clamp(4px, .6vw, 10px); padding-bottom: clamp(6px, 1vw, 14px); }
/* R69：标题/CAREER 下移一点、与立绘紧凑、右侧说明文字已删 */
#timeline .sec-head { padding-top: clamp(12px, 1.8vw, 26px); margin-bottom: clamp(10px, 1.6vw, 22px); }
/* R71：幽灵英文不得高于左侧中文标题顶 */
/* R77：时间轴 sec-head 有 padding-top，ghost 居中公式补偿 */
#timeline .sec-head::after { top: calc(clamp(12px, 1.8vw, 26px) + 54px + .525 * var(--hh) - .5 * var(--gh)); }
#works { padding-top: clamp(0px, .6vw, 10px); }   /* R71：能力板块整体上移 */
#about { padding-bottom: clamp(10px, 1.4vw, 20px); }   /* R71：与时间轴间隙再缩小 */
#case-01 { padding-bottom: clamp(12px, 1.6vw, 26px); }   /* 公众号 → 瓦友社 间隙缩小 */
#case-02 { padding-top: clamp(12px, 1.6vw, 26px); }

/* ---- R32 间距/局部覆盖 ---- */
#work-03 { padding-top: 25px; padding-bottom: 25px; padding-top: clamp(16px, 2.2vw, 32px); padding-bottom: clamp(16px, 2.2vw, 32px); }   /* 对接设计上下间隙缩小 */
#case-selfmedia { padding-bottom: clamp(6px, .8vw, 14px); }   /* R121: 再收 */
#case-03 { padding-top: clamp(10px, 1.4vw, 24px); }   /* R121: 项目执行能力贴近自媒体 */
#case-selfmedia .bubble-field { margin-bottom: clamp(8px, 1.2vw, 18px); }

/* ---- R52 无畏契约风格强化 ---- */
/* 章节幽灵描边大字（参考 dribbble valorant 系列的 AGENTS/Phoenix 描边字） */
.sec-head{ position: relative; }
.sec-head > *{ position: relative; z-index: 1; }
.sec-head::after{
  content: attr(data-ghost);
  position: absolute;
  right: 9%; right: clamp(20px, 9%, 180px);   /* R86: 整体左移，不再贴容器右缘；垂直居中公式不变 */
  /* R77：幽灵英文与左侧中文大标题垂直居中
     top = kicker占位(实测54px) + h2半高(.525*Hh) - ghost半高(.5*Gh) */
  --gh: clamp(56px, 8vw, 110px);
  --hh: clamp(28px, 3.6vw, 52px);
  top: calc(54px + .525 * var(--hh) - .5 * var(--gh));
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--gh);
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 225, .11);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
/* 时间轴：技能图标格 + 键位框（参考 ability 栏） */
/* 导航：当前项左侧红色斜标 */
.nav__links a.is-active::before{
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  width: 7px; height: 2px;
  margin-top: -1px;
  background: var(--red);
  transform: skewX(-30deg);
}
@media (max-width: 780px){
  .sec-head::after{ display: none; }
}

/* 顶部导航主题切换按钮（深浅两版通用，R96） */
.theme-btn{
  border: 1px solid rgba(236, 232, 225, .28);
  background: rgba(255, 255, 255, .06);
  color: #ECE8E1;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color .25s, color .25s, background .25s;
}
.theme-btn:hover{ border-color: var(--red); color: var(--red); }

/* ===== R120 · 动画节能（修「滚到瓦友社那屏卡一下」） =====
   元凶：跑马灯×2 + 气泡墙 + 喷漆贴纸是全站仅有的常驻无限动画，
   滚动经过时合成器每帧都要额外合成/重光栅化大面积图层。
   双保险：滚动进行中整页冻结循环动画；板块离屏后动画彻底停掉，
   图层与光栅缓存随之释放，滚回来再从头启动。 */
.mq--off .mq__track { animation: none; }
.bf--off .bub__inner { animation: none; }
.is-scrolling .mq__track,
.is-scrolling .bub__inner { animation-play-state: paused !important; }
