/* --- Global Reset & Typography --- */
body {
  font-family: 'Inter', 'Noto Sans', sans-serif;
  background-color: #fcfcfc; /* 极淡的灰白色背景，比纯白护眼 */
  color: #2c3e50;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Google Sans', sans-serif;
  color: #1a1a1a;
}

a {
  color: #3273dc;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a5cbe;
}

img {
  border-radius: 8px;
}

/* --- Layout Helpers --- */
.container.is-max-desktop {
  max-width: 960px;
}

.section {
  padding: 3rem 1.5rem;
}

/* --- Hero Section (Title & Authors) --- */
.hero-body {
  padding-bottom: 2rem;
}

.publication-title {
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem !important;
  background: -webkit-linear-gradient(45deg, #1a1a1a, #4a4a4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-subtitle {
  font-size: 80%;
  font-weight: 400;
  display: block;
  margin-top: 10px;
  color: #4a4a4a;
  -webkit-text-fill-color: #4a4a4a; /* Reset text fill for subtitle */
}

.publication-authors {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.affiliation-block {
  color: #666; 
  margin-top: 5px;
}

.author-block a {
  color: #2c3e50;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted #ccc;
}

.author-block a:hover {
  border-bottom: 1px solid #3273dc;
  color: #3273dc;
}

/* --- Buttons (Pill Shape) --- */
.publication-links .button {
  border-radius: 50px; /* 胶囊形状 */
  border: 1px solid #e1e4e8;
  background-color: #fff;
  color: #363636;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 5px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.publication-links .button:hover {
  transform: translateY(-2px); /* 悬停上浮 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #363636;
  background-color: #363636;
  color: #fff;
}

.publication-links .icon {
  margin-right: 4px;
}

/* --- Image Containers & Cards (High-end Look) --- */
.teaser-section {
  padding-top: 0;
}

.teaser-card, 
.method-card, 
.results-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* 柔和阴影 */
  margin-bottom: 1.5rem;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
}

.teaser-card:hover,
.results-card:hover {
  transform: translateY(-2px);
}

.teaser-card img,
.method-card img,
.results-card img {
  width: 100%;
  display: block;
}

.caption-text {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* --- Abstract Section --- */
.section.abstract-section {
  background-color: #fff;
}

.abstract-box {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 16px;
  border-left: 5px solid #3273dc; /* 左侧装饰线 */
}

.text-highlight {
  color: #b33939;
  font-weight: 600;
}

/* --- Method Section Helpers --- */
.method-subtitle {
  font-size: 1.1rem; 
  margin-bottom: 2rem;
}

.method-box-blue {
  height: 100%; 
  border-top: 3px solid #3273dc;
}

.method-box-red {
  height: 100%; 
  border-top: 3px solid #b33939;
}

/* --- Results Section & Tables --- */
.results-section {
  background-color: #fcfcfc;
}

.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table {
  width: 100%;
  background-color: #fff;
  color: #333;
}

.table caption {
  color: #666;
  font-weight: 600;
  padding-bottom: 10px;
}

.table thead th {
  background-color: #f1f3f5;
  color: #2c3e50;
  border-bottom: 2px solid #dbdbdb;
  font-weight: 700;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Our Method Highlight */
.table tbody tr.is-selected {
  background-color: #e3f2fd; 
  color: inherit;
  font-weight: bold;
  border-left: 4px solid #3273dc;
}

.table tbody tr.is-selected td {
  border-color: #e3f2fd; /* Hide inner borders for cleaner look */
}

.best-score {
  color: #d32f2f; /* 最佳分数红色 */
  font-weight: bold;
}

.gain-score {
  color: #27ae60; 
  font-weight: bold;
}

/* --- BibTeX --- */
#BibTeX pre {
  background-color: #f4f6f8;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  padding: 1.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* --- Footer --- */
.footer {
  background-color: #fff;
  padding: 3rem 1.5rem;
  border-top: 1px solid #eaeaea;
}

/* --- Animations --- */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
