/*
 * VMEvalKit - Clear Typography
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
  line-height: 1.8;
  background: #fff;
  font-size: 15px;
}

.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header */
.header {
  margin-bottom: 4rem;
}

.header .title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.header .authors {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.header .links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header .links a {
  color: #fff;
  background: #222;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
}

.header .links a:hover {
  background: #444;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.section > p {
  color: #333;
}

/* Abstract - 重点突出 */
.abstract {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}

.abstract strong {
  background: #fffde7;
  padding: 0 0.2rem;
}

/* Figures */
.figure {
  margin: 1.5rem 0;
}

.figure img {
  width: 100%;
}

.figure figcaption {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: center;
}

/* Features - 2列清晰展示 */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.feature h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.3rem;
}

.feature p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

/* Section Intro */
.section-intro {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.model-category h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.model-list {
  list-style: none;
}

.model-list li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.model-list li strong {
  color: #000;
  margin-right: 0.3rem;
}

/* Task Grid */
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.task-item {
  background: #f9f9f9;
  padding: 0.9rem 1rem;
  border-radius: 4px;
}

.task-item strong {
  display: block;
  font-size: 0.9rem;
  color: #000;
  margin-bottom: 0.25rem;
}

.task-item span {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

/* Task Structure - 图上文下 */
.task-structure .figure {
  margin: 0 0 1.5rem 0;
}

.task-structure .figure img {
  border-radius: 4px;
}

.task-structure .content > p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.task-structure .components {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.task-structure .component {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
}

.task-structure .component strong {
  display: block;
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 0.4rem;
}

.task-structure .component code {
  display: block;
  background: #fff;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.task-structure .component span {
  font-size: 0.85rem;
  color: #555;
}

/* Examples - 全宽大图 */
.examples {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.example {
  display: block;
}

.example img {
  width: 100%;
  margin-bottom: 1rem;
}

.example figcaption {
  max-width: 700px;
}

.example figcaption strong {
  display: block;
  font-size: 1.15rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.example figcaption p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* Code - 清晰的代码块 */
pre {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #333;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.7;
}

code {
  font-family: 'SF Mono', Monaco, 'Consolas', monospace;
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.footer p {
  font-size: 0.75rem;
  color: #999;
}

.footer a {
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .main {
    padding: 2rem 1.5rem;
  }

  .header .title {
    font-size: 1.4rem;
  }

  .model-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .task-structure .components {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section h2 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
}
