/* 全局样式增强 */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2d3748;
  text-align: center;
  line-height: 1.3;
}

.page-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero .page-title {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero .intro-text {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
  text-align: center;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d3748;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-title a {
  color: #2d3748;
  text-decoration: none;
}

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

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

.video-desc {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
}

/* 视频列表 */
.video-list {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.item-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s;
}

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

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

.item-desc {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
}

/* 专题列表 */
.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.topic-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.topic-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.topic-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.topic-item h3 a {
  color: #2d3748;
  text-decoration: none;
}

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

.topic-item p {
  color: #718096;
  line-height: 1.6;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

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

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

/* 列表页样式 */
.list-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

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

.rank-badge {
  position: absolute;
  top: 1.5rem;
  left: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.top-item .video-title {
  margin-left: 4rem;
}

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

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

.video-oneline {
  font-size: 0.95rem;
  color: #2d3748;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.video-summary {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.7;
}

/* 详情页样式 */
.detail-page {
  background: white;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
}

.detail-info {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #667eea;
}

.detail-info p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #2d3748;
}

.detail-info p:last-child {
  margin-bottom: 0;
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.highlight-text {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
}

.content-text {
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.9;
  text-align: justify;
}

.review-text {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.8;
  padding: 1.5rem;
  background: #fffbf0;
  border-left: 4px solid #f6ad55;
  border-radius: 6px;
}

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

.related-card {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.related-card:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.related-title a {
  color: #2d3748;
  text-decoration: none;
}

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

.related-meta {
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 0.5rem;
}

.related-desc {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.6;
}

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

  .hero .page-title {
    font-size: 1.6rem;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

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

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

  .detail-page {
    padding: 1.5rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

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

  .list-container {
    padding: 1.5rem;
  }

  .rank-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .top-item .video-title {
    margin-left: 0;
  }
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
