:root {
  --text: #111827;
  --muted: #4b5563;
  --light: #f3f4f6;
  --line: #d1d5db;
  --blue: #0369a1;
  --cyan: #0891b2;
  --focus-gradient: linear-gradient(90deg, #111827 0%, #ef4444 34%, #10b981 68%, #4338ca 100%);
  --red: #b91c1c;
  --amber: #ca8a04;
  --green: #047857;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.paper-section {
  padding: 42px 16px;
}

.shaded {
  background: var(--light);
}

.hero {
  background: #ffffff;
  color: var(--text);
  padding-top: 34px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.container.wide {
  max-width: 1120px;
}

.center {
  text-align: center;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 14px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1080px;
  white-space: normal;
}

.title-main {
  color: transparent;
  background: var(--focus-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 2.8rem;
  font-weight: 500;
}

.title-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.title-sub {
  color: #334155;
  max-width: 980px;
  font-size: 2.1rem;
}

.conference {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 28px;
  padding: 16px 28px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--focus-gradient);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.2);
}

.conference span {
  padding: 6px 10px;
  color: #111827;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
}

.conference strong {
  font-size: 1.75rem;
  font-weight: 900;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 7px 20px;
  margin: 0 auto 16px;
  max-width: 900px;
  font-size: 1.08rem;
}

.authors span {
  white-space: nowrap;
}

.authors sup {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.affiliations {
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.affiliations p,
.emails {
  margin: 3px 0;
}

.emails {
  margin-bottom: 24px;
  color: #374151;
  font-style: italic;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 10px 20px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.button:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(0.96);
}

.red {
  background: var(--red);
}

.dark {
  background: #111827;
}

.amber {
  background: var(--amber);
}

.blue {
  background: #2563eb;
}

.green {
  background: var(--green);
  color: #ffffff;
}

.muted-button {
  cursor: not-allowed;
  opacity: 0.78;
  pointer-events: none;
}

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

.teaser img,
.figure-card img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  border-radius: 8px;
}

.teaser img {
  max-height: 560px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.two-column {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  align-items: start;
}

h2 {
  margin: 0 0 22px;
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.two-column h2 {
  margin: 0;
}

.two-column p,
.lead {
  margin: 0;
  color: #1f2937;
  font-size: 1.08rem;
}

.lead {
  max-width: 900px;
  margin: 0 auto 30px;
}

.center-title {
  text-align: center;
}

.center-title,
.two-column h2,
.gradient-heading {
  color: transparent;
  background: var(--focus-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.figure-card {
  margin: 0 auto 28px;
  max-width: 920px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pipeline-figure {
  max-width: 860px;
}

.paper-figure {
  max-width: 980px;
}

.panorama-figure {
  max-width: 1040px;
}

.figure-card h3 {
  margin: 0 0 16px;
  color: #374151;
  text-align: center;
  font-size: 1.15rem;
}

.method-grid,
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.image-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.method-grid article {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.method-grid h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 1.12rem;
}

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

.table-wrap {
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: center;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead {
  background: #eef2f7;
}

.ours {
  background: #f8fafc;
  font-weight: 700;
}

.best td:nth-child(2),
.best td:nth-child(3) {
  color: var(--green);
}

.compact-table {
  max-width: 920px;
  margin: 0 auto;
}

.benchmark {
  max-width: 980px;
  margin: 0 auto;
}

.text-benchmark {
  display: grid;
  gap: 20px;
}

.benchmark-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benchmark p {
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.benchmark-card p {
  margin: 0;
}

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

.stat-grid div {
  min-height: 116px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.15;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.95rem;
}

.small-figure {
  max-width: 760px;
}

.citation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-link-card {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-link-card h3 {
  margin: 0 0 8px;
  color: #1f2937;
}

.project-link-card p {
  margin: 0;
  color: #374151;
}

.citation-card,
.ack-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.citation-card h3,
.ack-card h3 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 1.12rem;
}

.citation-card pre {
  background: #f8fafc;
}

.ack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ack-card p {
  margin: 0;
  color: #374151;
}

.funding-card {
  background: #fffbeb;
  border-color: #fde68a;
}

.participant-card {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.design-card {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .title-wrap {
    flex-wrap: wrap;
    white-space: normal;
  }

  .title-main {
    font-size: 2.2rem;
  }

  .title-sub {
    font-size: 1.65rem;
  }

  .title-icon {
    width: 40px;
    height: 40px;
  }

  .two-column,
  .method-grid,
  .image-grid,
  .benchmark,
  .stat-grid,
  .ack-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    gap: 14px;
  }

  .figure-card,
  .table-wrap {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .paper-section {
    padding: 38px 14px;
  }

  .title-main {
    font-size: 1.9rem;
  }

  .title-sub {
    font-size: 1.35rem;
  }

  .title-icon {
    width: 34px;
    height: 34px;
  }

  .authors {
    gap: 6px 12px;
    font-size: 0.98rem;
  }

  .conference {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    font-size: 1.25rem;
  }

  .link-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
