/* UI Style 0 - 现代简约风格 */

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

body.ui-style-0 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* Layout B - 卡片式布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #3498db;
}

/* 移动端导航 - 单行不换行不滚动 */
@media (max-width: 768px) {
  .main-nav {
    gap: 10px;
    justify-content: space-between;
    width: 100%;
  }

  .main-nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 13px;
    padding: 5px 2px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 主体内容区 */
.main-content {
  padding: 30px 0;
}

.page-title {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-intro {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

/* Section 模块 */
.content-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
  font-weight: 600;
}

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

.video-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.meta-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #ecf0f1;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
}

.video-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.video-link {
  display: inline-block;
  padding: 8px 16px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}

.video-link:hover {
  background: #2980b9;
}

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

.video-list-item {
  background: #fafafa;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: background 0.3s;
}

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

/* 详情页样式 */
.video-detail {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.video-detail-title {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
}

.info-group {
  margin-bottom: 25px;
}

.info-label {
  font-weight: 600;
  color: #555;
  display: inline-block;
  min-width: 80px;
}

.info-value {
  color: #666;
}

.related-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: #2980b9;
}

/* 响应式 */
@media (max-width: 768px) {
  .page-title {
    font-size: 24px;
  }

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

  .video-detail {
    padding: 20px;
  }

  .video-detail-title {
    font-size: 26px;
  }
}
