/* ============ 基础变量 ============ */
:root {
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .09);
  --hover: rgba(0, 0, 0, .035);
  --glass: rgba(251, 251, 253, .72);
  --accent: #0071e3;
  --ok: #30d158;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0c0c0e;
  --surface: #151517;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, .12);
  --hover: rgba(255, 255, 255, .06);
  --glass: rgba(12, 12, 14, .72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s var(--ease-soft), color .6s var(--ease-soft);
}

body.lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

::selection { background: var(--accent); color: #fff; }

/* ============ 开场 ============ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__name {
  font-size: clamp(28px, 5vw, 56px); font-weight: 600; letter-spacing: .04em;
  animation: loaderIn 1.1s var(--ease) both;
}
@keyframes loaderIn { from { opacity: 0; letter-spacing: .3em; filter: blur(10px); } to { opacity: 1; letter-spacing: .04em; filter: none; } }

/* ============ 顶部进度 / 光晕 / 光标 ============ */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transform-origin: left; transition: width .12s linear; }

.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(420px circle at calc(var(--mx, 50%) + 12%) calc(var(--my, 30%) + 18%), rgba(255, 180, 120, .12), transparent 60%);
  transition: opacity .8s;
}

/* 自定义光标：平时不画任何东西，保留系统箭头；
   移到可点击处出现一圈细环；移到可拖动 / 可查看处变成一枚毛玻璃小胶囊 */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 0; height: 0; will-change: transform; }
.cursor__ring {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ink) 26%, transparent);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  opacity: 0; transform: scale(.35);
  transition: opacity .3s, transform .5s var(--ease), border-color .3s;
}
.cursor.is-hover .cursor__ring { opacity: 1; transform: scale(1); }
.cursor__pill {
  position: absolute; left: 0; top: 0; padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--bg);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16), inset 0 0 0 .5px color-mix(in srgb, var(--bg) 22%, transparent);
  opacity: 0; transform: translate(-50%, -50%) scale(.5);
  transition: opacity .25s, transform .45s var(--ease);
}
.cursor.is-label .cursor__pill { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-label .cursor__ring { opacity: 0; transform: scale(.35); }
.cursor.is-down .cursor__ring { transform: scale(.78); }
.cursor.is-down .cursor__pill { transform: translate(-50%, -50%) scale(.92); }
html.cur-none, html.cur-none * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ 导航 ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease-soft), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: .02em; display: inline-block; }
.nav__links { position: relative; display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav__links a { padding: 6px 0; transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__indicator {
  position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ink); border-radius: 2px;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
  opacity: 0;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; }

.iconbtn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); font-size: 13px; font-weight: 500;
  transition: background .3s, transform .3s var(--ease);
}
.iconbtn:hover { background: var(--hover); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  will-change: transform;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--hover); }
.btn--sm { height: 36px; padding: 0 18px; font-size: 14px; border: 1px solid var(--line); }
.btn--sm.btn--primary { border-color: transparent; }

