/* ────────────────────────────────────────────────
   1. RESET & BASE
──────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  line-height: 1.5;
}
body {
  font-family: 'Inter', sans-serif;
  color: #1a202c;
  background-color: #ffffff;
}

/* ────────────────────────────────────────────────
   2. LAYOUT UTILITIES
──────────────────────────────────────────────── */
.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 1rem;
}
.text-center {
  text-align: center;
}
.text-title { 
  margin-bottom: 2rem; }

/* ────────────────────────────────────────────────
   3. TYPOGRAPHY
──────────────────────────────────────────────── */
h1 {
  font-size: 3rem; /* ~36px */
  font-weight: 700;
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 1.75rem; /* ~28px */
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}
p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

sup {
  font-size: 0.75rem;
  vertical-align: super;
  line-height: 0;
}

.header-box h1 {
  color: #FFF !important;
}

.header-box {
  background-color: #000;        /* black background */
  padding: 1rem;                 /* space inside the box */
  padding-bottom: 10px;
  margin-bottom: 2rem;           /* space below the box */
}


/* ────────────────────────────────────────────────
   4. CODE BLOCKS
──────────────────────────────────────────────── */
pre {
  background-color: #F7FAFC;
  padding: 1rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
code {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.875rem;
}

/* ────────────────────────────────────────────────
   5. SECTION SPACING
──────────────────────────────────────────────── */
section {
  margin-bottom: 2rem;
}



/* 1. Add whitespace before the title */
header h1 {
  margin-top: 3rem;
}

/* 2. Make the author line use Arial (fallback to any sans-serif) */
header p.text-author {
  font-family: Arial, Helvetica, sans-serif;
  color: #e0e0e0;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

header p.text-author .author {
  display: inline-block;   /* so horizontal margins apply */
  margin: 0 1rem;          /* 1rem on left and right—tweak to taste */
}

p.text-institution {
  color: #e0e0e0;
  font-size: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 2rem;
}

/* 1. Base link (unvisited) */
a {
  color: #ff6666;            /* your default link color */
  text-decoration: none;     /* remove underline */
  transition: color 0.2s;    /* smooth color fade */
  cursor: pointer;
}


/* 3. Hover state */
a:hover {
  color: #d92323;            /* brighter on hover */
  text-decoration: underline;/* show underline on hover */
}

/* Fixed-width video container */
.video-wrapper {
  width: 1600px;       /* your desired fixed width */
  max-width: 100%;    /* will shrink on small/mobile screens */
  margin: 0 auto 2rem;/* center + space below */
}

.video-wrapper video {
  width: 100%;        /* fill that 800px (or 100% of parent) */
  height: auto;       /* keep aspect ratio */
  display: block;     /* remove inline whitespace */
}

#abstract {
  max-width: 1200px;    /* or 700px, 800px… */
  margin: 0 auto 2rem; /* vertical spacing + auto-center */
  padding: 0 1rem;     /* optional: keep some gutter on mobile */
}


.video-wrapper {
  overflow: hidden; /* 确保视频圆角不会被父元素裁切 */
  border-radius: 1rem; /* 整个容器的圆角，配合下面的视频圆角更平滑 */
}

.video-wrapper video {
  border-radius: 1rem; /* 直接对 video 本身也加圆角 */
}

/* 给 abstract 区块添加淡灰色背景和圆角框 */
#abstract {
  background-color: #fff5f5; /* 浅灰背景 */
  border-radius: 1rem;    /* 圆角 */
  padding: 1.5rem;           /* 内边距，让文本不贴边 */
  max-width: 1200px;          /* （可选）限制宽度 */
  margin: 0 auto 2rem;       /* 居中并保留底部空间 */
}

.centered-img {
  display: block;     /* 使 <img> 成为块级，margin 才能左右生效 */
  margin: 0 auto;     /* 左右自动留白，实现水平居中 */
  width: 1200px;         /* 你想要的任意百分比或固定宽度 */
  max-width: 100%;    /* 不会超出容器 */
  height: auto;       /* 等比例缩放 */
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.boxed-text {
  display: block;     /* 使 <img> 成为块级，margin 才能左右生效 */
  margin: 0 auto;     /* 左右自动留白，实现水平居中 */
  width: 1200px;         /* 你想要的任意百分比或固定宽度 */
  max-width: 100%;    /* 不会超出容器 */
  background-color: #fff5ed; /* 浅灰背景 */
  border-radius: 1rem;    /* 圆角 */
  padding: 1.5rem;           /* 内边距，让文本不贴边 */
  margin-bottom: 2rem; /* 底部空间 */
  text-align: center;
}

.fixed-text {
  display: block;     /* 使 <img> 成为块级，margin 才能左右生效 */
  margin: 0 auto;     /* 左右自动留白，实现水平居中 */
  width: 1200px;         /* 你想要的任意百分比或固定宽度 */
  max-width: 100%;    /* 不会超出容器 */
  margin-bottom: 2rem; /* 底部空间 */
  text-align: center;
  font-weight: 600;
}

.link-buttons {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 32px;
}




.cssbuttons-io {
  display: inline-flex;           /* make it a flex container */
  align-items: center;            /* vertically center the text+icon */
  justify-content: center;        /* horizontally center */
  height: 60px;                    /* fix both buttons to 45px tall */
  padding: 0 16px;                 /* horizontal padding only */
  box-sizing: border-box;          /* include padding in that 45px */
  border: none;
  border-radius: 8px;
  background-color: #000000;
  color: #f65d3b;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  transition: 0.3s;
}
.cssbuttons-io:hover {
  background-color: #f65d3b;
  box-shadow: 0 0 0 8px #f63b3b88;
  color: #fff;
}

.fixed-text#trajectories-text {
  text-align: center;
}

#bibtex pre {
  max-width: 100%;     /* 不超出父容器 */
  width: 1200px;        /* 固定宽度 */
  margin: 0 auto;      /* block 元素居中 */
  overflow-x: auto;    /* 内容超长时提供滚动条 */
}

.gradient-text {
  display: inline-block;  /* 背景宽度和文字宽度一致 */
  font-size: 4rem;       /* 调整成你想要的字号 */
  /* 1. 首尾同色三段渐变 
     （0% #40e0d0 → 33.33% #ff8c00 → 66.67% #ff0080 → 100% #40e0d0） */
  background-image: repeating-linear-gradient(
    /* to right,
    #C6FFDD   0%,
    #FBD786  33.33%,
    #f7797d  66.67%,
    #C6FFDD 100% */

    to right,
    #ee0979   0%,
    #ff6a00  50.00%,
    #ee0979 100%

  );

  /* 2. 把这个模块拉伸到 300% 宽度（即 3×文字宽度） */
  background-size: 300% 100%;

  /* 3. 裁剪到文字 */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
          color: transparent !important;

  /* 4. 匀速滚动 1 个模块宽度（150% 的百分比正好对应一次
        平移 3×文字宽度）*/
  animation: gradientScroll 4s linear infinite;
}

@keyframes gradientScroll {
  from { background-position: 0     0; }
  to   { background-position: 150%  0; }
}