@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,600..800,0..100&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap");

:root {
  --ink: #0f172a;
  --muted: #526174;
  --quiet: #7a8ba0;
  --paper: #f6f9fd;
  --paper-2: #eef6ff;
  --surface: #ffffff;
  --line: #d9e5f2;
  --line-strong: #c7d7e6;
  --blue-dark: #0d47a1;
  --blue: #1565c0;
  --blue-bright: #1976d2;
  --blue-light: #42a5f5;
  --blue-soft: #eaf4ff;
  --cyan: #00acc1;
  --green: #43a047;
  --orange: #fb8c00;
  --violet: #7e57c2;
  --shadow: 0 20px 54px rgba(13, 71, 161, 0.12);
  --radius: 18px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eef6ff 0, var(--paper) 640px), var(--paper);
  font-family: var(--sans);
  line-height: 1.62;
  letter-spacing: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(21, 101, 192, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0, transparent 760px);
  pointer-events: none;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
.icon-sprite { display: none; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 229, 242, 0.72);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
}
.nav-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav-brand-row {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 1;
}
.brand img {
  width: 226px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.brand:hover { text-decoration: none; }
.nav-divider {
  width: 1px;
  height: 24px;
  flex: 0 0 auto;
  background: rgba(21, 101, 192, 0.24);
}
.nav-unit {
  display: block;
  width: auto;
  object-fit: contain;
}
.nav-unit.kuaishou { height: 20px; }
.nav-unit.thu { height: 30px; }
.nav-unit.zju { height: 30px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.nav-links a { color: #34445a; }
.nav-links a:hover { color: var(--blue); text-decoration-color: rgba(21, 101, 192, 0.42); }

.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 96px 0 12px;
  color: var(--ink);
}
.hero-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}
.hero-content { margin: 0 auto; }
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 {
  max-width: 1260px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.16rem, 2.65vw, 2.62rem);
  font-weight: 760;
  line-height: 1.05;
  text-wrap: balance;
}
.title-line { display: block; white-space: nowrap; }
h2 { max-width: 860px; font-family: var(--display); font-size: 3rem; font-weight: 760; }
h3 { font-size: 1.2rem; }
.hero-copy {
  max-width: 820px;
  margin: 16px auto 0;
  color: #354258;
  font-size: 1.08rem;
  line-height: 1.48;
}
.hero-authors {
  max-width: 940px;
  margin: 16px auto 0;
  color: #40506a;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.58;
  overflow-wrap: break-word;
}
.hero-authors sup,
.hero-affiliations-text sup,
.hero-notes sup { color: var(--blue); font-size: 0.72em; }
.author-role {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: 2px;
  white-space: nowrap;
}
.project-lead {
  border: 1px solid rgba(21, 101, 192, 0.22);
  background: #eaf4ff;
  color: var(--blue-dark);
}
.corresponding-author {
  border: 1px solid rgba(0, 172, 193, 0.24);
  background: #e9fbf8;
  color: #08766f;
}
.mail-marker {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  color: var(--cyan);
  vertical-align: -3px;
}
.mail-marker svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-affiliations-text {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 9px auto 0;
  color: #5e6d82;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px auto 0;
  color: #52627a;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-contact svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-contact a { color: var(--blue); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
  max-width: 880px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 71, 161, 0.14);
}
.button.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.accent {
  border-color: rgba(21, 101, 192, 0.24);
  background: #eaf4ff;
  color: var(--blue-dark);
}
.button.accent.soft {
  border-color: rgba(0, 172, 193, 0.24);
  background: #e9fbf8;
  color: #08766f;
}
.button.compact { color: var(--blue-dark); background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.hf-emoji {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.06rem;
  line-height: 1;
}
.button svg, .release-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button svg use[href="#icon-github"], .release-item svg use[href="#icon-github"] { stroke: none; fill: currentColor; }

.section { padding: 88px 0; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.intro-band { padding: 56px 0 70px; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 46px; align-items: center; }
.teaser-figure { margin-top: 34px; }
.lead { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.section-head { margin-bottom: 34px; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-kicker { color: var(--blue); }
.muted { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paper-figure { margin: 0; }
.paper-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  object-fit: contain;
  object-position: center;
}
.teaser-figure img { height: clamp(420px, 44vw, 600px); }
.paper-figure.wide img { height: clamp(500px, 48vw, 620px); }
.results-figure img { height: clamp(360px, 34vw, 460px); }
.case-figure img { height: clamp(360px, 34vw, 480px); }
figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.overview-figure {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(260px, 0.42fr);
  gap: 24px;
  align-items: center;
}
.overview-figure img { height: clamp(420px, 38vw, 560px); }
.overview-figure figcaption {
  margin-top: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.06);
  color: #34445a;
  font-size: 1rem;
  line-height: 1.62;
}
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.feature-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.06);
}
.feature-grid img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(217, 229, 242, 0.8);
  border-radius: 12px;
  background: #fff;
}
.feature-grid h3 {
  grid-column: 2;
  align-self: end;
  margin: 0 0 8px;
  color: #172033;
  font-size: 1.18rem;
  line-height: 1.25;
}
.feature-grid p {
  grid-column: 2;
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.stats-grid article { padding: 20px; border: 1px solid #cfe2f6; border-radius: var(--radius); background: #fff; }
.stats-grid span { display: block; color: var(--blue-dark); font-family: var(--mono); font-size: 1.75rem; font-weight: 800; }
.stats-grid strong {
  display: block;
  margin-top: 5px;
  color: #172033;
  font-size: 0.95rem;
  line-height: 1.25;
}
.stats-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.release-item { min-height: 180px; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(13, 71, 161, 0.06); }
.release-item:hover { text-decoration: none; border-color: #90caf9; transform: translateY(-1px); }
.release-item svg { width: 28px; height: 28px; color: var(--blue); }
.release-emoji {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}
.release-item strong { font-size: 1.08rem; line-height: 1.25; }
.release-item span { color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr); gap: 40px; align-items: center; }
.citation-section { background: #0d2f66; color: #fff; }
.citation-section .section-kicker { color: #90caf9; }
.citation-section h2 { color: #fff; }
pre {
  overflow-x: hidden;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: #eaf4ff;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .site-nav { position: static; }
  .nav-inner { display: block; padding: 14px 0; }
  .nav-brand-row { width: 100%; flex-wrap: wrap; }
  .nav-links { justify-content: flex-start; margin-top: 12px; }
  .hero { min-height: auto; padding: 56px 0 28px; }
  h1 { font-size: 2.48rem; }
  .title-line { white-space: normal; }
  h2 { font-size: 2.35rem; }
  .intro-grid, .feature-grid, .stats-grid, .release-grid, .case-grid { grid-template-columns: 1fr; }
  .overview-figure { grid-template-columns: 1fr; }
  .overview-figure figcaption { margin-top: 12px; }
  .feature-grid article { grid-template-columns: 1fr; }
  .section-head.split { align-items: flex-start; flex-direction: column; }
  .section { padding: 64px 0; }
}

@media (max-width: 620px) {
  .nav-inner, .wrap, .hero-inner { width: min(100% - 32px, 1180px); }
  .brand img { width: 190px; }
  .nav-brand-row { gap: 9px; }
  .nav-divider { height: 20px; }
  .nav-unit.kuaishou { height: 17px; }
  .nav-unit.thu, .nav-unit.zju { height: 26px; }
  .nav-links { gap: 12px 16px; }
  h1 { font-size: 2rem; line-height: 1.08; }
  h2 { font-size: 1.95rem; }
  .hero-copy { font-size: 1rem; }
  .hero-authors { font-size: 0.95rem; }
  .hero-affiliations-text { font-size: 0.9rem; }
  .hero-notes, .hero-contact { flex-wrap: wrap; justify-content: center; }
  .button { width: 100%; min-height: 50px; }
  .release-item { min-height: 0; }
  .teaser-figure img,
  .paper-figure.wide img,
  .results-figure img,
  .case-figure img {
    height: auto;
  }
  .feature-grid img {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-height: 320px;
  }
  .feature-grid h3,
  .feature-grid p {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .nav-links { flex-wrap: wrap; row-gap: 8px; }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.72rem; }
}
