/* 全局样式 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 40px 20px;
}

footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 30px 20px;
  margin-top: 60px;
  text-align: center;
}

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

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

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

.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #2c3e50;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

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

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

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

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

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

.video-card .meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

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

/* 链接网格 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.link-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  display: block;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

.link-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #667eea;
}

.link-card p {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
}

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

.video-item {
  padding: 20px;
  border-bottom: 1px solid #ecf0f1;
  transition: background 0.3s;
}

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

.video-item:hover {
  background: #f8f9fa;
}

.video-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2c3e50;
}

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

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

.video-item .meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.video-item .desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

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

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: #667eea;
  color: white;
  border-radius: 6px;
  transition: background 0.3s;
  text-decoration: none;
}

.more-link a:hover {
  background: #5568d3;
}

/* 列表页样式 */
.page-header {
  text-align: center;
  padding: 50px 20px;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2c3e50;
}

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

.video-list-section {
  display: grid;
  gap: 20px;
}

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

.video-card-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-card-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.video-card-item h3 a {
  color: #2c3e50;
}

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

.video-card-item .meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.video-card-item .tags {
  font-size: 13px;
  color: #667eea;
  margin-bottom: 8px;
}

.video-card-item .date-info {
  font-size: 12px;
  color: #95a5a6;
  margin-bottom: 8px;
}

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

.video-card-item.rank {
  padding-left: 70px;
}

.rank-num {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
  opacity: 0.3;
}

/* 详情页样式 */
.detail-page {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
}

.detail-page h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 2px solid #667eea;
  padding-bottom: 15px;
}

.detail-page h2 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #2c3e50;
}

.info-section .info-list {
  list-style: none;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.info-section .info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
}

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

.info-section .info-list strong {
  color: #667eea;
  margin-right: 10px;
}

.highlight-section {
  margin: 30px 0;
}

.highlight {
  font-size: 18px;
  line-height: 1.8;
  color: #2c3e50;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.summary-section,
.review-section {
  margin: 30px 0;
}

.summary-text p,
.review-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}

.related-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #ecf0f1;
}

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

.related-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-card:hover {
  background: #e9ecef;
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

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

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

.related-card .meta {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

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

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

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

  .hero .intro {
    font-size: 14px;
  }

  .section h2 {
    font-size: 20px;
  }

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

  .detail-page {
    padding: 25px 20px;
  }

  .detail-page h1 {
    font-size: 22px;
  }

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

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

@media (max-width: 480px) {
  main {
    padding: 20px 10px;
  }

  .hero {
    padding: 30px 15px;
  }

  .detail-page {
    padding: 20px 15px;
  }
}