.drawer {
  position: fixed; inset: 64px 0 auto 0; z-index: 99;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 12px var(--gutter) 24px;
  font-size: 22px; font-weight: 500;
}
.drawer.is-open { display: flex; }
.drawer a { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ============ 通用区块 ============ */
main { position: relative; z-index: 1; }

.section { padding: clamp(88px, 13vw, 190px) 0; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section--tight { padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(40px, 6vw, 90px); }
.section--stats { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.section__title { font-size: clamp(34px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.section__hint { font-size: 14px; color: var(--ink-3); }
.sub { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 22px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px;
  color: var(--ink-2); border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter:hover { color: var(--ink); background: var(--hover); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); }
.link svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link:hover svg { transform: translate(3px, -3px); }
.link--muted { color: var(--ink-2); font-size: 14px; }
.link--muted:hover { color: var(--ink); }

/* ============ 首屏 ============ */
.hero { padding: clamp(120px, 16vw, 190px) var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; position: relative; }
.hero__meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--ink-2); margin-bottom: clamp(24px, 4vw, 44px); flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--bg-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: inline-block; animation: pulse 2.4s var(--ease-soft) infinite; }
.dot--ok { background: var(--ok); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.hero__title { font-size: clamp(46px, 9.6vw, 132px); font-weight: 600; letter-spacing: -.04em; line-height: 1.06; margin-bottom: clamp(24px, 3.4vw, 40px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ch {
  display: inline-block; opacity: 0; transform: translateY(108%); filter: blur(10px);
  transition: transform 1s var(--ease), opacity .7s var(--ease-soft), filter .7s var(--ease-soft);
  transition-delay: calc(var(--i) * 30ms + 120ms);
}
.hero__title.in .ch { opacity: 1; transform: none; filter: none; }

.hero__intro { font-size: clamp(17px, 1.7vw, 22px); color: var(--ink-2); max-width: 640px; line-height: 1.65; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-soft) .5s, transform 1s var(--ease) .5s; }
.hero__intro.in { opacity: 1; transform: none; }

.hero__cta { display: flex; align-items: center; gap: 14px; margin: clamp(28px, 3.6vw, 44px) 0 clamp(48px, 7vw, 90px); flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-soft) .7s, transform 1s var(--ease) .7s; }
.hero__cta.in { opacity: 1; transform: none; }
.hero__avail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-left: 8px; }

.hero__media { will-change: transform; }
.hero__media .mask { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.8s var(--ease) .2s; }
.hero__media.in img { transform: scale(1.02); }
.hero__media .mask { clip-path: inset(12% 8% 12% 8% round var(--r-xl)); transition: clip-path 1.5s var(--ease) .15s; }
.hero__media.in .mask { clip-path: inset(0 round var(--r-xl)); }

.scrollcue { position: absolute; right: var(--gutter); bottom: clamp(20px, 4vw, 48px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.scrollcue i { width: 1px; height: 16px; background: var(--ink); animation: cue 2s var(--ease-soft) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ 跑马灯 ============ */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-size: clamp(18px, 2.2vw, 28px); font-weight: 500; color: var(--ink-3); letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.marquee span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 数据 ============ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.stat { padding: clamp(20px, 2.4vw, 34px); border-radius: var(--r-lg); background: var(--bg-2); transition: background .4s, transform .5s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat__num { font-size: clamp(36px, 5vw, 68px); font-weight: 600; letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat__num small { font-size: .36em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.stat__label { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ============ 作品 ============ */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.work { position: relative; cursor: pointer; transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.work.is-hidden { display: none; }
.work__media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--bg-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work__media img { transform: scale(1.07); }
.work__glare { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; mix-blend-mode: soft-light; }
.work:hover .work__glare { opacity: 1; }
.work__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 4px 0; }
.work__title { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -.01em; transition: transform .5s var(--ease); }
.work:hover .work__title { transform: translateX(6px); }
.work__meta { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.work__side { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); flex: none; padding-top: 4px; }
.work__side span { display: inline-flex; align-items: center; gap: 4px; }
.work__side svg { width: 15px; height: 15px; }
.work__arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease); }
.work:hover .work__arrow { background: var(--ink); color: var(--bg); transform: translate(4px, -4px); }

/* ============ 影像 ============ */
.section--gallery { max-width: none; padding-left: 0; padding-right: 0; }
.section--gallery .section__head, .section--gallery .rail__bar { padding-left: var(--gutter); padding-right: var(--gutter); max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.rail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding: 6px 0; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; }
.rail__track { display: flex; gap: clamp(16px, 2.4vw, 32px); padding: 0 var(--gutter); width: max-content; }
.rail__item { position: relative; flex: 0 0 auto; width: min(74vw, 860px); aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.rail__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.rail__item:hover img { transform: scale(1.05); }
.rail__cap { position: absolute; left: 24px; bottom: 22px; right: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: #fff; text-shadow: 0 1px 20px rgba(0, 0, 0, .45); }
.rail__cap b { font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; }
.rail__cap span { font-size: 13px; opacity: .85; }
.rail__bar { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.rail__progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__progress i { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: 2px; transition: width .25s var(--ease-soft); }
.rail__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ============ 文章 ============ */
.posts { border-bottom: 1px solid var(--line); }
.post {
  position: relative; display: grid; grid-template-columns: 130px 1fr auto; gap: 28px; align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line); cursor: pointer;
}
.post.is-hidden { display: none; }
.post::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); background: var(--hover); border-radius: var(--r-md); opacity: 0; transition: opacity .45s; }
.post:hover::before { opacity: 1; }
.post > * { position: relative; }
.post__date { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post__title { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; transition: transform .5s var(--ease); }
.post:hover .post__title { transform: translateX(10px); }
.post__excerpt { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 620px; }
.post__tags { display: flex; gap: 8px; margin-top: 12px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.post__side { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); align-self: center; }
.post__side svg { width: 18px; height: 18px; opacity: 0; transform: translateX(-14px); transition: transform .5s var(--ease), opacity .4s; }
.post:hover .post__side svg { opacity: 1; transform: none; }

/* ============ 关于 ============ */
.statement { font-size: clamp(26px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1.24; max-width: 1100px; margin-bottom: clamp(56px, 8vw, 110px); }
.statement span { opacity: .16; transition: opacity .45s var(--ease-soft); }
.statement span.on { opacity: 1; }
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 96px); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl { position: relative; padding-bottom: 36px; }
.tl::before { content: ""; position: absolute; left: -32px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.tl:hover::before { background: var(--ink); border-color: var(--ink); transform: scale(1.3); }
.tl__year { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.tl__title { font-size: 19px; font-weight: 600; margin-top: 4px; }
.tl__org { font-size: 14px; color: var(--ink-2); }
.tl__desc { font-size: 15px; color: var(--ink-2); margin-top: 6px; max-width: 460px; }
.skill { margin-bottom: 22px; }
.skill__row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; }
.skill__row span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.skill__bar { height: 4px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width 1.5s var(--ease); }
.skills.in .skill__bar i { width: var(--v); }
.about__grid .link { margin-top: 12px; }

/* ============ 服务 ============ */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.service { position: relative; padding: clamp(22px, 2.2vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: transform .6s var(--ease), border-color .4s, box-shadow .6s; overflow: hidden; }
.service:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--ink) 30%, transparent); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .28); }
.service__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.service__desc { font-size: 15px; color: var(--ink-2); margin: 10px 0 22px; min-height: 3.2em; }
.service__price { font-size: 15px; font-weight: 500; }
.service__dot { position: absolute; right: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; transition: background .4s, transform .5s var(--ease); }
.service:hover .service__dot { background: var(--ink); color: var(--bg); transform: rotate(45deg); }
.service__dot svg { width: 15px; height: 15px; }

.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(36px, 5vw, 64px); counter-reset: p; }
.step { padding-top: 22px; border-top: 1px solid var(--line); transition: border-color .4s; }
.step:hover { border-color: var(--ink); }
.step__no { font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }
.step__title { font-size: 19px; font-weight: 600; margin: 8px 0 8px; }
.step__desc { font-size: 15px; color: var(--ink-2); }

/* ============ 评价 ============ */
.quote { max-width: 980px; margin: 0 auto; text-align: center; min-height: clamp(150px, 20vw, 240px); display: flex; flex-direction: column; justify-content: center; }
.quote__text { font-size: clamp(22px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.025em; line-height: 1.35; transition: opacity .5s var(--ease-soft), transform .7s var(--ease); }
.quote__by { margin-top: 22px; font-size: 15px; color: var(--ink-2); transition: opacity .5s var(--ease-soft); }
.quote.is-swap .quote__text, .quote.is-swap .quote__by { opacity: 0; transform: translateY(14px); }
.quote__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.quote__dots { display: flex; gap: 8px; }
.quote__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .4s, transform .4s var(--ease); }
.quote__dots i.on { background: var(--ink); transform: scale(1.3); }
#quotePrev svg { transform: rotate(180deg); }

/* ============ 常见问题 ============ */
.faq { max-width: 900px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; transition: color .3s; }
.faq__q:hover { color: var(--ink-2); }
.faq__icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; opacity: 0; }
.faq__item.is-open .faq__a { opacity: 1; }
.faq__a p { padding: 0 0 26px; font-size: 16px; color: var(--ink-2); max-width: 680px; }

/* ============ 联系 ============ */
.big { font-size: clamp(44px, 9vw, 128px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: clamp(36px, 5vw, 64px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.email { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.02em; padding-bottom: 6px; border-bottom: 1px solid var(--line); transition: border-color .4s; }
.email:hover { border-color: var(--ink); }
.email svg { width: 22px; height: 22px; color: var(--ink-3); transition: transform .4s var(--ease), color .3s; }
.email:hover svg { transform: translateY(-3px); color: var(--ink); }
.socials { list-style: none; margin: 36px 0; }
.socials li { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; transition: padding-left .5s var(--ease); }
.socials li:last-child { border-bottom: 1px solid var(--line); }
.socials li:hover { padding-left: 12px; }
.socials span:last-child { color: var(--ink-3); font-size: 14px; }
.sub label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.sub__row { display: flex; gap: 10px; }
input, textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid transparent; outline: none;
  font-size: 16px; transition: border-color .3s, background .3s;
}
input:focus, textarea:focus { border-color: var(--ink-3); background: var(--surface); }
textarea { resize: vertical; }
.msg { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--bg-2); }
.msg .btn { align-self: flex-start; margin-top: 6px; }
.contact__left .link { margin-top: 28px; }

/* ============ 页脚 ============ */
.footer { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter) 48px; position: relative; z-index: 1; }
.footer__big { font-size: clamp(64px, 17vw, 260px); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--ink); text-align: center; will-change: transform; transform-origin: center bottom; padding-bottom: .08em; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; align-items: center; }

/* ============ 弹层 ============ */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 40%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .5s var(--ease-soft); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: absolute; left: 50%; top: 50%; width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  transform: translate(-50%, -46%) scale(.96); opacity: 0;
  background: var(--bg); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .7s var(--ease), opacity .5s var(--ease-soft);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .5);
}
.modal.is-open .modal__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal__panel.is-narrow { width: min(680px, calc(100vw - 32px)); }
.modal__panel.is-full { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; background: #000; }
.modal__close { position: absolute; right: 16px; top: 16px; z-index: 3; background: var(--bg-2); }
.modal__body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal__readbar { position: sticky; top: 0; left: 0; height: 2px; background: var(--ink); width: 0; z-index: 4; }

/* 作品详情 */
.wd { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 520px; }
.wd__media { position: sticky; top: 0; align-self: start; background: var(--bg-2); overflow: hidden; }
.wd__slide { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: grab; }
.wd__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wd__thumbs { display: flex; gap: 10px; padding: 14px; }
.wd__thumb { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; opacity: .5; transition: opacity .3s, transform .4s var(--ease); }
.wd__thumb.is-active { opacity: 1; transform: scale(1.05); }
.wd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd__info { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; }
.wd__cat { font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }
.wd__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; margin: 8px 0 14px; }
.wd__summary { font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.wd__detail { font-size: 15px; color: var(--ink-2); }
.wd__specs { margin: 22px 0; border-top: 1px solid var(--line); }
.wd__specs div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wd__specs span:first-child { color: var(--ink-3); }
.wd__actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.pill:hover { background: var(--hover); }
.pill.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill svg { width: 16px; height: 16px; }
.pill.is-on svg { fill: currentColor; }
.related { padding: 28px clamp(24px, 3vw, 44px) 36px; border-top: 1px solid var(--line); }
.related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.related__item { display: flex; gap: 14px; align-items: center; cursor: pointer; padding: 10px; border-radius: var(--r-md); transition: background .3s; }
.related__item:hover { background: var(--hover); }
.related__item img { width: 84px; height: 63px; border-radius: 12px; object-fit: cover; flex: none; }
.related__item b { display: block; font-size: 15px; font-weight: 600; }
.related__item span { font-size: 13px; color: var(--ink-3); }

/* 评论 */
.cmt { padding: 24px clamp(24px, 3vw, 44px) 36px; border-top: 1px solid var(--line); }
.cmt__list { margin: 14px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.cmt__item { padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); }
.cmt__head { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.cmt__head b { color: var(--ink); font-weight: 600; font-size: 14px; }
.cmt__form { display: flex; gap: 10px; flex-wrap: wrap; }
.cmt__form input { flex: 1 1 160px; }
.cmt__form textarea { flex: 1 1 100%; }

/* 阅读 */
.reader { padding: clamp(36px, 5vw, 72px) clamp(24px, 6vw, 96px) 48px; max-width: 820px; margin: 0 auto; }
.reader__tags { display: flex; gap: 8px; margin-bottom: 16px; }
.reader__title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.reader__meta { margin: 16px 0 34px; font-size: 14px; color: var(--ink-3); display: flex; gap: 16px; align-items: center; }
.reader__body { font-size: 17px; line-height: 1.85; color: var(--ink); }
.reader__body h2 { font-size: 22px; font-weight: 600; margin: 38px 0 14px; letter-spacing: -.01em; }
.reader__body p { margin-bottom: 18px; color: var(--ink); }
.reader__body blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ink); font-size: 19px; font-weight: 500; color: var(--ink); }
.reader__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.reader__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.reader__nav button { text-align: left; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); transition: background .3s, transform .5s var(--ease); }
.reader__nav button:hover { background: var(--hover); transform: translateY(-3px); }
.reader__nav small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.reader__nav b { font-size: 15px; font-weight: 600; }
.reader__nav button:last-child { text-align: right; }

/* 搜索 */
.search { padding: 28px 28px 20px; }
.search__input { font-size: 20px; padding: 16px 18px; }
.search__res { margin-top: 18px; max-height: 52vh; overflow-y: auto; }
.search__group { margin-bottom: 18px; }
.search__group h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.search__item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px; border-radius: var(--r-sm); transition: background .25s; }
.search__item:hover, .search__item.is-cursor { background: var(--hover); }
.search__item img { width: 52px; height: 39px; border-radius: 8px; object-fit: cover; flex: none; }
.search__item b { font-size: 15px; font-weight: 500; display: block; }
.search__item span { font-size: 13px; color: var(--ink-3); }
.search__empty { padding: 30px 12px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* 灯箱 */
.modal__panel.is-full .modal__body { height: 100%; }
.light { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; }
.light img { max-width: 92vw; max-height: 86vh; border-radius: 12px; object-fit: contain; pointer-events: none; user-select: none; transition: opacity .4s; }
.light__cap { position: absolute; left: 0; right: 0; bottom: 32px; text-align: center; color: #fff; font-size: 15px; opacity: .85; }
.light__nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; pointer-events: none; }
.light__nav button { pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; transition: background .3s; }
.light__nav button:hover { background: rgba(255, 255, 255, .28); }
.light__nav button:first-child svg { transform: rotate(180deg); }
.modal__panel.is-full .modal__close { background: rgba(255, 255, 255, .16); color: #fff; }

/* 快捷键 */
.keys { padding: 32px; }
.keys h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px; }
.keys__row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.keys__row:last-child { border-bottom: 1px solid var(--line); }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--font); font-size: 13px; }

