/* Enhanced base styles */
:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #2c3e50;
  --background-color: #ffffff;
  --section-spacing: 4rem;
}

body {
  font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Enhanced header styles */
.hero-body {
  padding: 3rem 1.5rem;
}

.publication-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-authors {
  margin: 2rem 0;
  line-height: 1.8;
}

.author-block {
  display: inline-block;
  margin: 0.25rem 0;
}

.author-block a {
  color: var(--accent-color) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-block a:hover {
  color: #2980b9 !important;
  text-decoration: underline;
}

/* Enhanced button styles */
.publication-links .button {
  margin: 0.5rem;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Abstract section styling */
.abstract {
  margin: var(--section-spacing) 0;
}

.content.has-text-justified {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* BibTeX section styling */
#BibTeX {
  margin: var(--section-spacing) 0;
}

#BibTeX pre {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  font-family: 'Fira Code', monospace;
  overflow-x: auto;
}

/* Navbar styling */
.navbar-menu {
  box-shadow: none;
}

.navbar-item {
  color: var(--text-color);
  transition: color 0.2s ease;
}

.navbar-item:hover {
  color: var(--accent-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2rem;
  }
  
  .content.has-text-justified {
    padding: 1.5rem;
  }
  
  .publication-links .button {
    width: 100%;
    margin: 0.5rem 0;
  }
}

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

.hero-body {
  animation: fadeIn 0.8s ease-out;
}

/* Styles for the first table (WebArena table) */
.table td:first-child {
  width: 25% !important;
}

/* Styles for the complex performance comparison table */
.table th {
  vertical-align: middle !important;
  text-align: center !important;
}

.table td {
  vertical-align: middle !important;
}


/* Specific styles for the second table */
.table.is-bordered tr td[rowspan],
.table.is-bordered tr td:nth-child(2) {
  width: 20% !important;  /* Reduced from 10% to 8% */
  padding-left: 1rem !important;
  text-align: center !important;  /* Center align the content */
  vertical-align: middle !important;
}

.table.is-bordered tr td:nth-child(3) {
  width: 20% !important;  /* Reduced from 10% to 8% */
  text-align: center !important;  /* Center align the content */
}

.table.is-bordered tr td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) {
  width: 7% !important;
  text-align: center !important;
}

/* Make sure the header cells are also properly aligned */
.table.is-bordered th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Override the first table's styles */
.table:not(.is-bordered) td:first-child {
  width: 40% !important;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 或使用 'contain' 根据需要调整 */
}

.caption {
  text-align: center;
  margin-top: 8px;
}

table.video-table {
  width: 100%;
  table-layout: fixed;
}

table.video-table td {
  padding: 3px;
  vertical-align: top; /* 确保单元格内容顶部对齐 */
}