
/* UI风格: ui-style-8 */
* {
  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: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 100vh;
}

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

/* 顶部导航 */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c5282;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
  overflow: visible;
}

.nav-links li {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s;
  display: block;
  font-size: 15px;
}

.nav-links a:hover {
  background: #2c5282;
  color: #fff;
}

/* 移动端导航 */
@media (max-width: 768px) {
  nav {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 18px;
    margin-right: 10px;
  }
  
  .nav-links {
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
  }
  
  .nav-links li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
  
  .nav-links a {
    padding: 6px 4px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 主内容区 */
main {
  padding: 40px 0;
}

section {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h1 {
  font-size: 32px;
  color: #1a365d;
  margin-bottom: 20px;
  line-height: 1.3;
}

h2 {
  font-size: 24px;
  color: #2c5282;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #4299e1;
}

h3 {
  font-size: 20px;
  color: #2d3748;
  margin: 20px 0 15px;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 卡片列表 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

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

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

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

.video-card h3 a {
  color: #2c5282;
  text-decoration: none;
  font-size: 18px;
}

.video-card h3 a:hover {
  color: #4299e1;
}

.video-meta {
  font-size: 13px;
  color: #718096;
  margin-bottom: 10px;
}

.video-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

/* 列表样式 */
.video-list {
  list-style: none;
}

.video-list-item {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s;
}

.video-list-item:hover {
  background: #f7fafc;
}

.video-list-item:last-child {
  border-bottom: none;
}

/* 详情页 */
.detail-info {
  background: #f8fafc;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
}

.info-row {
  display: flex;
  margin-bottom: 15px;
  line-height: 1.8;
}

.info-label {
  font-weight: bold;
  color: #2d3748;
  min-width: 80px;
}

.info-value {
  color: #4a5568;
}

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

.tag {
  background: #bee3f8;
  color: #2c5282;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 13px;
}

/* 底部 */
footer {
  background: #2d3748;
  color: #cbd5e0;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 20px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