/* 收藏夹 */
.favs { padding: 32px; }
.favs h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.favs p { color: var(--ink-2); font-size: 14px; }
.favs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }

/* ============ 提示条 ============ */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 250;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .6s var(--ease), opacity .4s;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ============ 滚动出现 ============ */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ 关闭动效 ============ */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }
[data-motion="off"] [data-reveal], [data-motion="off"] .hero__intro, [data-motion="off"] .hero__cta { opacity: 1 !important; transform: none !important; }
[data-motion="off"] .hero__title .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
[data-motion="off"] .hero__media .mask { clip-path: none !important; }
[data-motion="off"] .hero__media img { transform: none !important; }
[data-motion="off"] .statement span { opacity: 1 !important; }
[data-motion="off"] .cursor, [data-motion="off"] .glow { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ 液态玻璃 ============ */
/* 配方：半透明渐变填充 + 背景模糊并提高饱和度 + 一圈高光描边 + 柔和投影，
   鼠标移上去再叠一层跟着指针走的流光。
   只有小面积的界面零件（导航、按钮、标签、提示条、弹层）用真正的背景模糊；
   大卡片只取「填充 + 描边 + 投影」，因为它们背后本来就是纯色，模糊看不出差别却更费显卡。 */
:root {
  --g-blur: 22px;
  --g-sat: 190%;
  --g-fill: linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .28) 40%, rgba(255, 255, 255, .15) 62%, rgba(255, 255, 255, .4));
  --g-rim: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .3) 26%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, .16) 72%, rgba(255, 255, 255, .64));
  --g-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 10px 26px -12px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .62);
  --g-edge: rgba(255, 255, 255, .58);
  --g-sheen: rgba(255, 255, 255, .5);
}
[data-theme="dark"] {
  --g-fill: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .04) 62%, rgba(255, 255, 255, .14));
  --g-rim: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .13) 28%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .08) 72%, rgba(255, 255, 255, .34));
  --g-shadow: 0 1px 1px rgba(0, 0, 0, .5), 0 12px 30px -12px rgba(0, 0, 0, .78), inset 0 1px 0 rgba(255, 255, 255, .2);
  --g-edge: rgba(255, 255, 255, .2);
  --g-sheen: rgba(255, 255, 255, .26);
}

