/* ============================================================
   徐国梁 · Creative Visual Designer — 作品集
   设计系统：黑 #030303 / 纸白 #efefeb / 电光青蓝 #5ec8d5
   标题字体：创客贴金刚体
   ============================================================ */

@font-face {
  font-family: 'ChuangKeJinGang';
  src: url('../assets/fonts/chuangke-jingang.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #030303;
  --paper: #efefeb;
  --muted: #9c9c98;
  --line: rgba(255, 255, 255, .13);
  --acid: #5ec8d5;
  --acid-2: #3a9ba8;
  --acid-deep: #0c4a55;
  --font-display: 'ChuangKeJinGang', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-ui: 'Microsoft YaHei', 'PingFang SC', 'Arial Narrow', Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

body.entered { cursor: auto; }

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; background: none; border: none; }
::selection { background: var(--acid); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

/* 自定义光标 */
.cursor {
  position: fixed; z-index: 9999; top: 0; left: 0;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  pointer-events: none; display: grid; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor i {
  font-style: normal; font-size: 9px; letter-spacing: 1px; font-weight: 700;
  color: #fff; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .25s var(--ease);
}
.cursor.on { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(255,255,255,.92); border-color: transparent; mix-blend-mode: normal; }
.cursor.on i { opacity: 1; transform: scale(1); color: #000; }
@media (pointer: coarse) { .cursor { display: none; } body { cursor: auto; } }

/* 点击波纹 */
.click-ripple {
  position: fixed; z-index: 9998; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%; pointer-events: none;
  animation: rippleOut .7s var(--ease) forwards;
}

/* 星空 */
.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .8; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  display: grid; place-items: center; overflow: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.leaving { opacity: 0; }
.loader.done { visibility: hidden; pointer-events: none; }
.loader-orb { position: absolute; inset: 0; margin: auto; width: 420px; height: 420px; max-width: 80vw; max-height: 80vw; }
.loader-center {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.loader-mark {
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); letter-spacing: .12em;
  animation: loaderBlink 1.6s ease-in-out infinite;
}
.loader-bar { width: 200px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--acid); transform: scaleX(0); transform-origin: left; }
.loader-count { font-size: 12px; letter-spacing: .25em; color: var(--muted); font-variant-numeric: tabular-nums; }
.loader-enter {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-ui); letter-spacing: .3em; color: var(--muted);
  opacity: .45; transition: color .4s, opacity .4s; padding: 12px 22px;
}
.loader-enter em { font-style: normal; font-size: 10px; letter-spacing: .5em; }
.loader-enter.ready { color: var(--paper); opacity: 1; }
.loader-enter.ready:hover { color: var(--acid); }
.loader-caption {
  position: absolute; top: 9%; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .4em; color: var(--muted); opacity: .6; white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 34px;
  transform: translateY(-110%); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), background .4s;
}
body.entered .header { transform: translateY(0); opacity: 1; }
body.scrolling-down .header { transform: translateY(-110%); opacity: 0; }
.logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); }
.logo span { font-size: 18px; letter-spacing: .22em; }
.logo i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .2em; }
.desktop-nav { display: flex; gap: 34px; }
.desktop-nav a {
  font-size: 13px; letter-spacing: .18em; color: var(--paper); position: relative; padding: 4px 0;
}
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--acid);
  transition: width .35s var(--ease);
}
.desktop-nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 16px; }
.music-toggle { font-size: 18px; color: var(--paper); width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; transition: color .3s, border-color .3s; }
.music-toggle:hover { color: var(--acid); border-color: var(--acid); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--paper); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 8900; background: rgba(3,3,3,.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(30px, 7vw, 46px); letter-spacing: .1em; }
.mobile-menu a:hover { color: var(--acid); }

/* ============================================================
   通用 section
   ============================================================ */
main { position: relative; z-index: 1; }
.section-head { padding: 0 6vw; margin-bottom: 40px; }
.section-tag {
  display: inline-block; font-size: 10px; letter-spacing: .4em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); font-weight: 400; letter-spacing: .04em; }
.reel-en { color: var(--muted); letter-spacing: .3em; font-size: 12px; margin-top: 8px; }

