/* UI Style Index: 14 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  overflow: hidden;
}

.nav-links li {
  flex: 0 0 auto;
  min-width: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  white-space: nowrap;
  display: block;
}

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

/* 移动端导航 */
@media (max-width: 768px) {
  nav {
    padding: 10px 15px;
  }

  .logo {
    font-size: 18px;
    margin-right: 10px;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 16px;
    margin-right: 8px;
  }

  .nav-links {
    gap: 3px;
  }

  .nav-links a {
    padding: 5px 8px;
    font-size: 12px;
  }
}

/* 主要内容 */
main {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

.hero {
  background: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #667eea;
  line-height: 1.3;
}

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

/* 卡片布局 */
.section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.video-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  border: 1px solid #eee;
}

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

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

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

.video-card .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.video-card a {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.video-card a:hover {
  color: #764ba2;
}

/* 详情页 */
.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.detail-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.detail-info span {
  background: rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 15px;
}

.detail-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-content h2 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #667eea;
}

.detail-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 13px;
  color: #666;
}

/* 相关推荐 */
.related {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

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

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

  .detail-header h1 {
    font-size: 28px;
  }

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

/* UI样式变体 */
body.ui-style-14 {
  background: #f5f5f5;
}
