/* Modern CSS Variables for consistent theming */
: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%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a {
    margin: 8px 4px;
}

.dnerf {
  font-variant: small-caps;
}


/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.teaser {
  font-family: 'Inter', sans-serif;
}


/* Publication Content Styling */
.publication-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;          /* 斜体 */
  font-weight: 800;            /* 保持现在这种粗度 */
  color: #ffffff !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
  line-height: 1.38;
}



.publication-banner {
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

.publication-header .hero-body {
  padding: 6rem 1.5rem 4rem;
}




.publication-authors {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: var(--primary-color) !important;
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

.publication-authors a:hover {
    color: var(--primary-hover) !important;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

.publication-banner img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.publication-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Modern Video and Carousel Styling */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.publication-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.publication-body img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.publication-body img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-carousel {
  overflow: hidden;
  padding: 1rem 0;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.results-carousel .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.results-carousel .item img,
.results-carousel video {
  margin: 0;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.results-carousel .subtitle {
  font-size: 1rem !important;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Pagination and Misc Improvements */
.slider-pagination .slider-page {
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.slider-pagination .slider-page.is-active {
  background: var(--primary-hover);
  transform: scale(1.2);
}

.eql-cntrb { 
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

/* BibTeX Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* BibTeX Section Improvements */
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

.copy-bibtex-btn.copied .copy-text::after {
  content: "ied!";
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }


  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 4rem 2rem 3rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}

/* ========== HERO 主体：全屏 + 叠加背景 ========== */

.hero-main {
  position: relative;
  min-height: 100vh;
  color: #ffffff;
  overflow: hidden;
}

/* 背景图层：占满整屏，高度由 100vh 决定 */
.hero-main .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;   /* ⭐ 四行在竖直方向平均分布 */
  padding: 4vh 0;                  /* 上下各留一点边缘 */
  pointer-events: none;            /* 不挡前景的鼠标操作 */
}

/* 每一行图片：横向滚动 */
.hero-main .bg-row {
  display: flex;
  gap: 10px;
  opacity: 0.4;                    /* 背景不要太抢眼 */
  animation: scroll-left 60s linear infinite;
}

/* 偶数行反方向滚动 */
.hero-main .row2,
.hero-main .row4 {
  animation-name: scroll-right;
}

/* ⭐ 不再用 margin-top 来控制高度，否则高屏/矮屏会乱 */
.hero-main .row1,
.hero-main .row2,
.hero-main .row3,
.hero-main .row4 {
  margin-top: 0;
}

/* 四行背景不做任何抬高/远离效果，保持整齐一致 */
.hero-main .bg-row img {
  height: 19vh;              /* 每行高度：你也可以换成 18vh / 20vh */
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0.95;             /* 轻微透明保持背景感 */
  z-index: 2;                /* 全部统一 */
  transform: none !important;
  filter: none !important;
}

/* 万一原来的层叠效果残留，彻底覆盖 */
.hero-main .row1 img,
.hero-main .row2 img,
.hero-main .row3 img,
.hero-main .row4 img {
  transform: none !important;
  opacity: 0.95 !important;
  filter: none !important;
  z-index: 2 !important;
}


/* 滚动动画 */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }   /* 建议每行图片总宽 > 200%，循环更顺滑 */
}

@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ========== 前景：标题 / 作者 / 按钮 居中对齐 ========== */

/* 整块 hero 内容在屏幕中垂直 + 水平居中 */
.hero-main .hero-body {
  position: relative;
  z-index: 2;

  min-height: 100vh;              /* ⭐ 自己就撑满一屏，不依赖别的 section */
  display: flex;
  align-items: center;            /* 垂直居中 */
  justify-content: center;        /* 水平居中（配合 container） */
  padding: 2rem 1rem;
}

.hero-wide-container {
  max-width: 1500px;
  width: 100%;
}

.hero-content-center {
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;

  display: flex;
  flex-direction: column;
  align-items: center;            /* 水平居中 */
  text-align: center;             /* 文本居中 */
}

/* ========== 顶层蓝色蒙版：压在背景上，不挡交互 ========== */

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;      /* ⭐ 不影响表格滚动 / 按钮点击 */

  background: linear-gradient(
    to bottom,
    rgba(196, 206, 253, 0.45),
    rgba(255, 255, 255, 0.38)
  );
}

/* ========== 标题样式：Georgia 斜体 + 稍大 ========== */

.publication-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 3.0rem;          /* 你可以按视觉感受再 +0.2 / -0.2 */
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #4c4848 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.wide-title {
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1440px) {
  .wide-title {
    max-width: 60%;
  }
}
@media (min-width: 1800px) {
  .wide-title {
    max-width: 50%;
  }
}

/* ========== 作者链接颜色（保留你原来的） ========== */

.publication-authors .author-block a,
.publication-authors .author-block a:visited,
.publication-authors .author-block a:hover,
.publication-authors a,
.publication-authors a:visited,
.publication-authors a:hover {
  color: rgb(107, 87, 255) !important;
}

.publication-authors .author-block a:hover,
.publication-authors a:hover {
  color: #bcfee7 !important;
  text-decoration: underline;
}




/* 整个 teaser 区域：竖直排布、居中 */
.teaser-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* teaser 图片：放大 + 居中 + 圆角阴影 */
.teaser-image {
  width: 100%;
  max-width: 1100px;                 /* 控制最大宽度，按需调大/调小 */
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  display: block;
}

/* caption 文本样式 */
.teaser-caption {
  margin-top: 1.5rem;
  max-width: 1100px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4e4e4e;
  font-style: italic;
}

/* Abstract 文本样式：深色字配浅背景 */
.abstract-text {
  color: #111827 !important;      /* 深灰接近黑，对比度够高 */
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}


/* Abstract 里要强调的关键字 */
.abstract-text strong {
  font-weight: 700;
  color: #000000;      /* 或者用 #111827；总之比普通文字略深一点 */
}

/* ==== Contributions section ==== */

.contributions-section {
  background: rgba(15, 23, 42, 0.04);        /* 很浅的一层，让区块略微分开 */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.contribution-card {
  background: rgba(126, 136, 177, 0.967);        /* 深色卡片，和你的主视觉统一 */
  border-radius: 14px;
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contribution-icon {
  margin-bottom: 0.9rem;
}

.contribution-icon .icon i {
  font-size: 1.6rem;
  color: #93c5fd;                            /* 柔和的浅蓝图标 */
}

.contribution-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.55rem;
}

.contribution-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

/* 小屏时一列一张卡片，大屏三列 */
@media (max-width: 1023px) {
  .contributions-section .column {
    margin-bottom: 1rem;
  }
}

/* ==== Training & Data Pipeline Section ==== */

.pipeline-section {
  background: rgba(15, 23, 42, 0.04);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* 按钮区域 */
.pipeline-toggle {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.pipeline-btn {
  margin: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
  font-size: 0.9rem;
}

.pipeline-btn .icon {
  margin-right: 0.15rem;
}

.pipeline-btn.is-active {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  border-color: transparent;
  color: #f9fafb;
}

/* 主卡片 */
.pipeline-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

/* ==== Training & Data Pipeline Section ==== */

.pipeline-section {
  background: rgba(67, 80, 110, 0.04);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 3;               /* 确保在任何背景蒙版之上 */
}

/* 按钮区域 */

.pipeline-toggle {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.pipeline-btn {
  margin: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
  font-size: 0.9rem;
}

.pipeline-btn .icon {
  margin-right: 0.15rem;
}

.pipeline-btn.is-active {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  border-color: transparent;
  color: #f9fafb;
}

/* 主卡片 */

.pipeline-card {
  background: rgba(135, 146, 192, 0.967);
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

/* 图片面板：关键的显示/隐藏逻辑 */

.pipeline-panel {
  display: none;
}

.pipeline-panel.is-active {
  display: block;
}

/* 图片 */

.pipeline-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.9rem;
}

/* 图注 */

.pipeline-caption {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.pipeline-caption strong {
  color: #f9fafb;
  font-weight: 700;
}

.pipeline-caption em {
  font-style: italic;
  color: #c7d2fe;
}

.pipeline-btn .icon {
  margin: 0 0.25rem;
  display: inline-flex;
  align-items: center;
}


/* ==== Quantitative section overall ==== */
/* ===== Section 背景 & 标题 ===== */

.quantitative-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.quantitative-title {
  color: #0f172a !important;
  margin-bottom: 1.1rem;
}

.quantitative-intro {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #4b5563 !important;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ===== 每张表格的“卡片”容器：只负责视觉，不负责滚动 ===== */

.table-container.quantitative-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.8rem;
  overflow-x: visible;          /* ✅ 不在这里滚动 */
}

/* caption（Table I. ...） */

.quant-table-caption {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #111827;
}

.quant-table-caption strong {
  color: #111827;
  font-weight: 600;
}

/* ===== 真正负责横向滚动的这一层 ===== */

.quant-table-scroll {
  overflow-x: auto;             /* ✅ 只在这里开横向滚动 */
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* 自定义滚动条（可选） */
.quant-table-scroll::-webkit-scrollbar {
  height: 8px;
}
.quant-table-scroll::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}
.quant-table-scroll::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 999px;
}

/* ===== 表格本体 ===== */

/* ⚠️ 只保留这一份，不要再有第二个 .table.quantitative-table 的定义 */

.table.quantitative-table {
  width: auto;                  /* 让内容决定宽度 */
  min-width: 100%;              /* 小于容器时撑满容器 */
  border-collapse: collapse;
  color: #111827;
  font-size: 0.9rem;
}

/* 防止内容换行挤成一团：列太多时自然变宽，从而触发横向滚动 */

.table.quantitative-table th,
.table.quantitative-table td {
  white-space: nowrap;
}

/* 表头单元格 */

.quantitative-table thead th {
  background: #eef2ff;
  color: #1e293b !important;
  font-weight: 600 !important;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #cbd5f5;
}

/* 表体单元格 */

.quantitative-table tbody td {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* 斑马线背景 */

.quantitative-table tbody tr:nth-child(odd) {
  background: #ffffff;
}
.quantitative-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* 第一列 Method 永远左对齐 */

.quantitative-table th:first-child,
.quantitative-table td:first-child {
  text-align: left !important;
}

/* 其他列居中 */

.quantitative-table th:not(:first-child),
.quantitative-table td:not(:first-child) {
  text-align: center !important;
}

/* DiTFuse 高亮 */

.quantitative-table .method-ours {
  color: #b45309 !important;
  font-weight: 700;
}

/* 最佳 / 次佳 指标 */

.quantitative-table td.best {
  font-weight: 700;
  color: #d97706 !important;
}

.quantitative-table td.second-best {
  color: #1d4ed8 !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* 小屏幕字体略缩小 */

@media (max-width: 768px) {
  .table.quantitative-table {
    font-size: 0.8rem;
  }
}

.affiliation-block {
  color: #111827 !important;     /* 强制黑色 */
  font-size: 0.95rem;         /* 可选：更统一的字体 */
  line-height: 1.5;
}

.author-block sup {
  color: #111827 !important;   /* 深灰黑（推荐） */
}




/* 统一所有 section 里的大标题颜色 */
section h2.title,
section .title.is-3 {
  color: #2c4d6d !important;  /* 统一：亮白色 */
}

/* Buttons container */
.publication-links-dark {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 1.2rem;
}