/* reveal 滚动进场 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.hero-kicker {
  position: absolute; top: 92px; left: 6vw; right: 6vw; z-index: 5;
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: .42em; color: var(--muted); text-transform: uppercase;
}
.hero-collage {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform: translate(var(--video-x, 0), var(--video-y, 0));
}
.hero-video-plane { position: absolute; inset: 0; overflow: hidden; transform: scale(var(--video-scale, 1)); }
.hero-video-plane video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(94,200,213,.22), transparent 60%);
  mix-blend-mode: screen; pointer-events: none;
}
.hero-ink-canvas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-ink {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at var(--ink-x, 50%) var(--ink-y, 50%), rgba(0,0,0,0), rgba(0,0,0,.85) 70%);
}
.scan-grid {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,3,3,.55) 0%, transparent 30%, transparent 65%, rgba(3,3,3,.9) 100%);
}

.hero-title {
  position: relative; z-index: 6; text-align: center;
  font-family: var(--font-display); font-weight: 400; line-height: .9;
  display: flex; flex-direction: column; align-items: center; gap: .04em;
}
.hero-line { display: block; opacity: 0; transform: translateY(48px); filter: blur(12px); }
body.entered .hero-line { animation: heroLineEnter 1.1s var(--ease) forwards; }
body.entered .hero-take { animation-delay: .25s; }
body.entered .hero-creative { animation-delay: .4s; }
body.entered .hero-result { animation-delay: .58s; }
.hero-take { font-size: clamp(34px, 4vw, 60px); letter-spacing: .5em; color: var(--paper); }
.hero-creative { position: relative; font-size: clamp(72px, 15vw, 210px); letter-spacing: .02em; color: var(--paper); }
.hero-creative i { font-style: italic; color: var(--paper); }
.hero-creative b {
  position: absolute; inset: 0; font-style: italic; color: transparent;
  -webkit-text-stroke: 1px var(--acid); z-index: -1; transform: translate(6px, -4px);
}
.hero-result { font-size: clamp(34px, 5vw, 76px); letter-spacing: .1em; display: flex; gap: .35em; align-items: baseline; }
.hero-result em { font-style: normal; color: var(--muted); }
.hero-result strong { font-weight: 400; color: var(--acid); }

.role-ticker {
  position: absolute; bottom: 74px; left: 0; right: 0; z-index: 6; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0;
  display: flex; white-space: nowrap;
}
.role-ticker div {
  flex-shrink: 0; min-width: 100%; font-size: 11px; letter-spacing: .35em; color: var(--muted);
  animation: ticker 22s linear infinite;
}
.socials { position: absolute; right: 6vw; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 16px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; transition: color .3s, border-color .3s, background .3s;
}
.socials a:hover { color: #000; background: var(--paper); border-color: var(--paper); }
.now-playing {
  position: absolute; bottom: 40px; left: 6vw; z-index: 6;
  font-size: 9px; letter-spacing: .35em; color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.now-playing::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); animation: ringPulse 1.8s ease-out infinite; }
.scroll-cue {
  position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .42em; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--acid), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 50%; background: var(--paper); animation: scanDown 2s var(--ease) infinite; }

/* ============================================================
   ABOUT — 顶部小头像横排 + 下方三列铺满 + 技能图 + 时间轴
   ============================================================ */
.about { position: relative; padding: 120px 6vw 80px; }
.about-kicker {
  overflow: hidden; white-space: nowrap; font-size: clamp(30px, 4vw, 56px);
  font-family: var(--font-display); color: rgba(255,255,255,.06); letter-spacing: .2em;
  position: absolute; top: 40px; left: 0; right: 0; pointer-events: none;
}

