:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #15202b;
  --muted: #5b6773;
  --line: #dbe3ec;
  --accent: #1f6feb;
  --accent-dark: #1558bf;
  --soft: #eef3fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbf5f7 0%, #faf6f8 16%, #f5f4f8 42%, #eef3fa 100%);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 10px;
}

.hero-logo {
  display: block;
  width: min(120px, 24vw);
  height: auto;
  margin: 0 auto 14px;
}

.title {
  margin: 0 auto;
  max-width: 1120px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.title-mark {
  background: linear-gradient(90deg, #f29fbe 0%, #c39cf0 46%, #76a9f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.authors {
  margin: 16px auto 0;
  max-width: 960px;
  color: var(--muted);
  font-size: 1rem;
}

.author-line,
.affiliation-line,
.contrib-line {
  margin: 0;
}

.author-line + .author-line,
.author-line + .affiliation-line,
.affiliation-line + .contrib-line {
  margin-top: 6px;
}

.author-line strong {
  color: var(--text);
  font-weight: 700;
}

.author-sep {
  margin: 0 8px;
}

.author-note {
  margin-left: 1px;
}

.contrib-line {
  font-size: 0.94rem;
}

.subtitle {
  margin: 10px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: visible;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
  z-index: -1;
}

.button:hover {
  transform: translateY(-4px) scale(1.02);
}

.button-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.button-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.button-note {
  font-weight: 600;
  color: inherit;
  opacity: 0.82;
}

.arxiv-icon,
.brand-svg,
.brand-emoji {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.arxiv-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.brand-svg {
  object-fit: contain;
}

.brand-emoji {
  font-size: 18px;
  line-height: 1;
}

.button:hover .button-icon,
.button:hover .brand-svg,
.button:hover .brand-emoji {
  transform: scale(1.08);
}

.button-icon,
.brand-svg,
.brand-emoji {
  transition: transform 0.2s ease;
}

.button-paper {
  background: #1f6feb;
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 111, 235, 0.18);
}

.button-paper::before {
  background: radial-gradient(circle, rgba(31, 111, 235, 0.42) 0%, rgba(31, 111, 235, 0.18) 45%, rgba(31, 111, 235, 0) 78%);
}

.button-paper:hover {
  background: #0f5bd8;
  box-shadow:
    0 22px 38px rgba(31, 111, 235, 0.26),
    0 8px 22px rgba(31, 111, 235, 0.18);
}

.button-paper:hover::before {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(16px);
}

.button-arxiv {
  background: #fff3ea;
  color: #b44b1e;
  border-color: rgba(180, 75, 30, 0.2);
  box-shadow: 0 12px 24px rgba(180, 75, 30, 0.11);
}

.button-arxiv::before {
  background: radial-gradient(circle, rgba(180, 75, 30, 0.36) 0%, rgba(180, 75, 30, 0.14) 45%, rgba(180, 75, 30, 0) 78%);
}

.button-arxiv:hover {
  box-shadow:
    0 22px 38px rgba(180, 75, 30, 0.2),
    0 8px 22px rgba(180, 75, 30, 0.14);
  background: #ffe4d2;
  color: #9f3f18;
}

.button-arxiv:hover::before {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(16px);
}

.button-github {
  background: #f3efff;
  color: #5b3cc4;
  border-color: rgba(91, 60, 196, 0.16);
  box-shadow: 0 12px 24px rgba(91, 60, 196, 0.12);
}

.button-github::before {
  background: radial-gradient(circle, rgba(91, 60, 196, 0.34) 0%, rgba(91, 60, 196, 0.14) 45%, rgba(91, 60, 196, 0) 78%);
}

.button-github:hover {
  background: #e5d9ff;
  box-shadow:
    0 22px 38px rgba(91, 60, 196, 0.2),
    0 8px 22px rgba(91, 60, 196, 0.14);
  color: #4f2ec2;
}

.button-github:hover::before {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(16px);
}

.button-code {
  background: #eef4ff;
  color: #2458c6;
  border-color: rgba(36, 88, 198, 0.15);
  box-shadow: 0 12px 24px rgba(36, 88, 198, 0.11);
}

.button-code::before {
  background: radial-gradient(circle, rgba(36, 88, 198, 0.34) 0%, rgba(36, 88, 198, 0.14) 45%, rgba(36, 88, 198, 0) 78%);
}

.button-code:hover {
  background: #dfeaff;
  box-shadow:
    0 22px 38px rgba(36, 88, 198, 0.2),
    0 8px 22px rgba(36, 88, 198, 0.14);
  color: #1d4fb7;
}

.button-code:hover::before {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(16px);
}

.button-hf {
  background: #fff4c7;
  color: #7a5400;
  border-color: rgba(122, 84, 0, 0.14);
  box-shadow: 0 12px 24px rgba(245, 185, 39, 0.14);
}

.button-hf::before {
  background: radial-gradient(circle, rgba(245, 185, 39, 0.38) 0%, rgba(245, 185, 39, 0.16) 45%, rgba(245, 185, 39, 0) 78%);
}

.button-hf:hover {
  background: #ffe88f;
  box-shadow:
    0 22px 38px rgba(245, 185, 39, 0.22),
    0 8px 22px rgba(245, 185, 39, 0.16);
  color: #6f4c00;
}

.button-hf:hover::before {
  opacity: 1;
  transform: scale(1.08);
  filter: blur(16px);
}

.button-disabled {
  background: #eef2f7;
  border-color: var(--line);
  color: #7b8794;
  cursor: not-allowed;
  box-shadow: none;
}

.button-disabled:hover {
  transform: none;
}

.section {
  margin-top: 40px;
}

.section h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  text-align: center;
}

.text-block,
.figure-card,
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.text-block {
  padding: 26px 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.text-block p {
  margin: 0;
}

.text-block p + p {
  margin-top: 16px;
}

.abstract-block {
  max-width: 920px;
  margin: 0 auto;
}

.intro-panel,
.section-lead {
  max-width: 840px;
  margin: 0 auto 18px;
  color: var(--muted);
  text-align: center;
  font-size: 1.04rem;
}

.section-lead p {
  margin: 0;
}

.section-lead p + p {
  margin-top: 12px;
}

.method-lead {
  padding: 4px 18px;
}

.intro-panel {
  max-width: 980px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 227, 236, 0.92);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.method-panels {
  display: grid;
  gap: 18px;
}

.method-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(219, 227, 236, 0.92);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.method-copy {
  max-width: 820px;
  margin: 0 auto 16px;
  text-align: center;
}

.method-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-copy h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-family: Georgia, "Times New Roman", serif;
}

.method-copy p {
  margin: 0;
  color: var(--muted);
}

.figure-card-large {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.92));
}

