/* ============================================================
   deck.css — 全站唯一视觉层（自包含，不依赖 style.css / theme.css）
   版式语言复刻自 https://emanxym.com/ ，参数为实测值：
     · 主标题 宋体栈 72px / weight 400 / line-height 1.04
     · 副行 0.58em = 41.76px / line-height 1.05
     · 正文 无衬线 16px / 24px / max-width 518px
     · 站点标识 14px / 800 / letter-spacing 1.68px / 大写
     · 胶囊按钮 高 54px / padding 0 24px / radius 999px / 阴影 0 18px 42px accent·34%
     · 缓动 cubic-bezier(.22,1,.36,1)；时长 .26s / .32s / .42s / .52s
     · 顶栏高 90px，左右内边距 90px；左侧全高主题色竖条
     · 媒体平面 rotate(-5.5deg)，逐帧左移形成层叠
   参考站实测时间：2026-09-12
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --serif: "Songti SC", STSong, "Noto Serif SC", SimSun, Georgia, serif;

  --ink: #151513;
  --ink-2: #4f4a42;
  --ink-3: #6f695d;
  --line: rgba(21, 21, 19, .12);
  --paper: #f7f3ec;
  --paper-2: #f2f1ef;
  --white: #fffdf6;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: 90px;
  --bar: 10px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #f2f1ef;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto 必须有 —— 否则 <img width height> 属性会当成固定高度生效，
   把 2880×1854 的原图撑成 1852px 高 */
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: #151513; color: #fff; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   一、首页 —— 全屏分屏
   ============================================================ */

body.home {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* 主题底色层（整站底色，随项目切换渐变） */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #121A2B;
  transition: background-color .52s var(--ease);
}

/* 左侧全高主题色竖条 */
.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--bar);
  z-index: 6;
  background: #fff200;
  transition: background-color .42s var(--ease);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 90px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut) 0 calc(var(--bar) + var(--gut));
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}

.wordmark i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.top-btn {
  position: relative;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2.1px;
  padding: 4px 2px 8px;
  transition: color .3s var(--ease);
}

