
/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

/* 导航样式 */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 10px 8px;
  color: #0066cc;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
}

nav a:hover {
  background: #f0f7ff;
  text-decoration: none;
}

@media (max-width: 768px) {
  nav a {
    font-size: 13px;
    padding: 8px 4px;
  }
}

/* 主要内容 */
main {
  background: #fff;
  margin-top: 20px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-bottom: 3px solid #0066cc;
  padding-bottom: 10px;
}

h2 {
  font-size: 22px;
  margin: 25px 0 15px;
  color: #2c3e50;
}

h3 {
  font-size: 18px;
  margin: 15px 0 10px;
  color: #34495e;
}

section {
  margin-bottom: 30px;
}

.intro {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

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

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

.video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.video-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.video-card h3 a {
  color: #0066cc;
  font-weight: 600;
}

.video-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 视频列表 */
.video-list {
  margin-top: 15px;
}

.video-item {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.video-item:hover {
  background: #f9f9f9;
}

.video-item a {
  color: #0066cc;
  font-weight: 500;
  font-size: 16px;
}

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

.video-item .year {
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

/* 排名样式 */
.video-item.ranked {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.video-item .rank {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #0066cc;
  color: white;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.video-item .info {
  flex: 1;
}

.video-item .info h3 {
  margin: 0 0 8px;
}

/* 标签样式 */
.video-item.tagged .tags {
  margin: 8px 0;
}

.video-item.tagged .tags span {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
}

/* 分组样式 */
.group {
  margin-bottom: 40px;
}

.group h3 {
  background: #f0f7ff;
  padding: 10px 15px;
  border-left: 4px solid #0066cc;
  margin-bottom: 15px;
}

/* 详情页样式 */
.video-detail .basic-info ul {
  list-style: none;
  padding: 0;
}

.video-detail .basic-info li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.video-detail section {
  margin-bottom: 30px;
}

.video-detail section p {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  main {
    padding: 20px 15px;
  }

  h1 {
    font-size: 24px;
  }

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

/* UI 风格变体 */
.ui-style-0 { --primary: #0066cc; }
.ui-style-1 { --primary: #2196F3; }
.ui-style-2 { --primary: #00897B; }
.ui-style-3 { --primary: #43A047; }
.ui-style-4 { --primary: #FB8C00; }
.ui-style-5 { --primary: #E53935; }
.ui-style-6 { --primary: #1565C0; }
.ui-style-7 { --primary: #00796B; }
.ui-style-8 { --primary: #5E35B1; }
.ui-style-9 { --primary: #C62828; }
.ui-style-10 { --primary: #6A1B9A; }
.ui-style-11 { --primary: #00695C; }
.ui-style-12 { --primary: #EF6C00; }
.ui-style-13 { --primary: #4527A0; }
.ui-style-14 { --primary: #37474F; }
.ui-style-15 { --primary: #D84315; }
