/* ============================================================
   关琳 Ellen · 个人站 · 设计系统（暗色 / 黑主调）
   复刻 perryw 设计语言：黑底 / 浅字 / 高对比衬线大标题 +
   Grotesque 正文 + 等宽眉标 + 发丝线 + 超大字号 + mac 窗口图框
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --ink: #f2f2f2;
  --muted: rgba(242, 242, 242, .60);
  --faint: rgba(242, 242, 242, .38);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --topbar-h: 60px;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1180px;

  --f-display: "Gloock", "Noto Serif SC", Georgia, serif;
  --f-sans: "Albert Sans", "Inter", "Noto Sans SC", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  height: 100%;
  overflow: hidden;
}

/* ============================================================
   整站背景：缓慢移动的白色光（暗底之上的柔光氛围层）
   两层大尺寸柔光：一层纯白、一层冷白，反向缓慢漂移；
   边缘加深暗角，保证白字在任意板块都清晰可读。
   ============================================================ */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
body::before {
  background:
    radial-gradient(30% 30% at 32% 34%, rgba(218, 237, 255, .08), rgba(255, 255, 255, 0) 72%),
    radial-gradient(22% 22% at 74% 24%, rgba(200, 230, 255, .05), rgba(255, 255, 255, 0) 74%);
  animation: auroraDriftA 32s ease-in-out infinite;
}
body::after {
  background:
    radial-gradient(36% 36% at 66% 72%, rgba(160, 200, 255, .10), rgba(255, 255, 255, 0) 74%),
    radial-gradient(20% 20% at 24% 80%, rgba(185, 220, 255, .06), rgba(255, 255, 255, 0) 76%);
  animation: auroraDriftB 44s ease-in-out infinite;
}
/* 边缘暗角，避免白光过曝、维持对比度 */
body > .bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 42%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
}

@keyframes auroraDriftA {
  0%   { transform: translate3d(-7%, -4%, 0) scale(1); }
  50%  { transform: translate3d(8%, 5%, 0) scale(1.12); }
  100% { transform: translate3d(-7%, -4%, 0) scale(1); }
}
@keyframes auroraDriftB {
  0%   { transform: translate3d(6%, 7%, 0) scale(1.05); }
  50%  { transform: translate3d(-7%, -5%, 0) scale(1.15); }
  100% { transform: translate3d(6%, 7%, 0) scale(1.05); }
}

/* 尊重系统的「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: baseline; gap: 8px; }
.topbar__name { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: .5px; }
.topbar__role { font-family: var(--f-mono); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

/* 扁平滑块 */
.seg {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px; background: var(--surface);
}
.seg__knob {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px); background: var(--ink); border-radius: 999px;
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
  z-index: 1;
}
.seg.is-work .seg__knob { transform: translateX(100%); }
.seg__btn {
  position: relative; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  border: none; background: none; color: var(--muted);
  padding: 9px 20px; cursor: pointer; white-space: nowrap;
  transition: color .35s;
}
.seg__btn.is-active { color: var(--bg); }

