/* 基础样式已在head中内联，这里补充详细样式 */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #2c3e50;
}

.card h3 a {
  text-decoration: none;
  color: inherit;
}

.card h3 a:hover {
  color: #3498db;
}

.card .meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

.card .one-line {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.intro, .page-desc {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

section {
  margin-bottom: 3rem;
}

section h2 {
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.rank-list {
  list-style: none;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rank-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-list a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
}

.rank-list a:hover {
  color: #3498db;
}

.list-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.list-item h3 a {
  text-decoration: none;
  color: #2c3e50;
}

.list-item h3 a:hover {
  color: #3498db;
}

.list-item .rank {
  display: inline-block;
  background: #3498db;
  color: white;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.list-item .date {
  display: inline-block;
  background: #2ecc71;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.list-item .summary {
  color: #666;
  line-height: 1.6;
  margin-top: 0.5rem;
}

article {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

article h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 1rem;
}

article .info p {
  padding: 0.5rem 0;
  line-height: 1.8;
}

article .info strong {
  display: inline-block;
  width: 80px;
  color: #7f8c8d;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.related-item {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: border-color 0.2s;
}

.related-item:hover {
  border-color: #3498db;
}

.related-item h4 {
  margin-bottom: 0.5rem;
}

.related-item h4 a {
  text-decoration: none;
  color: #2c3e50;
}

.related-item h4 a:hover {
  color: #3498db;
}

.related-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .card-grid, .related-grid {
    grid-template-columns: 1fr;
  }

  article {
    padding: 1.5rem;
  }

  article h1 {
    font-size: 1.6rem;
  }
}