/* 功夫影视 - 全局样式 */
/* UI_INDEX: 13, LAYOUT_VARIANT: D */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e8e8e8;
  line-height: 1.6;
  min-height: 100vh;
}

/* 导航栏 */
.site-header {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.site-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.nav-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.nav-link {
  display: block;
  padding: 18px 10px;
  color: #f0c040;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #ffd700;
  background: rgba(240, 192, 64, 0.1);
  border-bottom-color: #ffd700;
}

/* 主容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 页面标题 */
.page-title {
  font-size: 42px;
  color: #ffd700;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.page-subtitle {
  font-size: 18px;
  color: #b8b8d0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* 区块样式 */
.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 28px;
  color: #f0c040;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(240, 192, 64, 0.3);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: #ffd700;
}

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

.video-card {
  background: rgba(30, 30, 50, 0.8);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(240, 192, 64, 0.2);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(240, 192, 64, 0.3);
  border-color: #f0c040;
}

.card-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.card-title {
  font-size: 20px;
  color: #ffd700;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}

.card-meta {
  font-size: 14px;
  color: #a0a0b8;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-meta span {
  display: inline-block;
}

.card-body {
  padding: 20px;
}

.card-desc {
  font-size: 15px;
  color: #c8c8d8;
  line-height: 1.7;
  margin-bottom: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(240, 192, 64, 0.2);
  color: #f0c040;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(240, 192, 64, 0.3);
}

.card-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #f0c040 0%, #ffd700 100%);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(240, 192, 64, 0.4);
}

/* 列表样式(用于排行榜等) */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-item {
  display: flex;
  gap: 20px;
  background: rgba(30, 30, 50, 0.8);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(240, 192, 64, 0.2);
  transition: all 0.3s ease;
  align-items: flex-start;
}

.list-item:hover {
  border-color: #f0c040;
  box-shadow: 0 4px 15px rgba(240, 192, 64, 0.2);
}

.list-rank {
  font-size: 32px;
  font-weight: 700;
  color: #ffd700;
  min-width: 60px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.list-content {
  flex: 1;
}

.list-title {
  font-size: 22px;
  color: #ffd700;
  margin-bottom: 10px;
  font-weight: 600;
}

.list-info {
  font-size: 14px;
  color: #a0a0b8;
  margin-bottom: 8px;
}

.list-desc {
  font-size: 15px;
  color: #c8c8d8;
  line-height: 1.6;
}

/* 详情页特殊样式 */
.detail-header {
  background: rgba(30, 30, 50, 0.9);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 2px solid rgba(240, 192, 64, 0.3);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
  color: #b8b8d0;
  margin-bottom: 20px;
}

.detail-meta strong {
  color: #f0c040;
}

.detail-section {
  background: rgba(30, 30, 50, 0.8);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid rgba(240, 192, 64, 0.2);
}

.detail-section h2 {
  font-size: 24px;
  color: #f0c040;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(240, 192, 64, 0.3);
}

.detail-section p {
  font-size: 16px;
  color: #d0d0e0;
  line-height: 1.8;
  text-indent: 2em;
}

.highlight-text {
  color: #ffd700;
  font-weight: 600;
  font-size: 18px;
  line-height: 2;
}

/* 相关推荐 */
.related-videos {
  margin-top: 50px;
}

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

/* 页脚 */
.site-footer {
  background: rgba(26, 26, 46, 0.95);
  padding: 40px 20px;
  text-align: center;
  color: #a0a0b8;
  margin-top: 80px;
  border-top: 2px solid rgba(240, 192, 64, 0.3);
}

.footer-text {
  font-size: 14px;
  line-height: 1.8;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f0c040 0%, #ffd700 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(240, 192, 64, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(240, 192, 64, 0.6);
}

.back-to-top.visible {
  display: flex;
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 10px;
  }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: hidden;
  }

  .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .nav-link {
    padding: 14px 6px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

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

  .list-item {
    flex-direction: column;
    gap: 10px;
  }

  .list-rank {
    font-size: 24px;
    min-width: auto;
  }

  .detail-header {
    padding: 25px;
  }

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

  .detail-section {
    padding: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

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

@media (max-width: 480px) {
  .nav-link {
    font-size: 12px;
    padding: 12px 4px;
  }

  .page-title {
    font-size: 24px;
  }

  .container {
    padding: 20px 15px;
  }
}
