
/* 全局样式 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --spacing: 20px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
}

.main-content {
  min-height: calc(100vh - 200px);
  padding-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* 首页英雄区 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

/* 介绍区 */
.intro-section {
  padding: 40px 0;
  background: white;
}

.intro-content p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.intro-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 卡片网格 */
.featured-section,
.latest-section,
.list-entry-section {
  padding: 40px 0;
}

.featured-section h2,
.latest-section h2,
.list-entry-section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
}

.video-card h3 a {
  color: var(--secondary-color);
}

.video-card h3 a:hover {
  color: var(--primary-color);
}

.video-card .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #666;
}

.video-card .meta span {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

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

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

.entry-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

.entry-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
}

.entry-card h3 a {
  color: var(--secondary-color);
}

.entry-card p {
  color: #666;
  line-height: 1.6;
}

/* 列表样式 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.video-item h3 a {
  color: var(--secondary-color);
}

.video-item .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

/* 详情页 */
.detail-page {
  background: white;
  padding: 40px 0;
}

.detail-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.detail-page section {
  margin-bottom: 40px;
}

.detail-page h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

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

.basic-info dt {
  font-weight: 600;
  color: #555;
}

.basic-info dd {
  margin: 0;
}

.one-line .highlight {
  background: #f8f9fa;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.summary .content,
.review-content {
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
}

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

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

.related-card h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}

.related-card .meta {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

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

/* 列表页通用 */
.list-page {
  background: white;
  padding: 40px 0;
}

.list-page h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

.list-page .intro {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* 大全页 */
.year-group {
  margin-bottom: 40px;
}

.year-group h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* 排行页 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.rank-content .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

.rank-content .tags {
  color: var(--primary-color);
}

.rank-content .reason {
  line-height: 1.6;
  color: #555;
}

/* 专题页 */
.topic-intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.topic-item {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topic-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.topic-item .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #666;
}

.topic-desc {
  line-height: 1.8;
  color: #444;
}

/* 最新页 */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.latest-item .date {
  font-size: 0.9rem;
  color: white;
  background: var(--primary-color);
  padding: 8px 12px;
  border-radius: 4px;
  min-width: 100px;
  text-align: center;
  height: fit-content;
}

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

.latest-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.latest-item .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
}

.latest-item .brief {
  color: #555;
  line-height: 1.6;
}

/* 页脚 */
.site-footer {
  background: var(--secondary-color);
  color: white;
  padding: 30px 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s;
}

.footer-nav a:hover {
  background: rgba(255,255,255,0.1);
}

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

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

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

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

  .rank-number {
    font-size: 1.5rem;
    min-width: 40px;
  }

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

  .latest-item .date {
    width: fit-content;
  }

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