@font-face { font-family: 'Noto Serif Display'; src: url(fonts/NotoSerifDisplay.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; }
@font-face { font-family: 'Noto Serif Display'; src: url(fonts/NotoSerifDisplay-Italic.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62.5% 100%; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(fonts/Geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* 与作品封面背景一致的群青，让作品像漂在同一个空间里 */
  --ultra: #2A30D8;
  --ultra-deep: #1B1FA6;
  --paper: #EEF0FA;
  --ink: #0F1460;
  --mist: #AEB3FF;
  --blush: #FFC4D6;

  --bg: var(--ultra);
  --fg: #F4F5FF;
  --fg-2: var(--mist);

  --serif: 'Noto Serif Display', 'Songti SC', 'STSong', serif;
  --song: 'Songti SC', 'STSong', 'Noto Serif SC', serif;
  --sans: 'Geist', 'PingFang SC', 'Hiragino Sans GB', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(20px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { background: var(--ultra); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; transition: background-color .9s var(--ease), color .9s var(--ease);
}
body.theme-paper { --bg: var(--paper); --fg: var(--ink); --fg-2: #4A5096; }
body.is-loading { overflow: hidden; }
::selection { background: var(--blush); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }

/* ---------- 加载 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ultra); display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader-count { overflow: hidden; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(96px, 18vw, 280px); line-height: 1; letter-spacing: -.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
.loader-count span { display: block; }
.loader-line { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; height: 1px; background: rgba(244,245,255,.18); }
.loader-line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--fg); }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- 光标 ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; display: none; --cur: var(--fg); --halo: rgba(15,20,96,.45); }
/* 光标颜色跟随所在表面：深色表面用白，浅色表面用墨蓝；再加一圈很淡的反色描边，压在照片里的白色物体上也看得见 */
.cursor.on-light { --cur: var(--ink); --halo: rgba(255,255,255,.7); }
.cursor.on-dark { --cur: #F4F5FF; --halo: rgba(15,20,96,.45); }
.cursor-dot { box-shadow: 0 0 0 1px var(--halo); }
.cursor-ring { box-shadow: 0 0 0 .5px var(--halo), inset 0 0 0 .5px var(--halo); }
.cursor-orbit text { paint-order: stroke; stroke: var(--halo); stroke-width: .6px; }
.cursor-mark::before, .cursor-mark::after { box-shadow: 0 0 0 .5px var(--halo); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--cur); transition: background .6s; }
.cursor-ring {
  position: absolute; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cur) 55%, transparent);
  display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s;
}
/* 悬停标签：细线磨砂圆环 + 缓慢旋转的环形文字 + 中心细十字 */
.cursor-ring { -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
.cursor.is-label .cursor-ring {
  width: 108px; height: 108px; margin: -54px;
  border-color: color-mix(in srgb, var(--cur) 30%, transparent);
  background: color-mix(in srgb, var(--cur) 6%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
}
.cursor-orbit { position: absolute; inset: 0; opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .5s var(--ease), transform .9s var(--ease); }
.cursor-orbit svg { width: 100%; height: 100%; display: block; overflow: visible; animation: orbit 12s linear infinite; }
.cursor-orbit text { fill: var(--cur); font-family: var(--sans); font-size: 8.6px; font-weight: 500; letter-spacing: .02em; }
.cursor.is-label .cursor-orbit { opacity: 1; transform: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
.cursor-mark { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; transform: rotate(-90deg) scale(0); transition: transform .7s var(--ease) .05s; }
.cursor-mark::before, .cursor-mark::after { content: ''; position: absolute; background: var(--cur); }
.cursor-mark::before { left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; }
.cursor-mark::after { top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; }
.cursor.is-label .cursor-mark { transform: none; }
/* 拖动：十字换成双向箭头的意味——横线拉长、竖线收起 */
.cursor.is-drag .cursor-mark { width: 22px; margin-left: -11px; }
.cursor.is-drag .cursor-mark::after { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) { .cursor-orbit svg { animation: none; } }
.cursor.is-label .cursor-dot, .cursor.is-hover .cursor-dot { opacity: 0; }
.cursor.is-hover .cursor-ring { width: 60px; height: 60px; margin: -30px; background: color-mix(in srgb, var(--cur) 12%, transparent); }
.cursor.is-down .cursor-ring { transform: scale(.8); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad); mix-blend-mode: normal; color: var(--fg); transition: color .9s var(--ease), transform .8s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.logo { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 400; letter-spacing: -.02em; display: inline-block; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 44px); font-size: 15px; }
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll span { display: inline-block; position: relative; transition: transform .6s var(--ease); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }

/* ---------- 首屏 ---------- */
.hero { position: relative; z-index: 2; height: 100vh; min-height: 560px; }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
}
.hero-intro { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; max-width: 24em; }
.hero-time { margin: 0; justify-self: end; text-align: right; font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.hero-time #clock { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--fg); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.scroll-cue { display: grid; justify-items: center; gap: 12px; font-size: 13px; color: var(--fg-2); }
.scroll-cue i { width: 1px; height: 56px; background: rgba(244,245,255,.2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--fg); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- 关于 ---------- */
.about { position: relative; z-index: 2; padding: 30vh var(--pad) 18vh; }
.statement {
  margin: 0; max-width: 16.5em; font-family: var(--song); font-weight: 900; font-size: clamp(30px, 3.9vw, 68px); line-height: 1.4; letter-spacing: .01em;
}
.statement .char { display: inline-block; }
.statement .st-line { display: block; white-space: nowrap; }
@media (max-width: 860px) { .statement .st-line { white-space: normal; } }
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); margin-top: 12vh; max-width: 46em; }
.about-text { margin: 0; font-size: 16.5px; line-height: 1.95; color: color-mix(in srgb, var(--fg) 86%, transparent); }

/* ---------- 跑马灯 ---------- */
.marquee { position: relative; z-index: 2; padding: 6vh 0 12vh; overflow: hidden; }
.mq-row { white-space: nowrap; overflow: visible; }
.mq-track { display: inline-flex; will-change: transform; }
.mq-item { display: inline-flex; align-items: center; gap: .5em; padding-right: .5em; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 150px); line-height: 1.12; letter-spacing: -.025em; }
.mq-row[data-dir="-1"] .mq-item { font-style: italic; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 70%, transparent); }
.mq-item svg { width: .32em; height: .32em; flex: none; fill: var(--blush); }
.mq-item .cn { font-family: var(--song); font-weight: 900; font-size: .62em; letter-spacing: 0; }

/* ---------- 作品长廊 ---------- */
.work { position: relative; z-index: 2; }
.work-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1000px; perspective-origin: 50% 46%; }
.work-title { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none; }
.work-title h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(80px, 13vw, 230px); line-height: .86; letter-spacing: -.045em; }
.work-title p { margin: 28px 0 0; color: var(--fg-2); font-size: 16px; line-height: 1.8; }
.world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.card { position: absolute; left: 0; top: 0; width: clamp(220px, 22vw, 380px); transform-style: preserve-3d; cursor: none; }
.card-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--ultra);
  /* 边缘羽化，让静物像漂浮在同一片群青里 */
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, #000 55%, transparent 100%); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.02); }
.card-cap { position: absolute; top: 30%; width: 26em; }
.card.left .card-cap { right: calc(100% + 24px); text-align: right; }
.card.right .card-cap { left: calc(100% + 24px); }
.card-cap h3 { margin: 0; font-family: var(--song); font-weight: 900; font-size: 58px; line-height: 1.15; letter-spacing: .01em; }
.card-cap .en { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 36px; line-height: 1.2; color: var(--fg-2); }
.card-cap .meta { margin: 24px 0 0; font-size: 25px; color: color-mix(in srgb, var(--fg) 78%, transparent); line-height: 1.7; }
.card-cap .line { display: block; overflow: hidden; }
.card-cap .line > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease); }
.card.is-near .card-cap .line > span { transform: none; }
.card.is-near .card-cap .line:nth-child(2) > span { transition-delay: .06s; }
.card.is-near .card-cap .line:nth-child(3) > span { transition-delay: .12s; }
.work-hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 34px; display: grid; grid-template-columns: 1fr minmax(120px, 34vw) 1fr; gap: 24px; align-items: center; font-size: 14px; z-index: 3; }
.work-hud #hudNum { justify-self: end; font-family: var(--serif); font-style: italic; font-size: 18px; font-variant-numeric: tabular-nums; }
.hud-bar { height: 1px; background: rgba(244,245,255,.2); position: relative; }
.hud-bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--fg); }

