
/* 全局样式 */
body {
  background: linear-gradient(to bottom, #f5f7fa 0%, #ffffff 100%);
}

.container {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 首页样式 */
.intro-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  line-height: 1.8;
}

section {
  margin-bottom: 3rem;
}

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

.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: all 0.3s;
}

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #667eea;
}

.video-card h3 a:hover {
  color: #764ba2;
}

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

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

.video-list {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

.video-item .rank {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.video-item a {
  flex: 1;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s;
}

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

.video-item .genre {
  font-size: 0.85rem;
  color: #888;
}

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

.more-link a {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 25px;
  transition: all 0.3s;
}

.more-link a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 列表页样式 */
.page-intro {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.video-list-page {
  display: grid;
  gap: 1.5rem;
}

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

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

.video-item-card .rank-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.video-item-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #667eea;
}

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

.video-item-card .tags {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.video-item-card .desc {
  line-height: 1.7;
  color: #555;
}

.video-item-card .date-label {
  font-size: 0.85rem;
  color: #667eea;
  margin-top: 0.75rem;
  font-weight: 500;
}

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

.detail-info .info-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

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

.detail-info strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.detail-highlight,
.detail-summary,
.detail-review {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.detail-highlight h2,
.detail-summary h2,
.detail-review h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

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

.detail-related {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.related-card {
  padding: 1.25rem;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-card:hover {
  border-color: #667eea;
  background: #f9f9ff;
}

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

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

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

  h1 {
    font-size: 1.5rem;
  }

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

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

  section h2 {
    font-size: 1.2rem;
  }
}
