
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  color: #333;
  background: #f8f9fa;
}

/* 导航栏 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.nav-list li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.nav-list a {
  display: block;
  padding: 1rem 0.8rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* 移动端导航 - 单行不换行不滚动 */
@media (max-width: 768px) {
  .nav-list {
    flex-wrap: nowrap;
    overflow: visible;
  }

  .nav-list a {
    padding: 0.8rem 0.3rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-list a {
    padding: 0.8rem 0.2rem;
    font-size: 0.8rem;
  }
}

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

/* 首页 Hero 区域 */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .site-intro {
    font-size: 1rem;
  }
}

/* 区块 */
.section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* 视频卡片 */
.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

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

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

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

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

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

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

.more-link a {
  color: #667eea;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* 快速导航 */
.quick-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
}

.quick-links li a {
  display: block;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quick-links li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 列表页 */
.list-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.list-desc {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* 详情页 */
.detail-page {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

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

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

.video-info ul {
  list-style: none;
}

.video-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

.video-info strong {
  color: #667eea;
  margin-right: 0.5rem;
}

.video-highlight p,
.video-summary p,
.video-review p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.related-videos {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

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

  .hero {
    padding: 2rem 1rem;
  }

  .section {
    padding: 1.5rem;
  }

  .detail-page {
    padding: 1.5rem;
  }

  .video-detail h1 {
    font-size: 1.8rem;
  }
}
