:root {
  --paper: #fcfdfe;
  --tint: #f3f6fa;
  --ink: #1f2937;
  --text: #465261;
  --blue: #7592aa;
  --deep-blue: #315f84;
  --line: #dde5ec;
  --surface: #fff;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --comic: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; color: var(--text); background: var(--paper); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
a { color: var(--deep-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(100%, 1200px); padding-inline: 28px; margin-inline: auto; }
.wide-container { width: min(100%, 1460px); }
.text-container { max-width: 900px; }
.section { padding-block: 72px; }
.section-tinted { background: var(--tint); }
.section-title { font-size: clamp(26px, 2.7vw, 34px); text-align: center; line-height: 1.3; margin-bottom: 18px; }
.section-intro { text-align: center; max-width: 800px; margin: 0 auto 32px; font-size: 16px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px; background: white; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 16px 32px; gap: 28px; background: rgba(252,253,254,.96); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { backdrop-filter: blur(12px); border-color: var(--line); box-shadow: 0 3px 16px #23364a08; }
.wordmark { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: -.4px; }
.wordmark:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav > a, .nav-dropdown summary { color: var(--text); font-size: 14px; white-space: nowrap; }
.site-nav > a[aria-current="location"] { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 8px; }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary span { margin-left: 4px; }
.dropdown-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 25px #23364a12; }
.dropdown-menu a { display: block; padding: 8px 12px; font-size: 13px; border-radius: 5px; }
.dropdown-menu a:hover { background: var(--tint); text-decoration: none; }
.menu-toggle { display: none; border: 1px solid var(--line); padding: 7px 12px; border-radius: 7px; background: transparent; color: var(--ink); font-size: 14px; }
.menu-toggle span { margin-left: 8px; }
.publication-header { background: radial-gradient(ellipse 62% 68% at 0% 0%, rgba(89, 143, 187, .085), transparent 72%), radial-gradient(ellipse 48% 48% at 100% 70%, rgba(89, 143, 187, .065), transparent 74%), #fff; min-height: 100vh; min-height: 100svh; padding: clamp(104px, 12svh, 144px) 0 24px; text-align: center; display: flex; flex-direction: column; gap: 32px; }
.publication-header > .container { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; margin-block: 0; }
.cover-identity-group { margin-top: 32px; }
.cover-lead { max-width: 1040px; margin: 32px auto 0; font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--text); }
.cover-lead strong { color: var(--deep-blue); font-weight: 700; }
.cover-next { display: inline-flex; align-items: center; justify-content: center; align-self: center; gap: 12px; min-height: 44px; max-width: 760px; margin-inline: 24px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.cover-next span { flex: none; font-size: 22px; animation: prompt-arrow-float 2.4s ease-in-out infinite; }
.publication-header h1 { max-width: 1070px; margin: 0 auto; font-size: clamp(28px, 2.45vw, 34px); line-height: 1.35; letter-spacing: -.5px; }
.title-brand { display: block; margin-bottom: 14px; color: var(--deep-blue); font-size: 50px; line-height: 1.15; letter-spacing: -1.2px; }
.title-description { display: block; }
.title-phrase { white-space: nowrap; }
.publication-authors { margin-top: 0; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 16px; }
.publication-affiliations { margin-top: 8px; font-size: 15px; color: #697786; }
.publication-links { margin: 32px auto 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; width: min(100%,600px); }
.resource-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 14px; border-radius: 999px; background: #426f92; color: #fff; font-size: 14px; font-weight: 600; border: 1px solid #315f84; box-shadow: none; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.resource-link:hover { text-decoration: none; background: #365f80; border-color: #274e6e; transform: translateY(-2px); box-shadow: 0 5px 12px #23364a10; }
@media (prefers-reduced-motion: reduce) { .resource-link { transition: none; } .resource-link:hover { transform: none; } }
.resource-link svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.teaser-section { padding: 0 0 64px; }
.media-column figcaption { font-family: var(--comic); text-align: center; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: var(--text); }
.media-column.is-ours figcaption { color: var(--deep-blue); }
.media-slot { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fb; }
.is-ours .media-slot { border-color: #9fb4c6; }
.placeholder-content { display: flex; flex-direction: column; align-items: center; gap: 11px; color: #71808e; font-size: 12px; }
.placeholder-content svg { width: 34px; height: 34px; stroke: #96a6b3; }
.media-slot video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #101a24; }
.abstract-copy { font-size: 17px; line-height: 1.8; text-align: justify; }
.abstract-copy p + p { margin-top: 20px; }
#method { padding-block: 36px; }
#method .section-title { margin-bottom: 12px; }
#method .section-intro { margin-bottom: 20px; }
.method-figure { width: 90%; margin-inline: auto; }
.method-figure-link { display: block; max-width: 100%; margin-inline: auto; background: var(--surface); cursor: zoom-in; }
.method-figure img, .method-figure canvas { display: block; width: 100%; height: auto; }
.method-figure figcaption { max-width: 960px; margin: 12px auto 0; text-align: center; font-size: 14px; line-height: 1.65; }
.method-figure figcaption strong { color: var(--ink); }
.figure-expand { display: block; width: fit-content; margin: 8px auto 0; font-size: 13px; }
.result-highlights { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; max-width: 800px; margin: 34px auto 38px; text-align: center; }
.result-highlights > div { display: flex; flex-direction: column; }
.result-highlights > div + div { border-left: 1px solid var(--line); }
.result-highlights strong { font: 700 45px/1.2 var(--serif); color: var(--deep-blue); }
.result-highlights strong span { font-size: 27px; }
.result-highlights div > span { font-size: 14px; font-weight: 600; color: var(--ink); margin: 8px 0 4px; }
.result-highlights small { font-size: 12px; color: var(--text); }
.table-scroll { overflow-x: auto; width: 100%; border-radius: 6px; }
.results-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.results-table caption { caption-side: bottom; padding-top: 14px; text-align: left; color: var(--text); font-size: 12px; }
.results-table th, .results-table td { padding: 12px 13px; white-space: nowrap; }
.results-table thead { border-block: 1.5px solid #8ca7be; color: var(--ink); }
.results-table thead th[scope="colgroup"] { position: relative; text-align: center; padding-top: 14px; }
.results-table thead th[scope="colgroup"]::after { content: ""; position: absolute; bottom: 0; left: 8px; right: 8px; height: 1px; background: var(--line); }
.results-table th:first-child { text-align: left; }
.results-table tbody tr { border-bottom: 1px solid var(--line); }
.results-table tbody th { font-weight: 500; }
.results-table .ours { background: var(--tint); color: #203e59; border-bottom: 1.5px solid #8ca7be; }
.results-table .ours th { font-weight: 700; }
.results-table .no-edit { color: #7d8792; font-style: italic; border-top: 1px solid #a8bdcf; }
.benchmark-link { text-align: center; margin-top: 25px; font-size: 14px; }
.comparison-block { margin-top: 32px; scroll-margin-top: 95px; }
.comparison-block h3 { font-size: 24px; text-align: center; }
.comparison-description { font-size: 14px; text-align: center; margin: 9px 0 22px; }
.comparison-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.comparison-grid .media-column { min-width: 0; }
.comparison-grid .media-column figcaption { display: flex; align-items: center; justify-content: center; min-height: 36px; background: #e7ecf1; color: var(--ink); border-radius: 6px; padding: 6px 8px; font-size: 12px; line-height: 1.4; }
.comparison-grid .is-source figcaption { background: #dce4eb; }
.comparison-grid .is-ours figcaption { background: var(--deep-blue); color: white; }
.comparison-grid .is-ours .media-slot { border-color: var(--deep-blue); }
.comparison-grid .placeholder-content { font-size: 10px; gap: 7px; }
.comparison-grid .placeholder-content svg { width: 25px; height: 25px; }
.citation-section { padding-block: 56px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.citation-heading .section-title { font-size: 26px; margin: 0; }
.copy-button { border: 1px solid var(--line); border-radius: 6px; color: var(--deep-blue); background: white; padding: 6px 13px; font-size: 12px; }
.copy-button:disabled { opacity: .5; cursor: default; }
#citation-pending { padding: 22px 25px; border: 1px solid var(--line); border-radius: 8px; background: #fff9; font-size: 14px; }
#citation-code { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.site-footer { text-align: center; background: var(--tint); border-top: 1px solid var(--line); padding: 33px 20px; font-size: 12px; }
.site-footer .wordmark { font-size: 19px; }
.site-footer p + p { margin-top: 9px; }
@media (max-width: 1050px) {
  .site-header { padding-inline: 24px; }
  .site-nav { gap: 16px; }
  .site-nav > a, .nav-dropdown summary { font-size: 12px; }
  .wordmark { font-size: 20px; }
  .comparison-grid { gap: 7px; }
  .comparison-grid .media-column figcaption { font-size: 10px; }
}
@media (max-width: 1000px) {
  .comparison-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(76vw, 260px); gap: 12px; width: 100%; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b3c2cf transparent; }
  .comparison-grid .media-column { scroll-snap-align: start; }
  .comparison-grid .media-column figcaption { font-size: 12px; }
  .comparison-grid .placeholder-content { font-size: 11px; }
}
@media (max-width: 800px) {
  .site-header { min-height: 65px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; padding: 14px 24px 20px; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px #23364a0c; }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-dropdown summary { display: block; padding: 9px 0; font-size: 14px; }
  .dropdown-menu { position: static; transform: none; border: 0; box-shadow: none; padding: 0 0 0 13px; }
  .publication-header { padding-top: 108px; }
  .publication-header h1 { max-width: 680px; font-size: clamp(25px, 4.1vw, 32px); }
  .title-brand { font-size: 44px; }
  .desktop-break { display: none; }
  .container { padding-inline: 22px; }
  .section { padding-block: 56px; }
  .method-figure { width: 100%; }
}
@media (max-width: 480px) {
  .publication-header h1 { font-size: clamp(21px, 6vw, 24px); line-height: 1.35; letter-spacing: -.35px; }
  .title-brand { font-size: clamp(32px, 9.75vw, 38px); letter-spacing: -.8px; margin-bottom: 16px; }
  .publication-header { padding-bottom: 28px; }
  .publication-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 310px; margin-inline: auto; gap: 9px; }
  .resource-link { padding: 7px 13px; font-size: 12px; }
  .media-column figcaption { font-size: 11px; }
  .placeholder-content { font-size: 10px; gap: 7px; }
  .placeholder-content svg { width: 24px; height: 24px; }
  .abstract-copy { font-size: 15px; }
  .section-intro { font-size: 14px; }
  .result-highlights { gap: 16px; }
  .result-highlights strong { font-size: 35px; }
  .result-highlights div > span { font-size: 12px; }
  .result-highlights small { font-size: 11px; }
  .result-highlights > div + div { padding-left: 14px; }
  .comparison-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.publication-authors { column-gap: 22px; row-gap: 10px; color: var(--text); }
.publication-authors > span, .publication-authors > a { white-space: nowrap; }
.publication-authors sup { margin-left: 2px; font-size: .65em; }
.publication-affiliations { max-width: 720px; margin-inline: auto; line-height: 1.6; }
@keyframes prompt-arrow-float { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .cover-next span { animation: none; } }
@media (max-width: 640px) {
  .publication-authors { column-gap: 16px; row-gap: 8px; font-size: 15px; margin-top: 0; }
  .publication-affiliations { font-size: 13px; margin-top: 8px; }
}

.institution-logos { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px auto 0; }
/* Show only the original blue emblem in the official identity sheet. */
.fudan-mark { display: block; width: 54px; height: 54px; overflow: hidden; flex: none; }
.fudan-mark img { display: block; width: 307.1816%; max-width: none; height: auto; }
.teai-mark { display: block; width: 300px; max-width: 100%; }
.teai-mark img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .institution-logos { gap: 16px; margin-top: 14px; }
  .fudan-mark { width: 40px; height: 40px; }
  .teai-mark { width: min(220px,calc(100% - 56px)); }
}

@media (max-width: 640px) {
  .publication-header { padding-top: 96px; gap: 28px; }
  .cover-lead { margin-top: 24px; max-width: 360px; font-size: 16px; }
  .cover-identity-group { margin-top: 24px; }
  .publication-links { margin-top: 24px; }

}

.task-intro { max-width: 850px; margin: 0 auto; font-size: 16px; line-height: 1.8; }
.task-equation { max-width: 850px; margin: 24px auto 0; padding: 20px 22px; background: #f4f7fa; border: 1px solid #dce6ee; border-radius: 12px; }
.task-equation math { font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", math; }
.task-equation > math { font-size: 20px; color: var(--ink); padding-block: 5px; }
.task-symbols { display: flex; justify-content: space-between; gap: 18px; margin: 16px 0 0; text-align: left; }
.task-symbols > div { display: grid; grid-template-columns: 2.4em minmax(0,1fr); align-items: center; gap: 8px; min-width: 0; }
.task-symbols dt { margin: 0; color: var(--deep-blue); font-size: 17px; white-space: nowrap; }
.task-symbols dt math { font-size: 17px; }
.task-symbols dd { margin: 0; min-width: 0; font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) {
  .task-intro { font-size: 15px; }
  .task-equation { padding: 18px 14px; }
  .task-symbols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; }
  .task-symbols > div { grid-template-columns: 32px minmax(0,1fr); gap: 8px; }
  .task-symbols dd { font-size: 12px; }
}

.section-eyebrow { width: fit-content; margin: 0 auto 16px; padding: 7px 18px; border: 1px solid #315f84; border-radius: 999px; background: #315f84; color: #fff; text-align: center; font-size: 14px; line-height: 1.5; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.task-figure { max-width: 850px; margin: 24px auto 0; }
.task-figure-image { display: block; }
.task-figure img { display: block; width: 100%; height: auto; }
.task-figure figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; text-align: center; }

@media (min-width: 641px) and (max-width: 900px) { .task-symbols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; } }

.demo-view > figcaption > span { font-family: var(--comic); }

.section-eyebrow-method { background: #39756d; border-color: #39756d; }
.section-eyebrow-benchmark { background: #75618a; border-color: #75618a; }

@media (max-width: 380px) { .task-symbols { grid-template-columns: 1fr; gap: 10px; } }
