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

.main-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* 导航激活状态 */
.nav-menu a.active {
  background: #e8f0fe;
  color: #1967d2;
  font-weight: 500;
}

/* 首页样式 */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #202124;
  line-height: 1.3;
}

.hero-section .intro {
  font-size: 1rem;
  color: #5f6368;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-hot, .section-lists, .section-new {
  margin-bottom: 3rem;
}

.section-hot h2, .section-lists h2, .section-new h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #202124;
  padding-left: 0.5rem;
  border-left: 4px solid #1a73e8;
}

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

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

.video-card .oneline {
  font-size: 0.9rem;
  color: #3c4043;
  line-height: 1.5;
}

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

.list-link-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border: 2px solid transparent;
  display: block;
}

.list-link-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26,115,232,0.2);
  text-decoration: none;
  transform: translateY(-2px);
}

.list-link-card h3 {
  font-size: 1.2rem;
  color: #1a73e8;
  margin-bottom: 0.5rem;
}

.list-link-card p {
  font-size: 0.9rem;
  color: #5f6368;
}

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

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

.page-header .page-desc {
  font-size: 1rem;
  color: #5f6368;
  line-height: 1.6;
}

.video-list {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.video-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

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

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

.video-item .item-number,
.video-item .rank-number,
.video-item .item-tag,
.video-item .item-year {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #5f6368;
  font-size: 0.9rem;
}

.video-item .rank-number {
  font-size: 1.5rem;
  color: #ea4335;
}

.video-item .item-tag {
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 4px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.video-item .item-year {
  background: #f1f3f4;
  border-radius: 4px;
  font-size: 1rem;
}

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

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

.video-item .meta {
  font-size: 0.85rem;
  color: #5f6368;
  margin-bottom: 0.5rem;
}

.video-item .tags {
  font-size: 0.8rem;
  color: #1a73e8;
  margin-bottom: 0.5rem;
}

.video-item .oneline,
.video-item .summary {
  font-size: 0.9rem;
  color: #3c4043;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.video-item .review {
  font-size: 0.85rem;
  color: #5f6368;
  font-style: italic;
  line-height: 1.5;
}

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

.detail-article {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #5f6368;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.detail-tags .tag {
  background: #e8f0fe;
  color: #1967d2;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.85rem;
}

.detail-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.detail-section:first-of-type {
  border-top: none;
  padding-top: 1.5rem;
}

.detail-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #202124;
}

.detail-section .highlight {
  font-size: 1.1rem;
  color: #1a73e8;
  font-weight: 500;
  line-height: 1.6;
}

.detail-section .summary-text,
.detail-section .review-text {
  font-size: 1rem;
  color: #3c4043;
  line-height: 1.8;
}

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

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

.related-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26,115,232,0.15);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card .meta {
  font-size: 0.8rem;
  color: #5f6368;
  margin-bottom: 0.5rem;
}

.related-card .oneline {
  font-size: 0.85rem;
  color: #3c4043;
  line-height: 1.5;
}

/* 页脚 */
.footer {
  background: #f8f9fa;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #5f6368;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
}

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

  .hero-section {
    padding: 2rem 1rem;
  }

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

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

  .list-links {
    grid-template-columns: 1fr;
  }

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

  .video-item .item-number,
  .video-item .rank-number,
  .video-item .item-tag,
  .video-item .item-year {
    width: auto;
  }

  .detail-article {
    padding: 1.5rem;
  }

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

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

/* UI 风格变体 */
.ui-style-0 { --primary-color: #1a73e8; }
.ui-style-1 { --primary-color: #0d652d; }
.ui-style-2 { --primary-color: #c5221f; }
.ui-style-3 { --primary-color: #f9ab00; }
.ui-style-4 { --primary-color: #673ab7; }
.ui-style-5 { --primary-color: #ff6f00; }
.ui-style-6 { --primary-color: #00897b; }
.ui-style-7 { --primary-color: #d81b60; }
.ui-style-8 { --primary-color: #5e35b1; }
.ui-style-9 { --primary-color: #1565c0; }
.ui-style-10 { --primary-color: #2e7d32; }
.ui-style-11 { --primary-color: #e65100; }
.ui-style-12 { --primary-color: #6a1b9a; }
.ui-style-13 { --primary-color: #c62828; }
.ui-style-14 { --primary-color: #00695c; }
.ui-style-15 { --primary-color: #4527a0; }