/* 清新自然 - C布局 */
* {
  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: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

nav a {
  color: #555;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

nav a:hover {
  background: #3498db;
  color: #fff;
}

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

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

h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.4;
}

h2 {
  font-size: 22px;
  color: #34495e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

h3 {
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
}

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

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

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

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

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

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

.video-card .oneline {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.video-card a {
  display: inline-block;
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid #3498db;
  border-radius: 4px;
  transition: all 0.3s;
}

.video-card a:hover {
  background: #3498db;
  color: #fff;
}

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

.video-list li {
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.video-list li:hover {
  background: #f9f9f9;
}

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

.video-list h3 {
  margin-bottom: 8px;
}

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

.video-list .summary {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}

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

.detail-header h1 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 15px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

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

.detail-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.tag {
  background: #ecf0f1;
  color: #555;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
}

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

footer p {
  margin: 5px 0;
  font-size: 14px;
}

/* 响应式 - 移动端单行导航 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding: 12px 15px;
    gap: 12px;
  }

  .logo {
    font-size: 20px;
  }

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

  nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 5px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  section {
    padding: 20px 15px;
  }

  .detail-header {
    padding: 25px 15px;
  }

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

@media (max-width: 480px) {
  nav a {
    font-size: 11px;
    padding: 6px 3px;
  }
}
