:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 30rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 26rem),
    var(--background-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

.container { width: min(calc(100% - 32px), var(--max-width)); margin: 0 auto; }

.publication-header {
  padding: 5.5rem 0 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e40af;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.publication-title {
  max-width: 1000px;
  margin: 0 auto 1.4rem;
  color: var(--text-primary);
font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.publication-subtitle {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.publication-authors {
  max-width: 980px;
  margin: 0 auto 1rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.author-block { display: inline-block; margin: 0 .12rem .25rem; }
.author-block:not(:last-child)::after { content: " ·"; color: var(--text-light); }

.publication-affiliations {
  max-width: 500px;
  margin: 0 auto 3.5rem; 
  color: var(--text-secondary);
  font-size: .92rem;
}

.publication-venue {
  display: inline-block;
  width: fit-content;
  margin: .4rem auto 0;
  padding: .55rem 1rem;
  border-radius: var(--radius);
  background: var(--background-accent);
  color: var(--text-secondary);
  font-weight: 700;
}

.link-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--text-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.15;
  text-decoration: none;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);

}
.button:hover { transform: translateY(-2px); background: var(--primary-color); color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); }
.button.secondary { color: var(--text-primary); background: #fff; border-color: var(--border-color); box-shadow: var(--shadow-sm); }
.button.secondary:hover { color: var(--primary-color); border-color: rgba(37, 99, 235, .34); }

.hero.is-light {
  padding: 3rem 0;
  background: var(--background-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.publication-banner {
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xl);
}
.publication-banner img { display: block; width: 100%; height: auto; }
.banner-caption {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: .95rem;
  text-align: left;
}

.section2 {  padding: 4rem 0;    background: var(--background-secondary);
}

.section {  padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--border-color); }
.title {
  margin: 0 0 1.4rem;
  color: var(--text-primary);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-align: center;
}
.title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: .85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #64748b, #cbd5e1);
}

.content {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.08rem;
}
.content p { margin: 0 0 1.15rem; }

.keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  max-width: 900px;
  margin: 1.8rem auto 0;
  padding: 0;
  list-style: none;
}
.keywords li {
  padding: .45rem .75rem;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .9rem;
  font-weight: 700;
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 .35rem; font-size: 1.03rem; line-height: 1.25; }
.card p, .card li { color: var(--text-secondary); font-size: .96rem; }
.card ul { margin: .7rem 0 0; padding-left: 1.1rem; }

.takeaway { display: flex; gap: .8rem; }
.number {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary-color);
  font-weight: 850;
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto .8rem;
}
.bibtex-header h2 { margin: 0; }
.copy-bibtex-btn {
  border: none;
  border-radius: var(--radius);
  background: var(--primary-color);
  color: white;
  padding: .7rem .9rem;
  cursor: pointer;
  font-weight: 750;
  transition: all .2s ease;
}
.copy-bibtex-btn:hover { transform: translateY(-2px); background: var(--primary-hover); }
.copy-bibtex-btn.copied { background: #10b981; }
pre {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #0f172a;
  color: #dbeafe;
  font-size: .9rem;
  line-height: 1.55;
  box-shadow: var(--shadow-md);
}
code { font-family: "SF Mono", Monaco, Cascadia Code, "Roboto Mono", Menlo, Consolas, monospace; }

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-color);
  background: var(--background-secondary);
  color: var(--text-secondary);
  font-size: .92rem;
  text-align: center;
}
.footer p { max-width: 820px; margin: 0 auto .6rem; }

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
 }

.footer a:hover {
  color: var(--text-primary);
  text-decoration: none;
}


.scroll-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-2px); background: var(--primary-hover); }

@media (max-width: 900px) {
  .publication-header { padding: 3.5rem 0 2rem; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .publication-title { letter-spacing: -0.05em; }
  .section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .publication-title { font-size: 2rem; }
  .button { width: 100%; }
  .bibtex-header { align-items: flex-start; flex-direction: column; }
}
@media print {
  .link-blocks, .scroll-to-top { display: none; }
  body { background: #fff; }
  .card, .publication-banner { box-shadow: none; }
}
