:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --text: #dedede;
  --muted: #b6b6b6;
  --line: #343434;
  --ground: #101010;
  --surface: #181818;
  --raised: #222;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-width: 71rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.1rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, p, dl { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: #fff; }
img, video { display: block; width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
[lang="zh-Hans"] { font-family: "Microsoft YaHei", "PingFang SC", var(--sans); }
.wrap { width: min(var(--page-width), calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; inset: .7rem auto auto .7rem; padding: .5rem .75rem; background: var(--raised); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { background: #070707; border-bottom: 1px solid #262626; }
.header-inner { width: calc(100% - 2.5rem); min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 650 1.12rem/1 var(--sans); white-space: nowrap; }
.brand img { width: 1.38rem; height: 1.38rem; border-radius: 50%; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
nav { display: flex; align-items: center; gap: .55rem clamp(1rem, 2.9vw, 2.16rem); flex-wrap: wrap; }
nav a { color: var(--text); font-size: .91rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); text-align: center; }
.hero-inner { padding-block: clamp(3rem, 5.4vw, 4.75rem) clamp(3.75rem, 6.5vw, 6rem); }
h1, h2 { font-family: var(--sans); line-height: 1.16; letter-spacing: -.022em; font-weight: 640; text-wrap: balance; }
h1 { max-width: 65rem; margin-inline: auto; font-size: clamp(2.12rem, 4vw, 3.62rem); }
.hero-logo { width: clamp(7.25rem, 12vw, 10rem); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto clamp(1.05rem, 2vw, 1.5rem); border-radius: 50%; }
.hero-name { font-size: clamp(2.65rem, 6.2vw, 5.35rem); line-height: 1.06; letter-spacing: -.032em; font-weight: 650; white-space: nowrap; }
.paper-title { display: block; max-width: 54rem; margin: 1.22rem auto 0; font-size: clamp(1.16rem, 2.3vw, 1.95rem); line-height: 1.3; letter-spacing: -.016em; font-weight: 450; text-wrap: balance; }
.title-term { white-space: nowrap; }
.hero-authors { margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; font-size: clamp(1rem, 1.4vw, 1.18rem); text-wrap: balance; }
.hero-summary { max-width: 44rem; margin: .7rem auto 0; color: var(--muted); font-size: clamp(.94rem, 1.35vw, 1.07rem); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: clamp(1.7rem, 4vw, 3.2rem); }
.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: #3b3b3b;
  color: var(--ink);
  font: 500 .94rem/1.2 var(--sans);
  text-decoration: none;
}
.hero-action:hover { background: #505050; color: #fff; }
.hero-action:disabled { background: #282828; border-color: #3d3d3d; color: #bcbcbc; }
h2 { font-size: clamp(1.72rem, 3.1vw, 2.28rem); }

.dataset-section { padding: clamp(2.75rem, 5vw, 4.6rem) 0; text-align: center; }
.dataset-summary { max-width: 52rem; margin: .8rem auto 0; color: var(--text); font-size: clamp(.98rem, 1.45vw, 1.07rem); text-wrap: balance; }
.dataset-summary p + p { margin-top: .36rem; color: var(--muted); }
.dataset-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.9rem auto 0; border-block: 1px solid var(--line); }
.dataset-stats > div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: .46rem; padding: 1.15rem .45rem; }
.dataset-stats > div + div { border-left: 1px solid var(--line); }
.dataset-stats dd { margin: 0; color: var(--ink); font: 660 clamp(1.45rem, 2.45vw, 2rem)/1.12 var(--sans); letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dataset-stats dt { color: var(--muted); font-size: .89rem; line-height: 1.3; }
.dataset-distribution { margin: 2.15rem 0 0; }
.dataset-distribution img { height: auto; filter: invert(.966) hue-rotate(180deg) saturate(.72) brightness(1.8); }
.dataset-distribution figcaption { margin: .8rem auto 0; color: var(--muted); font-size: .91rem; text-wrap: balance; }
.distribution-panels { display: none; }

.gallery-section { padding: clamp(2.75rem, 5vw, 4.6rem) 0; border-block: 1px solid var(--line); background: var(--surface); }
.section-title { margin-bottom: 1.52rem; text-align: center; }
.section-title p { margin-top: .48rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.75rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.video-card { min-width: 0; overflow: hidden; background: var(--raised); border: 1px solid var(--line); border-radius: .48rem; }
.video-card-player { aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: #090909; }
.video-card-player:focus-visible { outline-offset: -3px; }
.video-card-copy { padding: .8rem .9rem 1.05rem; }
.clip-tags { display: flex; flex-wrap: wrap; gap: .25rem .48rem; align-items: center; list-style: none; margin: 0 0 .58rem; padding: 0; }
.clip-tags li { color: var(--muted); font-size: .79rem; line-height: 1.4; white-space: nowrap; }
.clip-tags li + li::before { content: "·"; margin-right: .48rem; }
.clip-english { color: var(--ink); font-size: .97rem; font-weight: 530; line-height: 1.5; }
.clip-chinese { margin-top: .42rem; color: var(--muted); font-size: .925rem; line-height: 1.55; }

.reference-section { padding-block: clamp(2.75rem, 5vw, 4.6rem); }
.reference-section h2 { text-align: center; }
.citation-entry { max-width: 54rem; margin: 1.25rem auto 0; padding: clamp(.82rem, 2.3vw, 1.35rem); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .43rem; font-size: .91rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.citation-entry code { font-family: ui-monospace, Consolas, monospace; }
.citation-entry a { color: var(--ink); }

.download-section { border-top: 1px solid var(--line); padding: clamp(2.75rem, 5vw, 4.6rem) 0; text-align: center; }
.download-section p { margin-top: .65rem; color: var(--muted); }
.method-status p { color: var(--text); }
.method-status p + p { margin-top: .28rem; }
.site-footer { border-top: 1px solid var(--line); background: #070707; color: var(--muted); font-size: .9rem; text-align: center; padding: 1.1rem 0; }

.method-page { min-height: calc(100vh - 7.5rem); padding: clamp(3.5rem, 10vw, 7.8rem) 0; text-align: center; }
.eyebrow { color: var(--muted); font-size: .88rem; font-weight: 620; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1rem; }
.method-paper-title { max-width: 43rem; margin: .8rem auto 0; font-size: clamp(1.05rem, 2vw, 1.3rem); text-wrap: balance; }
.method-status { margin: 1.15rem auto 0; max-width: 34rem; }
.back-link { display: inline-block; margin-top: 1.65rem; color: var(--ink); font-weight: 620; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem .95rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .distribution-wide { display: none; }
  .distribution-panels { display: grid; gap: 1.05rem; justify-items: center; }
  .distribution-panel { width: min(100%, 29rem); aspect-ratio: var(--panel-width) / 541; overflow: hidden; }
  .distribution-panel img { width: calc(190600% / var(--panel-width)); max-width: none; transform: translateX(var(--panel-offset)); }
  .distribution-scenes { --panel-width: 550; --panel-offset: 0%; }
  .distribution-events { --panel-width: 605; --panel-offset: -33.578174%; }
  .distribution-duration { --panel-width: 578; --panel-offset: -69.674711%; }
}
@media (max-width: 490px) {
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .64rem .71rem; min-height: auto; }
  nav { gap: .4rem .8rem; }
  nav a { font-size: .82rem; }
}
@media (max-width: 450px) {
  .wrap { width: calc(100% - 1.6rem); }
  .hero-inner { padding-block: 2.6rem 3.2rem; }
  .hero-actions { gap: .45rem; }
  .hero-action { padding-inline: .6rem; font-size: .83rem; }
  .dataset-stats dd { font-size: 1.25rem; }
  .dataset-stats dt { font-size: .8rem; }
  .gallery { gap: .97rem .68rem; }
}
@media (max-width: 510px) { .gallery { grid-template-columns: 1fr; gap: 1.15rem; } }
