
/* 全局样式 */
body { background: #f5f5f5; }
.container { background: white; border-radius: 8px; margin-top: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.page-title {
  font-size: 28px;
  color: #2c3e50;
  padding: 30px 30px 20px;
  border-bottom: 3px solid #3498db;
  margin: 0;
}

/* 首页样式 */
.intro-section { padding: 30px; line-height: 1.8; font-size: 16px; color: #555; background: #f8f9fa; }
.hot-section, .rank-section, .latest-section { padding: 30px; }
.hot-section h2, .rank-section h2, .latest-section h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecf0f1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card .meta { color: #7f8c8d; font-size: 14px; margin: 8px 0; }
.card .desc { color: #555; font-size: 14px; line-height: 1.6; }

.rank-list { background: #f8f9fa; padding: 20px; border-radius: 6px; }
.rank-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s;
}
.rank-item:hover { background: #fff; }
.rank-item:last-child { border-bottom: none; }
.rank {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #3498db;
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  font-weight: bold;
  flex-shrink: 0;
}
.rank-item a { flex: 1; font-size: 16px; color: #2c3e50; }
.rank-item .year { color: #95a5a6; font-size: 14px; }

.latest-list { display: flex; flex-direction: column; gap: 12px; }
.latest-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  transition: background 0.3s;
}
.latest-item:hover { background: #e8eef2; }
.latest-item a { font-size: 16px; color: #2c3e50; flex: 1; }
.latest-item .meta { color: #7f8c8d; font-size: 14px; white-space: nowrap; }

.more-link {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
}
.more-link a {
  color: #3498db;
  margin: 0 10px;
  font-weight: 500;
}

/* 列表页样式 */
.list-container { padding: 30px; }
.list-item {
  padding: 25px;
  border-bottom: 1px solid #ecf0f1;
  position: relative;
}
.list-item:last-child { border-bottom: none; }
.list-item h3 { font-size: 20px; margin-bottom: 10px; color: #2c3e50; }
.list-item .meta { color: #7f8c8d; font-size: 14px; margin: 8px 0; }
.list-item .summary { color: #555; line-height: 1.6; margin-top: 10px; }

.rank-num {
  position: absolute;
  top: 25px;
  right: 25px;
  background: #e74c3c;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}
.date {
  background: #27ae60;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 10px;
}
.topic-tag {
  background: #9b59b6;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 10px;
}

/* 详情页样式 */
.detail-page h1 {
  font-size: 32px;
  color: #2c3e50;
  padding: 30px 30px 20px;
  margin: 0;
  border-bottom: 3px solid #3498db;
}
.detail-page section { padding: 25px 30px; border-bottom: 1px solid #ecf0f1; }
.detail-page section:last-child { border-bottom: none; }
.detail-page h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid #3498db;
}

.info-list { list-style: none; }
.info-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #ecf0f1;
  font-size: 15px;
  line-height: 1.6;
}
.info-list li:last-child { border-bottom: none; }
.info-list strong { color: #2c3e50; display: inline-block; min-width: 80px; }

.highlight {
  font-size: 18px;
  line-height: 1.8;
  color: #e74c3c;
  font-weight: 500;
  padding: 20px;
  background: #fff5f5;
  border-left: 4px solid #e74c3c;
  border-radius: 4px;
}

.summary-text, .review-text {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  text-indent: 2em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.related-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.3s;
}
.related-item:hover {
  background: #e8eef2;
  transform: translateY(-2px);
}
.related-item h4 { font-size: 16px; margin-bottom: 8px; }
.related-item p { font-size: 14px; color: #666; line-height: 1.5; }

/* 响应式 */
@media (max-width: 768px) {
  .container { margin-top: 10px; border-radius: 0; }
  .page-title { font-size: 22px; padding: 20px; }
  .hot-section, .rank-section, .latest-section { padding: 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 15px; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-page h1 { font-size: 24px; padding: 20px; }
  .detail-page section { padding: 20px; }
}
