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

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

/* 页面头部 */
.page-header {
  text-align: center;
  padding: 40px 0;
  background: white;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.page-intro {
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 10px auto 0;
}

/* 站点介绍 */
.site-intro {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

.site-intro a {
  color: #3498db;
  text-decoration: none;
}

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

/* 视频区块 */
.video-section {
  margin-bottom: 40px;
}

.video-section h2 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

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

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

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

.video-card h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

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

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

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

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

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

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

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

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

.video-item.top {
  align-items: center;
}

.video-item .rank {
  font-size: 2em;
  font-weight: bold;
  color: #e74c3c;
  min-width: 50px;
  text-align: center;
}

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

.video-item h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
}

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

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

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

.video-item .oneline {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

.video-item .review {
  color: #666;
  font-style: italic;
  font-size: 0.95em;
  line-height: 1.6;
}

/* 详情页 */
.video-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-header h1 {
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 20px;
}

.detail-meta {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.meta-row {
  padding: 8px 0;
  border-bottom: 1px solid #ecf0f1;
  line-height: 1.6;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row strong {
  color: #2c3e50;
  margin-right: 10px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h2 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.oneline-big {
  font-size: 1.1em;
  color: #e74c3c;
  font-weight: 500;
  line-height: 1.8;
}

.summary p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #444;
  text-indent: 2em;
}

.review-box {
  background: #fff8e1;
  padding: 20px;
  border-left: 4px solid #ffc107;
  line-height: 1.8;
  color: #555;
}

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

.related-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  transition: background 0.3s;
}

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

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

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

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

.related-card .meta {
  color: #7f8c8d;
  font-size: 0.85em;
  margin-bottom: 6px;
}

.related-card .oneline {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
}

/* 章节链接 */
.section-link {
  text-align: center;
  margin-top: 20px;
}

.section-link a {
  display: inline-block;
  padding: 10px 30px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.section-link a:hover {
  background: #2980b9;
}

/* 页脚 */
.site-footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

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

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

  .video-detail {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 1.6em;
  }

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