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

:root {
  --spacing: 8px;
  --primary-color: #00ff88;
  --bg-dark: #000;
  --bg-gray: #1a1a1a;
  --text-white: #fff;
  --text-gray: #999;
  --accent-color: #ff3366;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: var(--text-white);
  background: var(--bg-dark);
}

.ui-style-0 {
  --primary-color: #00ff88;
  --bg-dark: #000;
  --bg-gray: #1a1a1a;
  --text-white: #fff;
  --text-gray: #999;
  --accent-color: #ff3366;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing) * 2);
}

.site-header {
  background: var(--bg-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--spacing) * 2) 0;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: calc(var(--spacing) * 3);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: var(--text-white);
  text-decoration: none;
  padding: calc(var(--spacing)) calc(var(--spacing) * 2);
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.site-nav a:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.site-main {
  min-height: 70vh;
}

.hero-section {
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-dark) 100%);
  padding: calc(var(--spacing) * 8) 0 calc(var(--spacing) * 6);
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
}

.hero-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing) * 3);
  color: var(--text-white);
  line-height: 1.4;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
}

.intro-section {
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 6) 0;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  text-align: justify;
}

.module-section {
  padding: calc(var(--spacing) * 6) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing) * 4);
}

.section-title {
  font-size: 28px;
  color: var(--text-white);
  position: relative;
  padding-left: calc(var(--spacing) * 2);
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-more {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.section-more:hover {
  color: var(--accent-color);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

.video-card {
  background: var(--bg-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2);
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #222;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: calc(var(--spacing) * 2);
}

.video-title {
  font-size: 16px;
  margin-bottom: calc(var(--spacing));
  color: var(--text-white);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: calc(var(--spacing));
}

.video-one-line {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 6) 0 calc(var(--spacing) * 4);
  text-align: center;
}

.page-title {
  font-size: 36px;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--text-white);
}

.page-desc {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.video-player-section {
  background: var(--bg-dark);
  padding: calc(var(--spacing) * 4) 0;
}

.video-player {
  max-width: 1000px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 136, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: var(--bg-dark);
  margin-left: 4px;
}

.video-detail-section {
  padding: calc(var(--spacing) * 6) 0;
}

.detail-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing) * 3);
  color: var(--text-white);
}

.detail-info {
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 3);
  border-radius: 8px;
  margin-bottom: calc(var(--spacing) * 4);
}

.detail-info h3 {
  font-size: 20px;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--primary-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing) * 2);
}

.info-item {
  display: flex;
  gap: calc(var(--spacing));
}

.info-label {
  color: var(--text-gray);
  min-width: 60px;
}

.info-value {
  color: var(--text-white);
}

.content-module {
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 3);
  border-radius: 8px;
  margin-bottom: calc(var(--spacing) * 3);
}

.module-title {
  font-size: 20px;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--primary-color);
}

.module-content {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 15px;
}

.module-content p {
  margin-bottom: calc(var(--spacing) * 2);
}

.related-section {
  padding: calc(var(--spacing) * 6) 0;
  background: var(--bg-dark);
}

.video-card--related {
  background: var(--bg-gray);
}

.top-list {
  background: var(--bg-gray);
  border-radius: 8px;
  overflow: hidden;
}

.top-list__items {
  list-style: none;
}

.top-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.top-item:hover {
  background: rgba(0, 255, 136, 0.1);
}

.top-item a {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.top-rank {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
}

.top-item:nth-child(1) .top-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: var(--bg-dark);
}

.top-item:nth-child(2) .top-rank {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: var(--bg-dark);
}

.top-item:nth-child(3) .top-rank {
  background: linear-gradient(135deg, #cd7f32 0%, #e5a272 100%);
  color: var(--bg-dark);
}

.top-cover {
  width: 100px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 16px;
  margin-bottom: calc(var(--spacing) * 0.5);
  color: var(--text-white);
}

.top-meta {
  font-size: 12px;
  color: var(--text-gray);
}

.site-footer {
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 4) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: calc(var(--spacing) * 8);
}

.copyright {
  color: var(--text-gray);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing) * 4);
  right: calc(var(--spacing) * 4);
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing) * 2);
  }

  .site-nav {
    gap: calc(var(--spacing) * 2);
  }

  .site-nav a {
    font-size: 14px;
    padding: calc(var(--spacing) * 0.5) calc(var(--spacing));
  }

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

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

  .top-cover {
    width: 80px;
    height: 50px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .video-cover {
    padding-top: 45%;
  }

  .video-info {
    padding: calc(var(--spacing) * 1.5);
  }

  .video-title {
    font-size: 14px;
  }

  .video-one-line {
    font-size: 12px;
  }
}
