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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #2980b9;
}

/* 导航栏 */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  flex-shrink: 0;
}

.logo a {
  color: inherit;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  flex: 0 1 auto;
  min-width: 0;
}

.nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s;
  border-radius: 4px;
}

.nav-links a:hover {
  background: #f0f0f0;
  color: #3498db;
}

/* 主内容区 */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
  min-height: calc(100vh - 200px);
}

/* Hero区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  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 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

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

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

/* 列表型内容 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.video-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.video-item .year {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.video-item .brief {
  color: #666;
  font-size: 0.95rem;
}

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

.entry-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s;
}

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

.entry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

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

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

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.page-header .intro {
  color: #555;
  line-height: 1.8;
}

.topic-guide {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.topic-guide p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.8;
}

/* 年份分组 */
.year-group {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.year-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #3498db;
}

/* 排名列表 */
.ranked-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ranked-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #3498db;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.recommendation {
  color: #555;
  line-height: 1.8;
  margin-top: 0.75rem;
}

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

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

.topic-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

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

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

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

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

.date-tag {
  background: #fff3e0;
  color: #ef6c00;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

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

.detail-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #3498db;
}

.basic-info,
.one-line,
.summary,
.review,
.related {
  margin-bottom: 2.5rem;
}

.basic-info h2,
.one-line h2,
.summary h2,
.review h2,
.related h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.info-item .label {
  font-weight: 600;
  color: #555;
  margin-right: 0.5rem;
}

.tags-row {
  grid-column: 1 / -1;
}

.one-line .highlight {
  font-size: 1.1rem;
  color: #2c3e50;
  background: #e3f2fd;
  padding: 1.25rem;
  border-radius: 6px;
  border-left: 4px solid #3498db;
  line-height: 1.8;
}

.summary-content p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.8;
}

.review-content {
  background: #fff3e0;
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid #ff9800;
}

.review-content p {
  color: #555;
  line-height: 1.8;
}

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

.related-item {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.related-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.related-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

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

/* 底部 */
.main-footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 20px;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

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

.footer-links a {
  color: #ecf0f1;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #3498db;
}

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

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 0.75rem 15px;
  }

  .logo {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.25rem;
    font-size: 0.85rem;
  }

  .nav-links a {
    padding: 0.5rem 0.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

  .ranked-item {
    flex-direction: column;
    text-align: center;
  }

  .rank-number {
    margin-bottom: 0.5rem;
  }

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

  .date-tag {
    align-self: flex-start;
  }

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

  .video-detail {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .nav-links {
    font-size: 0.75rem;
  }

  .nav-links a {
    padding: 0.4rem 0.3rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .site-intro,
  .video-card,
  .video-detail {
    padding: 1.25rem;
  }
}

/* 通用区块样式 */
section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section h2 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

/* UI风格变体 */
.ui-style-0 { --primary-color: #3498db; }
.ui-style-1 { --primary-color: #2c3e50; }
.ui-style-2 { --primary-color: #27ae60; }
.ui-style-3 { --primary-color: #e67e22; }
.ui-style-4 { --primary-color: #9b59b6; }
.ui-style-5 { --primary-color: #e74c3c; }
.ui-style-6 { --primary-color: #16a085; }
.ui-style-7 { --primary-color: #f39c12; }
.ui-style-8 { --primary-color: #1abc9c; }
.ui-style-9 { --primary-color: #34495e; }
.ui-style-10 { --primary-color: #c0392b; }
.ui-style-11 { --primary-color: #8e44ad; }
.ui-style-12 { --primary-color: #2980b9; }
.ui-style-13 { --primary-color: #27ae60; }
.ui-style-14 { --primary-color: #7f8c8d; }
.ui-style-15 { --primary-color: #d35400; }