.figure-card {
  margin: 0;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.figure-stack {
  display: grid;
  gap: 18px;
  width: 100%;
}

.table-card {
  padding: 18px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 227, 236, 0.92);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.figure-stack,
.table-card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.table-card-copy {
  margin-bottom: 14px;
  text-align: center;
}

.table-card-copy h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-family: Georgia, "Times New Roman", serif;
}

.table-card-copy p {
  margin: 0;
  color: var(--muted);
}

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

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 0.92rem;
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.results-table th {
  background: #f7f9fc;
  font-weight: 700;
  color: var(--text);
}

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

.highlight-row {
  background: #eef6ff;
  font-weight: 600;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.result-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 227, 236, 0.92);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.result-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
}

.result-card p {
  margin: 0;
  color: var(--muted);
}

.paper-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.figure-caption {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.94rem;
  background: #fbfcfe;
}

code {
  font-family: Menlo, Consolas, monospace;
}

.gallery-note {
  margin: -4px 0 14px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.gallery-viewport {
  overflow: hidden;
  padding: 8px 0 12px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 234.5px;
  gap: 14px;
  width: max-content;
  margin: 0;
  align-items: start;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item {
  margin: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .page {
    width: min(980px, calc(100% - 20px));
    padding: 40px 0 56px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .author-sep {
    margin: 0 5px;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .gallery-viewport {
    width: 100%;
  }

}
