
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
}

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

header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

nav a:hover {
  background: #667eea;
  color: white;
}

main {
  background: white;
  margin: 30px auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  min-height: 600px;
}

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

h2 {
  font-size: 24px;
  color: #764ba2;
  margin: 30px 0 20px;
}

.intro-section {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.video-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.video-card:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-5px);
}

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

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

.video-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.video-card a {
  color: #667eea;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.video-card a:hover {
  text-decoration: underline;
}

.detail-info {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
}

.detail-info p {
  margin: 10px 0;
  line-height: 1.8;
}

.detail-info strong {
  color: #667eea;
  display: inline-block;
  min-width: 80px;
}

.summary-section {
  margin: 30px 0;
  line-height: 1.8;
}

.review-section {
  background: #fff3cd;
  padding: 20px;
  border-left: 4px solid #ffc107;
  margin: 20px 0;
  border-radius: 5px;
}

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

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

.video-list li {
  background: #f8f9fa;
  margin: 15px 0;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.video-list h3 {
  color: #667eea;
  margin-bottom: 10px;
}

.rank-badge {
  display: inline-block;
  background: #ffc107;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-right: 10px;
}

footer {
  text-align: center;
  padding: 30px;
  color: white;
  margin-top: 50px;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: nowrap;
    overflow-x: visible;
    justify-content: space-between;
    gap: 2px;
  }
  
  nav a {
    padding: 6px 8px;
    font-size: 12px;
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header-content {
    flex-direction: column;
    gap: 10px;
  }
  
  nav {
    width: 100%;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  main {
    padding: 20px;
  }
  
  h1 {
    font-size: 24px;
  }
}