/* 小零件：真模糊 */
.nav.is-stuck .nav__inner,
.btn--ghost, .btn--sm:not(.btn--primary), .filter, .iconbtn, .status, .scrollcue,
.pill, .work__arrow, .quote__nav button, .light__nav button, .reader__nav button,
.toast, .drawer, kbd {
  background: var(--g-fill);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
  backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat));
  border: .5px solid var(--g-edge);
  box-shadow: var(--g-shadow);
}
/* 面板：面积大，模糊半径小一点。底下再垫一层接近不透明的底色，文字不会被背后的内容干扰 */
.modal__panel {
  background: var(--g-fill), color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(var(--g-sat));
  backdrop-filter: blur(30px) saturate(var(--g-sat));
  border: .5px solid var(--g-edge);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* 大卡片：不模糊，只取玻璃的填充、描边和投影 */
.stat, .service, .msg, .cmt__item, .tag {
  position: relative;
  background: var(--g-fill);
  border: .5px solid var(--g-edge);
  box-shadow: var(--g-shadow);
}

/* 高光描边：沿着边缘一圈亮边，左上最亮 */
.nav__inner::before, .btn::before, .filter::before, .iconbtn::before, .status::before, .scrollcue::before,
.pill::before, .work__arrow::before, .quote__nav button::before, .light__nav button::before, .reader__nav button::before,
.toast::before, .drawer::before, kbd::before,
.stat::before, .service::before, .msg::before, .cmt__item::before, .tag::before, .modal__panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--g-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.nav__inner::before { opacity: 0; transition: opacity .5s var(--ease-soft); }
.nav.is-stuck .nav__inner::before { opacity: 1; }

/* 跟随鼠标的流光 */
.nav__inner::after, .btn::after, .filter::after, .iconbtn::after, .status::after, .scrollcue::after,
.pill::after, .work__arrow::after, .quote__nav button::after, .light__nav button::after, .reader__nav button::after, .tag::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(150px circle at var(--gx, 50%) var(--gy, 0%), var(--g-sheen), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease-soft);
}
.nav.is-stuck .nav__inner::after, .btn:hover::after, .filter:hover::after, .iconbtn:hover::after, .status:hover::after,
.scrollcue:hover::after, .pill:hover::after, .work:hover .work__arrow::after, .quote__nav button:hover::after,
.light__nav button:hover::after, .reader__nav button:hover::after, .tag:hover::after { opacity: 1; }

