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

body {
  font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e74c3c;
}

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

/* 页头样式 */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  text-align: center;
  padding: 20px 0;
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
}

.logo a {
  color: inherit;
}

/* 导航样式 */
.main-nav {
  background: #2c3e50;
  border-bottom: 3px solid #e74c3c;
}

.nav-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-container a {
  flex: 1 1 0;
  min-width: 0;
  padding: 15px 10px;
  color: #ecf0f1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s ease;
}

.nav-container a:hover,
.nav-container a.active {
  background: #34495e;
  color: #fff;
}

/* 主内容区 */
.main-content {
  min-height: 60vh;
  padding: 20px 0;
}

/* 首页样式 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.main-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.intro-text p {
  font-size: 18px;
  margin-bottom: 10px;
  opacity: 0.95;
}

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

.video-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.video-card .meta {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

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

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

.video-item {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.video-item .meta {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

.video-item .desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* 完整列表页 */
.page-intro {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.video-list-full {
  margin: 30px 0;
}

.video-item-full {
  background: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.video-item-full .rank {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #e74c3c;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.video-item-full h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.video-item-full .meta {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

.video-item-full .tags {
  font-size: 13px;
  color: #95a5a6;
  margin-bottom: 10px;
}

.video-item-full .desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.video-item-full .date {
  font-size: 13px;
  color: #95a5a6;
  font-style: italic;
}

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

.video-detail h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 15px;
}

.video-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-item {
  font-size: 15px;
  line-height: 1.8;
}

.info-item strong {
  color: #2c3e50;
}

.video-highlight,
.video-summary,
.video-review,
.video-related {
  margin: 40px 0;
}

.video-highlight h2,
.video-summary h2,
.video-review h2,
.video-related h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 15px;
}

.video-highlight p,
.video-summary p,
.video-review p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.related-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.related-item:hover {
  transform: translateY(-3px);
  background: #ecf0f1;
}

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

.related-item .meta {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.related-item .desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* 专题样式 */
.topic-section,
.hot-section,
.new-section {
  margin: 40px 0;
}

.topic-section h2,
.hot-section h2,
.new-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
}

.topic-intro {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.topic-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.topic-item:hover {
  transform: translateY(-5px);
}

.topic-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #3498db;
}

.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: #3498db;
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  transition: background 0.3s ease;
}

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

/* 页脚样式 */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

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

  .intro-text p {
    font-size: 16px;
  }

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

  .video-detail {
    padding: 20px;
  }

  .video-detail h1 {
    font-size: 28px;
  }

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

  .nav-container a {
    padding: 10px 5px;
    font-size: 14px;
  }

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

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