/* ==========================================================
   视觉作品集 · 样式表
   主题：深色 / 浅色双模式（右上角图标切换）
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #17171a;
  --text: #f2f2f2;
  --text-dim: #a0a0a6;
  --text-mute: #6b6b72;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .06);
  --stroke: rgba(255, 255, 255, .3);
  --nav-bg: rgba(10, 10, 11, .72);
  --accent: #f2f2f2;
  --card: #141416;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="light"] {
  --bg: #f3f1ec;
  --bg-2: #ffffff;
  --bg-3: #eae7e0;
  --text: #121212;
  --text-dim: #55554f;
  --text-mute: #8b8b83;
  --line: rgba(0, 0, 0, .14);
  --line-soft: rgba(0, 0, 0, .07);
  --stroke: rgba(0, 0, 0, .28);
  --nav-bg: rgba(243, 241, 236, .78);
  --accent: #121212;
  --card: #e9e6df;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }
html[data-theme="light"] ::selection { background: #111; color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-mute); border-radius: 9px; }

/* ---------- 加载动画 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: #08080a; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw;
  transition: opacity .7s ease, visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; align-items: flex-end; justify-content: space-between; }
.loader-name { font-size: 14px; letter-spacing: .18em; color: #8a8a90; }
.loader-num {
  font-size: clamp(48px, 9vw, 120px); font-weight: 700;
  line-height: .8; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.loader-bar { margin-top: 26px; height: 1px; background: rgba(255, 255, 255, .16); }
.loader-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .2s linear; }

/* ---------- 自定义光标 ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  transition: width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), background .3s ease, opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big {
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  background: rgba(255, 255, 255, .9);
  border-color: transparent;
}
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background .45s ease, color .45s ease,
              padding .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 15px clamp(20px, 5vw, 64px);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--text);
  border-bottom-color: var(--line-soft);
}

/* 移动端菜单打开时，导航文字跟随主题色，避免白字压在浅色背景上 */
.nav.menu-open { color: var(--text); }

.nav-logo {
  font-size: 15px; font-weight: 700; letter-spacing: .18em;
  white-space: nowrap;
}
.nav-logo span { opacity: .45; margin: 0 2px; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.nav-links a {
  font-size: 13px; letter-spacing: .04em;
  position: relative; padding: 4px 0;
  opacity: .82; transition: opacity .3s ease;
}
.nav-links a em { font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a i { font-style: normal; opacity: .35; margin: 0 3px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: currentColor;
  transition: width .45s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  opacity: .75; transition: opacity .3s, transform .5s var(--ease);
}
.theme-btn:hover { opacity: 1; transform: rotate(35deg); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .ic-sun { display: none; }
html[data-theme="light"] .theme-btn .ic-sun { display: block; }
html[data-theme="light"] .theme-btn .ic-moon { display: none; }

.nav-cta {
  font-size: 13px; letter-spacing: .06em;
  padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px;
  transition: background .35s ease, color .35s ease;
}
.nav.is-scrolled .nav-cta:hover { background: var(--text); color: var(--bg); }
.nav:not(.is-scrolled) .nav-cta:hover { background: #fff; color: #000; }

.burger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger.is-x span:first-child { transform: translateY(3.8px) rotate(45deg); }
.burger.is-x span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 0 10vw;
  clip-path: circle(0% at 92% 5%);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at 92% 5%); pointer-events: auto; }
.mobile-menu a {
  font-size: clamp(30px, 8vw, 46px); font-weight: 700;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: baseline; justify-content: space-between;
}
.mobile-menu a em { font-size: 12px; font-style: normal; letter-spacing: .2em; color: var(--text-mute); font-weight: 400; }

/* ---------- 首屏：整屏轮播 ---------- */
.panel-hero { padding: 0; overflow: hidden; }

.hero-stage { position: absolute; inset: 0; overflow: hidden; }

.hero-slides {
  display: flex; width: 100%; height: 100%;
  will-change: transform;
  transition: transform 1.05s cubic-bezier(.76, 0, .24, 1);
}

.hero-slide {
  position: relative; flex: 0 0 100%;
  width: 100%; height: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: -4%; z-index: 0; pointer-events: none;
  opacity: .45; transform: scale(1.03);
  transition: opacity 1.4s var(--ease), transform 8s linear;
  background-image:
    radial-gradient(85% 72% at 74% 40%, var(--grad1) 0%, transparent 64%),
    radial-gradient(70% 60% at 16% 92%, rgba(0, 0, 0, .6) 0%, transparent 72%);
  background-size: cover; background-position: center;
  filter: saturate(1.06);
}
/* 停留的这张缓慢放大，像电影镜头 */
.hero-slide.is-on .hero-bg { opacity: .92; transform: scale(1.07); }

.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    conic-gradient(from 210deg at 68% 46%,
      transparent 0deg, var(--accent) 28deg, transparent 62deg,
      transparent 300deg, var(--accent) 330deg, transparent 360deg);
  opacity: .14;
  mix-blend-mode: screen;
  filter: blur(48px);
}

.hero-inner {
  position: relative; z-index: 2;
  padding: 0 clamp(24px, 8vw, 140px);
  max-width: 1320px;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
}

.hero-kicker, .hero-title, .hero-desc, .hero-link {
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.hero-slide .hero-kicker { transition-delay: .1s; }
.hero-slide .hero-title { transition-delay: .2s; }
.hero-slide .hero-desc { transition-delay: .3s; }
.hero-slide .hero-link { transition-delay: .4s; }

/* 只有脚本接管后才做「离场隐藏」，否则没有 JS 时内容会全空 */
.is-flow .hero-slide:not(.is-on) .hero-kicker,
.is-flow .hero-slide:not(.is-on) .hero-title,
.is-flow .hero-slide:not(.is-on) .hero-desc,
.is-flow .hero-slide:not(.is-on) .hero-link {
  opacity: 0; transform: translateY(30px);
  transition-delay: 0s;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: clamp(18px, 3vh, 30px);
}
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .65; }

.hero-title {
  font-size: clamp(46px, 8.4vw, 126px);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.035em;
  margin-bottom: clamp(20px, 3.2vh, 32px);
}

/* 字数多的那几张（比如「及时发现 / 卡登录问题」）单独收一档字号，
   否则 126px × 5 个字会顶穿右边界 */
.hero-title--long {
  font-size: clamp(34px, 6vw, 92px);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.hero-desc {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 2.05;
  color: var(--text-dim);
  max-width: min(560px, 84vw);
  margin-bottom: clamp(26px, 4vh, 44px);
  font-weight: 300;
}

.hero-link {
  display: inline-flex; align-items: center; gap: 14px;
  align-self: flex-start;
  font-size: 14px; letter-spacing: .08em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}
.hero-link:hover { gap: 24px; border-color: var(--text); }
.hero-link b { font-weight: 400; }
/* 首屏第 1 张用的是 <button>，把浏览器默认的内边距和对齐清掉 */
button.hero-link { padding: 0 0 10px; text-align: left; }
/* hover 改动 gap 时别把入场动画的过渡也带跑 */
.hero-link { transition: opacity .95s var(--ease) .4s, transform .95s var(--ease) .4s, border-color .4s, gap .4s var(--ease); }

/* ---------- 首屏底部条：横向轮播指示 / 进度线 / 箭头 ---------- */
.hero-bar {
  --bar-x: clamp(24px, 8vw, 140px);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--bar-x) clamp(20px, 3.2vh, 34px);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-mute);
}
.hero-bar::before {
  content: ""; position: absolute; z-index: 0;
  left: var(--bar-x); right: var(--bar-x); bottom: calc(clamp(20px, 3.2vh, 34px) - 12px);
  height: 1px; background: var(--line-soft);
}
.hero-bar > * { position: relative; z-index: 2; }