/* 主按钮：深色玻璃，顶部一道高光 */
.btn--primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 86%, #fff), var(--ink));
  color: var(--bg); border-color: transparent;
  box-shadow: var(--g-shadow), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.btn--primary::before { background: linear-gradient(145deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .16)); }
.btn--primary::after { background: radial-gradient(150px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .3), transparent 62%); }
.filter.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 86%, #fff), var(--ink));
  color: var(--bg); border-color: transparent;
  box-shadow: var(--g-shadow), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.filter.is-active::before { background: linear-gradient(145deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .16)); }
.filter.is-active::after { background: radial-gradient(150px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .3), transparent 62%); }
.pill.is-on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 86%, #fff), var(--ink));
  color: var(--bg); border-color: transparent;
  box-shadow: var(--g-shadow), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.pill.is-on::before { background: linear-gradient(145deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .16)); }

/* 按下去轻轻缩一下，像按在一块有弹性的玻璃上 */
.btn:active, .filter:active, .pill:active, .iconbtn:active, .work__arrow:active { transform: scale(.96); }
.btn, .filter, .pill, .iconbtn, .status, .work__arrow, .quote__nav button, .light__nav button, .reader__nav button, .tag, kbd { position: relative; }
.scrollcue { position: absolute; }

/* 导航：往下滚后收成一枚悬浮的玻璃胶囊 */
.nav { padding: 12px var(--gutter) 0; pointer-events: none; border: 0; }
.nav__inner {
  pointer-events: auto; position: relative;
  max-width: var(--maxw); margin: 0 auto; height: 58px;
  padding: 0 8px 0 24px;
  border-radius: 999px; border: .5px solid transparent;
  transition: max-width .7s var(--ease), background .5s var(--ease-soft), box-shadow .5s, border-color .5s, padding .5s var(--ease);
}
.nav.is-stuck { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.nav.is-stuck .nav__inner { max-width: 900px; padding: 0 8px 0 26px; }
.nav .iconbtn { background: none; border-color: transparent; box-shadow: none; }
.nav .iconbtn::before, .nav .iconbtn::after { display: none; }
.nav .iconbtn:hover { background: var(--hover); }

/* 移动端菜单：悬浮玻璃面板 */
.drawer {
  inset: 78px var(--gutter) auto var(--gutter);
  border-radius: var(--r-lg); padding: 6px 22px 12px;
  font-size: 20px; border-bottom: .5px solid var(--g-edge);
  background: var(--g-fill), color-mix(in srgb, var(--bg) 86%, transparent);
}
.drawer a { padding: 15px 0; }
.drawer a:last-child { border-bottom: 0; }

/* 光标胶囊：跟别的玻璃相反，浅色模式用深色玻璃，深色模式用浅色玻璃，保证压在图片上也能看清 */
.cursor__pill {
  background: color-mix(in srgb, var(--ink) 76%, transparent);
  color: var(--bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: .5px solid color-mix(in srgb, var(--bg) 28%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2), inset 0 1px 0 color-mix(in srgb, var(--bg) 34%, transparent);
}

/* 提示条、灯箱按钮 */
.toast { background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--bg); }
.light__nav button { background: var(--g-fill); color: #fff; }
.modal__panel.is-full { background: #000; border: 0; }
.modal__panel.is-full::before { display: none; }

/* 影像说明：玻璃小标签 */
.rail__cap { left: 18px; right: auto; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(20, 20, 22, .42); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); text-shadow: none; gap: 10px; }
.rail__cap b { font-size: 14px; }
.rail__cap span { font-size: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 1040px) {
  .services, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --g-blur: 16px; }
  .nav { padding: 8px 12px 0; }
  .nav__inner { height: 52px; padding: 0 6px 0 18px; }
  .nav.is-stuck .nav__inner { max-width: none; padding: 0 6px 0 20px; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__actions .btn--sm { display: none; }
  .iconbtn { width: 44px; height: 44px; }
  .drawer { inset: 68px 12px auto 12px; font-size: 19px; }
  .scrollcue { display: none; }

  .hero { padding-top: 100px; }
  .hero__media .mask { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 140px; }
  .hero__avail { margin-left: 0; width: 100%; }

  .marquee { padding: 16px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 18px; border-radius: var(--r-md); }
  .stat__num { font-size: 34px; }

  .works { grid-template-columns: 1fr; gap: 28px; }
  .work__body { padding: 14px 2px 0; }
  .work__side { gap: 10px; }
  .filters { gap: 6px; }
  .filter { height: 38px; padding: 0 14px; }

  .rail { scroll-snap-type: x mandatory; touch-action: pan-x; }
  .rail__track { gap: 14px; }
  .rail__item { width: 84vw; scroll-snap-align: center; border-radius: var(--r-md); }

  .post { grid-template-columns: 1fr; gap: 6px; }
  .post::before { inset: 0 calc(var(--gutter) * -.4); }
  .post__side { justify-self: start; }
  .post__side svg { opacity: 1; transform: none; }
  .post__tags { flex-wrap: wrap; }

  .statement { margin-bottom: 40px; }
  .services, .process { grid-template-columns: 1fr; }
  .service__desc { min-height: 0; }
  .quote__nav { gap: 14px; }
  .quote__nav button { width: 44px; height: 44px; }
  .faq__q { padding: 22px 0; }

  .contact__grid { grid-template-columns: 1fr; }
  .email { font-size: clamp(17px, 5.2vw, 24px); word-break: break-all; }
  .sub__row { flex-direction: column; }
  .sub__row .btn, .msg .btn { width: 100%; }
  .msg { padding: 20px; }

  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .footer__links { gap: 14px; flex-wrap: wrap; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }

  .modal__panel { left: 0; width: 100vw; max-height: 90vh; max-height: 90dvh; top: auto; bottom: 0; transform: translateY(30px); border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal.is-open .modal__panel { transform: none; }
  .modal__panel.is-full { max-height: 100vh; max-height: 100dvh; height: 100dvh; border-radius: 0; padding-bottom: 0; }
  .modal__close { right: 12px; top: 12px; }
  .wd__info { padding: 22px 20px 26px; }
  .wd__thumbs { overflow-x: auto; }
  .wd__actions .pill { flex: 1 1 auto; justify-content: center; }
  .related, .cmt { padding-left: 20px; padding-right: 20px; }
  .favs__grid, .related__grid { grid-template-columns: 1fr; }
  .reader { padding: 28px 20px 36px; }
  .reader__nav { grid-template-columns: 1fr; }
  .search { padding: 20px 18px 14px; }
  .keys, .favs { padding: 22px 20px; }
  .light__nav { padding: 0 10px; }
  .light__nav button { width: 44px; height: 44px; }
}
@media (max-width: 520px) {
  .cmt__form input { flex: 1 1 100%; }
  .section__head { gap: 18px; }
}

/* 触屏：没有悬停，别让「悬停才出现」的东西挡路 */
@media (hover: none) {
  .work:hover .work__media img { transform: none; }
  .work__glare { display: none; }
  .post::before { display: none; }
}

/* ============ 打印 ============ */
@media print {
  .nav, .progress, .glow, .cursor, .loader, .toast, .drawer, .marquee, .scrollcue { display: none !important; }
  body { background: #fff; color: #000; }
  .modal { position: static; display: none; }
  .section { padding: 24px 0; }
}
