:root {
  --ink: #10213d;
  --muted: #607089;
  --line: #dbe4ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #2e6be6;
  --blue-dark: #1f54bd;
  --green: #16b87a;
  --coral: #f26b4a;
  --violet: #7653e7;
  --content-max: 900px;
  --section-gutter: clamp(32px, 10vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(219, 228, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-eviback { width: 158px; height: auto; }
.brand-divider { width: 1px; height: 26px; background: #d7e0e9; }
.brand-nextai { width: 220px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; color: #31425b; font-size: 14px; font-weight: 650; }
.nav-links a { position: relative; padding: 27px 0; }
.nav-links a::after { position: absolute; right: 0; bottom: 20px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.hero {
  display: flex;
  min-height: 580px;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 42px;
  text-align: center;
  overflow: hidden;
}
.kicker { margin: 0 0 24px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { margin: 0 0 12px; color: var(--blue); font-size: clamp(30px, 2.9vw, 40px); font-weight: 850; line-height: 1.08; }
.section-tagline { margin: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 740; line-height: 1.16; }
.hero-logo { width: clamp(270px, 24vw, 360px); height: auto; margin-bottom: 28px; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { max-width: 1500px; margin: 0; font-size: clamp(36px, 3.4vw, 50px); line-height: 1.08; font-weight: 780; }
h1 em { color: var(--blue); font-size: inherit; font-style: normal; }
.title-line { display: block; white-space: nowrap; }
.hero-copy { width: min(980px, 100%); margin: 24px auto 0; color: var(--muted); font-size: 18px; font-weight: 620; line-height: 1.55; }
.paper-credits { width: min(1040px, 100%); margin-top: 16px; }
.paper-credits p { margin: 0; }
.paper-authors { color: var(--blue); font-size: 18px; font-weight: 400; line-height: 1.55; }
.paper-affiliation { margin-top: 3px !important; color: var(--blue); font-size: 18px; font-weight: 400; line-height: 1.55; }
.paper-credits a { color: inherit; text-decoration: none; }
.paper-credits a:hover, .paper-credits a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 6px; font-size: 15px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 10px 30px rgba(16, 33, 61, .14); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: var(--line); background: #fff; }
.resource-links { display: grid; width: min(850px, 100%); margin-top: 28px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.resource-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 16px 10px 14px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 33, 61, .05);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.resource-button::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--resource-color, var(--blue)); transform: scaleX(.28); transition: transform .2s ease; }
.resource-button:hover, .resource-button:focus-visible { border-color: color-mix(in srgb, var(--resource-color, var(--blue)) 42%, #d8e1ea); color: var(--resource-color, var(--blue)); box-shadow: 0 14px 32px rgba(16, 33, 61, .12); outline: none; transform: translateY(-4px); }
.resource-button:hover::before, .resource-button:focus-visible::before { transform: scaleX(1); }
.resource-icon { display: grid; width: 44px; height: 44px; margin-bottom: 9px; place-items: center; color: var(--resource-color, var(--blue)); font-weight: 850; }
.resource-icon img { width: 42px; height: 42px; object-fit: contain; }
.resource-label { font-size: 14px; font-weight: 800; white-space: nowrap; }
.resource-label::before { content: "["; margin-right: 2px; color: #92a0b3; }
.resource-label::after { content: "]"; margin-left: 2px; color: #92a0b3; }
.resource-paper { --resource-color: var(--coral); }
.resource-github { --resource-color: #111827; }
.resource-huggingface { --resource-color: #d99500; }
.resource-modelscope { --resource-color: var(--violet); }
.resource-wechat { --resource-color: #08a85a; }
.resource-toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; padding: 13px 17px; border: 1px solid #d8e1ea; border-radius: 7px; color: #fff; background: var(--ink); box-shadow: 0 16px 40px rgba(16,33,61,.24); font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.resource-toast.show { opacity: 1; transform: translateY(0); }

.overview { padding: 32px var(--section-gutter) 40px; border-top: 1px solid var(--line); background: #fff; }
.overview > .section-title { text-align: center; }
.overview-video { display: block; width: min(var(--content-max), 100%); aspect-ratio: 16 / 9; margin: 22px auto 0; border: 1px solid var(--line); border-radius: 6px; background: #000; object-fit: contain; }

.method { padding: 32px var(--section-gutter) 40px; border-top: 1px solid var(--line); background: #fff; }
.method-title { text-align: center; }
.method-figure { width: min(var(--content-max), 100%); margin: 22px auto 0; }
.method-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.method-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; }
.method-summary { width: min(var(--content-max), 100%); margin: 24px auto 0; color: #31425d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.65; }
.method-summary > p { margin: 0 0 16px; text-align: justify; text-justify: inter-word; }
.method-summary ul { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; }
.method-summary li { padding-top: 14px; border-top: 2px solid #dce6f0; text-align: justify; text-justify: inter-word; }
.method-summary strong { color: inherit; }

.abstract { padding: 32px var(--section-gutter) 40px; border-top: 1px solid var(--line); background: #fff; }
.abstract > * { width: min(var(--content-max), 100%); margin-right: auto; margin-left: auto; transform: none; }
.abstract-topline { margin-bottom: 16px; text-align: center; }
.abstract-text { width: min(var(--content-max), 100%); max-width: var(--content-max); margin: 0 auto; color: #31425d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.72; text-align: justify; text-justify: inter-word; }

.results { padding: 32px var(--section-gutter) 40px; border-top: 1px solid var(--line); background: #fff; }
.results-inner { width: min(var(--content-max), 100%); margin: 0 auto; }
.results-header { text-align: center; }
.results-header .section-tagline { max-width: 820px; margin-right: auto; margin-left: auto; }
.results-lede { margin: 24px 0 0; color: #31425d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.72; text-align: justify; text-justify: inter-word; }
.results-figure { margin: 28px 0 0; }
.results-figure-media { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.results-figure img { width: 100%; height: auto; }
.results-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; }
.result-highlights { display: grid; margin-top: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-highlights article { min-width: 0; padding: 26px 28px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-highlights article:nth-child(2n) { border-right: 0; }
.result-highlights article:nth-last-child(-n + 2) { border-bottom: 0; }
.result-value { display: block; margin-bottom: 14px; color: var(--blue); font-size: 27px; font-weight: 800; line-height: 1.1; }
.result-highlights h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.result-highlights p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.comparison { padding: 32px var(--section-gutter) 40px; border-top: 1px solid var(--line); background: #fff; }
.comparison-inner { width: min(1400px, 100%); margin: 0 auto; }
.comparison .section-title { text-align: center; }
.comparison-grid { display: grid; margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.comparison-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 6px; background: #000; object-fit: contain; }

.bibtex { padding: 32px var(--section-gutter) 40px; border-top: 1px solid var(--line); background: var(--soft); }
.bibtex-inner { width: min(var(--content-max), 100%); margin: 0 auto; }
.bibtex .section-title { text-align: center; }
.bibtex pre { margin: 22px 0 0; padding: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; color: #243650; background: #fff; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.bibtex code { font: inherit; }

footer { display: flex; min-height: 210px; padding: 44px 4vw; align-items: center; flex-direction: column; justify-content: center; gap: 16px; border-top: 1px solid var(--line); text-align: center; }
.footer-brand img { width: 170px; }
footer p { margin: 0; color: var(--muted); font-size: 17px; font-weight: 700; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .site-header { min-height: 66px; }
  .brand { gap: 9px; }
  .brand-eviback { width: 108px; }
  .brand-divider { height: 20px; }
  .brand-nextai { width: 148px; }
  .menu-toggle { display: block; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: absolute; top: 66px; right: 0; left: 0; display: none; padding: 18px 4vw 24px; align-items: stretch; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); background: #fff; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; }
  .nav-links a::after { display: none; }
  .hero { min-height: 540px; padding-top: 48px; }
  .title-line { white-space: normal; }
  .resource-links { width: 100%; overflow-x: auto; grid-template-columns: repeat(5, 138px); justify-content: start; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .resource-links::-webkit-scrollbar { display: none; }
  .resource-button { scroll-snap-align: start; }
  .method-summary ul { grid-template-columns: 1fr; gap: 14px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .result-highlights { grid-template-columns: 1fr; }
  .result-highlights article, .result-highlights article:nth-child(2n), .result-highlights article:nth-last-child(-n + 2) { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-highlights article:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .hero { min-height: 0; padding: 54px 18px 42px; }
  .hero-logo { width: min(260px, 76vw); margin-bottom: 28px; }
  h1 { font-size: 32px; line-height: 1.1; }
  .hero-copy { margin-top: 22px; font-size: 16px; line-height: 1.55; }
  .paper-credits { margin-top: 18px; }
  .paper-authors, .paper-affiliation { font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .resource-links { margin-top: 28px; }
  .resource-toast { right: 16px; bottom: 16px; left: 16px; text-align: center; }
  .overview, .method, .abstract, .results, .comparison, .bibtex { padding: 28px 18px 32px; }
  .bibtex pre { padding: 18px; font-size: 13px; }
  .section-title { font-size: 30px; }
  .section-tagline { font-size: 25px; }
  .abstract-text, .method-summary, .results-lede { font-size: 17px; }
  .abstract-text { line-height: 1.7; }
  .abstract > * { transform: none; }
  .results-figure-media { overflow-x: auto; }
  .results-figure img { width: 900px; max-width: none; }
  .result-value { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