.hero-fill {
  position: absolute; z-index: 1;
  left: var(--bar-x); bottom: calc(clamp(20px, 3.2vh, 34px) - 12px);
  width: calc(100% - var(--bar-x) * 2); height: 1px;
  background: var(--text); opacity: .55;
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* 横向轮播指示：01 — 02 — 03 — 04 — 05，当前这张的刻度会拉长、并浮出名字 */
.hero-dots { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); }
.hero-dots button {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); opacity: .62;
  transition: opacity .4s ease, color .4s ease;
}
.hero-dots button i {
  display: block; width: 16px; height: 1px;
  background: currentColor;
  transition: width .55s var(--ease);
}
.hero-dots button span { font-size: 10px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hero-dots button em {
  position: absolute; left: 0; bottom: calc(100% + 8px);
  font-style: normal; font-size: 10px; letter-spacing: .16em;
  color: var(--text); white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s ease, transform .45s var(--ease);
  pointer-events: none;
}
.hero-dots button.is-on { opacity: 1; color: var(--text); }
.hero-dots button.is-on i { width: 34px; }
.hero-dots button.is-on em { opacity: 1; transform: none; }
.hero-dots button:hover { opacity: .92; color: var(--text); }
.hero-dots button:hover em { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .3em;
}
.hero-scroll i {
  display: block; width: 1px; height: 14px;
  background: linear-gradient(180deg, currentColor, transparent);
  transform-origin: top;
  animation: hint 2.2s infinite;
}
@keyframes hint {
  0% { transform: scaleY(.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(.2); transform-origin: bottom; }
}

.hero-nav { display: flex; gap: 10px; }
.hero-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--stroke);
  display: grid; place-items: center;
  font-size: 17px; line-height: 1; color: var(--text-dim);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.hero-arrow:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- 通用区块 ---------- */
.works, .about, .contact { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }

.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 30px; margin-bottom: 46px;
}
.sec-title { display: flex; flex-direction: column; gap: 2px; }
.sec-cn {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700; letter-spacing: .02em; line-height: 1.1;
}
.sec-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 11vw, 150px);
  line-height: .92;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
  text-transform: uppercase;
  margin-top: 4px;
}
.sec-desc { font-size: 14px; letter-spacing: .06em; color: var(--text-mute); max-width: 30ch; line-height: 1.9; }

/* ---------- 作品筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text-dim);
  transition: background .35s ease, color .35s ease, border-color .35s;
}
.filters button em { font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.filters button:hover { border-color: var(--text-dim); color: var(--text); }
.filters button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters button.is-active em { opacity: .6; }

/* ---------- 作品网格 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
}

.work {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--card);
  transition: opacity .5s ease, transform .5s var(--ease);
}
.work.is-hidden { display: none; }

/* 带源码的项目，hover 时露出代码角标 */
.work[data-code]::before {
  content: "</>";
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .78);
  opacity: 0; transform: translateY(-5px);
  transition: opacity .4s ease, transform .4s var(--ease);
  pointer-events: none;
}
.work[data-code]:hover::before { opacity: 1; transform: translateY(0); }

