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

:root {
  --primary: #0099FF;
  --primary-dark: #0077CC;
  --accent: #FFB800;
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --card-bg: #252a3f;
  --border-color: #3a3f5c;
}

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

body.ui-style-6 {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

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

.site-header {
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 153, 255, 0.5);
  transition: all 0.3s ease;
}

.logo a:hover {
  color: var(--accent);
  text-shadow: 0 2px 10px rgba(255, 184, 0, 0.5);
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(0, 153, 255, 0.1);
}

.main-nav a:hover::after {
  width: 80%;
}

.main-content {
  min-height: 100vh;
  padding-bottom: 80px;
}

.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1) 0%, rgba(255, 184, 0, 0.05) 100%);
  margin-bottom: 40px;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

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

.intro-section {
  padding: 40px 0;
  margin-bottom: 40px;
}

.intro-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text-light);
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 3px;
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 153, 255, 0.2);
  border-color: var(--primary);
}

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: var(--bg-darker);
  overflow: hidden;
}

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

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

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-meta {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

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

.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-header p {
  font-size: 18px;
  color: var(--text-gray);
}

.filter-bar {
  padding: 20px;
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-gray);
  border: 1px solid var(--border-color);
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-top: 40px;
}

.layout__side--filters {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border-color);
}

.layout__side--filters h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.filter-group p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
}

.filter-intro {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.filter-intro p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.top-list__item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0, 153, 255, 0.15);
  border-color: var(--primary);
}

.top-rank {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
  text-align: center;
}

.top-list__item:nth-child(1) .top-rank {
  color: #FFD700;
}

.top-list__item:nth-child(2) .top-rank {
  color: #C0C0C0;
}

.top-list__item:nth-child(3) .top-rank {
  color: #CD7F32;
}

.top-cover {
  width: 120px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-darker);
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.top-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-title a:hover {
  color: var(--primary);
}

.top-meta {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.top-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

.group {
  margin-bottom: 60px;
}

.group__title {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--text-light);
  padding-left: 20px;
  border-left: 4px solid var(--primary);
}

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

.video-player-section {
  padding: 40px 0;
  background: var(--bg-darker);
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: none;
  background: rgba(0, 153, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.4);
}

.player-play-btn:hover {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 153, 255, 0.6);
}

.player-play-icon {
  font-size: 40px;
  color: white;
  display: block;
  line-height: 100px;
}

.detail-page {
  background: var(--bg-dark);
}

.detail-header {
  padding: 40px 0 30px;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
}

.detail-header h1 {
  font-size: 38px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.detail-module {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-module:last-of-type {
  border-bottom: none;
}

.detail-module h2 {
  font-size: 26px;
  margin-bottom: 25px;
  color: var(--primary);
}

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

.module-content p {
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.info-item {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.8;
}

.info-label {
  font-weight: 600;
  color: var(--text-light);
  margin-right: 8px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 153, 255, 0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(0, 153, 255, 0.3);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(0, 153, 255, 0.25);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.video-card--related .video-cover {
  padding-top: 130%;
}

.video-card--related .video-info {
  padding: 15px;
}

.video-card--related .video-title {
  font-size: 16px;
  -webkit-line-clamp: 2;
}

.video-card--related .video-one-line {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.site-footer {
  background: var(--bg-darker);
  padding: 40px 0;
  text-align: center;
  border-top: 2px solid var(--border-color);
  margin-top: 60px;
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(0, 153, 255, 0.5);
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    gap: 10px;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .main-nav a {
    font-size: 14px;
    padding: 6px 12px;
    flex-shrink: 0;
  }

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

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

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .video-cover {
    padding-top: 140%;
  }

  .video-info {
    padding: 12px;
  }

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

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

  .page-layout {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }

  .top-list__item {
    flex-direction: column;
    text-align: center;
  }

  .top-rank {
    font-size: 28px;
  }

  .top-cover {
    width: 100%;
    max-width: 180px;
    height: 250px;
  }

  .group__title {
    font-size: 22px;
  }

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

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

  .detail-header h1 {
    font-size: 26px;
  }

  .detail-module h2 {
    font-size: 20px;
  }

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