/* ---------- 索引 ---------- */
.index { position: relative; z-index: 2; padding: 22vh var(--pad) 18vh; }
.index-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.index-head h2 { margin: 0; font-family: var(--song); font-weight: 900; font-size: clamp(48px, 7vw, 120px); line-height: 1; letter-spacing: -.01em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  position: relative; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s;
}
.filters button::before { content: ''; position: absolute; inset: 0; background: var(--fg); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.filters button.on { color: var(--bg); border-color: var(--fg); }
.filters button.on::before { transform: none; }
.filters button sup { font-size: 10px; margin-left: 3px; opacity: .7; }
.rows { list-style: none; margin: 8vh 0 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.row { border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.row a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr) 70px; gap: 24px; align-items: center;
  padding: 30px 0; overflow: hidden; isolation: isolate;
}
.row a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); z-index: -1; }
.row .r-title { font-family: var(--song); font-weight: 900; font-size: clamp(26px, 3vw, 46px); line-height: 1.1; transition: transform .6s var(--ease), color .4s; }
.row .r-title small { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--fg-2); margin-top: 6px; transition: color .4s; }
.row .r-cat, .row .r-stack { font-size: 14.5px; color: var(--fg-2); transition: color .4s, transform .6s var(--ease); }
.row .r-star { justify-self: end; font-family: var(--serif); font-style: italic; font-size: 20px; font-variant-numeric: tabular-nums; transition: color .4s; }
@media (hover: hover) {
  .row a:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .row a:hover .r-title { transform: translateX(24px); color: var(--paper); }
  .row a:hover .r-title small, .row a:hover .r-cat, .row a:hover .r-stack { color: var(--mist); }
  .row a:hover .r-star { color: var(--paper); }
  .row a:hover .r-stack { transform: translateX(-24px); }
}
.preview { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; aspect-ratio: 2 / 3; pointer-events: none; }
.preview-inner { position: absolute; inset: 0; overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease); }
.preview.on .preview-inner { clip-path: inset(0 0 0 0); }
.preview-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 联系 ---------- */
.contact { position: relative; z-index: 2; min-height: 100vh; padding: 20vh var(--pad) 0; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.contact-title { margin: 0; font-family: var(--song); font-weight: 900; font-size: clamp(56px, 9.5vw, 170px); line-height: 1.04; letter-spacing: -.01em; }
.contact-note { margin: 34px 0 0; font-size: 17px; color: var(--fg-2); }
.email { position: relative; margin-top: 26px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(28px, 4.4vw, 72px); letter-spacing: -.02em; line-height: 1.2; display: inline-block; }
.email-text { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .7s var(--ease); padding-bottom: 4px; }
.email:hover .email-text { background-size: 0 1px; background-position: 100% 100%; }
.email-done { position: absolute; left: 100%; top: 50%; margin-left: 18px; transform: translateY(-50%); font-family: var(--sans); font-style: normal; font-size: 15px; white-space: nowrap; color: var(--blush); }
.socials { display: flex; gap: 32px; margin-top: 30px; font-size: 16px; }
.pit { position: relative; min-height: 46vh; margin: 6vh calc(var(--pad) * -1) 0; touch-action: pan-y; }
.pit-hint { position: absolute; right: var(--pad); top: 0; margin: 0; font-size: 14px; color: var(--fg-2); }
.pill {
  position: absolute; left: 0; top: 0; padding: .5em 1.05em; border-radius: 999px; white-space: nowrap; user-select: none; will-change: transform;
  font-size: clamp(16px, 1.9vw, 30px); font-weight: 500; background: var(--paper); color: var(--ink);
}
.pill.alt { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.pill.pink { background: var(--blush); }
.pill.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 30px; font-size: 14px; color: var(--fg-2); border-top: 1px solid rgba(244,245,255,.18); position: relative; z-index: 3; }

/* ---------- 详情 ---------- */
.detail { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 1fr 1fr; visibility: hidden; pointer-events: none; }
.detail.open { visibility: visible; pointer-events: auto; }
.d-media { position: relative; overflow: hidden; background: var(--ultra); }
.d-media img { width: 100%; height: 100%; object-fit: cover; }
.d-body { position: relative; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; clip-path: inset(0 0 0 100%); }
.d-close { position: sticky; top: 0; float: right; padding: 28px var(--pad); font-size: 15px; z-index: 2; }
.d-inner { padding: 14vh clamp(28px, 5vw, 90px) 80px; clear: both; }
.d-kicker { margin: 0; font-size: 14px; color: #4A5096; }
.d-title { margin: 16px 0 0; font-family: var(--song); font-weight: 900; font-size: clamp(44px, 5.4vw, 96px); line-height: 1.06; }
.d-en { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 26px; color: #4A5096; }
.d-desc { margin: 40px 0 0; font-size: 17.5px; line-height: 2; max-width: 30em; }
.d-facts { display: grid; grid-template-columns: 6em 1fr; gap: 14px 20px; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(15,20,96,.18); font-size: 15px; }
.d-facts dt { color: #4A5096; }
.d-facts dd { margin: 0; }
.d-shot { margin: 48px 0 0; background: #fff; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(15,20,96,.45); }
.d-shot img { width: 100%; height: auto; }
.d-shot.tall { background: #0b1a2a; }
.d-shot.tall img { width: auto; max-height: 70vh; margin: 0 auto; }
.d-links { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.d-links a { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; transition: background .4s; }
.d-links a.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15,20,96,.35); }
.d-next { display: block; width: 100%; text-align: left; margin-top: 12vh; padding-top: 28px; border-top: 1px solid rgba(15,20,96,.18); }
.d-next small { display: block; font-size: 14px; color: #4A5096; }
.d-next span { display: inline-block; font-family: var(--song); font-weight: 900; font-size: clamp(34px, 4vw, 64px); margin-top: 8px; transition: transform .7s var(--ease); }
.d-next:hover span { transform: translateX(30px); }
.d-anim { display: block; overflow: hidden; }
.transit { position: fixed; left: 0; top: 0; z-index: 450; overflow: hidden; pointer-events: none; visibility: hidden; background: var(--ultra); }
.transit img { width: 100%; height: 100%; object-fit: cover; }

/* SplitText 行遮罩 */
.line-mask { overflow: hidden; display: block; padding-bottom: .06em; margin-bottom: -.06em; }

@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero-time { justify-self: start; text-align: left; }
  .about-cols { margin-left: 0; grid-template-columns: 1fr; }
  .card-cap { display: none; }
  .work-title h2 { font-size: 22vw; }
  .row a { grid-template-columns: 1fr auto; padding: 22px 0; }
  .row .r-stack, .row .r-cat { display: none; }
  .detail { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
  .d-body { clip-path: inset(100% 0 0 0); }
  .preview { display: none; }
  .pit-hint { left: var(--pad); right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i::after { animation: none; }
}
.mq-row[data-dir="-1"] .mq-item .cn { color: var(--fg-2); -webkit-text-stroke: 0; font-style: normal; }
