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

:root {
  --primary-color: #FF6700;
  --secondary-color: #333;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
}

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

body.ui-style-0 {
  --primary-color: #000;
  --secondary-color: #FF4458;
  background: #000;
  color: #fff;
}

body.ui-style-1 {
  --primary-color: #FF6A00;
  --secondary-color: #333;
  background: #000;
  color: #fff;
}

body.ui-style-2 {
  --primary-color: #FF6B00;
  --secondary-color: #333;
  background: #fff;
  color: #333;
}

body.ui-style-3 {
  --primary-color: #FF2442;
  --secondary-color: #333;
  background: #fff;
  color: #333;
}

body.ui-style-4 {
  --primary-color: #E50914;
  --secondary-color: #333;
  background: #fff;
  color: #333;
}

body.ui-style-5 {
  --primary-color: #E50914;
  --secondary-color: #141414;
  background: #141414;
  color: #fff;
}

body.ui-style-6 {
  --primary-color: #0072D2;
  --secondary-color: #1C3A5C;
  background: #0B1E3D;
  color: #fff;
}

body.ui-style-7 {
  --primary-color: #0073E5;
  --secondary-color: #0B2447;
  background: #040D21;
  color: #fff;
}

body.ui-style-8 {
  --primary-color: #00BA7C;
  --secondary-color: #1C1C1E;
  background: #000;
  color: #fff;
}

body.ui-style-9 {
  --primary-color: #fff;
  --secondary-color: #000;
  background: #000;
  color: #fff;
}

body.ui-style-10 {
  --primary-color: #00C75A;
  --secondary-color: #333;
  background: #fff;
  color: #333;
}

body.ui-style-11 {
  --primary-color: #0099FF;
  --secondary-color: #333;
  background: #fff;
  color: #333;
}

body.ui-style-12 {
  --primary-color: #FF6700;
  --secondary-color: #333;
  background: #fff;
  color: #333;
}

body.ui-style-13 {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  background: #fff;
  color: #333;
}

body.ui-style-14 {
  --primary-color: #003399;
  --secondary-color: #FF6600;
  background: #fff;
  color: #333;
}

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

.site-header {
  background: var(--secondary-color);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.site-nav {
  display: flex;
  gap: 5px;
  white-space: nowrap;
  overflow: visible;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--primary-color);
  color: #fff;
}

.hero-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
}

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

.intro-section {
  padding: 40px 0;
  background: var(--hover-color);
}

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

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

.video-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bg-color);
}

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

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  max-width: 1200px;
  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;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-left: 5px;
}

.detail-page {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 30px;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.detail-info {
  background: var(--hover-color);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.info-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
}

.info-list dt {
  font-weight: bold;
}

.detail-module {
  margin-bottom: 40px;
}

.module-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
}

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

.tag {
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

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

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

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

.top-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--hover-color);
  border-radius: 8px;
  transition: all 0.3s;
}

.top-item:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

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

.top-title a {
  color: inherit;
  text-decoration: none;
}

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

.top-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

.top-meta {
  font-size: 13px;
  color: #999;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.layout__side--filters {
  background: var(--hover-color);
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.site-footer {
  background: var(--secondary-color);
  color: inherit;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  .site-nav a {
    font-size: 12px;
    padding: 6px 8px;
    flex-shrink: 1;
  }

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

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

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

  .video-info {
    padding: 10px;
  }

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

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

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

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

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