.work-media {
  position: absolute; inset: 0;
  background-image: var(--img, none), var(--grad);
  background-size: cover, cover;
  background-position: center;
  transition: transform 1.1s var(--ease), filter .6s ease;
}
.work-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: saturate(.9) brightness(.8) contrast(1.04);
}
.work:hover .work-media { transform: scale(1.07); }

.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 6, 8, .93) 0%, rgba(6, 6, 8, .46) 40%, transparent 72%);
  opacity: .9; transition: opacity .5s ease;
  pointer-events: none;
}
.work:hover::after { opacity: 1; }

.work-info {
  position: absolute; left: 22px; right: 60px; bottom: 20px; z-index: 2;
  color: #fff;
}
.work-info h3 {
  font-size: clamp(17px, 1.5vw, 22px); font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 5px;
  transform: translateY(6px);
  transition: transform .55s var(--ease);
}
.work-info p { font-size: 11px; letter-spacing: .12em; color: rgba(255, 255, 255, .62); text-transform: uppercase; }
.work-info p span { margin: 0 4px; opacity: .5; }
.work:hover .work-info h3 { transform: translateY(0); }

.work-arrow {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff; font-size: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s var(--ease), background .3s;
}
.work:hover .work-arrow { opacity: 1; transform: translateY(0); background: #fff; color: #000; border-color: #fff; }

/* ---------- 自我评价 ---------- */
.statement { position: relative; }
.statement-text {
  margin: 0;
  max-width: 980px;
  font-size: clamp(19px, 2.1vw, 30px);
  line-height: 1.9;
  letter-spacing: .005em;
  font-weight: 500;
  color: var(--text-dim);
  text-wrap: pretty;
}
.statement-text em {
  font-style: normal;
  border-bottom: 2px solid var(--text-mute);
  padding-bottom: .04em;
}
.statement-text p + p {
  margin-top: .55em;
}

/* ---------- 关于 ---------- */
.about {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 6vw, 100px);
}
.about-left { align-self: start; }
.about-title {
  font-size: clamp(25px, 3.4vw, 48px);
  font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
  margin-bottom: 26px;
}
.about-lede { font-size: 14px; line-height: 2.1; color: var(--text-dim); max-width: 40ch; text-wrap: balance; }

.about-block { padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.about-block:first-child { padding-top: 0; }
.about-block h3 {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--text-mute); margin-bottom: 20px;
}
.about-block h3 em { font-style: normal; opacity: .55; margin-left: 4px; }

.tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.tags li {
  font-size: 13px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-dim);
  transition: background .3s, color .3s, border-color .3s;
}
.tags li:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.timeline { list-style: none; }
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.tl-year { font-size: 12px; color: var(--text-mute); letter-spacing: .06em; padding-top: 3px; }
.timeline b { font-size: 15px; font-weight: 600; display: block; margin-bottom: 5px; }
.timeline p { font-size: 13px; color: var(--text-dim); line-height: 1.8; text-wrap: balance; }
.about-now { font-size: 14px; line-height: 2; color: var(--text-dim); }

/* ---------- 联系 ---------- */
.contact { text-align: center; }
.contact-mail {
  display: inline-block;
  font-size: clamp(22px, 5.4vw, 76px);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.15; margin: 8px 0 22px;
  position: relative;
  word-break: break-all;
}
.contact-mail::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 0; height: 1px; background: currentColor;
  transition: width .7s var(--ease);
}
.contact-mail:hover::after { width: 100%; }
.contact-tip { font-size: 13px; color: var(--text-mute); margin-bottom: 44px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; }
.contact-links a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim); padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .35s, color .35s;
}
.contact-links a:hover { color: var(--text); border-color: var(--text); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 30px clamp(20px, 6vw, 110px) 0; overflow: hidden; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; letter-spacing: .12em; color: var(--text-mute);
  text-transform: uppercase;
}
.footer-word {
  margin-top: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 15vw, 200px);
  line-height: .82;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  transform: translateY(10%);
}

