:root {
  --page-bg: #f3f4f6;
  --section-bg: #ffffff;
  --section-bg-soft: #f8fafc;
  --panel-bg: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --muted-soft: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --button-bg: #1f2937;
  --button-hover: #374151;
  --button-text: #f3f4f6;
  --button-text-soft: #cbd5e1;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1040px, calc(100vw - 40px));
  --container-narrow: min(960px, calc(100vw - 40px));
  --mono: "SFMono-Regular", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
}

@font-face {
  font-family: "iconfont";
  src:
    url("https://at.alicdn.com/t/c/font_4469714_ypyilnn37vj.woff2?t=1710592823452") format("woff2"),
    url("https://at.alicdn.com/t/c/font_4469714_ypyilnn37vj.woff?t=1710592823452") format("woff"),
    url("https://at.alicdn.com/t/c/font_4469714_ypyilnn37vj.ttf?t=1710592823452") format("truetype");
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-lm-pdf::before {
  content: "\e621";
}

.icon-lm-github::before {
  content: "\ea0b";
}

.icon-lm-huggingface::before {
  content: "\e624";
}

.icon-lm-Arxiv::before {
  content: "\eac3";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  background: var(--page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

#app {
  padding-bottom: 72px;
}

.page {
  width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.container--narrow {
  width: var(--container-narrow);
}

.hero,
.section {
  width: 100%;
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
}

.section {
  padding: 68px 0;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  background: var(--section-bg);
}

.section--benchmark,
.section--citation {
  background: var(--section-bg-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.hero__subtitle {
  max-width: 920px;
  margin: 14px auto 0;
  color: var(--text);
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 400;
}

.hero__description,
.section-heading p,
.abstract-copy p,
.panel__copy p,
.section-note,
.site-footer p,
.citation__header p,
.media-caption {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__description {
  max-width: 860px;
  margin: 16px auto 0;
}

.hero__authors {
  margin-top: 26px;
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  line-height: 1.75;
}

.author-row + .author-row {
  margin-top: 8px;
}

.author-row--thin .author-name {
  font-weight: 300;
}

.author-entry {
  display: inline-block;
  white-space: nowrap;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 400;
}

.author-mark {
  color: var(--muted-soft);
  font-size: 0.64em;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
  position: relative;
  top: -0.08em;
}

.author-mark--prefix {
  margin-right: 1px;
}

.author-mark--suffix {
  margin-left: 1px;
}

a.author-name {
  color: #3b82f6;
  transition: color 180ms ease;
}

a.author-name:hover {
  color: #2563eb;
}

.hero__affiliations {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero__affiliation-list,
.hero__affiliation-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}

.hero__affiliation {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.hero__affiliation-index {
  position: relative;
  top: -0.24em;
  color: var(--muted-soft);
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1;
}

.hero__affiliation-note {
  display: inline-flex;
  align-items: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--button-bg);
  border-radius: var(--radius-sm);
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: var(--button-text);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.12);
}

.button--paper,
.button--results,
.button--method,
.button--outline,
.button--copy {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: var(--button-text);
}

.button--subtle {
  min-height: 34px;
  padding: 0.32rem 0.72rem;
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--muted-soft);
  box-shadow: none;
}

.button--subtle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text);
  box-shadow: none;
}

.button__icon,
.icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.button .button__icon.iconfont {
  width: auto;
  height: auto;
  margin-right: 0;
  font-size: 16px;
}

.button__icon svg,
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero__media {
  max-width: 960px;
  margin: 28px auto 0;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.media-frame img,
.media-frame video {
  background: #f3f4f6;
}

.media-frame video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-frame--contain img {
  object-fit: contain;
}

.media-caption {
  max-width: 860px;
  margin: 14px auto 0;
  text-align: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 20px auto 0;
}

.metric-card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.metric-card__value {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.metric-card__label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.section-heading {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.section-tag {
  display: none;
}

.section-heading h2,
.citation__header h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.section-heading p {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
}

.abstract-copy {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 26px auto 0;
}

.abstract-copy p,
.citation__header p,
.section-note {
  text-align: justify;
}

.abstract-copy p {
  margin: 0;
}

.panel,
.table-panel,
.citation {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
}

.panel,
.citation {
  padding: 28px;
}

.table-panel {
  margin-top: 28px;
  overflow: hidden;
}

.panel--split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 30px;
  align-items: center;
  margin-top: 28px;
}

.panel--story {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 30px;
  align-items: center;
}

.panel--story .panel__media {
  order: 2;
}

.panel--story .panel__copy {
  order: 1;
  margin: 0 6px;
}

.panel--story.panel--reverse .panel__media {
  order: 1;
}

.panel--story.panel--reverse .panel__copy {
  order: 2;
}

.panel--stack,
.method-card {
  display: grid;
  gap: 18px;
}

.panel__media {
  width: 100%;
}

.panel__copy h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.32;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.panel__copy p {
  margin: 12px 0 0;
  text-align: left;
}

.panel__caption {
  color: var(--muted-soft);
  font-style: italic;
  line-height: 1.5;
}

.detail-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  line-height: 1.7;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.card-grid {
  display: grid;
  gap: 22px;
  max-width: 960px;
  margin: 22px auto 0;
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

.benchmark-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.benchmark-table thead th {
  padding: 15px 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #374151;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.benchmark-table thead th:first-child,
.benchmark-table thead th:nth-child(2) {
  text-align: left;
}

.benchmark-table thead th sub {
  position: relative;
  top: 0.16em;
  font-size: 0.78em;
  line-height: 0;
  vertical-align: baseline;
}

.benchmark-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: #1f2937;
  font-size: 0.95rem;
  white-space: nowrap;
}

.benchmark-table td:nth-child(n + 3) {
  text-align: center;
}

.benchmark-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-group th {
  padding: 12px 14px;
  text-align: center;
  background: #1f2937;
  color: #f9fafb;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.table-group__label {
  display: inline-block;
}

.table-row--emphasis td {
  color: var(--text);
  font-weight: 700;
  background: rgba(219, 234, 254, 0.32);
}

.section--benchmark .section-heading p,
.section--benchmark .section-note {
  color: #374151;
}

.section-note {
  max-width: 760px;
  margin: 14px auto 0;
}

.method-card__icon {
  display: none;
}

.schedule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-strip span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.block-progress {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.block-progress__title {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block-progress__rows {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.block-progress__row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.block-progress__label {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
}

.block-progress__track {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.block-progress__segment {
  display: block;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.block-progress__caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

.pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pair-grid__item {
  display: grid;
  gap: 8px;
}

.pair-grid__label {
  text-align: center;
  color: var(--muted-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel--wide {
  grid-column: 1 / -1;
}

.citation {
  margin-top: 12px;
}

.citation__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.citation__header p {
  max-width: 580px;
  margin: 12px 0 0;
}

.button--copy {
  flex-shrink: 0;
  font-size: 0.88rem;
}

.citation-block {
  margin: 20px 0 0;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.94rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.site-footer {
  padding: 52px 0 0;
  background: var(--section-bg-soft);
}

.site-footer p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

@media (max-width: 960px) {
  .panel--split,
  .panel--story,
  .card-grid--two {
    grid-template-columns: 1fr;
  }

  .panel--story .panel__media,
  .panel--story .panel__copy,
  .panel--story.panel--reverse .panel__media,
  .panel--story.panel--reverse .panel__copy {
    order: initial;
  }

  .panel--wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  #app {
    padding-bottom: 56px;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .section {
    padding: 52px 0;
  }

  .metric-grid,
  .pair-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .panel,
  .citation {
    padding: 22px;
  }

  .citation__header {
    flex-direction: column;
  }

  .button--copy {
    width: 100%;
  }

  .block-progress__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