.top-btn::after {
  content: "";
  position: absolute;
  left: 2px; bottom: 2px;
  width: 18px;
  height: 2px;
  background: var(--accent, #fff200);
  transition: width .32s var(--ease), background-color .42s var(--ease);
}

.top-btn:hover::after,
.top-btn:focus-visible::after { width: calc(100% - 4px); }

/* 深色底 / 浅色底切换（currentColor 一次性解决正文、滚动提示、页码） */
body.home { transition: color .42s var(--ease); }

body[data-tone="dark"] { color: #f4f4f4; }
body[data-tone="light"] { color: var(--ink); }

body[data-tone="dark"] .wordmark,
body[data-tone="dark"] .top-btn,
body[data-tone="dark"] .pnav { color: #fff; }

body[data-tone="light"] .wordmark,
body[data-tone="light"] .top-btn,
body[data-tone="light"] .pnav { color: var(--ink); }

/* ---------- 舞台 ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 2;
}

.slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.slide.is-on { z-index: 3; pointer-events: auto; }

/* 只有文案逐帧淡入淡出 —— 媒体平面不参与淡化，切换时它由 JS 推着走，
   这样卡片是"滑过去"的，不是"闪一下换掉"。 */
.slide .copy { opacity: 0; transition: opacity .4s var(--ease); }
.slide.is-on .copy { opacity: 1; }

/* 媒体平面全站只留一份（第一屏那份），后一屏的隐藏，避免两层重叠 */
.stage > .slide + .slide .media { display: none; }

/* ---------- 文案区 ---------- */
.copy {
  position: absolute;
  left: calc(var(--bar) + var(--gut));
  top: 50%;
  transform: translateY(-50%);
  width: 576px;
  max-width: 46vw;
  z-index: 4;
}

.copy > * { display: block; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: .62;
  margin-bottom: 22px;
}

.eyebrow b { font-weight: 600; }
.eyebrow i {
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: .5;
}

/* 双层标题：副行 .58em */
.disp {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: -.01em;
}

.disp .lead {
  display: block;
  font-size: .58em;
  line-height: 1.05;
  opacity: .92;
}

.disp .main { display: block; }

.desc {
  margin-top: 24px;
  max-width: 518px;
  font-size: 16px;
  line-height: 1.5;
  opacity: .84;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  margin-top: 34px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  background: var(--accent, #fff200);
  color: var(--accent-ink, #153136);
  box-shadow: 0 18px 42px rgba(21, 21, 19, .18);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--accent, #fff200) 34%, transparent);
  transition: transform .32s var(--ease), background-color .42s var(--ease), color .42s var(--ease), box-shadow .42s var(--ease);
}

.cta:hover { transform: translateY(-2px) scale(1.02); }
.cta:active { transform: translateY(0) scale(.99); }

.cta svg { transition: transform .32s var(--ease); }
.cta:hover svg { transform: translateX(3px); }

/* 入场：逐级上移 */
.slide.is-on .anim {
  animation: rise .62s var(--ease) both;
  animation-delay: var(--d, 0s);
}

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

/* ---------- 媒体区（3D 平面，参数取自参考站实测） ---------- */
.media {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 56vw; min-width: 660px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

/* 真 3D 矩阵：绕 Y 轴 + 绕 Z 轴倾斜并带透视，
   数值直接对齐参考站 emanxym.com 的 _desktopMediaPlane 实测值。
   --ty 由 JS 逐帧改写，形成卡片流。 */
/* 平面本身不动，只立一个 3D 姿态；卡片在它上面上下错位流动。
   这样"当前卡片"永远落在平面正中央 —— 透视落点对每张卡都一样。 */
.plane {
  position: absolute;
  left: 20px; top: 50%;
  width: 700px;
  height: 460px;
  margin-top: -230px;
  transform: matrix3d(
    0.827393, -0.0794419, 0, -0.000136867,
    -0.126303, 0.837431, 0, -0.000118523,
    0, 0, 1, 0,
    0, 0, 0, 1
  );
  transform-style: preserve-3d;
  will-change: transform;
}

/* 卡片：当前张全彩原大，其余缩小、去色、压暗、半透明 —— 与参考站一致。
   --dy 是相对平面中心的错位量，由 JS 按"第几张 - 当前是第几张"改写。 */
.frame {
  position: absolute;
  top: 50%;
  left: 66px;
  width: 592px;
  --s: .88;
  --dy: -110px;
  transform: translateY(calc(-50% + var(--dy))) scale(var(--s));
  transform-origin: 50% 50%;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(21, 21, 19, .06);
  box-shadow: 0 30px 80px rgba(21, 21, 19, .18);
  pointer-events: auto;
  display: block;
  filter: grayscale(1) brightness(.62);
  opacity: .74;
  transition: transform .82s var(--ease), filter .55s var(--ease),
              opacity .55s var(--ease), box-shadow .42s var(--ease);
}

/* 错位量逐个递增一格（460px ≈ 卡片高 + 66px 间距）；
   水平不留错位 —— 换帧时"当前卡"的落点必须每次一致，否则会看到跳一下 */
.frame:nth-child(1) { --dy: -110px; }
.frame:nth-child(2) { --dy: 350px; }
.frame:nth-child(3) { --dy: 810px; }
.frame:nth-child(4) { --dy: 1270px; }

.frame.is-active {
  --s: 1;
  filter: none;
  opacity: 1;
  z-index: 2;
}

.frame:hover { --s: 1.014; box-shadow: 0 36px 96px rgba(21, 21, 19, .24); }
.frame.is-active:hover { --s: 1.014; }

.frame img { width: 100%; height: auto; }

/* 帧内的手机叠图 */
.frame .phone {
  position: absolute;
  right: 20px; bottom: 18px;
  width: 104px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(21, 21, 19, .34);
  border: 3px solid rgba(255, 255, 255, .92);
}

.frame .phone img { width: 100%; }

/* ---------- 右侧项目导航 ---------- */
.pnav {
  position: fixed;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 196px;
}

.pnav-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 40px;
}

.pnav-name {
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), color .3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 168px;
}

.pnav-item.is-on .pnav-name,
.pnav-item:hover .pnav-name { opacity: .95; transform: none; }

.pnav-track {
  position: relative;
  width: 8px;
  height: 22px;
  flex: 0 0 8px;
  display: block;
}

.pnav-track::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px;
  width: 2px; height: 14px;
  border-radius: 2px;
  background: currentColor;
  opacity: .28;
}

.pnav-track span {
  position: absolute;
  left: 3px; top: 4px;
  width: 2px; height: 14px;
  border-radius: 2px;
  background: var(--accent, #fff200);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .42s var(--ease), background-color .42s var(--ease);
}

.pnav-item.is-on .pnav-track span { transform: scaleY(1); }

.pnav-item.is-on .pnav-name { font-weight: 600; }

body[data-tone="dark"] .pnav { color: #fff; }
body[data-tone="light"] .pnav { color: var(--ink); }

/* ---------- 滚动提示 ---------- */
.cue {
  position: fixed;
  left: calc(var(--bar) + var(--gut));
  bottom: 34px;
  z-index: 20;
  width: 20px; height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  opacity: .5;
}

.cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 2px; height: 6px;
  border-radius: 2px;
  background: currentColor;
  animation: wheel 1.7s var(--ease) infinite;
}

@keyframes wheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  18%  { opacity: 1; }
  62%  { opacity: 1; transform: translate(-50%, 7px); }
  82%, 100% { opacity: 0; transform: translate(-50%, 9px); }
}

/* 页码（左下角，在滚动提示右侧） */
.pageno {
  position: fixed;
  left: calc(var(--bar) + var(--gut) + 38px);
  bottom: 40px;
  z-index: 20;
  font-size: 12.5px;
  letter-spacing: 1.4px;
  opacity: .55;
  font-variant-numeric: tabular-nums;
}

/* ---------- 移动端：纵向滚动列表 ---------- */
@media (max-width: 900px) {

  body.home {
    height: auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--ink);
  }

  .rail { width: 6px; }

  /* 移动端：底色跟着每一屏走，不用统一的 .bg */
  .bg { display: none; }

  .slide:nth-of-type(1) { background: #121A2B; color: #f4f4f4; }
  .slide:nth-of-type(2) { background: #151513; color: #f4f4f4; }

  .topbar {
    position: sticky;
    top: 0;
    height: 64px;
    padding: 0 20px 0 26px;
    background: rgba(247, 243, 236, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ink);
  }

  .stage { position: static; }

  .slide {
    position: relative;
    inset: auto;
    z-index: auto;
    pointer-events: auto;
    padding: 84px 20px 40px 26px;
    border-bottom: 0;
  }

  .slide.is-on { position: relative; }

  .slide .copy,
  .slide.is-on .copy { opacity: 1; transition: none; }

  /* 移动端每屏回到流里，各出自己那一张图 */
  .stage > .slide + .slide .media { display: block; }

  .copy {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
  }

  .disp { font-size: 42px; }

  .desc { font-size: 15px; }

  .cta { height: 48px; font-size: 16px; margin-top: 26px; }

  .media {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    margin-top: 34px;
    overflow: visible;
    perspective: none;
  }

  .plane {
    position: static;
    width: auto;
    height: auto;
    margin-top: 0;
    transform: none;
    transition: none;
  }

  .frame,
  .frame:nth-child(n) {
    display: none;
    position: static;
    width: 100%;
    margin: 0;
    transform: none;
    filter: none;
    opacity: 1;
    box-shadow: 0 14px 34px rgba(21, 21, 19, .14);
  }

  /* 每一屏只出自己那一张，避免同一张图出现两次 */
  .slide:nth-of-type(1) .frame:nth-child(1),
  .slide:nth-of-type(2) .frame:nth-child(2),
  .slide:nth-of-type(3) .frame:nth-child(3) { display: block; }

  .frame .phone { width: 74px; right: 12px; bottom: 12px; }

  .pnav, .cue, .pageno { display: none; }

  .slide .anim { animation: none; }
}

/* ============================================================
   二、关于我抽屉（首页与案例页共用）
   ============================================================ */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open { visibility: visible; pointer-events: auto; }

.veil {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 19, .28);
  opacity: 0;
  transition: opacity .42s var(--ease);
}

.drawer.is-open .veil { opacity: 1; }

.panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(840px, 100vw);
  background: #f7f4ed;
  color: var(--ink);          /* 抽屉永远是浅底深字，不受页面 data-tone 影响 */
  box-shadow: -30px 0 90px rgba(21, 21, 19, .22);
  transform: translateX(calc(100% + 40px));
  transition: transform .52s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.is-open .panel { transform: none; }

.p-close {
  position: absolute;
  right: 42px; top: 34px;
  width: 60px; height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(21, 21, 19, .10);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  z-index: 1;
  transition: background-color .26s, color .26s, border-color .26s;
}

.p-close:hover { background: var(--ink); color: #f7f4ed; border-color: var(--ink); }

.p-body {
  flex: 1;
  overflow-y: auto;
  padding: 34px 42px;
}

.p-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6f695d;
}

.p-name {
  margin-top: 10px;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .92;
}

.p-tag {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #6f695d;
}

.p-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px 34px;
  margin-top: 20px;
}

.p-face {
  width: 250px; height: 250px;
  object-fit: contain;
  border-radius: 2px;
  background: #ebe5d8;
}

.p-quote {
  font-size: 43px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.p-quote em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(255, 242, 0, .8) 60%);
}

.p-text {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  color: #4f4a42;
}

.p-text span { display: block; }

.p-sec { margin-top: 34px; }

.p-sec > h3 {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6f695d;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 18px;
}

.nums > div { padding: 2px 0; }

.nums b {
  display: block;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.02em;
}

.nums span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: #4f4a42;
}