/* 头像居中缩小 + 姓名 / 联系方式放下方 */
.about-profile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 24px 0 40px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.about-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 1px solid #333;
  box-shadow: 0 0 0 1px rgba(94,200,213,.35), 0 0 30px rgba(94,200,213,.25);
  margin-bottom: 8px;
}
.about-name { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 38px); font-weight: 400; line-height: 1.1; }
.about-contacts { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.about-contacts li { display: flex; gap: 8px; font-size: 13px; }
.about-contacts span { color: var(--muted); }
.about-contacts b { font-weight: 400; letter-spacing: .04em; }

/* =========================================================
   经历 · 优势（核心优势 + 实习与项目经历合并到一个容器）
   统一字号 14px / 行高 1.9 / 字间距 .02em，视觉规范一致
   ========================================================= */
.about-experience {
  margin: 56px auto 0;
  max-width: 920px; width: 100%;
  padding: 36px 44px 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-experience-head {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.about-experience-eyebrow {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .24em;
  color: var(--acid);
}
.about-experience-title {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: .2em;
  color: var(--paper);
  margin: 0; font-weight: 400;
}
.exp-group-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .22em;
  color: var(--acid);
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 1px solid #2a2a2a;
  line-height: 1;
}
.exp-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 28px 0 18px;
  padding-top: 22px;
  border-top: 1px dashed #1f1f1f;
}
.exp-divider span {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .22em;
  color: var(--acid);
  text-transform: uppercase;
  padding: 0 14px;
}

/* 通用条目 —— 核心优势和实习都用同一套，视觉/字号统一 */
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-li {
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0 18px 18px;
  border-left: 1px solid #2a2a2a;
  position: relative;
  margin-bottom: 14px;
}
.exp-li:last-child { margin-bottom: 0; }
.exp-li::before {
  content: '';
  position: absolute; left: -4px; top: 22px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid);
}
.exp-num {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: .06em;
  color: var(--acid);
  padding-top: 2px;
  white-space: nowrap;
  width: max-content;
}
.exp-num-date {
  font-size: 11px; letter-spacing: .14em;
  white-space: nowrap;
  width: max-content;
}
.exp-body { min-width: 0; }
.exp-body p {
  margin: 0;
  font-size: 14px; line-height: 1.9; letter-spacing: .02em;
  color: #d0d0cb;
}
.exp-body .hl { color: #efefeb; font-weight: 600; }
.exp-body h5 {
  font-size: 15px; font-weight: 600; line-height: 1.45;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
}
.exp-body h5 .exp-co { color: #efefeb; font-weight: 600; letter-spacing: .01em; }
.exp-body h5 .exp-org {
  color: var(--muted); font-weight: 400;
  font-size: 12.5px; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.exp-body h5 .exp-role {
  font-size: 10px; color: var(--acid); letter-spacing: .14em;
  padding: 3px 8px;
  border: 1px solid rgba(94,200,213,.35);
  border-radius: 4px; background: rgba(94,200,213,.06);
  white-space: nowrap;
  justify-self: end;
}

/* 技能工具卡：独立成块，居中自适应 */
.about-skills-only {
  margin: 56px auto 0; max-width: 720px; width: 100%;
  display: flex; justify-content: center;
}
.about-skills-card {
  position: relative; width: 100%;
  background: linear-gradient(180deg, #0a0a0a 0%, #070707 100%);
  border: 1px solid #1d1d1d; border-radius: 10px;
  padding: 20px 28px 22px;
  box-shadow: 0 8px 36px rgba(0,0,0,.45);
}
.about-skills-card::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94,200,213,.55), transparent);
}
.about-skills-card-head {
  display: flex; align-items: baseline; justify-content: center; gap: 12px; width: 100%;
  margin-bottom: 8px; padding-bottom: 12px;
  border-bottom: 1px dashed #1f1f1f;
}
.about-skills-card-tag { font-family: var(--font-display); font-size: 12px; letter-spacing: .22em; color: var(--acid); }
.about-skills-card-sub { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.about-skills { display: block; margin: 0 auto; max-width: 100%; width: auto; height: auto; opacity: .96; }
.about-skills-card-meta {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 10.5px; letter-spacing: .04em; color: var(--muted); margin-top: 8px;
}
.about-skills-card-meta i { flex: 0 0 auto; width: 3px; height: 3px; border-radius: 50%; background: var(--acid); opacity: .6; }

/* 个人下方教育背景：极简一行标注 */
.about-edu {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 0; padding-top: 14px; border-top: 1px dashed #1f1f1f;
  font-size: 11px; color: var(--muted); letter-spacing: .04em;
}
.about-edu span { display: inline-flex; align-items: baseline; gap: 6px; }
.about-edu b { color: #d4d4cf; font-weight: 600; letter-spacing: .04em; }
.about-edu i { width: 3px; height: 3px; border-radius: 50%; background: var(--acid); opacity: .55; flex-shrink: 0; }

/* 旧的 timeline 结构已合并到 .about-experience，这里不再单独保留 */

/* ============================================================
   BRANDS
   ============================================================ */
.brands { padding: 40px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-tag { display: block; text-align: center; font-size: 10px; letter-spacing: .4em; color: var(--muted); margin-bottom: 18px; }
.brands-marquee { overflow: hidden; white-space: nowrap; }
.brands-marquee div { display: inline-block; animation: ticker 24s linear infinite; }
.brands-marquee b { font-family: var(--font-display); font-size: clamp(24px, 3vw, 42px); font-weight: 400; letter-spacing: .1em; margin: 0 12px; }
.brands-marquee i { font-style: normal; color: var(--acid); margin: 0 10px; }

/* ============================================================
   OTHER PROJECTS (循环滚动)
   ============================================================ */
.other-projects { padding: 110px 0 40px; }
.archive-loop { overflow: hidden; position: relative; padding: 18px 0 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent); }
.archive-track { display: flex; gap: 22px; width: max-content; animation: ticker 38s linear infinite; }
.archive-track:hover { animation-play-state: paused; }
.archive-set { display: flex; gap: 22px; flex-shrink: 0; }
.archive-item { flex-shrink: 0; width: clamp(280px, 30vw, 460px); overflow: hidden; border: 1px solid #1d1d1d; }
.archive-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s; filter: grayscale(.4); }
.archive-item:hover img { transform: scale(1.06); filter: grayscale(0); }

/* ============================================================
   WORKS — 3D 设备展示
   ============================================================ */
.works { position: relative; padding: 100px 6vw 60px; }
@media (min-width: 901px) {
  .works { min-height: calc(100vh + 3900px); padding: 132px 4vw 120px; }
}
/* WORKS 底部柔和淡出，避免设备外发光戛然而止 */
.works::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 320px;
  background: linear-gradient(180deg, transparent 0%, var(--ink) 78%); pointer-events: none; z-index: 1;
}
.works-head { max-width: 900px; margin-bottom: 40px; /* 补偿 .works 的 4vw 左 padding，让标题与 .section-head 一致起点（6vw） */ padding-left: 2vw; }
.works-head h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); font-weight: 400; letter-spacing: .04em; line-height: 1; margin: 0; }
.works-head p { color: var(--muted); font-size: 13px; max-width: 60ch; margin-top: 16px; letter-spacing: .04em; }