.langswitch {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  padding: 7px 14px; cursor: pointer; border-radius: 2px; transition: background .25s, color .25s;
}
.langswitch:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero 主画面（在 INFO 面板内顶部，风景照右置） ---------- */
.hero.snap-section {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(80px, 9vh, 120px) 0 clamp(48px, 8vh, 100px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -20%; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .45;
  animation: gridDrift 36s linear infinite;
}
/* Hero 原来的柔光不要了，只保留网格点作为微纹理 */
@keyframes gridDrift { from { transform: translate(0, 0); } to { transform: translate(30px, 30px); } }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__copy { max-width: 640px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 88px); line-height: .95; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero__name-en { font-style: italic; margin-left: .2em; }
.hero__slogan {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35; letter-spacing: -.5px; max-width: 24ch; margin-bottom: 14px;
}
.hero__trust { font-family: var(--f-mono); font-size: 12px; color: #5AC8FA; letter-spacing: .5px; text-shadow: 0 0 8px rgba(90,200,250,.5); }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Hero 右侧风景照（无边框 · 擦除蒙版柔化） */
.hero__photo { margin: 0; }
.hero__photo-img { aspect-ratio: 4 / 5; overflow: hidden; }
.hero__photo-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: radial-gradient(125% 100% at 50% 40%, #000 48%, rgba(0, 0, 0, 0) 92%);
          mask-image: radial-gradient(125% 100% at 50% 40%, #000 48%, rgba(0, 0, 0, 0) 92%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero__photo-cap { font-family: var(--f-mono); font-size: 11px; color: var(--faint); letter-spacing: .5px; margin-top: 14px; text-align: right; }

/* ---------- 通用排版 ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
  background: linear-gradient(90deg, #5AC8FA, #BF5AF2 55%, #FF375F);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 10px rgba(150, 175, 255, .5));
}
.block { padding: clamp(48px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.block__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -1px; margin-bottom: 28px;
}
.prose { color: var(--muted); font-size: 16px; max-width: none; }
.prose p { max-width: 60ch; }
.prose p + p { margin-top: 16px; }
.prose p:first-of-type { color: var(--muted); font-weight: 400; font-size: 16px; line-height: 1.7; max-width: 60ch; margin-bottom: 6px; }
/* 关于我：文字与图片左右两栏、交替排布 */
.srow { margin: 22px 0; }
.srow--text-img, .srow--img-text {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px); align-items: center;
}
.srow--img-text .srow__img { order: -1; }
.srow__text { min-width: 0; }
.srow__text p + p { margin-top: 16px; }
.srow__text p:first-of-type { max-width: none; }
.srow__img { margin: 0; width: 100%; }
.srow__img .win__body { aspect-ratio: 4 / 5; }

/* mac 窗口式图片框（perryw 标志） */
.win { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.win__bar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.win__dot { width: 12px; height: 12px; border-radius: 50%; background: #d6d6d6; }
.win__dot.r { background: #ff5f56; } .win__dot.y { background: #ffbd2e; } .win__dot.g { background: #27c93f; }
.win__body img { width: 100%; height: auto; display: block; }
.win__cap { font-family: var(--f-mono); font-size: 11px; color: var(--faint); padding: 12px 16px; border-top: 1px solid var(--line); letter-spacing: .5px; }

/* 照片穿插（段落间，mac 窗口框内真实照片） */
.photo-slot .win__body { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.photo-slot .win__body img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 关于我：大 statement + 编辑式图文 ---------- */
.story-statement em {
  font-style: italic;
  background: linear-gradient(90deg, #9bb8ff 0%, #f2f2f2 55%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(120, 170, 255, .28);
}
.story-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin: clamp(28px, 5vw, 56px) 0;
}
.story-editorial__side {
  display: flex; flex-direction: column; gap: clamp(18px, 3vw, 32px);
  padding-top: clamp(48px, 10vw, 140px);
}
.story-editorial__note {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted); line-height: 1.6;
  max-width: 34ch;
}
.story-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 24px 60px rgba(0, 0, 0, .5);
}
.story-photo .win__bar { display: none; }
.story-photo .win__body { aspect-ratio: 4 / 5; overflow: hidden; background: transparent; }
.story-photo .win__body img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-photo--small .win__body { aspect-ratio: 4 / 3; }
.story-photo .win__cap {
  border-top: none;
  background: rgba(255, 255, 255, .04);
  text-align: center;
}
.story-body { margin-top: clamp(24px, 4vw, 48px); max-width: 68ch; }
.story__flow .story-body p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.story__flow .story-body p + p { margin-top: 16px; }
.story-sub {
  position: relative;
  margin: 32px 0 14px;
  padding-left: 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #eaf4ff;
  text-shadow: 0 0 10px rgba(160, 200, 255, .4);
}
.story-sub:first-child { margin-top: 0; }
.story-sub::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7fd4ff, #bf9bff);
  box-shadow: 0 0 8px rgba(127, 212, 255, .55);
}

/* ---------- 工作履历 · 横版时间轴 ---------- */
.timeline {
  position: relative;
  display: flex;
  gap: clamp(28px, 4vw, 48px);
  padding: 70px 0 50px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.timeline::-webkit-scrollbar { height: 4px; }
.timeline::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }

/* 水平时间轴线 */
.timeline::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: var(--track-width, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 2%, var(--line-strong) 98%, transparent);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline li {
  position: relative;
  flex: 0 0 clamp(280px, 34vw, 380px);
  scroll-snap-align: center;
  padding: 0 0 0 30px;
  text-align: left;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}
.timeline li::before {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong);
  transform: translate(-50%, -50%);
}
.timeline .x-co {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.5px; line-height: 1.1;
  color: rgba(242, 242, 242, .3);
  text-shadow: 0 0 4px rgba(150, 200, 255, .12);
  transition: color .18s linear, text-shadow .18s linear;
  will-change: color, text-shadow;
  margin-bottom: 12px;
}
.timeline .x-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .5px; margin-bottom: 14px; text-transform: uppercase;
  background: linear-gradient(90deg, #FFF9E0, #FFF0B3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 249, 224, .35));
}
.timeline .x-desc { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: none; }

/* ---------- 技能条 ---------- */
.skillbars li { padding: 14px 0; }
.skillbars .sk-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.skillbars .sk-name { font-family: var(--f-mono); letter-spacing: .5px; }
.skillbars .sk-val { color: #30D158; font-family: var(--f-mono); text-shadow: 0 0 8px rgba(48,209,88,.5); }
.skillbars .sk-track { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.skillbars .sk-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--ink); width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.skill-devices { font-family: var(--f-mono); font-size: 11px; color: #30D158; margin-top: 20px; letter-spacing: .5px; text-shadow: 0 0 8px rgba(48,209,88,.5); }

/* ---------- 荣誉 · 奖杯方框卡片 ---------- */
.honorlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.honorlist li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
  min-height: 180px;
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 24px rgba(0, 0, 0, .25);
  color: #fff;
  border-radius: 14px;
  transition-delay: var(--reveal-delay, 0ms);
}
.honorlist .h-dot {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFF9E0;
  box-shadow: 0 0 10px 2px rgba(255, 249, 224, .55);
  flex-shrink: 0;
}
.honorlist .h-name {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #fff;
}
.honorlist .h-issuer {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .5px;
}

/* ---------- 联系 ---------- */
.contactlist li { padding: 14px 0; border-top: 1px solid var(--line); }
.contactlist li:first-child { border-top: none; }
.contactlist .c-label { font-family: var(--f-mono); font-size: 11px; color: #FF9F0A; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 3px; text-shadow: 0 0 8px rgba(255,159,10,.5); }
.contactlist .c-val { font-size: 16px; }
.contact-download { margin-top: 28px; }

/* ---------- 按钮 ---------- */
.btn {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 24px; border-radius: 2px; cursor: pointer; transition: all .25s; display: inline-block; border: 1px solid transparent;
}
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: #d8d8d8; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- 双面板舞台 + 切换动效 ---------- */
.stage { overflow: hidden; border-top: 1px solid var(--line); height: calc(100% - var(--topbar-h)); }
.track { display: flex; width: 200%; height: 100%; transition: transform .6s cubic-bezier(.76, 0, .24, 1); }
.panel { width: 50%; min-width: 0; height: 100%; }
.panel__inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--pad); overflow-y: auto; }
.panel--info .panel__inner {
  scroll-snap-type: y mandatory;
  scroll-padding-top: calc(var(--topbar-h) + 20px);
}
.snap-section {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}
/* 作品面板自由滚动，不吸附 */
.panel--work .panel__inner { scroll-snap-type: none; }

/* 切换动效：未激活面板淡出 + 轻微下沉；激活面板清晰上移（去掉 blur，避免切换时滤镜重绘卡顿） */
.panel { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; will-change: opacity, transform; }
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.stage.is-work .track { transform: translateX(-50%); }

/* ---------- 作品：筛选条 ---------- */
.works-head { padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.filterbar .fgroup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filterbar .fgroup + .fgroup { margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.filterbar .fglabel { font-family: var(--f-mono); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; }
.filterbar button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .5px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filterbar button:hover { border-color: var(--line-strong); color: var(--ink); }
.filterbar button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- 作品网格 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.work-card {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .4s;
  display: flex; flex-direction: column;
  margin-top: 0;
}
.work-card:hover { transform: translateY(-5px); }
.work-card .win__bar { padding: 10px 14px; background: var(--surface-2); }
.work-card .win__dot { width: 10px; height: 10px; }
.work-card .win__cap { padding: 14px 16px 16px; }
.work-card.is-hidden { display: none; }
.work-card .thumb {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden;
}
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .thumb .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #161616, #161616 10px, #1c1c1c 10px, #1c1c1c 20px);
  font-family: var(--f-mono); font-size: 11px; color: var(--faint); letter-spacing: 1px;
}
.work-card .thumb .play.link-out { font-size: 15px; }
.work-card .thumb .play {
  position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.work-card .thumb .badge-img {
  position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 999px;
  background: rgba(10, 10, 10, .72); color: var(--ink); font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .5px; backdrop-filter: blur(4px); border: 1px solid var(--line);
}
.work-card .meta { padding: 16px 16px 20px; }
.work-card .w-cat { font-family: var(--f-mono); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }
.work-card .w-title { font-family: var(--f-display); font-weight: 400; font-size: 18px; margin: 7px 0 9px; line-height: 1.25; letter-spacing: -.3px; }
.work-card .w-role { font-size: 12px; color: var(--muted); }
.work-card .w-result { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-top: 5px; }

/* ---------- 灯箱（简洁卡片 · 非 mac 窗口） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 8, 8, .95);
  display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 40px);
}
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__inner { width: min(95vw, 1400px); display: flex; flex-direction: column; justify-content: center; align-items: center; }

.lb-card {
  width: 100%; height: min(92vh, 95vw); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.lb-card__media {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 2.5vw, 24px); gap: 12px; background: var(--bg);
  width: 100%;
}
.lb-card__media img, .lb-card__media video {
  max-width: 100%; max-height: 100%;
  border-radius: 6px; object-fit: contain; background: #000;
}
.lb-card__media img { width: auto; height: auto; }
.lb-card__media video { width: 100%; height: 100%; }
.lb-card__media .lb-video {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.bili-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; max-height: min(76vh, 80vw); }
.lb-card__media .lb-gallery--slider {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lb-card__media .lb-slides {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lb-card__media .lb-slide {
  position: absolute; inset: 0;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  margin: auto;
  object-fit: contain;
  border-radius: 6px; background: #000;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  transform: scale(.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.lb-card__media .lb-slide.active {
  opacity: 1; pointer-events: auto;
  transform: scale(1);
  z-index: 1;
}
.lb-card__media .lb-nav {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: var(--ink);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.lb-card__media .lb-nav:hover { background: rgba(255, 255, 255, .25); transform: translateY(-50%) scale(1.05); }
.lb-card__media .lb-prev { left: 10px; }
.lb-card__media .lb-next { right: 10px; }
.lb-card__media .lb-dots {
  position: absolute; bottom: 10px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, .35);
  border-radius: 20px;
}
.lb-card__media .lb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-card__media .lb-dot.active { background: var(--ink); transform: scale(1.25); }
@media (max-width: 560px) {
  .lb-card__media .lb-nav { width: 32px; height: 32px; font-size: 20px; }
  .lb-card__media .lb-prev { left: 6px; }
  .lb-card__media .lb-next { right: 6px; }
}
.lb-card__media .lb-stage {
  aspect-ratio: 16 / 10; width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-family: var(--f-mono); letter-spacing: 1px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 14px, #141414 14px, #141414 28px);
}
.lb-card__cap { padding: 16px 18px; border-top: 1px solid var(--line); }
.lb-card__cap .lb-title { font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.lb-card__cap .lb-sub { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-top: 6px; letter-spacing: .5px; }
.lightbox__close {
  position: absolute; top: 22px; right: 28px; z-index: 2;
  background: none; border: none; color: var(--ink);
  font-size: 34px; line-height: 1; cursor: pointer; opacity: .7; transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- 荣誉 / 技能 左右并排 ---------- */
.cv-combo .cv-grid--hs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.cv-combo .cv-cell { min-width: 0; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  :root { --topbar-h: 56px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px var(--pad); gap: 10px; }
  .seg { order: 3; width: 100%; }
  .seg__btn { flex: 1; padding: 10px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .hero__photo-img { aspect-ratio: 16 / 11; }
  .prose p, .prose p:first-of-type { max-width: 100%; }
  .srow--text-img, .srow--img-text { grid-template-columns: 1fr; gap: 16px; }
  .srow--img-text .srow__img { order: 0; }
  .srow__img .win__body { aspect-ratio: 4 / 3; }
  .timeline { padding: 50px 0 40px; gap: 20px; }
  .timeline li { flex: 0 0 78vw; padding-left: 24px; min-height: 180px; }
  .timeline li::before { width: 10px; height: 10px; }
  .timeline .x-co { font-size: 26px; }
  .timeline .x-desc { font-size: 14px; }
  .work-card .w-title { font-size: 16px; }
  .cv-combo .cv-grid--hs { grid-template-columns: 1fr; gap: 44px; }
  .snap-section { min-height: auto; }
  .story-editorial { grid-template-columns: 1fr; gap: 20px; }
  .story-editorial__side { padding-top: 0; }
  .story-photo--small .win__body { aspect-ratio: 16 / 10; }
  .honorlist { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .honorlist li { min-height: 150px; padding: 18px 12px; }
  .honorlist .h-name { font-size: 13px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .panel { opacity: 1; filter: none; transform: none; }
  .hero__bg { display: none; }
}
