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

body {
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

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

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

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

.video-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.video-desc {
  color: #555;
  line-height: 1.5;
  margin: 0.5rem 0 0 0;
}

/* 列表样式 */
.video-list {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
}

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

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

.rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0066cc;
  min-width: 3rem;
  text-align: center;
}

.video-year {
  margin-left: auto;
  color: #999;
}

/* 详情页 */
.detail-page .container {
  max-width: 900px;
}

.video-info {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.video-info p {
  margin: 0.5rem 0;
}

.video-oneline,
.video-summary,
.video-review,
.video-related {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.video-oneline h2,
.video-summary h2,
.video-review h2,
.video-related h2 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.5rem;
}

/* 列表页特殊样式 */
.video-item-full {
  background: #fff;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.video-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.video-item-header h3 {
  margin: 0;
}

.video-badge {
  background: #0066cc;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.video-tags {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* TOP榜单 */
.top-list {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
}

.top-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: #0066cc;
  min-width: 4rem;
  text-align: center;
}

.top-item.rank-1 .top-rank { color: #d4af37; }
.top-item.rank-2 .top-rank { color: #c0c0c0; }
.top-item.rank-3 .top-rank { color: #cd7f32; }

.top-content {
  flex: 1;
}

.top-content h3 {
  margin: 0 0 0.5rem 0;
}

.top-meta {
  color: #666;
  margin: 0.5rem 0;
}

.top-desc {
  color: #555;
  margin: 0.5rem 0 0 0;
}

/* 专题页 */
.topic-section {
  margin: 2rem 0;
}

.topic-section h2 {
  color: #2c3e50;
  border-left: 4px solid #0066cc;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* 最新页 */
.latest-list {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
}

.latest-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.latest-date {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0066cc;
  min-width: 5rem;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  margin: 0 0 0.5rem 0;
}

.latest-meta {
  color: #666;
  margin: 0.5rem 0;
}

.latest-desc {
  color: #555;
  margin: 0.5rem 0 0 0;
}

/* 首页特殊样式 */
.site-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid #0066cc;
}

.hot-section,
.top-section,
.latest-section {
  margin: 2.5rem 0;
}

.hot-section h2,
.top-section h2,
.latest-section h2 {
  color: #2c3e50;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

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

.video-card-mini {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.video-card-mini a {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.video-card-mini span {
  color: #666;
  font-size: 0.9rem;
}

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

.more-link a {
  color: #0066cc;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.page-desc {
  color: #666;
  margin: 1rem 0;
  font-size: 1rem;
}

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

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

  .top-item,
  .latest-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .top-rank,
  .latest-date {
    min-width: auto;
    text-align: left;
  }
}
