:root {
  --primary-color: #2c3e50;
  --accent-color: #3e8ed0;
  --bg-color: #fcfcfc;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --max-width: 960px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 0 30px;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.authors {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.author {
  display: inline-block;
  margin: 0 8px;
  color: #007bff; /* Link color feel */
}

.affiliations {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
}

.affiliation {
  margin: 0 10px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  background-color: #363636;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Sections */
.section {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
}

.abstract-text {
  text-align: justify;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Figures - 图片样式修正 */
.main-figure, .wide-figure {
  margin: 0 auto 30px; /* 上下留白，水平居中 */
  text-align: center;  /* 图片说明文字居中 */
  width: 100%;         /* 容器占满行 */
}

.main-figure img, .wide-figure img {
  display: block;      /* 让图片变为块级元素，方便居中 */
  max-width: 100%;     /* 关键：图片最大宽度不能超过父容器 */
  width: auto;         /* 宽度自动，保持原图比例 */
  height: auto;        /* 高度自动，保持原图比例 */
  margin: 0 auto;      /* 图片自身水平居中 */
  
  border-radius: 8px;  /* 图片圆角，看起来更现代 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 柔和的阴影 */
  border: 1px solid #eee; /* 淡淡的边框，防止白底图和背景混在一起 */
}

/* 如果某张图片（比如 Figure 1）不需要太大，可以用这个类限制它 */
.figure-constrained img {
  max-width: 80%; /* 只占容器的 80% 宽 */
}

figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: justify;
  padding: 0 10px;
}

/* Method Points */
.method-points {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.point {
  flex: 1;
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
}

.point i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.point h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.point p {
  font-size: 0.9rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.ours-row {
  background-color: #e8f4fd; /* Light blue highlight for your method */
  font-weight: bold;
}

/* BibTeX */
pre {
  background-color: #f6f8fa;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  border: 1px solid #e1e4e8;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .method-points {
    flex-direction: column;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}