/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* 顶部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #0066cc;
  padding: 15px 0;
}
.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}
.nav-menu li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
.nav-menu a {
  display: block;
  padding: 12px 8px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.nav-menu a:hover { background: #f0f0f0; color: #0066cc; text-decoration: none; }

/* 主内容 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.page-title {
  font-size: 28px;
  margin: 20px 0;
  color: #222;
}
.intro-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  line-height: 1.8;
}

/* 列表模块 */
.section {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}
.section-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #222;
  border-left: 4px solid #0066cc;
  padding-left: 12px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}
.video-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  transition: all 0.3s;
}
.video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.video-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #0066cc;
}
.video-info {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}
.video-desc {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}

/* 列表页特定样式 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.list-item {
  display: flex;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s;
  background: #fafafa;
}
.list-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.item-rank {
  font-size: 24px;
  font-weight: bold;
  color: #0066cc;
  margin-right: 15px;
  min-width: 40px;
}
.item-content {
  flex: 1;
}
.item-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}
.item-meta {
  font-size: 13px;
  color: #666;
  margin: 3px 0;
}
.item-tags {
  margin-top: 8px;
}
.tag {
  display: inline-block;
  background: #e8f4ff;
  color: #0066cc;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 5px;
}

/* 详情页 */
.detail-header {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
}
.detail-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.meta-item {
  padding: 8px 0;
  font-size: 15px;
}
.meta-label {
  font-weight: bold;
  color: #666;
  margin-right: 8px;
}
.content-block {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  line-height: 1.8;
}
.block-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
  border-left: 4px solid #0066cc;
  padding-left: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.related-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  background: #fafafa;
  transition: all 0.3s;
}
.related-card:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.related-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #0066cc;
}
.related-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
  .nav-menu {
    justify-content: space-around;
  }
  .nav-menu li {
    flex: 1 1 0;
    min-width: 0;
  }
  .nav-menu a {
    padding: 10px 5px;
    font-size: 12px;
  }
  .logo {
    font-size: 20px;
    padding: 12px 0;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 22px;
  }
  .detail-title {
    font-size: 24px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
