/* 全局样式已在内联中定义 */

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
}

.page-intro {
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.8;
}

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

.intro-section h2, .hot-section h2, .topic-section h2, .latest-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

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

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

.video-card h3 a:hover {
  color: #3498db;
}

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

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

.video-card .rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #e74c3c;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.video-card .date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #27ae60;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.video-list .video-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.video-list .video-item a:hover {
  color: #3498db;
}

.video-list .year {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.more-link {
  margin-top: 1.5rem;
  text-align: center;
}

.more-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.more-link a:hover {
  text-decoration: underline;
}

/* 详情页样式 */
.detail-page section {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-page h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 0.8rem;
}

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

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
}

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

.highlight {
  font-size: 1.1rem;
  color: #e74c3c;
  font-weight: 500;
  line-height: 1.8;
}

.summary-section p, .review-section p {
  line-height: 1.8;
  color: #555;
  text-indent: 2em;
}

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

.related-item {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.related-item:hover {
  border-color: #3498db;
}

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.related-item h4 a:hover {
  color: #3498db;
}

.related-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

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

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

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

  .intro-section, .hot-section, .topic-section, .latest-section, .detail-page section {
    padding: 1.5rem 1rem;
  }
}