:root {
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --blue: #2563eb;
  --green: #059669;
  --soft: #f8fafc;
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  font-size: 17px;
}

body > * {
  box-sizing: border-box;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

h1 {
  max-width: 1180px;
  margin: 72px auto 18px;
  text-align: center;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 650;
  color: #111827;
}

h2 {
  margin-top: 70px;
  margin-bottom: 24px;
  padding-top: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 750;
}

h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  margin-bottom: 16px;
}

h3 {
  margin-top: 36px;
  font-size: 22px;
  line-height: 1.25;
}

p {
  max-width: 920px;
  color: #111827;
}

li {
  margin: 4px 0;
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 650;
}

a:hover {
  text-decoration: underline;
}

/* 顶部作者区域 */
h1 + p,
h1 + ul,
h1 ~ p:first-of-type {
  text-align: center;
}

/* 顶部 Paper / Code 按钮 */
a[href*="arxiv"],
a[href*="github"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 8px 8px 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-size: 18px;
}

/* 图片：去掉截图感，不加阴影，不加灰色卡片 */
img {
  display: block;
  max-width: min(100%, 980px);
  height: auto;
  margin: 28px auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* 大图稍微放大 */
img[src*="source"],
img[src*="results"] {
  max-width: min(100%, 1040px);
}

/* video 网格：保持干净，不像截图 */
video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* 原页面通常是多列视频，给它一个自然的间距 */
table,
.video-grid,
.gallery,
figure {
  max-width: 1080px;
}

/* 代码块 */
pre {
  max-width: 920px;
  overflow-x: auto;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* 让正文块更像论文 project page，不像商业落地页 */
ul,
ol {
  max-width: 920px;
}

hr {
  max-width: 1080px;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px auto;
}

/* 手机端 */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  body > * {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    margin-top: 42px;
    font-size: 38px;
  }

  h2 {
    margin-top: 48px;
  }

  a[href*="arxiv"],
  a[href*="github"] {
    font-size: 16px;
    padding: 9px 14px;
  }
}
