:root { --ink: #202124; --muted: #62666b; --accent: #b63337; --line: #e4e5e7; --soft: #f6f7f8; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #277c90; outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { margin-bottom: 18px; font-size: 30px; line-height: 1.3; font-weight: 650; }
h3 { margin-bottom: 10px; font-size: 18px; line-height: 1.45; font-weight: 600; }
p { margin-bottom: 20px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.nav { width: min(1120px, calc(100% - 48px)); height: 56px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 19px; font-weight: 750; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 25px; font-size: 14px; color: var(--muted); }
.hero { position: relative; width: min(1060px, calc(100% - 48px)); margin: auto; padding: 32px 0; text-align: center; }
.venue { position: relative; display: inline-block; margin-bottom: 10px; padding: 5px 13px; border: 1px solid #ead0d1; border-radius: 4px; background: #fcf3f3; color: var(--accent); font-size: 15px; font-weight: 650; }
.venue-star { position: absolute; top: 50%; width: 24px; height: 24px; filter: invert(49%) sepia(79%) saturate(756%) hue-rotate(3deg) brightness(91%) contrast(91%); pointer-events: none; transform: translateY(-50%); animation: venue-twinkle 3.4s ease-in-out infinite; }
.venue-star:first-child { left: -36px; }
.venue-star:last-child { right: -34px; width: 21px; height: 21px; animation-delay: -1.7s; }
@keyframes venue-twinkle {
  0%, 100% { opacity: .65; transform: translateY(-50%) scale(.92) rotate(-5deg); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08) rotate(5deg); }
}
.acceptance-note { margin: 0 auto 24px; max-width: 600px; color: var(--muted); font-size: 14px; line-height: 1.6; text-wrap: balance; }
.code-status { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 14px; font-weight: 550; color: var(--ink); }
.code-status span { color: var(--muted); font-size: 12px; }
.celebration { position: absolute; inset: 0 0 auto; height: 300px; overflow: hidden; pointer-events: none; z-index: 5; }
.celebration span { position: absolute; top: -15px; left: var(--left); width: 5px; height: 9px; background: var(--color); opacity: 0; animation: celebration-fall 1.9s var(--delay) ease-out forwards; }
@keyframes celebration-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  15% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(var(--drift), 280px, 0) rotate(var(--rotation)); }
}
h1 { margin: 0 auto 22px; max-width: 940px; font-size: 36px; line-height: 1.24; font-weight: 600; }
.paper-name { display: block; margin-bottom: 10px; font-size: 58px; font-weight: 760; line-height: 1.1; }
.paper-name span { color: var(--accent); }
.authors { max-width: 950px; margin: 0 auto 12px; font-size: 16px; line-height: 1.8; }
sup { font-size: .66em; line-height: 0; padding-left: 1px; }
.affiliations { max-width: 900px; margin: 0 auto 23px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.institution-logos { max-width: 1020px; margin: 32px auto 34px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 32px; }
.institution-logos a { flex: 0 1 calc((100% - 96px) / 4); min-width: 0; height: 116px; display: flex; align-items: center; justify-content: center; }
.institution-logos img { width: 100%; max-width: 226px; height: 106px; object-fit: contain; }
.institution-logos .seal img { width: 108px; height: 108px; }
.institution-logos .tsinghua-wordmark { overflow: hidden; }
.institution-logos .tsinghua-wordmark img { transform: scale(1.45); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; }
.button:hover { border-color: var(--ink); background: var(--soft); color: var(--ink); }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.primary:hover { background: #414347; }
.button svg { width: 16px; height: 16px; flex-shrink: 0; }
.button.primary img { filter: invert(1); }
.section { width: min(1080px, calc(100% - 48px)); margin: auto; padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 790px; margin: 0 auto 30px; text-align: center; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 650; }
.rollouts { padding-top: 10px; padding-bottom: 44px; }
.overview-section { max-width: 960px; padding-top: 8px; padding-bottom: 44px; }
.overview-media { position: relative; margin: 0; background: #f3f4f5; border-radius: 5px; overflow: hidden; }
.overview-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.overview-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(25,26,29,.84); cursor: pointer; }
.overview-play img { filter: invert(1); margin-left: 4px; }
.overview-play:hover { background: var(--accent); }
.overview-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.experiment-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.experiment-tabs button { min-height: 46px; padding: 8px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.experiment-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.experiment-tabs button:hover { color: var(--ink); }
.experiment-panel { min-height: 220px; }
.camera-details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.camera-details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.camera-details .video-grid { margin-top: 20px; }
[hidden] { display: none !important; }
.video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.video-toolbar h2 { margin: 0; font-size: 18px; }
.video-controls { display: flex; align-items: center; gap: 10px; }
.playback-note { font-size: 13px; color: var(--muted); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 17px; height: 17px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
.video-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid figure { margin: 0; min-width: 0; }
.video-frame { position: relative; background: var(--soft); border-radius: 5px; overflow: hidden; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #f0f1f2; }
.video-grid figcaption { display: flex; gap: 9px; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.clip-number { color: #85888d; font-variant-numeric: tabular-nums; }
.takeaway { max-width: 830px; margin: 28px auto 0; text-align: center; font-size: 19px; line-height: 1.7; }
.abstract { max-width: 850px; }
.abstract h2 { text-align: center; }
.lead { font-size: 18px; line-height: 1.85; margin-bottom: 0; }
.problem-statement { font-size: 25px; line-height: 1.5; font-weight: 550; margin-bottom: 28px; text-align: center; }
.problem-statement em { font-style: normal; color: var(--accent); }
.motivation-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; margin-top: 26px; }
.motivation-points article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.motivation-points h3 { font-size: 16px; }
.motivation-points p { color: var(--muted); margin-bottom: 0; font-size: 15px; }
.paper-figure { margin: 0; }
.paper-figure img { width: 100%; }
.paper-figure figcaption { max-width: 870px; margin: 16px auto 0; color: var(--muted); font-size: 14px; text-align: center; }
.method-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; margin-top: 35px; }
.method-points article { border-top: 2px solid var(--line); padding-top: 18px; }
.method-points article:first-child { border-color: #ba5558; }
.method-points article:nth-child(2) { border-color: #277c90; }
.method-points article:nth-child(3) { border-color: #7f858e; }
.method-points p { margin: 0; color: var(--muted); font-size: 15px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 32px 0; padding: 26px 0; border-block: 1px solid var(--line); }
.metrics div { padding: 0 18px; text-align: center; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics strong { display: block; margin-bottom: 7px; font-size: 38px; line-height: 1.15; font-weight: 650; color: #23697a; }
.metrics span { font-size: 14px; color: var(--muted); }
.media-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; align-items: center; }
.media-text h2 { font-size: 25px; }
.media-text p { color: var(--muted); }
.media-text .eyebrow { color: var(--accent); }
.media-text.reverse { grid-template-columns: 1fr 1.1fr; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 15px; }
.citation-heading h2 { margin-bottom: 0; }
pre { margin: 0; padding: 25px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.8; }
.footer { padding: 27px 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.footer p { margin: 0; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .institution-logos { max-width: 720px; gap: 22px 24px; }
  .institution-logos a { flex-basis: calc((100% - 72px) / 4); }
  .hero { padding-top: 32px; }
  h1 { font-size: 29px; }
  .paper-name { font-size: 48px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .media-text, .media-text.reverse { grid-template-columns: 1fr; gap: 25px; }
  .media-text.reverse .paper-figure { grid-row: 1; }
  .motivation-points, .method-points { gap: 20px; }
  .motivation-points article + article { padding-left: 18px; }
}
@media (max-width: 540px) {
  .institution-logos { max-width: 340px; gap: 14px 28px; margin: 24px auto; }
  .institution-logos a { flex-basis: calc((100% - 28px) / 2); height: 84px; }
  .institution-logos img { max-width: 156px; height: 76px; }
  .institution-logos .seal img { width: 78px; height: 78px; }
  html { scroll-padding-top: 70px; }
  .nav, .hero, .section { width: calc(100% - 32px); }
  .nav { height: 52px; gap: 12px; }
  .nav-links { gap: 12px; font-size: 12px; }
  .nav-links a:first-child { display: none; }
  .brand { font-size: 17px; }
  h1 { font-size: 26px; }
  h2 { font-size: 25px; }
  .paper-name { font-size: 44px; }
  .authors { font-size: 14px; }
  .affiliations { font-size: 12px; }
  .venue { font-size: 14px; }
  .hero { padding: 28px 0; }
  .section { padding: 42px 0; }
  .rollouts { padding-top: 0; }
  .overview-section { padding-top: 0; }
  .experiment-tabs { gap: 12px; }
  .experiment-tabs button { flex: 1; font-size: 13px; text-align: left; line-height: 1.4; }
  .overview-play { width: 50px; height: 50px; }
  .overview-caption { font-size: 12px; }
  .video-grid { grid-template-columns: 1fr; gap: 22px; }
  .video-toolbar { align-items: flex-start; }
  .video-toolbar h2 { font-size: 16px; padding-top: 4px; }
  .video-controls { gap: 6px; }
  .takeaway, .lead { font-size: 16px; }
  .problem-statement { font-size: 22px; }
  .method-points, .motivation-points { grid-template-columns: 1fr; }
  .motivation-points article + article { border-left: 0; padding-left: 0; }
  .metrics div { padding: 0 7px; }
  .metrics strong { font-size: 29px; }
  .metrics span { font-size: 12px; }
  pre { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .celebration { display: none; } .venue-star { animation: none; opacity: 1; } }
@media (max-width: 360px) {
  .hero { padding: 20px 0 22px; }
  h1 { font-size: 23px; margin-bottom: 16px; }
  .paper-name { font-size: 40px; }
  .authors { font-size: 13px; line-height: 1.7; }
  .affiliations { line-height: 1.65; margin-bottom: 18px; }
  .actions { gap: 7px; }
  .actions .button { padding: 7px 9px; font-size: 13px; }
}