.project-stage {
  position: sticky; top: 9vh;
  height: 82vh; max-height: 850px; min-height: 620px;
  width: min(1440px, 92vw);
  margin: 0 auto;
}

.orbit-scene { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 42% 50%; overflow: hidden; }

.work-smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.work-haze {
  position: absolute; inset: -10%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(94,200,213,.14), transparent 55%);
  transform: translate(var(--haze-x, 0), var(--haze-y, 0)); transition: transform .3s;
}

.orbit-rings {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d; pointer-events: none;
}
.orbit-rings i {
  position: absolute; left: 50%; top: 50%; border: 1px solid rgba(168,85,247,.22); border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
}
.orbit-rings i:nth-child(1) { width: 620px; height: 620px; }
.orbit-rings i:nth-child(2) { width: 780px; height: 780px; border-color: rgba(94,200,213,.12); }
.orbit-rings i:nth-child(3) { width: 940px; height: 940px; border-color: rgba(94,200,213,.07); }

/* 3D 设备主体 — 用 drop-shadow 让外发光跟随图像轮廓（不走 box-shadow 矩形） */
.project-device {
  position: absolute; left: 50%; top: 50%;
  width: min(72vh, 38vw); max-width: 560px; aspect-ratio: 1792 / 2400; z-index: 12;
  background: transparent; overflow: visible; cursor: grab;
  filter: drop-shadow(0 0 22px rgba(94,200,213,.42))
          drop-shadow(0 0 70px rgba(94,200,213,.25))
          drop-shadow(0 0 140px rgba(12,74,85,.30));
  transform: translate3d(-50%, -50%, var(--scroll-z, 0px))
             rotateY(calc(var(--scroll-ry, 0deg) + var(--device-ry, -4deg)))
             rotateX(calc(var(--scroll-rx, 0deg) + var(--device-rx, 0deg)))
             rotateZ(var(--scroll-rz, 0deg));
  transition: filter .35s, transform .8s var(--ease);
  will-change: transform;
}
.project-device:hover { filter: drop-shadow(0 0 30px rgba(94,200,213,.65)) drop-shadow(0 0 90px rgba(94,200,213,.4)) drop-shadow(0 0 170px rgba(12,74,85,.5)); }
.project-device:active { cursor: grabbing; }
.project-device.switching { animation: deviceSwapOut .55s var(--ease-io) forwards; }
.project-device.entering { animation: deviceSwapIn .7s var(--ease-io) forwards; }

