:root {
  --ink: #292d35;
  --muted: #626976;
  --accent: #275d9f;
  --line: #dfe4eb;
  --base: #a5adb7;
  --rare: #278574;
  --blue: #275d9f;
  --teal: #207666;
  --purple: #76549c;
  --warm: #a65131;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.prose {
  max-width: 850px;
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 10px 18px;
  border: 1px solid var(--line);
}
.skip-link:focus {
  top: 10px;
}
.paper-header {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 44px;
}
h1 {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.7px;
}
h1 > span {
  display: block;
}
.title-logo {
  display: inline-block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  vertical-align: -7px;
  margin-right: 7px;
}
.project-name {
  color: var(--blue);
  font-weight: 750;
}
.paper-authorship {
  max-width: 950px;
  margin: 22px auto 0;
}
.author-list {
  font-size: 16px;
  line-height: 2;
  text-wrap: balance;
}
.author-list > span {
  display: inline-block;
  margin-inline: 7px;
  white-space: nowrap;
}
.paper-authorship sup {
  font-size: 0.7em;
  line-height: 0;
}
.author-list sup {
  margin-left: 2px;
}
.affiliations {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.9;
  color: #565b64;
  text-wrap: balance;
}
.affiliations > span {
  display: inline-block;
  margin-inline: 7px;
  max-width: 100%;
}
.author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.text-blue {
  color: var(--blue);
}
.text-teal {
  color: var(--teal);
}
.paper-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}
.paper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  background: #343840;
  color: #fff;
  border-radius: 24px;
  padding: 8px 19px;
  min-height: 40px;
}
.resource-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.github-icon {
  filter: invert(1);
}
.hf-icon {
  width: 22px;
  height: 22px;
}
.paper-links a:hover {
  background: #4c535b;
  text-decoration: none;
}
h2 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.4px;
  text-align: center;
  margin-bottom: 22px;
}
.abstract {
  padding-top: 8px;
  padding-bottom: 34px;
}
.abstract p + p {
  margin-top: 18px;
}
.abstract p {
  font-size: 16px;
  line-height: 1.85;
}
.section {
  padding-top: 54px;
  padding-bottom: 34px;
}
#method,
#results,
#examples,
#bibtex {
  border-top: 1px solid var(--line);
}
.section-intro {
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.85;
}
#examples {
  --reading-font: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --reading-ink: #282725;
  --reading-muted: #73716c;
  --reading-rule: #d9d7d2;
  color: var(--reading-ink);
}
.examples-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.examples-heading h2 {
  text-align: left;
  margin-bottom: 8px;
}
.examples-heading p {
  font-size: 14px;
  color: var(--reading-muted);
}
.language-control {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--reading-muted);
}
.language-switch,
.view-switch {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.language-switch button,
.view-switch button {
  padding: 6px 0;
  background: none;
  color: var(--reading-muted);
  font-size: 12px;
  border-bottom: 1px solid transparent;
}
.language-switch button[aria-pressed="true"],
.view-switch button[aria-pressed="true"] {
  color: var(--reading-ink);
  border-bottom-color: currentColor;
}
.language-switch button:hover,
.view-switch button:hover {
  color: var(--reading-ink);
}
.language-note {
  font-size: 11px;
  color: var(--reading-muted);
  margin: 12px 0 30px;
}
.domain-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--reading-rule);
}
.domain-tabs button {
  background: none;
  padding: 8px 0 12px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--reading-muted);
}
.domain-tabs button:hover {
  color: var(--reading-ink);
}
.domain-tabs button[aria-selected="true"] {
  color: var(--reading-ink);
  border-bottom-color: currentColor;
  font-weight: 600;
}
.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 0 28px;
}
.case-choice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  padding: 0;
  background: none;
  min-width: 0;
  color: var(--reading-muted);
}
.case-choice small {
  font:
    11px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  flex-shrink: 0;
}
.case-choice strong {
  font: 18px/1.5 var(--reading-font);
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.case-choice:hover strong,
.case-choice[aria-pressed="true"] strong {
  text-decoration-line: underline;
}
.case-choice[aria-pressed="true"] {
  color: var(--reading-ink);
}
.example-context {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  margin: 8px 0 34px;
}
.query-label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 11px;
  color: var(--reading-muted);
}
.query-label strong {
  font-weight: 600;
  color: var(--reading-ink);
}
.query-label a {
  margin-left: auto;
  color: var(--reading-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#query {
  margin-top: 16px;
  font: 22px/1.65 var(--reading-font);
  overflow-wrap: anywhere;
}
#query[lang="zh-CN"] {
  font-size: 21px;
  line-height: 1.85;
}
.case-scores {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.case-scores caption {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  padding-bottom: 9px;
}
.case-scores caption span {
  font-weight: 400;
  color: var(--reading-muted);
  margin-left: 4px;
}
.case-scores th,
.case-scores td {
  padding: 5px 0 5px 18px;
  font-weight: 400;
}
.case-scores th:first-child {
  text-align: left;
  padding-left: 0;
}
.case-scores thead {
  border-bottom: 1px solid var(--reading-rule);
  color: var(--reading-muted);
}
.case-scores .rare {
  font-weight: 650;
}
.reading-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.reading-toolbar > span {
  color: var(--reading-muted);
  font-size: 11px;
}
.script-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--reading-ink);
}
.script-panel {
  min-width: 0;
  margin-top: 24px;
}
.base-panel {
  padding-right: 32px;
}
.rare-panel {
  border-left: 1px solid var(--reading-rule);
  padding-left: 32px;
}
.script-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.script-panel > header h3 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.script-panel header p {
  font-size: 10px;
  color: var(--reading-muted);
  margin-top: 3px;
}
.overall-score {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.overall-score small {
  font-size: 10px;
  color: var(--reading-muted);
  font-weight: 400;
  margin-left: 3px;
}
.script-title-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 7px;
}
.script-title-row h4 {
  font: 23px/1.4 var(--reading-font);
}
.script-title-row a {
  font-size: 11px;
  white-space: nowrap;
  color: var(--reading-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scene-label {
  font-size: 10px;
  color: var(--reading-muted);
  margin-bottom: 24px;
}
.script-content {
  max-height: 680px;
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 0 16px 16px 0;
  font: 16px/1.8 var(--reading-font);
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: #c5c3bd transparent;
}
.script-content[lang="zh-CN"] {
  font-size: 16px;
  line-height: 2;
}
.script-content h1 {
  font: 600 22px/1.5 var(--reading-font);
  letter-spacing: 0;
  margin: 18px 0;
}
.script-content h2 {
  font: 600 20px/1.5 var(--reading-font);
  text-align: left;
  letter-spacing: 0;
  margin: 30px 0 14px;
}
.script-content h3 {
  font: 600 11px/1.8 var(--font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 32px 0 18px;
}
.script-content h3:first-child {
  margin-top: 0;
}
.script-content p {
  margin-block: 16px;
}
.script-content em {
  color: #595751;
}
.script-content pre {
  font: inherit;
  white-space: pre-wrap;
  margin: 22px 28px;
}
.script-content code {
  font: inherit;
}
.script-content blockquote {
  margin: 24px 0 24px 20px;
  color: var(--reading-muted);
  font-size: 13px;
}
.script-content hr {
  border: 0;
  border-top: 1px solid var(--reading-rule);
  margin: 28px 0;
}
.script-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.7;
}
.script-content th,
.script-content td {
  border-bottom: 1px solid var(--reading-rule);
  padding: 6px;
}
.script-content ul,
.script-content ol {
  padding-left: 21px;
}
.case-footnote {
  font-size: 11px;
  color: var(--reading-muted);
  margin-top: 26px;
  max-width: 950px;
  line-height: 1.8;
}
figure {
  margin: 24px 0;
}
figure > a {
  display: block;
}
figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 13px;
}
.method-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 14px;
  text-align: center;
}
.variant-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.variant-guide > div {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.variant-guide h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.variant-guide p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
}
.variant-negative {
  color: var(--teal);
}
.variant-positive {
  color: var(--blue);
}
.variant-mixed {
  color: var(--purple);
}
.result-heading {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: var(--blue);
  margin: 26px 0 16px;
}
.result-block {
  margin-top: 46px;
}
.results-figure {
  max-width: 960px;
  margin: 26px auto 32px;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}
