/* 全局样式 */
body {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 页面头部 */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
}

.page-header .intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

.card h3 a:hover {
  color: #667eea;
}

.card .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

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

/* 排行榜区域 */
.rank-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.rank-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.rank-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.rank-item a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

.rank-item a:hover {
  color: #667eea;
}

/* 最新区域 */
.latest-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.latest-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

.latest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.latest-item:hover {
  background: #e9ecef;
}

.latest-item a {
  color: #333;
  text-decoration: none;
  flex: 1;
  margin-right: 0.5rem;
}

.latest-item a:hover {
  color: #667eea;
}

.latest-item .year {
  color: #999;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* 热门区域 */
.hot-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hot-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.more-link a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.more-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 列表页样式 */
.list-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 12px;
}

.list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
}

.list-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

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

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

.list-card .meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.list-card .summary {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.list-card .date {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.5rem;
}

.rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.top-card {
  border-left: 4px solid #667eea;
}

.topic-card {
  border-left: 4px solid #764ba2;
}

.latest-card {
  border-left: 4px solid #f093fb;
}

.daquan-card {
  border-left: 4px solid #4facfe;
}

/* 详情页样式 */
.detail-page {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
}

.detail-header h1 {
  font-size: 2.2rem;
  color: #333;
  line-height: 1.4;
}

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page h2 {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

.info-list strong {
  color: #333;
  display: inline-block;
  min-width: 80px;
}

.highlight {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.detail-summary p,
.detail-review p {
  font-size: 1rem;
  color: #666;
  line-height: 1.9;
  text-align: justify;
}

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

.related-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.related-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.related-card h4 a {
  color: #333;
  text-decoration: none;
}

.related-card h4 a:hover {
  color: #667eea;
}

.related-card .one-line {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header .intro {
    font-size: 0.95rem;
  }

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

  .latest-list {
    grid-template-columns: 1fr;
  }

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

  .detail-header h1 {
    font-size: 1.7rem;
  }

  .detail-page {
    padding: 1.5rem;
  }
}

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

  .page-header {
    padding: 1.5rem 1rem;
  }

  .hot-section,
  .rank-section,
  .latest-section,
  .list-section {
    padding: 1.5rem 1rem;
  }
}
