:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --bg-card: #f9fafb;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 50px 0 25px;
  text-align: center;
}

.title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.conference {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.authors {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.8;
}

.author {
  display: inline-block;
  margin: 0 4px;
}

.affiliations {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

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

/* Quick Nav Buttons */
.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #374151;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 35px 0;
  border-top: 1px solid var(--border-color);
}

.section-teaser {
  padding: 20px 0 30px;
}

.section h2 {
  font-size: 1.55rem;
  margin-bottom: 16px;
  text-align: center;
  color: #111827;
}

.text-content {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
}

.mt-3 {
  margin-top: 15px;
}

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 10px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Images & Captions */
.image-box {
  margin: 20px auto;
  text-align: center;
}

.image-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Interactive Tabs */
.tab-container {
  margin: 20px 0;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Table */
.table-container {
  overflow-x: auto;
  margin: 20px 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 9px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-card);
  font-weight: 600;
  color: var(--text-main);
}

tr:hover {
  background-color: #f3f4f6;
}

.highlight-row {
  background-color: #eff6ff !important;
}

.table-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
}

/* Links & Buttons */
.btn-sub {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.btn-sub:hover {
  text-decoration: underline;
}

.btn-sub-small {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sub-small:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Resource Section */
.resource-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px 18px;
}

.resource-links {
  margin-top: 8px;
  font-size: 0.9rem;
}

.resource-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.resource-links a:hover {
  text-decoration: underline;
}

/* BibTeX Box */
.bibtex-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px 18px;
}

.bibtex-header {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

pre {
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Footer */
.footer {
  text-align: center;
  padding: 35px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

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

/* Mobile Responsive */
@media (max-width: 650px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .title {
    font-size: 1.6rem;
  }
}
