
/* 全局样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* 页面头部 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
}

.page-header h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 16px;
  line-height: 1.3;
}

.site-intro, .page-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

/* 模块样式 */
.module {
  margin-bottom: 48px;
}

.module-title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
}

.module-more {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.module-more a {
  color: #3498db;
  font-size: 14px;
  margin: 0 12px;
}

.module-more a:hover {
  color: #2980b9;
  text-decoration: underline;
}

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

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

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

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

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

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

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

.video-tags {
  font-size: 13px;
  color: #95a5a6;
  margin-top: 8px;
}

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

.video-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #ecf0f1;
}

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

.rank-num {
  font-size: 24px;
  font-weight: bold;
  color: #3498db;
  min-width: 48px;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #2c3e50;
}

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

/* 档案页 */
.video-archive {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.archive-item {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

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

.video-summary {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 12px 0;
}

.video-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #ecf0f1;
  color: #7f8c8d;
  font-size: 12px;
  border-radius: 4px;
}

/* 排行榜 */
.ranking-list {
  background: white;
  border-radius: 8px;
  padding: 16px;
}

.ranking-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #ecf0f1;
}

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

.rank-badge {
  font-size: 28px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #3498db, #2980b9);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

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

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

.video-review {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 8px;
  font-style: italic;
}

/* 专题页 */
.topic-group {
  margin-bottom: 48px;
}

.topic-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #27ae60;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.topic-card {
  background: white;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.topic-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #2c3e50;
}

.topic-card h3 a:hover {
  color: #27ae60;
}

/* 最新列表 */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-item {
  background: white;
  display: flex;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.item-date {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  min-width: 80px;
  text-align: center;
  border-right: 2px solid #ecf0f1;
  padding-right: 20px;
  margin-right: 20px;
}

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

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

.latest-item h3 a:hover {
  color: #e74c3c;
}

.video-tags-compact {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.video-tags-compact span {
  font-size: 12px;
  color: #95a5a6;
  padding: 2px 8px;
  background: #f8f9fa;
  border-radius: 3px;
}

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

.detail-header h1 {
  font-size: 26px;
  color: #2c3e50;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #3498db;
}

.detail-info, .detail-oneline, .detail-summary, .detail-review, .detail-related {
  margin-bottom: 32px;
}

.detail-info h2, .detail-oneline h2, .detail-summary h2, .detail-review h2, .detail-related h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: bold;
  color: #7f8c8d;
}

.info-list dd {
  color: #2c3e50;
}

.highlight-text {
  font-size: 17px;
  color: #2c3e50;
  padding: 16px;
  background: #ecf0f1;
  border-radius: 6px;
  line-height: 1.7;
}

.detail-summary p, .detail-review p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
}

.review-text {
  font-style: italic;
  padding: 16px;
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 4px;
}

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

.related-card {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
}

.related-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #2c3e50;
}

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

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

.site-footer p {
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 16px 12px;
  }

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

  .module-title {
    font-size: 18px;
  }

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

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

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

  .ranking-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-badge {
    margin-bottom: 12px;
  }

  .latest-item {
    flex-direction: column;
  }

  .item-date {
    border-right: none;
    border-bottom: 2px solid #ecf0f1;
    padding-right: 0;
    padding-bottom: 12px;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .video-detail {
    padding: 20px 16px;
  }

  .detail-header h1 {
    font-size: 20px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
