:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1a2333;
  --muted: #5d6b82;
  --border: #d9e1ee;
  --accent: #1f6feb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
.container { width: min(1100px, 92vw); margin: 0 auto; }
.hero {
  background: #ffffff;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero .container { text-align: center; }
h1 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.25; margin: 0 0 16px; }
.authors { margin: 8px 0; }
.affiliations {
  margin: 8px auto 12px;
  color: var(--muted);
  text-align: center;
}
.affiliations p { margin: 2px 0; }
.sponsor {
  margin: 8px auto 10px;
  color: #4f5f79;
  max-width: 920px;
  font-size: 0.95rem;
}
.venue { color: #111111; margin: 6px 0; font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: center; }
.links a {
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.side-menu {
  position: fixed;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(4px);
}
.side-menu a {
  text-decoration: none;
  color: #22314a;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}
.side-menu a:hover { color: var(--accent); }
.side-menu a.active {
  background: #eaf1ff;
  color: var(--accent);
}

main { padding: 28px 0 50px; }
section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
h2 { margin-top: 0; font-size: 1.25rem; }
.citation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.copy-btn {
  border: 1px solid var(--border);
  background: #f3f6fd;
  color: #24324a;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform-grid { align-items: center; }
.platform-grid figure:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
figure { margin: 0; }
img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
figcaption a { color: var(--accent); text-decoration: none; }
figcaption a:hover { text-decoration: underline; }

.tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  justify-content: center;
}
.tab-btn {
  border: 1px solid var(--border);
  background: #f3f6fd;
  color: #24324a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.result-compact img {
  width: 66%;
  display: block;
  margin: 0 auto;
}

pre {
  background: #f2f5fb;
  border: 1px solid var(--border);
  color: #1e2a40;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
}
footer { border-top: 1px solid var(--border); padding: 18px 0 28px; color: var(--muted); }
.footer-center { text-align: center; }

@media (max-width: 1200px) {
  .side-menu {
    position: static;
    margin: 12px auto 0;
    width: min(1100px, 92vw);
    flex-direction: row;
    overflow-x: auto;
  }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .result-compact img { width: 100%; }
}