.figure-scroll {
  overflow-x: auto;
}
.paper-table-figure img {
  min-width: 700px;
  width: 100%;
}
.pairwise-figure img {
  min-width: 760px;
  width: 100%;
}
.supporting-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 38px;
}
.supporting-results > section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.supporting-results h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.supporting-results p {
  font-size: 14px;
  line-height: 1.8;
}
.supporting-results .preference-note {
  font-size: 13px;
  margin-top: 24px;
}
.transfer-results .table-wrap {
  margin-top: 16px;
}
.transfer-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.transfer-table th,
.transfer-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e4dfee;
}
.transfer-table th:first-child {
  text-align: left;
}
.transfer-table th {
  font-weight: 500;
}
.transfer-table small {
  font-weight: 400;
  color: var(--muted);
}
.transfer-table .highlight-row {
  color: #634188;
}
.transfer-table .highlight-row th {
  font-weight: 650;
}
.transfer-table caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
#bibtex {
  margin-top: 32px;
}
#bibtex h2 {
  text-align: left;
  font-size: 24px;
}
.citation-placeholder {
  background: #f4f5f7;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  margin: 0;
  padding: 24px;
  min-height: 116px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font:
    13px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 23px 0 30px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  h1 {
    font-size: 29px;
  }
  .container {
    width: calc(100% - 48px);
  }
  .prose {
    width: calc(100% - 48px);
  }
  .container .prose {
    width: 100%;
  }
  .example-context {
    gap: 32px;
  }
  .base-panel {
    padding-right: 24px;
  }
  .rare-panel {
    padding-left: 24px;
  }
}
@media (max-width: 700px) {
  .container,
  .prose {
    width: calc(100% - 32px);
  }
  .paper-header {
    padding-top: 34px;
    padding-bottom: 29px;
  }
  h1 {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.4px;
  }
  h1 > span {
    display: inline;
  }
  h1 > span + span::before {
    content: " ";
  }
  .paper-links {
    gap: 8px;
    margin-top: 20px;
  }
  .paper-links a {
    font-size: 12px;
    padding: 6px 13px;
    gap: 6px;
    min-height: 36px;
  }
  .author-list {
    font-size: 14px;
  }
  .author-list > span {
    margin-inline: 5px;
  }
  .affiliations {
    font-size: 11px;
    line-height: 1.8;
  }
  .affiliations > span {
    margin: 3px 0;
  }
  .author-notes {
    font-size: 11px;
    gap: 3px 16px;
  }
  .title-logo {
    width: 30px;
    height: 30px;
    vertical-align: -6px;
  }
  .resource-icon {
    width: 16px;
    height: 16px;
  }
  .hf-icon {
    width: 20px;
    height: 20px;
  }
  h2 {
    font-size: 23px;
    margin-bottom: 18px;
  }
  .abstract p {
    font-size: 14px;
    line-height: 1.85;
  }
  .abstract {
    padding-bottom: 10px;
  }
  .section {
    padding-top: 35px;
    padding-bottom: 15px;
  }
  .examples-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .examples-heading p {
    font-size: 12px;
  }
  .language-control {
    gap: 10px;
  }
  .language-note {
    font-size: 10px;
    margin-top: 12px;
    margin-bottom: 16px;
  }
  .domain-tabs {
    gap: 18px;
  }
  .domain-tabs button {
    font-size: 12px;
    padding: 8px 0 10px;
    min-width: 0;
  }
  .case-list {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0 26px;
  }
  .case-choice strong {
    font-size: 17px;
  }
  .example-context {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 28px;
  }
  #query,
  #query[lang="zh-CN"] {
    font-size: 20px;
  }
  .query-label {
    font-size: 10px;
    gap: 8px;
  }
  .reading-toolbar {
    flex-wrap: wrap;
    gap: 7px;
  }
  .reading-toolbar > span {
    font-size: 10px;
  }
  .view-switch button {
    font-size: 11px;
  }
  .script-pair {
    grid-template-columns: 1fr;
  }
  .script-panel {
    padding: 0;
  }
  .rare-panel {
    margin-top: 30px;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--reading-rule);
  }
  .script-content {
    max-height: 600px;
    font-size: 15px;
    line-height: 1.85;
  }
  .script-content[lang="zh-CN"] {
    font-size: 15px;
  }
  .script-title-row h4 {
    font-size: 22px;
  }
  .section-intro {
    font-size: 14px;
  }
  .method-note {
    font-size: 11px;
  }
  .variant-guide {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }
  .variant-guide h3 {
    font-size: 14px;
  }
  .variant-guide p {
    font-size: 12px;
  }
  .result-heading {
    font-size: 17px;
    margin-top: 20px;
  }
  .supporting-results {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .supporting-results > section {
    padding: 18px 0;
  }
  .supporting-results h3 {
    font-size: 16px;
  }
  .supporting-results p {
    font-size: 13px;
  }
  .transfer-table {
    font-size: 11px;
  }
  .transfer-table th,
  .transfer-table td {
    padding-inline: 4px;
  }
  #bibtex h2 {
    font-size: 22px;
  }
  figcaption {
    font-size: 10px;
  }
  .case-footnote {
    font-size: 10px;
  }
  footer {
    margin-top: 30px;
  }
}
@media (max-width: 480px) {
  .paper-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 290px;
    margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
