/* 全局样式 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 8px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero .intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e74c3c;
}

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

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

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

.card h3 {
  margin-bottom: 10px;
}

.card h3 a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

.card h3 a:hover {
  color: #e74c3c;
}

.card .meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 10px;
}

.card .desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.more-link {
  text-align: center;
  margin-top: 20px;
}

.more-link a {
  color: #e74c3c;
  text-decoration: none;
  font-size: 16px;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.link-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.link-card:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-5px);
}

.link-card h3 {
  margin-bottom: 10px;
}

/* 列表页 */
.list-header {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.list-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.list-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.list-card {
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

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

.list-card .rank,
.list-card .index {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 10px;
}

.list-card h3 {
  display: inline;
  font-size: 20px;
}

.list-card h3 a {
  color: #333;
  text-decoration: none;
}

.list-card h3 a:hover {
  color: #e74c3c;
}

.list-card .meta {
  color: #999;
  font-size: 14px;
  margin: 10px 0;
}

.list-card .desc {
  color: #666;
  line-height: 1.6;
}

.list-card .tags {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
}

/* 详情页 */
.detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.detail section {
  margin-bottom: 30px;
}

.info-list {
  list-style: none;
  line-height: 2;
}

.info-list li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-oneline p {
  font-size: 18px;
  color: #e74c3c;
  font-weight: 500;
  line-height: 1.8;
}

.detail-summary p,
.detail-review p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

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

.related-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid #e74c3c;
}

.related-item h4 {
  margin-bottom: 8px;
}

.related-item h4 a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

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

.related-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

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

  .detail {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 24px;
  }
}