
/* 全局样式 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  padding: 2rem 0;
}

/* 页面容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 头部样式 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

/* 首页 Hero */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: white;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1rem;
}

/* 站点介绍 */
.site-intro {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-intro h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.site-intro p {
  line-height: 1.8;
  color: #555;
}

.site-intro a {
  color: #764ba2;
  text-decoration: underline;
}

/* 首页模块 */
.home-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.home-section h2 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #764ba2;
  padding-bottom: 0.5rem;
}

/* 入口卡片 */
.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.entrance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.entrance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.entrance-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.entrance-card a {
  color: white;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.entrance-card a:hover {
  border-bottom-color: white;
}

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

.video-card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

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

.year, .genre {
  color: #666;
  font-size: 0.9rem;
}

.video-desc, .video-brief {
  color: #666;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: background 0.3s;
}

.video-item:hover {
  background: #f0f0f0;
}

.video-item h3 {
  margin-bottom: 0.5rem;
}

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

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

/* 列表页样式 */
.page-intro {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #764ba2;
  line-height: 1.8;
  color: #555;
}

.topic-intro {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-left: 4px solid #667eea;
}

.topic-intro p {
  margin-bottom: 1rem;
}

/* 年份分组 */
.year-group {
  margin-bottom: 3rem;
}

.year-title {
  color: #667eea;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #764ba2;
}

/* 排行榜 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ranking-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ranking-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.ranking-content {
  flex: 1;
}

.ranking-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

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

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

.ranking-reason {
  color: #666;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* 专题列表 */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.topic-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

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

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

.topic-desc {
  margin-top: 1rem;
  line-height: 1.8;
  color: #555;
}

.topic-desc p {
  margin-bottom: 0.8rem;
}

.topic-comment {
  background: #f0f7ff;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  font-style: italic;
}

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

.latest-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.latest-date {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  background: #667eea;
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

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

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

.latest-brief {
  color: #666;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* 详情页 */
.detail-page {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-header h1 {
  color: #667eea;
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #764ba2;
}

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

.detail-page h2 {
  color: #764ba2;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.info-list dt {
  font-weight: bold;
  color: #667eea;
}

.info-list dd {
  color: #555;
}

.oneline-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.summary-text {
  line-height: 1.9;
  color: #555;
}

.summary-text p {
  margin-bottom: 1rem;
}

.review-text {
  background: #f0f7ff;
  border-left: 4px solid #667eea;
  padding: 1.5rem;
  margin: 0;
  font-style: italic;
  line-height: 1.8;
  color: #555;
}

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

.related-card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

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

.related-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* 底部 */
.footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #667eea;
}

.copyright {
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
}

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

  .home-section h2 {
    font-size: 1.5rem;
  }

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

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

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

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

  .latest-date {
    width: auto;
  }

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

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

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

  .footer-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .home-section {
    padding: 1.5rem;
  }

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

  .detail-page {
    padding: 1.5rem;
  }
}
