:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #5b6474;
  --border: #d8dfeb;
  --shadow: 0 12px 30px rgba(17, 35, 68, 0.1);
  --github: #24292f;
  --github-hover: #1b1f23;
  --arxiv: #b31b1b;
  --arxiv-hover: #981616;
  --data: #2f6feb;
  --data-hover: #2557b7;
  --paper: #475569;
  --paper-hover: #334155;
  --pdf: #7c3aed;
  --pdf-hover: #6d28d9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Times New Roman", Times, serif;
  color: var(--text);
  background: #ffffff;
}

a { color: #1e5ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
.container.narrow { width: min(900px, 92vw); margin: 0 auto; }
.hero {
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  color: #14233f;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 auto 14px;
  max-width: 980px;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 10px 22px rgba(22,44,86,.16);
}
.venue { color: var(--muted); font-size: 1.28rem; font-weight: 800; margin: 0 0 20px; letter-spacing: 0.015em; }
.authors { display: grid; gap: 8px; margin: 0 auto 14px; max-width: 980px; }
.authors-row { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; line-height: 1.8; }
.authors a, .author-name { color: var(--text); font-weight: 600; }
.authors .author-name { display: inline-flex; }
.affiliations { color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin: 0 auto; font-size: 0.98rem; }
.author-note { color: var(--muted); font-size: .88rem; margin: 8px auto 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.btn {
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  min-width: 98px;
  padding: 10px 18px;
  transition: background .2s ease, transform .2s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-arxiv { background: var(--arxiv); }
.btn-arxiv:hover { background: var(--arxiv-hover); }
.btn-arxiv i {
  color: #b31b1b;
  background: #f3f4f6;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  flex: 0 0 1.7rem;
}
.btn-github { background: var(--github); }
.btn-github:hover { background: var(--github-hover); }
.btn-github i {
  color: #24292f;
  background: #f3f4f6;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  flex: 0 0 1.7rem;
}
.btn-data { background: var(--data); }
.btn-data:hover { background: var(--data-hover); }
.btn-paper, .btn-pdf, .btn-supp { background: var(--paper); }
.btn-paper:hover, .btn-pdf:hover, .btn-supp:hover { background: var(--paper-hover); }
.section { padding: 42px 0; }
.section h2 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); margin: 0 0 18px; text-align: center; }
.abstract-card,
.media-card,
.demo-card,
.skill-card,
.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}
.abstract-card { padding: 18px 20px; }
.abstract-body { line-height: 1.78; text-align: justify; }
.media-card, .result-card { padding: 16px; }
.media-card img, .result-card img { border-radius: 12px; display: block; width: 100%; }
.media-caption, .result-card figcaption { color: var(--muted); font-size: 0.95rem; margin: 12px 4px 4px; text-align: center; }
.demo-grid, .skill-grid, .result-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.demo-grid--two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.skill-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.result-grid--three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.demo-card, .skill-card { padding: 14px; }
.demo-card h3, .skill-card h3 { margin: 0 0 10px; text-align: center; font-size: 1rem; }
.demo-card video, .skill-card video {
  display: block;
  width: 100%;
  background: #0f1728;
  border-radius: 10px;
}
.demo-card video { aspect-ratio: 16 / 9; }
.skill-card video { aspect-ratio: 4 / 3; object-fit: cover; }
pre {
  background: #f3f4f6;
  border-radius: 12px;
  color: #334155;
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}
code { font-family: "SFMono-Regular", Menlo, Consolas, Monaco, monospace; font-size: .92rem; line-height: 1.65; }
.footer { border-top: 1px solid var(--border); color: var(--muted); padding: 28px 0 42px; text-align: center; }
.footer p { margin: 8px auto; }
@media (max-width: 560px) {
  .hero { padding: 52px 0 40px; }
  .btn { width: 100%; justify-content: center; }
}

.btn-paper i,
.btn-pdf i,
.btn-supp i,
.btn-data i {
  color: #334155;
  background: #f3f4f6;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  flex: 0 0 1.7rem;
}

.btn-pdf { background: #b31b1b; color: #ffffff; }
.btn-pdf:hover { background: #981616; color: #ffffff; }
.btn-pdf i { color: #b31b1b; background: #f3f4f6; }

.btn-paper i { color: #b31b1b; background: #f3f4f6; }

.btn-paper { background: #b31b1b; color: #ffffff; }
.btn-paper:hover { background: #981616; color: #ffffff; }
.btn-paper i { color: #b31b1b; background: #f3f4f6; }

.btn span {
  font-weight: 800;
  letter-spacing: 0.01em;
}
