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

body {
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

/* 头部 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  text-align: center;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

.logo a:hover {
  text-decoration: none;
  opacity: 0.9;
}

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

/* 首页 Hero 区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

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

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

/* 区块 */
.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  color: #333;
}

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

.video-card {
  background: #fff;
  padding: 20px;
  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(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
}

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

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

.video-card .meta {
  font-size: 13px;
  color: #666;
  margin: 8px 0;
}

.video-card .one-line {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 10px 0 0 0;
}

.video-card .extra {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* 视频列表 */
.video-list {
  list-style: none;
}

.video-list li {
  margin-bottom: 15px;
}

/* 链接卡片区域 */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.link-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: background 0.3s;
}

.link-card:hover {
  background: #f0f0f0;
}

.link-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.link-card h3 a {
  color: #333;
  text-decoration: none;
}

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

.link-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 列表页 */
.page-intro {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #555;
}

.top-list .video-card .extra {
  font-weight: bold;
  color: #667eea;
  font-size: 14px;
}

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

.detail-page h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  border-bottom: 3px solid #667eea;
  padding-bottom: 15px;
}

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

.detail-page h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #667eea;
}

.basic-info .info-list {
  list-style: none;
  padding: 0;
}

.basic-info .info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.basic-info .info-list li:last-child {
  border-bottom: none;
}

.basic-info .info-list strong {
  color: #333;
  margin-right: 10px;
}

.one-line .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

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

.review .review-text {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  font-style: italic;
}

/* 相关推荐网格 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.related-card {
  background: #f9f9f9;
  padding: 18px;
  border-radius: 8px;
  transition: background 0.3s;
}

.related-card:hover {
  background: #f0f0f0;
}

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

.related-card h3 a {
  color: #333;
  text-decoration: none;
}

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

.related-card .meta {
  font-size: 12px;
  color: #666;
  margin: 5px 0;
}

.related-card .one-line-mini {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 8px 0 0 0;
}

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

footer p {
  margin: 0;
  font-size: 14px;
}

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

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

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

  .link-cards {
    grid-template-columns: 1fr;
  }

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

  .detail-page article {
    padding: 20px;
  }

  .container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .logo {
    padding: 15px;
    font-size: 20px;
  }

  .hero {
    padding: 40px 20px;
  }

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