/* 擅长：两列小卡。比 .nums 轻，因为这里讲的是"会什么"，不是"做出过什么" */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.skills > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px 14px;
}

.skills b {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.skills p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #4f4a42;
}

/* 联系：一行邮箱，抽屉里唯一一个能点的文字链接（mailto）。
   底部那道黄色高亮条呼应 .p-quote em 的高亮，暗示"这行点得动"；
   20px 刻意压在小节的常规字号之上、又明显小于 .nums 那组 30px 大数字，
   不抢"做出过什么"的重点。 */
.p-mail {
  display: inline-block;
  margin-top: 18px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 3px solid rgba(255, 242, 0, .85);
  transition: border-color .26s var(--ease);
}

.p-mail:hover { border-bottom-color: var(--ink); }

/* 2026-09-15：抽屉里的「经历」小节已整块删除（本人要求不公开公司与学校），
   这几条 .job 规则目前没有页面在用 —— 保留在这里是为了随时能恢复。
   要恢复：把 index.html 抽屉里那段注释说明换回原来的 .p-sec 结构即可。 */
.job {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.job:last-child { border-bottom: 0; }

.job .r {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.job .r b { font-size: 18px; font-weight: 900; }
.job .r i { font-style: normal; font-size: 14px; font-weight: 600; color: #6f695d; }
.job p { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.7; color: #4f4a42; }

/* 2026-09-15 晚：「联系」小节重建了，但里面只有一行邮箱，用的是上面的 .p-mail，
   所以这几条 .p-contact 行式规则目前仍没有页面在用 —— 保留在这里，
   哪天联系项又变成"标签 + 值"的多行列表（比如把电话/城市加回来），照搬即可。 */
.p-contact {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.p-contact .row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.p-contact .row:last-child { border-bottom: 0; }

.p-contact .row .k {
  width: 52px;
  flex: 0 0 52px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: #6f695d;
}

.p-contact .row .v { font-weight: 700; }

.p-qr { width: 132px; border-radius: 2px; }

.p-note { margin-top: 10px; font-size: 12px; font-weight: 600; color: #6f695d; }

.p-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;   /* 只剩「下载简历」一个按钮，靠右对齐 */
  align-items: center;
  gap: 12px;
  padding: 18px 42px 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #6f695d;
  background: #f7f4ed;
}

.p-foot .btn-dark {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f4ed;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  transition: transform .26s var(--ease), opacity .26s;
}

.p-foot .btn-dark:hover { transform: translateY(-1px); opacity: .9; }

@media (max-width: 900px) {
  .panel { width: 100%; }
  .p-close { right: 24px; top: 24px; }
  .p-body { padding: 68px 24px 28px; }
  .p-grid { grid-template-columns: 1fr; gap: 20px; }
  .p-face { width: 180px; height: 180px; }
  .p-name { font-size: 40px; }
  .p-tag { margin-top: 10px; }
  .p-quote { font-size: 30px; line-height: 1.12; }
  .p-text { font-size: 16px; line-height: 1.7; }
  .nums { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .skills { grid-template-columns: 1fr; }
  .p-foot { padding: 14px 24px 22px; }
}

/* ============================================================
   三、案例页 —— 分节展示式
   ============================================================ */

body.case {
  background: var(--paper-2);
}

.case-bar {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  pointer-events: none;
}

.case-bar > * { pointer-events: auto; }

.pill {
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 21, 19, .1);
  font-size: 14px;
  font-weight: 500;
  transition: transform .26s var(--ease), background-color .26s;
}

.pill:hover { transform: translateY(-1px); background: #fff; }

.pill.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.case-bar .right { display: flex; gap: 10px; }

/* 案例封面 */
.case-cover {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px var(--gut) 130px calc(var(--bar) + var(--gut));
  background: var(--cover-bg, #121A2B);
  color: var(--cover-ink, #151513);
  overflow: hidden;
}

/* 背景弧线（参考站的装饰语言） */
.case-cover::before,
.case-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .17;
  pointer-events: none;
}

.case-cover::before { width: 820px; height: 820px; right: -110px; top: -190px; }
.case-cover::after  { width: 1240px; height: 1240px; right: -300px; top: -400px; }

.case-cover > * { position: relative; z-index: 1; }

.case-cover .eyebrow { opacity: .8; }

.case-cover h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(42px, 7.6vw, 110px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.case-cover h1 .hot { color: var(--accent, #fff200); }

.case-cover .sub {
  margin-top: 26px;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
  opacity: .88;
}

.case-cover .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
  max-width: 600px;
}

.case-cover .facts span {
  font-size: 12.5px;
  letter-spacing: .4px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: .78;
}

.case-cover .scroll-label {
  position: absolute;
  left: calc(var(--bar) + var(--gut));
  bottom: 32px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  opacity: .6;
}

.case-cover .scroll-label::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 10px;
  opacity: .7;
}

.case-cover .cover-media {
  position: absolute;
  right: -26px; top: 12%;
  z-index: 0;
  width: 44%;
  max-width: 620px;
  transform: rotate(-5.5deg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(21, 21, 19, .3);
}

.case-cover .cover-media img { width: 100%; }

.case-cover .cover-media .phone {
  position: absolute;
  right: 20px; bottom: -16px;
  width: 104px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, .9);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(21, 21, 19, .35);
}

@media (max-width: 900px) {
  .case-cover {
    min-height: auto;
    padding: 96px 22px 44px 26px;
  }
  .case-cover .cover-media {
    position: relative;
    right: auto; top: auto;
    width: 100%;
    max-width: none;
    margin-top: 34px;
    transform: none;
  }
  .case-cover h1 { font-size: 42px; }
}

/* 分节 */
.sec {
  position: relative;
  padding: 92px var(--gut) 92px calc(var(--bar) + var(--gut));
  background: var(--paper-2);
}

.sec + .sec { border-top: 1px solid var(--line); }

.sec.tone-color {
  background: var(--block, #121A2B);
  color: var(--block-ink, #151513);
  /* 2026-09-15：tone-color 现在拿的是"该页项目色的深档"（各页 --block 不同），
     与中性的 tone-dark（#151513 墨色）是两种深色，相邻也不糊，所以不需要分隔线。 */
  border-top: 0;
}

.sec.tone-dark {
  background: #151513;
  color: #f4f4f4;
  border-top: 0;
}

.sec.tone-paper { background: var(--paper); }

.sec-head {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.sec-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  line-height: 1.7;
  opacity: .62;
}

.sec-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.sec-title .hot { color: var(--accent, #ff5a3c); }

.sec-side p {
  font-size: 14.5px;
  line-height: 1.8;
  opacity: .82;
}

.sec-side p + p { margin-top: 12px; }

.sec-body { margin-top: 56px; }

/* 编号列表（细线分隔） */
.tick { border-top: 1px solid currentColor; }

.tick li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 40px;
  padding: 15px 0;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  align-items: center;
  opacity: .92;
}

.tick li em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  opacity: .6;
}

/* 四格说明 */
.quads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid currentColor;
}

.quads > div {
  padding: 22px 20px 26px;
  border-right: 1px solid currentColor;
}

.quads > div:last-child { border-right: 0; }

.quads em {
  font-style: normal;
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  opacity: .55;
  margin-bottom: 26px;
}

.quads b { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.quads p { font-size: 13.5px; line-height: 1.7; opacity: .8; }

/* 步骤卡（最后一个高亮） */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.steps > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 30px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: transform .32s var(--ease), border-color .32s;
}

.steps > div:hover { transform: translateY(-3px); border-color: rgba(21, 21, 19, .3); }

.steps em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ink-3);
}

.steps b { margin-top: auto; font-size: 17px; font-weight: 700; }

.steps span { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

.steps > div.pop {
  background: var(--pop, #cbf24c);
  border-color: var(--pop, #cbf24c);
}

.steps > div.pop em,
.steps > div.pop span { color: rgba(21, 21, 19, .6); }

/* 数据格 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats > div { background: var(--paper); padding: 22px 20px; }

/* 数字必须写死深色：卡片底色是 var(--paper)（永远是浅色），
   而 .tone-color / .tone-dark 分节的 color 是 --block-ink —— 案例三的 --block-ink 是浅色，
   继承下去就是浅字压浅底，整格数字直接看不见。
   span 本来就是深色，b 漏了同一条规则。 */
.stats b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}

.stats span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

/* 口径条（期初 → 入库 → 出库 → 期末）：边框用 currentColor，
   这样深色分节里也能看见 —— var(--line) 是深墨 12%，在深底上等于消失。 */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.flow > div { padding: 24px 18px; border-right: 1px solid currentColor; }
.flow > div:last-child { border-right: 0; }

.flow em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  opacity: .6;
}

.flow b {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.flow i { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; opacity: .6; }

.flow > div.is-res { background: rgba(255, 90, 60, .07); }
.flow > div.is-res b { color: var(--accent, #ff5a3c); }

@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow > div { border-bottom: 1px solid currentColor; }
  .flow > div:nth-child(2n) { border-right: 0; }
  .flow > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}

/* 跑马灯色带 */
.band {
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  background: var(--band, #ff5a3c);
  color: var(--band-ink, #151513);
}

.band .track {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}

.band .track > span {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  padding-right: 40px;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .band .track { animation: none; }
}

/* 图 */
.shots { display: grid; gap: 22px; }

.shots.two { grid-template-columns: 1fr 1fr; }
.shots.three { grid-template-columns: repeat(3, 1fr); }
.shots.four { grid-template-columns: repeat(4, 1fr); }

/* 两张手机截图：两列会让竖图过高，限宽后只占左侧 */
.shots.pair { grid-template-columns: repeat(2, 1fr); max-width: 640px; }

/* 一张电脑端 + 一张手机端同排：电脑端占主，手机端定宽（两侧高度天然接近，
   不要把两张横图塞进 .pair —— 那会把 2880 宽的 ERP 截图压到 310px，字全糊） */
.shots.mix { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.shots.mix .ph .shot { border-radius: 16px; box-shadow: 0 14px 34px rgba(21, 21, 19, .12); }

.shot {
  border-radius: 4px;
  overflow: hidden;
  background: rgba(21, 21, 19, .05);
  box-shadow: 0 22px 54px rgba(21, 21, 19, .14);
}

.shot img { width: 100%; }

.shots.phones .shot {
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(21, 21, 19, .12);
}

.shot-cap {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.tone-dark .shot-cap,
.tone-color .shot-cap { color: inherit; opacity: .66; }

.case-foot {
  padding: 60px var(--gut) 60px calc(var(--bar) + var(--gut));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #151513;
  color: #f4f4f4;
}

.case-foot .nxt {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.15;
}

.case-foot .nxt em { font-style: normal; opacity: .5; display: block; font-size: .44em; letter-spacing: 1.6px; }

.case-note {
  padding: 22px var(--gut) 22px calc(var(--bar) + var(--gut));
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

@media (max-width: 1200px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-tag { order: -1; }
  .sec-side { max-width: 560px; }
  .quads { grid-template-columns: repeat(2, 1fr); }
  .quads > div:nth-child(2) { border-right: 0; }
  .quads > div:nth-child(-n+2) { border-bottom: 1px solid currentColor; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gut: 22px; --bar: 6px; }
  .sec { padding: 68px 22px 68px 26px; }
  .sec-title { font-size: 30px; }
  .sec-body { margin-top: 40px; }
  .tick li { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
  .shots.two, .shots.three, .shots.four { grid-template-columns: 1fr; }
  .shots.pair { grid-template-columns: 1fr; max-width: none; }
  .shots.mix { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case-bar { padding: 12px 14px; }
  .pill { height: 38px; padding: 0 14px; font-size: 13px; }
  .band .track > span { font-size: 34px; }
}

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .68s var(--ease), transform .68s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide.is-on .anim { animation: none; }
}

/* ============================================================
   四、简历入口 —— 已撤下（2026-09-14 晚三轮）
   原先首页与三个案例页右下角各有一枚 .resume 常驻下载块。
   现改为只在首页「关于我」抽屉里放一个「下载简历」按钮（.p-foot）。
   要恢复：把 .resume / .resume:hover / .resume svg / .resume:hover svg
   与 900px 那条媒体查询搬回来，并在需要的页面重新插入 <a class="resume">。
   ============================================================ */

/* ============================================================
   五、图片放大（Lightbox）—— 三个页面共用
   点开截图看细节。滚轮缩放锚定鼠标位置，按住拖动，双击切换适应/放大，
   ← → 看上下张，Esc 关闭。全是纯 DOM + transform，file:// 下同样可用。
   ============================================================ */

/* 可放大的图：鼠标变成放大镜 */
.shot img,
.cover img,
.p-face,
.is-zoomable { cursor: zoom-in; }

/* 首页封面是链接（点击进详情），所以放大靠右下角这个角标触发 */
.frame-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(21, 21, 19, .6);
  color: #fff;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              background-color .2s, color .2s;
}

.frame:hover .frame-zoom,
.frame-zoom:focus-visible {
  opacity: 1;
  transform: none;
}

.frame-zoom:hover,
.frame-zoom:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  outline: none;
}

.zoom {
  position: fixed;
  inset: 0;
  z-index: 200;                 /* 盖在抽屉（下方 .drawer）之上 */
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 9, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}

.zoom.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease), visibility 0s;
}

.zoom-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(244, 241, 234, .13);
}

.zoom-cap {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f4f1ea;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoom-idx {
  flex: 0 0 auto;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(244, 241, 234, .5);
  font-variant-numeric: tabular-nums;
}

.zoom-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-tools button {
  height: 34px;
  min-width: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244, 241, 234, .24);
  border-radius: 4px;
  color: #f4f1ea;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s, border-color .2s, color .2s;
}

.zoom-tools button:hover {
  background: rgba(244, 241, 234, .14);
  border-color: rgba(244, 241, 234, .52);
}

.zoom-tools button[data-zoom-close]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.zoom-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: zoom-in;
}

.zoom.is-zoomed .zoom-stage { cursor: grab; }
.zoom.is-dragging .zoom-stage { cursor: grabbing; }

.zoom-img {
  max-width: calc(100% - 132px);
  max-height: calc(100% - 76px);
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #f4f1ea;
  font-size: 26px;
  line-height: 1;
  background: rgba(244, 241, 234, .08);
  transition: background-color .2s, color .2s, opacity .2s;
}

.zoom-nav:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.zoom-nav[disabled] {
  opacity: .22;
  pointer-events: none;
}

.zoom-nav.prev { left: 16px; }
.zoom-nav.next { right: 16px; }

.zoom-foot {
  flex: 0 0 auto;
  padding: 10px 18px 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(244, 241, 234, .42);
}

@media (max-width: 900px) {
  .zoom-bar { flex-wrap: wrap; gap: 8px 10px; padding: 9px 12px; }
  /* 小屏一行放不下「标题 + 计数 + 四个按钮」，把标题折到第二行独占一条 */
  .zoom-cap { order: 3; flex: 1 0 100%; font-size: 12px; color: rgba(244, 241, 234, .72); }
  .zoom-idx { margin-right: auto; }
  .zoom-tools button { height: 32px; min-width: 32px; padding: 0 9px; }
  .zoom-img { max-width: calc(100% - 24px); max-height: calc(100% - 40px); }
  .zoom-nav { width: 40px; height: 76px; font-size: 22px; }
  .zoom-nav.prev { left: 6px; }
  .zoom-nav.next { right: 6px; }
  .zoom-foot { display: none; }
  .frame-zoom { opacity: 1; transform: none; right: 10px; bottom: 10px; width: 34px; height: 34px; }
}

/* ============================================================
   页面之间的切换幕布（由 deck.js 注入，纯 CSS transform）
   离开：幕布自下而上盖住 → 到站：接着往上退场，露出新页
   不依赖任何网络请求，file:// 下同样有效
   ============================================================ */
.pt {
  position: fixed;
  inset: 0;
  z-index: 300;                 /* 压在图片放大层（200）与抽屉（60）之上 */
  background: var(--ink, #151513);
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translateY(100%);  /* 默认藏在屏幕下沿外 */
  transition: transform .5s var(--ease);
  will-change: transform;
}

.pt.is-cover { transform: translateY(0); }
.pt.is-up    { transform: translateY(-101%); }

.pt-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .06em;
  color: #f7f4ed;
  opacity: 0;
  transition: opacity .26s var(--ease);
}

.pt-mark i {
  width: 24px;
  height: 5px;
  background: #fff200;
}

.pt.is-cover .pt-mark { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .pt { transition: none; }
}
