/* 全局样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero .intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.site-intro,
.hot-section,
.topic-section,
.latest-section {
  background: white;
  padding: 2rem 0;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-intro h2,
.hot-section h2,
.topic-section h2,
.latest-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.site-intro p {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #555;
}

/* 视频网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

.video-card .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

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

/* 专题网格 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.topic-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.topic-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.topic-card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.topic-card a {
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  display: inline-block;
  transition: background 0.3s;
}

.topic-card a:hover {
  background: rgba(255,255,255,0.2);
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  position: relative;
}

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

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

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

.video-item .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.video-item .tags {
  color: #667eea;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.video-item .desc {
  color: #555;
  line-height: 1.7;
}

.video-item .review-preview {
  color: #888;
  font-style: italic;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.video-item .rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #667eea;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

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

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: 2px solid #667eea;
  border-radius: 25px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: #667eea;
  color: white;
}

/* 列表页样式 */
.list-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.list-page h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.8rem;
}

.list-page .page-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* 详情页样式 */
.detail-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.detail-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 3px solid #667eea;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.detail-header .subtitle {
  color: #666;
  font-size: 1.1rem;
}

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

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

.basic-info .info-list {
  list-style: none;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.basic-info .info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

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

.basic-info .info-list strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.one-line .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
}

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

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

.related-card {
  background: #f8f9fa;
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.related-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

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

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

.related-card .desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  opacity: 0.8;
}

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

  .hero .intro {
    font-size: 1rem;
  }

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

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

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

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

  .more-link {
    flex-direction: column;
    align-items: center;
  }
}
