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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #1890ff;
}

/* 导航栏 */
.main-nav {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.logo a {
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

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

.nav-menu a {
  display: block;
  padding: 20px 15px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255,255,255,0.1);
  border-bottom-color: #1890ff;
}

/* 移动端导航 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 10px;
    flex-wrap: nowrap;
  }

  .logo a {
    font-size: 18px;
  }

  .nav-menu {
    flex: 1;
    margin-left: 10px;
  }

  .nav-menu a {
    padding: 20px 8px;
    font-size: 13px;
  }
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 首页头部 */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.4;
}

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

@media (max-width: 768px) {
  .hero {
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero .intro {
    font-size: 14px;
  }
}

/* 章节 */
.section {
  margin-bottom: 60px;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #1890ff;
  color: #1a1a1a;
}

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

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

/* 视频卡片 */
.video-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

.video-card .ranking {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4d4f;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card .one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.video-card .meta span {
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  color: #666;
}

.video-card .date {
  background: #e6f7ff !important;
  color: #1890ff !important;
}

/* 列表链接卡片 */
.list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.list-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  text-align: center;
}

.list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.list-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.list-card p {
  font-size: 14px;
  color: #666;
}

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

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: #1890ff;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: #40a9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24,144,255,0.4);
}

/* 页面头部 */
.page-header {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.page-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

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

.detail-content {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.detail-content h1 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #1a1a1a;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.meta-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}

.meta-item {
  font-size: 15px;
}

.meta-item label {
  font-weight: 600;
  color: #666;
  margin-right: 8px;
}

.highlight-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.highlight-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.highlight-box p {
  font-size: 16px;
  line-height: 1.8;
}

.summary-box,
.review-box {
  margin-bottom: 30px;
}

.summary-box h2,
.review-box h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.summary-box p,
.review-box p {
  font-size: 15px;
  color: #444;
  line-height: 2;
  text-align: justify;
}

.related-section {
  margin-top: 40px;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1890ff;
}

/* 页脚 */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.site-footer p {
  font-size: 14px;
  opacity: 0.8;
}

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

.video-list .video-card {
  display: flex;
  flex-direction: column;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .section h2 {
    font-size: 22px;
  }

  .detail-content {
    padding: 25px 20px;
  }

  .detail-content h1 {
    font-size: 24px;
  }

  .meta-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
