
/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}
a { color: #3498db; text-decoration: none; }
a:hover { color: #2980b9; text-decoration: underline; }

/* 导航栏 */
.main-nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.logo a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  padding: 15px 0;
  display: block;
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}
.nav-menu li {
  flex: 1 1 0;
  min-width: 0;
}
.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 15px 10px;
  display: block;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s;
}
.nav-menu a:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

@media (max-width: 768px) {
  .logo a { font-size: 18px; padding: 12px 0; }
  .nav-menu { gap: 2px; }
  .nav-menu a { padding: 12px 5px; font-size: 12px; }
}

/* 主内容区 */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 30px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 首页样式 */
.hero {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
.hero h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.4;
}
.intro {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}
.intro p { margin-bottom: 15px; }

.section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
.section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.video-card .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}
.video-card .oneline {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.quick-links {
  list-style: none;
}
.quick-links li {
  margin-bottom: 15px;
}
.quick-links a {
  font-size: 16px;
  padding: 10px 15px;
  background: #ecf0f1;
  display: inline-block;
  border-radius: 4px;
  transition: background 0.3s;
}
.quick-links a:hover {
  background: #667eea;
  color: white;
  text-decoration: none;
}

/* 列表页样式 */
.video-list {
  margin-top: 30px;
}
.video-item {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 15px;
  transition: box-shadow 0.3s;
}
.video-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.video-item .rank {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
}
.video-item .date {
  font-size: 14px;
  color: #999;
  min-width: 60px;
}
.video-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.video-item .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}
.video-item .summary {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 详情页样式 */
.video-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.video-detail h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 3px solid #667eea;
  padding-bottom: 15px;
}
.video-detail section {
  margin-bottom: 30px;
}
.video-detail h2 {
  font-size: 22px;
  color: #34495e;
  margin-bottom: 15px;
}
.basic-info ul {
  list-style: none;
}
.basic-info li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.video-detail p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.related-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  transition: transform 0.3s;
}
.related-item:hover {
  transform: translateY(-3px);
}
.related-item h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.related-item p {
  font-size: 14px;
  color: #666;
}

/* 页脚 */
.site-footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}
.site-footer p {
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero { padding: 20px; }
  .hero h1 { font-size: 24px; }
  .section { padding: 20px; }
  .video-detail { padding: 20px; }
  .video-detail h1 { font-size: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .video-item { flex-direction: column; }
}