/* ---------- 作品详情弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.modal-panel {
  position: relative; z-index: 2;
  width: min(1040px, 100%); max-height: 88vh; min-height: min(600px, 84vh); overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  display: grid; grid-template-columns: 1.35fr 1fr;
  transform: translateY(22px) scale(.985);
  transition: transform .55s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }

.modal-media {
  position: relative;
  min-height: 460px;
  background-image: var(--img, none), var(--grad);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.modal-media.has-shot { background-image: none; background: #08080a; }
.modal-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(12px, 1.6vw, 24px);
  box-sizing: border-box;
  opacity: 0; transition: opacity .45s ease;
  pointer-events: none;
}
.modal-shot.is-on { pointer-events: auto; cursor: zoom-in; }
.modal-shot.is-on { opacity: 1; }

.shot-nav {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 2;
  display: none; align-items: center; gap: 10px;
  padding: 5px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.modal-media.has-multi .shot-nav { display: flex; }
.shot-nav button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; display: grid; place-items: center; font-size: 12px;
  background: rgba(255, 255, 255, .06);
  transition: background .3s, border-color .3s;
}
.shot-nav button:hover { background: #fff; color: #000; border-color: #fff; }
.shot-count {
  font-size: 11px; letter-spacing: .18em; color: rgba(255, 255, 255, .72);
  font-variant-numeric: tabular-nums;
}
.modal-body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.modal-cat { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.modal-title { font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; }
.modal-desc { font-size: 14px; line-height: 2; color: var(--text-dim); margin-bottom: 24px; }
.modal-foot { font-size: 12px; letter-spacing: .16em; color: var(--text-mute); padding-top: 18px; border-top: 1px solid var(--line-soft); }

.work-live {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 10px; letter-spacing: .12em; line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  background: rgba(8, 10, 14, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .45s ease, transform .45s var(--ease), background .3s, color .3s, border-color .3s;
}
.work:hover .work-live { opacity: 1; transform: translateY(0); }
.work-live:hover { background: rgba(255, 255, 255, .94); color: #0a0a0d; border-color: rgba(255, 255, 255, .94); }
.work-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #59d68b; box-shadow: 0 0 0 3px rgba(89, 214, 139, .16);
  transition: background .3s, box-shadow .3s;
}
.work-live:hover i { background: #0a0a0d; box-shadow: none; }
@media (hover: none) { .work-live { opacity: 1; transform: none; } }

.modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.modal-actions[hidden] { display: none; }

.modal-live, .modal-code-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; letter-spacing: .08em;
  color: var(--text);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.modal-live { background: var(--text); color: var(--bg); border-color: var(--text); }
.modal-live:hover { transform: translateY(-2px); }
.modal-live i { width: 5px; height: 5px; border-radius: 50%; background: #34b96b; }
.modal-code-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.modal-live span, .modal-code-btn span { font-size: 11px; opacity: .65; }
.modal-live[hidden], .modal-code-btn[hidden] { display: none; }

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff;
  display: grid; place-items: center; font-size: 13px;
  transition: background .3s, transform .4s var(--ease);
}
.modal-close:hover { background: #000; transform: rotate(90deg); }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; }
  .about-left { position: static; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-desc { max-width: 46ch; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-media { min-height: 220px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero-bar { --bar-x: 22px; padding: 0 var(--bar-x) 26px; gap: 14px; }
  .hero-dots { gap: 11px; }
  .hero-dots button em { display: none; }
  .hero-scroll { display: none; }
  .hero-arrow { width: 34px; height: 34px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-info { left: 16px; bottom: 16px; }
  .work-arrow { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- 无障碍 / 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .slide.is-active .slide-bg { transform: scale(1.02); }
}


/* ---------- 截图放大 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(4, 4, 6, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.lightbox-close {
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  display: grid; place-items: center; font-size: 13px;
  transition: background .3s, transform .4s var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.lightbox-hint {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center; font-size: 11px; letter-spacing: .2em;
  color: rgba(255, 255, 255, .38);
}

/* ---------- 代码查看器 ---------- */
:root {
  --code-bg: #0b0b0f;
  --code-side: #101015;
  --code-text: #b8b8c4;
  --code-dim: #4c4c58;
  --code-line: rgba(255, 255, 255, .055);
  --code-kw: #d9a4ff;
  --code-str: #a9dba0;
  --code-com: #6b7078;
  --code-num: #f2b075;
  --code-fn: #8fc2ff;
  --code-dec: #ff9f74;
}
html[data-theme="light"] {
  --code-bg: #fbfaf7;
  --code-side: #f2f0ea;
  --code-text: #26262b;
  --code-dim: #b6b3aa;
  --code-line: rgba(0, 0, 0, .065);
  --code-kw: #8b32a8;
  --code-str: #2c7439;
  --code-com: #9c9990;
  --code-num: #a2601c;
  --code-fn: #1f5da6;
  --code-dec: #b8431c;
}