/* 屏幕透明，让透明 PNG 的边缘直接透出页面底色，不再出现黑框 */
.device-screen {
  position: absolute; inset: 0; overflow: visible; background: transparent; z-index: 3;
}
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.cover-ghost { opacity: 0; }
.cover-ghost.ghost-cyan { mix-blend-mode: screen; filter: hue-rotate(150deg); }
.cover-ghost.ghost-magenta { mix-blend-mode: screen; filter: hue-rotate(-60deg); }
/* 切换时只做淡出淡入，去掉 glitch 切片（旋转时不再有 BUG 感） */
.device-screen.switching .cover-ghost { opacity: 0; transition: opacity .25s; }
.glitch-slices { position: absolute; inset: 0; z-index: 5; display: none; pointer-events: none; }
.glitch-slices i {
  position: absolute; left: 0; width: 100%; height: 8.333%; background-size: cover;
  opacity: 0; mix-blend-mode: screen;
}
/* 默认隐藏 glitch 切片，彻底消除切换 BUG */
.device-screen.switching .glitch-slices { display: none; }
.device-screen.switching .glitch-slices i { animation: none; }
.screen-shine {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,.14), transparent 45%);
}
.scanline {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: .14;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.12) 3px 5px);
}

/* 项目信息卡 */
.project-info {
  position: absolute; right: clamp(24px, 5vw, 90px); top: 50%; z-index: 14;
  width: min(380px, 30vw); min-height: 440px; max-height: calc(100vh - 120px); overflow: auto;
  border: 1px solid #303030; border-radius: 12px;
  background: linear-gradient(145deg, rgba(35,35,35,.88), rgba(8,8,8,.92));
  padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  transform: translateY(-50%) translate(var(--info-x, 0), var(--info-y, 0)) rotateY(var(--info-ry, 0)) rotateX(var(--info-rx, 0));
}
.project-info.switching { animation: infoSwapOut .55s var(--ease-io) forwards; }
.project-info.entering { animation: infoSwapIn .7s var(--ease-io) forwards; }
.device-code { display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .25em; color: var(--muted); }
.device-code b { font-weight: 400; color: var(--acid); }
.device-code small { font-style: normal; text-align: right; line-height: 1.5; }
.project-index { font-family: var(--font-display); font-size: 60px; color: rgba(255,255,255,.1); line-height: 1; display: block; }
.device-project-copy h3 { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; margin: 8px 0 14px; }
.device-project-copy p { font-size: 13px; color: #b5b5b0; }
.device-meta { display: flex; justify-content: space-between; align-items: center; margin: 26px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.device-meta i { font-style: normal; }
.device-meta i + i::before { content: ' / '; }
.project-actions { display: flex; gap: 14px; }
.project-actions button {
  flex: 1; padding: 14px; font-size: 13px; letter-spacing: .1em; border: 1px solid #333; border-radius: 8px;
  transition: color .3s, border-color .3s, background .3s;
}
.project-actions #viewDetails { background: var(--acid); border-color: var(--acid); color: #fff; }
.project-actions #viewDetails:hover { background: transparent; color: var(--acid); }
.project-actions #nextProject:hover { border-color: var(--acid); color: var(--acid); }

/* 浮动卡片（已移除 — 改为干净视图） */

/* 项目导航弧（桌面端 JS 注入） */
.project-nav {
  position: absolute; top: 0; left: clamp(8px, 2vw, 36px);
  width: 0; height: 100%; z-index: 16; pointer-events: none;
}
.project-nav:before {
  content: ''; position: absolute; left: -32px; top: -2%; height: 104%; width: 268px;
  border-right: 1px solid rgba(255,255,255,.3); border-radius: 0 100% 100% 0/0 50% 50% 0; opacity: .4;
  pointer-events: none;
}
.project-nav button {
  position: absolute; left: 0; top: 0; width: 232px; height: 178px;
  display: grid; grid-template-columns: 28px 168px 18px; grid-template-rows: 146px auto;
  gap: 0 10px; align-items: center; padding: 6px 0;
  background: transparent; border: 0; border-radius: 0;
  opacity: var(--rail-opacity, .25); transition: opacity .3s; will-change: transform;
  pointer-events: auto;
}
.project-nav button.active { opacity: 1; }
.project-nav button span { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 22px; font-family: var(--font-display); font-size: 14px; color: #fff; font-weight: 800; letter-spacing: .04em; }
.project-nav button img { grid-column: 2; grid-row: 1; width: 100%; height: 146px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(94,200,213,.45)) drop-shadow(0 0 32px rgba(94,200,213,.2)); transition: filter .35s var(--ease); }
.project-nav button:hover img, .project-nav button.active img { filter: drop-shadow(0 0 24px rgba(94,200,213,.85)) drop-shadow(0 0 56px rgba(94,200,213,.5)); }
.project-nav button b { grid-column: 2; grid-row: 2; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: inherit; padding-top: 6px; line-height: 1.2; text-align: center; }
.project-nav button i { grid-column: 3; grid-row: 1; font-style: normal; color: #fff; font-size: 13px; opacity: .9; }

/* ============================================================
   REEL
   ============================================================ */
.reel { padding: 110px 6vw 80px; }

/* works 区域底部：下滑查看视频作品 指示 */
.works-down-cue {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .42em; color: var(--muted);
  pointer-events: none; z-index: 14;
}
.works-down-cue span { animation: cueFlicker 2.4s ease-in-out infinite; }
.works-down-cue .cue-arrow {
  width: 1px; height: 56px; background: linear-gradient(var(--acid), transparent); position: relative; overflow: hidden;
}
.works-down-cue .cue-arrow::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 60%;
  background: var(--paper); animation: scanDown 2s var(--ease) infinite;
}
.works-down-cue::before {
  content: '↓'; position: absolute; top: 76px; left: 50%; transform: translateX(-50%);
  font-size: 16px; color: var(--acid); opacity: .8; animation: arrowBounce 1.8s var(--ease) infinite;
}
@keyframes cueFlicker { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes arrowBounce { 0%,100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 8px); opacity: 1; } }
.reel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reel-card {
  position: relative; border: 1px solid #333; background: #080808; overflow: hidden;
  aspect-ratio: 16/9; border-radius: 10px;
}
.reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.reel-info { position: absolute; left: 24px; bottom: 22px; z-index: 2; }
.reel-info h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.reel-info span { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.reel-play {
  position: absolute; right: 22px; bottom: 22px; z-index: 2; padding: 10px 16px;
  font-size: 11px; letter-spacing: .14em; border: 1px solid var(--line); border-radius: 30px;
  transition: background .3s, color .3s, border-color .3s;
}
.reel-play:hover { background: var(--paper); color: #000; border-color: var(--paper); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 130px 6vw 150px; text-align: center; border-top: 1px solid var(--line); }
.contact-lead { color: var(--muted); font-size: 15px; max-width: 60ch; margin: 0 auto 40px; }
.contact-title { font-family: var(--font-display); font-size: clamp(46px, 7vw, 100px); font-weight: 400; line-height: 1; }
.contact-en { color: var(--muted); letter-spacing: .4em; font-size: 11px; margin: 18px 0 50px; }
.contact-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.contact-links a {
  padding: 16px 34px; border: 1px solid #333; border-radius: 40px; font-size: 14px; letter-spacing: .08em;
  transition: color .3s, border-color .3s, background .3s;
}
.contact-links a:hover { background: var(--acid); border-color: var(--acid); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 40px 6vw; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.footer-mark { font-family: var(--font-display); font-size: 26px; letter-spacing: .2em; }
.footer-meta { display: flex; gap: 26px; font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.footer-meta a:hover { color: var(--acid); }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 9500; background: rgba(3,3,3,.96);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto; padding: 80px 6vw 60px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-close {
  position: fixed; top: 24px; right: 30px; z-index: 9600;
  width: 44px; height: 44px; border: 1px solid #333; border-radius: 50%;
  font-size: 26px; line-height: 1; color: var(--paper); transition: color .3s, border-color .3s, transform .3s;
}
.modal-close:hover { color: var(--acid); border-color: var(--acid); transform: rotate(90deg); }

.project-modal .modal-head { max-width: 900px; margin: 0 auto 40px; display: flex; gap: 30px; align-items: flex-start; }
.modal-index { font-family: var(--font-display); font-size: 80px; color: rgba(255,255,255,.12); line-height: .9; }
.modal-head h2 { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 60px); font-weight: 400; }
.modal-head p { color: var(--muted); margin: 12px 0 16px; max-width: 60ch; }
.modal-meta { display: flex; gap: 20px; font-size: 11px; letter-spacing: .2em; color: var(--acid); }
.modal-plates { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.modal-plates img { width: 100%; border: 1px solid #222; border-radius: 6px; }

.video-modal { display: grid; place-items: center; }
.video-modal video { width: min(1200px, 92vw); max-height: 82vh; background: #000; border-radius: 8px; }
.video-fallback { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.video-fallback:hover { color: var(--acid); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes rotate360 { to { transform: rotate(1turn); } }
@keyframes loaderBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes rippleOut { to { transform: scale(8); opacity: 0; } }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(94,200,213,.6); } 100% { box-shadow: 0 0 0 16px rgba(94,200,213,0); } }
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes scanDown { 0% { top: -100%; } 100% { top: 100%; } }
@keyframes heroLineEnter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes glitchFlash {
  0% { transform: translateX(0); filter: none; }
  25% { transform: translateX(-6px); filter: hue-rotate(40deg); }
  50% { transform: translateX(5px); filter: hue-rotate(-40deg); }
  75% { transform: translateX(-3px); filter: invert(.2); }
  100% { transform: translateX(0); filter: none; }
}
@keyframes glitchSlice {
  0% { opacity: 0; transform: translateX(0); }
  30% { opacity: .7; transform: translateX(-10px); }
  60% { opacity: .5; transform: translateX(8px); }
  100% { opacity: 0; transform: translateX(0); }
}
@keyframes deviceSwapOut { to { transform: translate3d(-50%,-50%,var(--scroll-z,0px)) rotateY(calc(var(--scroll-ry,0deg) + var(--device-ry,-4deg) + 18deg)) rotateX(calc(var(--scroll-rx,0deg) + var(--device-rx,0deg))) rotateZ(var(--scroll-rz,0deg)) scale(.96); opacity: .2; } }
@keyframes deviceSwapIn { from { transform: translate3d(-50%,-50%,var(--scroll-z,0px)) rotateY(calc(var(--scroll-ry,0deg) + var(--device-ry,-4deg) - 18deg)) rotateX(calc(var(--scroll-rx,0deg) + var(--device-rx,0deg))) rotateZ(var(--scroll-rz,0deg)) scale(.96); opacity: .2; } to { transform: translate3d(-50%,-50%,var(--scroll-z,0px)) rotateY(calc(var(--scroll-ry,0deg) + var(--device-ry,-4deg))) rotateX(calc(var(--scroll-rx,0deg) + var(--device-rx,0deg))) rotateZ(var(--scroll-rz,0deg)); opacity: 1; } }
@keyframes infoSwapOut { to { transform: translateY(-50%) translateX(40px); opacity: .15; } }
@keyframes infoSwapIn { from { transform: translateY(-50%) translateX(-40px); opacity: .15; } to { transform: translateY(-50%) translate(0,0); opacity: 1; } }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-kicker { top: 84px; }
  .hero-kicker span { font-size: 9px; }
  .hero-title { transform: scale(.92); transform-origin: center 38%; }
  .hero-take { font-size: clamp(18px, 6vw, 32px); letter-spacing: .3em; }
  .hero-creative { font-size: clamp(44px, 13vw, 90px); }
  .hero-creative b { transform: translate(3px, -2px); }
  .hero-result { font-size: clamp(18px, 5vw, 32px); letter-spacing: .04em; gap: .25em; }
  .hero-collage { transform: scale(.7); transform-origin: center 40%; }
  .role-ticker { bottom: 56px; }
  .role-ticker div { font-size: 10px; letter-spacing: .25em; }
  .music-toggle { display: none; }
  .loader-caption { font-size: 8px; letter-spacing: .25em; padding: 0 12px; max-width: calc(100vw - 24px); white-space: normal; text-align: center; line-height: 1.5; }
  .scroll-cue { display: none; }
  .now-playing { left: 12px; right: 12px; bottom: 16px; padding: 10px 14px; }
  .now-playing .np-meta { font-size: 9px; letter-spacing: .25em; }
  .socials { right: 4vw; bottom: 90px; flex-direction: row; gap: 14px; }
  .socials a { font-size: 9px; padding: 4px 8px; }
  .about-experience { padding: 28px 18px 32px; max-width: 100%; }
  .about-experience-head { margin-bottom: 22px; }
  .about-experience-title { font-size: 16px; }
  .about-experience-eyebrow { font-size: 10px; }
  .exp-group-tag { font-size: 11px; margin-bottom: 14px; }
  .exp-divider { margin: 22px 0 14px; padding-top: 18px; }
  .exp-divider span { font-size: 11px; letter-spacing: .18em; }
  .exp-li { grid-template-columns: minmax(80px, max-content) minmax(0, 1fr); gap: 18px; padding: 14px 0 14px 16px; margin-bottom: 12px; }
  .exp-num { font-size: 13px; }
  .exp-num-date { font-size: 10px; letter-spacing: .1em; }
  .exp-body p { font-size: 13px; line-height: 1.85; }
  .exp-body h5 { font-size: 13px; column-gap: 10px; }
  .exp-body h5 .exp-org { font-size: 11.5px; }
  .exp-body .exp-role { font-size: 9.5px; padding: 2px 6px; }
  .about-skills-only { max-width: 100%; padding: 0 4px; }
  .about-skills-card { padding: 14px 16px 16px; }
  .about-skills-card-head { gap: 8px; }
  .about-skills-card-tag { font-size: 11px; }
  .about-skills-card-sub { font-size: 9px; }
  .about-skills-card-meta { font-size: 9.5px; gap: 6px; }
  .about-profile { flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 28px; }
  .about-avatar { width: 84px; height: 84px; }
  .about-edu { font-size: 10px; gap: 8px; }
  .job-list { grid-template-columns: 1fr; gap: 24px; }
  .about-intro { position: static; }
  .edu-row { flex-direction: column; gap: 18px; }
  .works { min-height: 0; padding: 80px 5vw 80px; }
  .project-stage { position: relative; top: 0; height: auto; width: 100%; }
  .orbit-scene { position: static; height: auto; perspective: none; display: flex; flex-direction: column; align-items: center; gap: 30px; overflow: visible; }
  .project-device { position: relative; left: auto; top: auto; width: min(400px, 86%); transform: none; margin: 0 auto; }
  .project-info { position: relative; right: auto; top: auto; width: 100%; max-width: 520px; transform: none; min-height: auto; }
  .project-nav, .floating-card, .orbit-rings { display: none; }
  .reel-grid { grid-template-columns: 1fr; }
  .reel-card { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .archive-item { width: clamp(220px, 60vw, 320px); }
  .brands-marquee { font-size: 9px; letter-spacing: .3em; }
}

/* ============================================================
   减少动态
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero-line, .reveal { opacity: 1; transform: none; filter: none; }
  .archive-track, .brands-marquee div, .role-ticker div { animation: none; }
}
