/* 全局样式增强 */
body.ui-style-5 {
  background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
}

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

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

/* 首页样式 */
.hero {
  background: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  color: #667eea;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.intro {
  font-size: 1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

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

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

.video-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

.video-card:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  transform: translateY(-4px);
  border-color: #667eea;
}

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

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

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

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

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

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

.video-item:hover {
  background: #f9f9f9;
  border-color: #667eea;
}

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

.item-info {
  flex: 1;
}

.item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

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

.item-info p {
  color: #888;
  font-size: 0.9rem;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  margin: 0 0.5rem;
}

.more-link a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* 列表页样式 */
.page-intro {
  background: #f9f9f9;
  padding: 1rem;
  border-left: 4px solid #667eea;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.list-container, .rank-list, .topic-grid, .latest-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-item, .rank-item, .topic-card, .latest-item {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

.list-item:hover, .rank-item:hover, .topic-card:hover, .latest-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border-color: #667eea;
}

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

.category, .badge {
  background: #667eea;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.summary, .review, .comment {
  color: #555;
  line-height: 1.7;
  margin-top: 0.5rem;
}

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

.rank-item {
  display: flex;
  gap: 1.5rem;
}

.rank-badge {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-content {
  flex: 1;
}

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

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.year {
  background: #f0f0f0;
  color: #666;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.genre {
  color: #667eea;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* 详情页样式 */
.detail-page h1 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page h2 {
  color: #667eea;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

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

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

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

.oneline p, .summary p, .review p {
  line-height: 1.9;
  color: #444;
  font-size: 1.05rem;
}

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

.related-card {
  padding: 1.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-card:hover {
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.2);
  transform: translateY(-3px);
  border-color: #667eea;
}

.related-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

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

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .intro {
    font-size: 0.95rem;
  }

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

  section {
    padding: 1.5rem 1rem;
  }

  .rank-item {
    flex-direction: column;
    gap: 1rem;
  }

  .detail-page h1 {
    font-size: 1.5rem;
  }
}