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

main {
  flex: 1;
  padding-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero 区域 */
.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;
  font-weight: 600;
}

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

/* 板块样式 */
section {
  margin: 2rem 0;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.section-intro {
  color: #666;
  margin-bottom: 1.5rem;
}

.section-intro a {
  color: #667eea;
  text-decoration: none;
}

.section-intro a:hover {
  text-decoration: underline;
}

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

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  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.2rem;
  margin-bottom: 0.5rem;
}

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

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

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

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

.video-card .desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.video-card .more-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

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

.video-card .rank {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.video-card .date {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #f0f0f0;
  color: #666;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 列表样式 */
.video-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.video-item {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 1rem;
  transition: background 0.3s;
}

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

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

.video-item .index {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  min-width: 2rem;
}

.video-item .item-content {
  flex: 1;
}

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

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

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

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

.video-item .tags {
  color: #666;
  font-size: 0.85rem;
}

.video-item .desc {
  color: #666;
  line-height: 1.6;
}

/* 按钮 */
.section-footer {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.detail-container h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 1rem;
}

.detail-container h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #667eea;
  border-left: none;
  padding-left: 0;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem 1rem;
  line-height: 1.8;
}

.basic-info dt {
  font-weight: 600;
  color: #666;
}

.basic-info dd {
  color: #333;
}

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

.summary p,
.review p {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.related-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.related-card:hover {
  background: #f0f0f0;
}

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

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

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

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

/* 列表页头部 */
.list-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem 0;
}

.list-header h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

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

.list-content {
  margin-top: 2rem;
}

/* 简介板块 */
.intro-section {
  background: white;
  padding: 2rem 0;
}

.intro-section h2 {
  margin-bottom: 1rem;
}

.intro-section p {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.intro-section a {
  color: #667eea;
  text-decoration: none;
}

.intro-section a:hover {
  text-decoration: underline;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

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

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

  section h2 {
    font-size: 1.5rem;
  }

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

  .detail-container {
    padding: 1.5rem;
  }

  .detail-container h1 {
    font-size: 1.6rem;
  }

  .basic-info dl {
    grid-template-columns: 80px 1fr;
    gap: 0.5rem;
  }

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