/* 全站样式 */
* {
  box-sizing: border-box;
}

main {
  padding: 2rem 0;
  min-height: 60vh;
}

/* 页面头部 */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #667eea;
}

.page-header h1 {
  color: #333;
  margin-bottom: 0.5rem;
}

.page-desc {
  color: #666;
  line-height: 1.8;
}

/* 首页介绍 */
.intro-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.intro-section h1 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.intro-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #555;
}

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

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

/* 区块样式 */
.hot-section,
.topic-section,
.latest-section,
.related-section {
  margin-bottom: 3rem;
}

.hot-section h2,
.topic-section h2,
.latest-section h2,
.related-section h2 {
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

/* 视频卡片 - 标准 */
.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.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

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

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

.video-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

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

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

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

.oneline {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 视频卡片 - 小型 */
.video-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.video-card-small {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.video-card-small h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

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

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

.meta-small {
  color: #999;
  font-size: 0.85rem;
  margin: 0;
}

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

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

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

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

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

.video-item .year {
  color: #999;
  font-size: 0.9rem;
  margin-left: 1rem;
}

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

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-size: 1rem;
}

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

/* 列表页 - 分组 */
.group-section {
  margin-bottom: 3rem;
}

.group-title {
  color: #667eea;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

/* 列表页 - 排行 */
.video-card.ranked {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  text-align: center;
}

.card-content {
  flex: 1;
}

/* 列表页 - 紧凑型 */
.video-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.video-card-compact {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.video-card-compact h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

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

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

.meta-compact {
  color: #999;
  font-size: 0.8rem;
  margin: 0;
}

/* 列表页 - 带日期 */
.video-item-dated {
  background: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.date-label {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

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

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

/* 详情页 */
.detail-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

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

.info-section,
.oneline-section,
.summary-section,
.review-section {
  margin-bottom: 2rem;
}

.info-section h2,
.oneline-section h2,
.summary-section h2,
.review-section h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

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

.oneline-text,
.summary-text,
.review-text {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

.summary-text {
  text-indent: 2em;
}

.review-text {
  background: #f9f9f9;
  padding: 1rem;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

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

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

.related-card:hover {
  transform: translateY(-4px);
}

.related-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

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

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

/* 页脚 */
footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  margin: 0;
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  .intro-section,
  .detail-content {
    padding: 1.5rem;
  }

  .intro-section h1 {
    font-size: 1.4rem;
  }

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

  .video-grid-small,
  .video-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .video-card.ranked {
    flex-direction: column;
  }

  .rank-number {
    font-size: 1.5rem;
  }
}