.code-view {
  position: fixed; inset: 0; z-index: 320;
  display: grid; place-items: center;
  padding: clamp(10px, 2.4vw, 34px);
  background: rgba(4, 4, 6, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.code-view.is-open { opacity: 1; visibility: visible; }

.code-panel {
  width: min(1180px, 100%); height: min(86vh, 900px);
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  transform: translateY(18px) scale(.99);
  transition: transform .5s var(--ease);
}
.code-view.is-open .code-panel { transform: translateY(0) scale(1); }

.code-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 20px clamp(16px, 2.4vw, 30px) 16px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-side);
}
.code-kicker {
  display: block; font-size: 10px; letter-spacing: .26em;
  color: var(--text-mute); margin-bottom: 8px;
}
.code-head h4 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.code-head p { font-size: 11px; letter-spacing: .1em; color: var(--text-mute); margin-top: 5px; }
.code-head-r { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.code-head-r button {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
  font-size: 11px; letter-spacing: .1em; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.code-head-r button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
#codeClose { width: 34px; padding: 0; border-radius: 50%; font-size: 12px; }

.code-main { display: grid; grid-template-columns: 236px 1fr; min-height: 0; }

.code-side {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--code-line);
  background: var(--code-side);
}

/* 核心节选 / 完整代码 切换 */
.code-mode {
  display: flex; gap: 3px; flex: 0 0 auto;
  margin: 12px 10px 2px; padding: 3px;
  border: 1px solid var(--code-line); border-radius: 999px;
  background: rgba(127, 127, 140, .08);
}
.code-mode button {
  flex: 1; padding: 7px 0; border-radius: 999px; white-space: nowrap;
  font-size: 11px; letter-spacing: .06em; color: var(--text-mute);
  transition: background .25s, color .25s;
}
.code-mode button:hover { color: var(--text); }
.code-mode button.is-on { background: var(--text); color: var(--code-side); }

.code-tabs {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  background: transparent;
  overflow-y: auto; padding: 10px;
}
.code-tab {
  text-align: left; padding: 11px 13px; border-radius: 3px;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  transition: background .25s, border-color .25s;
}
.code-tab:hover { background: rgba(127, 127, 140, .1); }
.code-tab.is-on {
  background: rgba(127, 127, 140, .14);
  border-left-color: var(--text);
}
.code-tab b { display: block; font-size: 13px; font-weight: 600; color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.code-tab span { display: block; font-size: 10.5px; color: var(--text-mute); margin-top: 4px; letter-spacing: .04em; }

.code-scroll { position: relative; overflow: auto; min-width: 0; }

.code-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--code-bg); color: var(--text-mute);
  font-size: 11.5px; letter-spacing: .12em;
}
.code-loading[hidden] { display: none; }
.code-loading i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--code-line); border-top-color: var(--text);
  animation: code-spin .8s linear infinite;
}
@keyframes code-spin { to { transform: rotate(360deg); } }
.code-pre {
  margin: 0; padding: 18px 0 40px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px; line-height: 1.72;
  color: var(--code-text);
  tab-size: 4;
}
.code-line { display: flex; }
.code-line:hover { background: rgba(127, 127, 140, .07); }
.code-line .ln {
  flex: 0 0 56px; text-align: right; padding-right: 16px;
  color: var(--code-dim); user-select: none; font-size: 11.5px;
}
.code-line .lc { flex: 1; white-space: pre; padding-right: 26px; }

.code-pre i { font-style: normal; }
.t-com { color: var(--code-com); font-style: italic; }
.t-str { color: var(--code-str); }
.t-kw  { color: var(--code-kw); }
.t-num { color: var(--code-num); }
.t-fn  { color: var(--code-fn); }
.t-dec { color: var(--code-dec); }

.code-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px clamp(16px, 2.4vw, 30px);
  border-top: 1px solid var(--code-line);
  background: var(--code-side);
  font-size: 10.5px; letter-spacing: .08em; color: var(--text-mute);
}

@media (max-width: 860px) {
  .code-panel { height: 90vh; }
  .code-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .code-side { flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--code-line); }
  .code-mode { margin: 8px 0 8px 8px; flex: 0 0 auto; }
  .code-mode button { padding: 6px 12px; }
  .code-tabs { flex-direction: row; flex: 1; min-width: 0; padding: 8px; gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .code-tab { flex: 0 0 auto; border-left: none; border-bottom: 2px solid transparent; padding: 9px 12px; }
  .code-tab.is-on { border-left-color: transparent; border-bottom-color: var(--text); }
  .code-tab span { display: none; }
  .code-line .ln { flex: 0 0 40px; padding-right: 10px; }
  .code-foot span:first-child { display: none; }
  .code-head h4 { font-size: 16px; }
  .work-live { top: 12px; left: 12px; }
}

/* ==========================================================
   整屏面板系统 / 背景长条 / 页码  （第五轮新增）
   ========================================================== */

html { scroll-behavior: auto; }

/* ---------- 背景：一条超长渐变，随滚动平移 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg-strip {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background-image: linear-gradient(180deg,
    #06070c 0%, #081120 10%, #0a1929 20%, #0b2233 30%,
    #0a2029 40%, #081a24 50%, #0a1a2a 60%, #0b1524 70%,
    #091019 82%, #06080e 92%, #05060a 100%);
  background-size: 100% 100%;
  will-change: transform;
}
html[data-theme="light"] .bg-strip {
  background-image: linear-gradient(180deg,
    #f7f5ef 0%, #eef3f6 12%, #e5eef2 26%, #dfeaee 38%,
    #e8eef0 52%, #eff0ec 66%, #f4f3ed 80%, #f7f5ef 100%);
}

.bg-glow {
  position: absolute; inset: -12%;
  opacity: .5;
  filter: blur(46px);
  transition: opacity .9s ease;
  background: radial-gradient(56% 46% at 66% 36%, rgba(95, 168, 255, .34), transparent 70%);
}
html[data-theme="light"] .bg-glow { opacity: .3; }

.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(125% 95% at 50% 36%, transparent 42%, rgba(0, 0, 0, .58) 100%);
}
html[data-theme="light"] .bg-vignette {
  background: radial-gradient(125% 95% at 50% 36%, transparent 46%, rgba(96, 86, 64, .14) 100%);
}

/* ---------- 噪点 ---------- */
.grain {
  position: fixed; inset: 0; z-index: 88; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- 顶部进度 ---------- */
.page-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 96; pointer-events: none; }
.page-progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--text); opacity: .5;
}

