/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #c8a876;
}

/* 顶部导航 */
.header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: #fff;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav a:hover {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

/* 移动端导航 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* 页面标题 */
.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-bottom: 3px solid #c8a876;
  padding-bottom: 0.5rem;
}

/* 介绍区块 */
.intro-section {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
}

/* 内容区块 */
.content-section {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-left: 4px solid #c8a876;
  padding-left: 0.75rem;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card-content {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.video-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.video-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.video-item:hover {
  transform: translateX(4px);
}

/* 详情页 */
.detail-header {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.info-table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.info-table tr {
  border-bottom: 1px solid #eee;
}

.info-table th {
  text-align: left;
  padding: 0.75rem;
  background: #f8f9fa;
  font-weight: bold;
  width: 120px;
}

.info-table td {
  padding: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #e8f4f8;
  color: #2980b9;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

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

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

  .detail-title {
    font-size: 1.5rem;
  }

  .info-table th {
    width: 80px;
    font-size: 0.9rem;
  }
}

/* UI 风格变体 */
body.ui-style-0 { --primary: #2c3e50; --accent: #c8a876; }
body.ui-style-1 { --primary: #34495e; --accent: #e74c3c; }
body.ui-style-2 { --primary: #16a085; --accent: #f39c12; }
body.ui-style-3 { --primary: #2980b9; --accent: #8e44ad; }
body.ui-style-4 { --primary: #c0392b; --accent: #d35400; }
body.ui-style-5 { --primary: #27ae60; --accent: #2ecc71; }
body.ui-style-6 { --primary: #8e44ad; --accent: #9b59b6; }
body.ui-style-7 { --primary: #2c3e50; --accent: #1abc9c; }
body.ui-style-8 { --primary: #34495e; --accent: #c8a876; }
body.ui-style-9 { --primary: #d35400; --accent: #e67e22; }
body.ui-style-10 { --primary: #2980b9; --accent: #3498db; }
body.ui-style-11 { --primary: #16a085; --accent: #1abc9c; }
body.ui-style-12 { --primary: #c0392b; --accent: #e74c3c; }
body.ui-style-13 { --primary: #27ae60; --accent: #f39c12; }
body.ui-style-14 { --primary: #8e44ad; --accent: #c8a876; }
body.ui-style-15 { --primary: #2c3e50; --accent: #e67e22; }