/* ---------- 面板 ---------- */
.panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  height: 100vh; height: 100svh;
  padding: clamp(84px, 11vh, 130px) clamp(20px, 6vw, 110px) clamp(56px, 8vh, 96px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.panel-inner { width: 100%; max-width: 1440px; margin: 0 auto; }

/* 桌面上给右侧页码留出位置，避免压到卡片 */
@media (hover: hover) and (min-width: 901px) {
  .panel { padding-right: clamp(60px, 7vw, 120px); }
}

/* 非当前屏内容淡出 —— 只在脚本接管后生效，脚本挂了页面照常可读 */
.is-flow .panel-inner {
  transition: opacity 1s var(--ease), transform 1.15s var(--ease), filter 1s ease;
}
@media (hover: hover) {
  .is-flow .panel:not(.is-active) .panel-inner {
    opacity: .22; transform: translateY(34px) scale(.988); filter: blur(2px);
  }
}

/* 首屏内容兜底：脚本没接管时也照常显示（离场隐藏见上方 .is-flow .hero-slide 那段） */
.hero-kicker, .hero-title, .hero-desc, .hero-link { opacity: 1; transform: none; }

/* ---------- 右侧页码 ---------- */
.pager {
  position: fixed; right: clamp(12px, 1.2vw, 18px); top: 50%; transform: translateY(-50%);
  z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  transition: opacity .6s ease, transform .6s var(--ease);
}
/* 首屏有自己的横向轮播指示，就不要再叠一条竖排页码 */
html.is-hero .pager { opacity: 0; pointer-events: none; transform: translate(14px, -50%); }
.pager button {
  display: flex; align-items: center; gap: 9px;
  color: var(--text-dim); opacity: .45;
  transition: opacity .4s, color .4s;
}
.pager button em {
  font-style: normal; font-size: 10px; letter-spacing: .16em;
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .6s var(--ease), opacity .35s;
}
.pager button i { display: block; width: 18px; height: 1px; background: currentColor; transition: width .6s var(--ease); }
.pager button span { font-size: 10px; letter-spacing: .06em; font-variant-numeric: tabular-nums; min-width: 15px; text-align: right; }
.pager button:hover { opacity: .85; color: var(--text); }
.pager button.is-on { opacity: 1; color: var(--text); }
.pager button.is-on i { width: 32px; }
/* 文字只在鼠标移到页码上时露出，平时只留数字，避免压到内容 */
.pager:hover button.is-on em,
.pager button:hover em { max-width: 90px; opacity: 1; }

/* ---------- 项目屏：6 张卡填满一屏 ---------- */
.panel-works .panel-inner {
  display: flex; flex-direction: column;
  height: 100%; min-height: 0;
}

.works-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.works-title { display: flex; align-items: baseline; gap: clamp(10px, 1.2vw, 18px); }
.works-title span {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.works-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal; font-size: clamp(22px, 2.8vw, 40px);
  line-height: .9; letter-spacing: .01em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px var(--stroke);
}
.panel-works .filters { margin-bottom: 0; }

/* 网格吃掉标题以下的全部高度，卡片高度跟着视口走，任何屏都不溢出 */
.panel-works .work-grid {
  flex: 1; min-height: 0;
  grid-auto-rows: 1fr;
}
.panel-works .work { aspect-ratio: auto; height: 100%; max-height: none; }
.panel-works .work-info h3 { font-size: clamp(15px, 1.28vw, 19px); }
.panel-works .work-info { left: 18px; right: 52px; bottom: 16px; }
.panel-works .work-arrow { width: 32px; height: 32px; right: 14px; bottom: 14px; }

/* 筛选后只剩 1~3 张时，别让它们被拉成一整屏高 */
.panel-works .work-grid.is-few {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: clamp(14px, 1.6vw, 26px);
}
.panel-works .work-grid.is-few .work {
  flex: 0 0 calc((100% - 2 * clamp(14px, 1.6vw, 26px)) / 3);
  height: auto; aspect-ratio: 16 / 11;
}

.panel.is-empty { display: none; }

/* ---------- 关于屏（含自我评价） ---------- */
.panel-about .about-inner {
  display: grid; grid-template-columns: .96fr 1.04fr;
  gap: clamp(30px, 5vw, 84px); align-items: start;
}
.panel-about .about-block { border-bottom: 0; padding: 0; }
.panel-about .tags { gap: 10px; }

/* 自我评价：挂在「您好，我是……」下面，颜色压暗、字号收小 */
.about-statement {
  margin-top: clamp(20px, 3.4vh, 34px);
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid var(--line-soft);
  max-width: 60ch;
}
.about-statement-label {
  display: block;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 14px;
}
.about-statement .statement-text {
  max-width: none;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 2;
  font-weight: 400;
  color: var(--text-dim);
  text-wrap: pretty;
}
.about-statement .statement-text p + p { margin-top: .7em; }
.about-statement .statement-text em {
  color: var(--text-dim);
  border-bottom: 1px solid var(--text-mute);
  padding-bottom: 1px;
}

.panel-about-2 .about-more-inner {
  display: grid; grid-template-columns: 1.18fr .82fr;
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.panel-about-2 .about-block { padding: 0 0 26px; border-bottom: 0; }
.panel-about-2 .timeline li { padding: 10px 0; }
.panel-about-2 .timeline b { font-size: 14px; }
.panel-about-2 .timeline p { font-size: 12.5px; }

/* ---------- 联系屏 ---------- */
.panel-contact { justify-content: space-between; padding-bottom: 0; text-align: center; }
.panel-contact .contact-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.panel-contact .contact-mail { font-size: clamp(24px, 5.2vw, 74px); }
.panel-contact .contact-tip { margin-bottom: clamp(26px, 4vh, 44px); }
.panel-contact .footer { width: 100%; padding: 22px 0 0; border-top: 1px solid var(--line-soft); }
.panel-contact .footer-word { font-size: clamp(46px, 12.4vw, 170px); margin-top: 16px; transform: translateY(8%); }

/* 浅色下首屏光晕收一收 */
html[data-theme="light"] .hero-slide.is-on .hero-bg { opacity: .32; }
html[data-theme="light"] .hero-bg::after { mix-blend-mode: soft-light; opacity: .3; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  /* 只收窄间距，仍然并排：一屏放得下，竖排反而会顶出屏幕 */
  .panel-about .about-inner,
  .panel-about-2 .about-more-inner { gap: 28px; }
  .about-right { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .pager { display: none; }
  .panel { height: auto; min-height: 100svh; padding: 96px 20px 56px; }
  .panel-hero { height: 100svh; padding: 0; }
  .hero-inner { padding: 0 22px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 62px); }
  .hero-title--long { font-size: clamp(28px, 9vw, 46px); }
  .hero-desc br, .about-lede br { display: none; }

  /* 手机上项目屏回到自然高度，卡片靠比例撑开 */
  .panel-works .panel-inner { height: auto; display: block; }
  .panel-works .work-grid,
  .panel-works .work-grid.is-few {
    display: grid; grid-template-columns: 1fr; grid-auto-rows: auto;
    justify-content: initial; align-content: initial;
    gap: 16px; margin-top: 20px;
  }
  .panel-works .work-grid .work,
  .panel-works .work-grid.is-few .work {
    flex: none; height: auto; aspect-ratio: 16 / 11;
  }
  .works-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .works-title em { font-size: clamp(26px, 8vw, 40px); }

  /* 关于 / 履历两屏在手机上竖排 */
  .panel-about .about-inner,
  .panel-about-2 .about-more-inner {
    grid-template-columns: 1fr; align-items: start; gap: 26px;
  }
  .about-statement { margin-top: 22px; }

  .panel-contact { min-height: 100svh; padding-bottom: 0; }
  .panel-contact .footer-word { font-size: clamp(44px, 16vw, 108px); }
  .is-flow .panel:not(.is-active) .panel-inner { opacity: 1; transform: none; filter: none; }
}

/* 触屏交给浏览器原生吸附 */
@media (hover: none) and (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
}

@media (prefers-reduced-motion: reduce) {
  .is-flow .panel:not(.is-active) .panel-inner { opacity: 1; transform: none; filter: none; }
  .bg-strip { will-change: auto; }
  .hero-slide.is-on .hero-bg { transform: scale(1); }
}

/* ---------- 关于 / 履历两屏的排版微调 ---------- */
.panel-about .about-inner { align-items: start; }
.panel-about .about-left { padding-top: 2px; }
.panel-about .about-title { font-size: clamp(30px, 3.9vw, 58px); }
.panel-about .about-lede { font-size: 15px; }
.panel-about .tags li { font-size: 14px; padding: 10px 18px; }

.about-right { border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 3vw, 52px); }
/* 右栏延展到和左栏等高，分隔线才不会只有半截 */
.panel-about .about-right {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
}

.skill-group + .skill-group { margin-top: 22px; }
.skill-group b {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 12px;
}

.panel-about-2 .about-more-inner { align-items: start; }
.panel-about-2 .timeline li { padding: 13px 0; }
.panel-about-2 .timeline b { font-size: 15.5px; }
.panel-about-2 .timeline p { font-size: 13px; line-height: 1.9; }
.panel-about-2 .about-block h3 { margin-bottom: 22px; }
.panel-about-2 .about-now { font-size: 14.5px; }

@media (max-width: 1120px) {
  .about-right { border-left: 0; padding-left: 0; }
}

/* 浅色主题下，未滚动的导航要变深色，否则白字压在浅背景上看不见 */
html[data-theme="light"] .nav:not(.is-scrolled) { color: var(--text); }
html[data-theme="light"] .nav:not(.is-scrolled) .nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ==========================================================
   案例弹窗：18 区武林大会（首屏第 1 张的「看看我做过什么」）
   ========================================================== */
.case-view {
  position: fixed; inset: 0; z-index: 330;
  display: grid; place-items: center;
  padding: clamp(10px, 2.4vw, 34px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.case-view.is-open { opacity: 1; visibility: visible; }

.case-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 6, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-theme="light"] .case-backdrop { background: rgba(236, 233, 226, .88); }

.case-panel {
  position: relative;
  width: min(1080px, 100%); height: min(92vh, 920px);
  display: grid; grid-template-rows: auto auto 1fr auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transform: translateY(20px) scale(.99);
  transition: transform .5s var(--ease);
}
.case-view.is-open .case-panel { transform: translateY(0) scale(1); }
/* 简介只有四句话，面板高度跟着内容收；聊天记录页仍用满高 + 内部滚动 */
.case-view.is-brief .case-panel { height: auto; max-height: min(92vh, 920px); }

/* 顶部标题 */
.case-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px;
  padding: clamp(16px, 1.9vw, 22px) clamp(18px, 2.6vw, 32px) clamp(12px, 1.5vw, 16px);
  border-bottom: 1px solid var(--line-soft);
}
.case-kicker {
  display: block; font-size: 10px; letter-spacing: .26em;
  color: var(--text-mute); margin-bottom: 10px;
}
.case-title {
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.25;
}
.case-sub {
  margin-top: 9px; font-size: 12.5px; line-height: 1.75;
  color: var(--text-dim);
}
.case-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 12px;
  display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s;
}
.case-close:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* 标签切换 */
.case-tabs {
  display: flex; gap: 28px;
  padding: 0 clamp(18px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}
.case-tabs button {
  position: relative; padding: 13px 0;
  font-size: 12.5px; letter-spacing: .06em; color: var(--text-mute);
  transition: color .25s;
}
.case-tabs button em {
  font-style: normal; font-size: 10px; letter-spacing: .14em;
  margin-left: 6px; opacity: .65;
}
.case-tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.case-tabs button:hover { color: var(--text-dim); }
.case-tabs button.is-on { color: var(--text); }
.case-tabs button.is-on::after { transform: scaleX(1); }

/* 滚动区 */
.case-body { overflow-y: auto; overscroll-behavior: contain; }
.case-body::-webkit-scrollbar { width: 8px; }
.case-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.case-body::-webkit-scrollbar-track { background: transparent; }

.case-pane { display: none; padding: clamp(16px, 2vw, 24px) clamp(18px, 2.6vw, 32px) clamp(16px, 1.8vw, 20px); }
.case-pane.is-on { display: block; }

/* 数字 */
.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 4px;
  overflow: hidden; margin-bottom: clamp(16px, 2vw, 22px);
}
.case-stat { background: var(--bg-2); padding: 14px 15px; }
.case-stat b {
  display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.case-stat span {
  display: block; margin-top: 9px;
  font-size: 11px; letter-spacing: .04em; color: var(--text-mute);
}

/* 简介：四句话，按 发现 → 定位 → 判断 → 修复 顺序读下来 */
.case-points { list-style: none; }
.case-points li {
  display: grid; grid-template-columns: 26px 1fr;
  gap: clamp(12px, 2vw, 22px);
  align-items: baseline;
  padding: clamp(10px, 1.5vw, 15px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.case-points li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-points i {
  font-style: normal; font-size: 10px; letter-spacing: .12em;
  color: var(--text-mute); font-variant-numeric: tabular-nums;
}
.case-points p {
  font-size: 13.4px; line-height: 1.95; color: var(--text-dim);
}

/* 底部按钮：固定在面板底部，内容再长也不用滚下来找 */
.case-foot {
  display: flex; gap: 10px;
  padding: clamp(12px, 1.6vw, 16px) clamp(18px, 2.6vw, 32px);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.case-view.is-log .case-foot { display: none; }
.case-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .06em;
  background: var(--text); color: var(--bg);
  transition: gap .35s var(--ease), opacity .25s, border-color .25s, color .25s;
}
.case-btn:hover { gap: 16px; }
.case-btn--ghost {
  background: none; color: var(--text-dim);
  border: 1px solid var(--line);
}
.case-btn--ghost:hover { color: var(--text); border-color: var(--text); }

/* 原始聊天记录 */
.case-log-note {
  font-size: 11.5px; line-height: 1.9; color: var(--text-mute);
  padding-bottom: 16px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.case-log { list-style: none; }
.case-log li {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px;
  padding: 9px 12px; border-radius: 4px;
}
.case-log li.is-me { background: var(--bg-3); }
.case-log .t {
  font-size: 10.5px; letter-spacing: .06em; color: var(--text-mute);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.case-log .m { min-width: 0; }
.case-log .w {
  display: block; font-size: 10.5px; letter-spacing: .06em;
  color: var(--text-dim); margin-bottom: 4px;
}
.case-log li.is-me .w { color: var(--text-dim); }
.case-log .c {
  font-size: 13px; line-height: 1.85; color: var(--text-dim);
  overflow-wrap: anywhere;
}
.case-log li.is-me .c { color: var(--text); }
.case-log .c span { display: block; }
.case-log .c span + span { margin-top: 3px; }
.case-log .data {
  display: inline-block;
  border: 1px dashed var(--line); border-radius: 4px;
  padding: 7px 12px;
  font-size: 12px; letter-spacing: .02em; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* 响应式 */
/* 笔记本 1366×768 这类矮屏：整体收紧一档，尽量一屏放下 */
@media (max-height: 830px) and (min-width: 901px) {
  .case-head { padding-top: 14px; padding-bottom: 10px; }
  .case-kicker { margin-bottom: 7px; }
  .case-title { font-size: 23px; }
  .case-sub { margin-top: 6px; font-size: 12px; line-height: 1.6; }
  .case-stat { padding: 11px 13px; }
  .case-stat b { font-size: 26px; }
  .case-stat span { margin-top: 6px; }
  .case-stats { margin-bottom: 16px; }
  .case-points li { padding: 8px 0; }
  .case-points p { font-size: 12.6px; line-height: 1.85; }
  .case-pane { padding-top: 18px; padding-bottom: 14px; }
}

@media (max-width: 900px) {
  .case-panel { height: min(92vh, 900px); }
  .case-stats { grid-template-columns: repeat(3, 1fr); }
  .case-points li { grid-template-columns: 20px 1fr; gap: 10px; }
  .case-log li { grid-template-columns: 1fr; gap: 6px; padding: 10px 8px; }
  .case-log .t { padding-top: 0; }
  .case-foot .case-btn { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  .case-close { width: 30px; height: 30px; }
  .case-title { font-size: 18px; }
  .case-stat { padding: 13px 11px; }
  .case-stat span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-panel { transition: none; transform: none; }
  .case-tabs button::after { transition: none; }
}
