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

:root {
  --primary-color: #2563eb;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --card-bg: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--card-bg);
  color: var(--primary-color);
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

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

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.site-intro {
  padding: 40px 20px;
  background: var(--card-bg);
}

.site-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
  max-width: 900px;
  margin: 0 auto;
}

.video-section {
  padding: 50px 20px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

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

.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.video-info {
  padding: 16px;
}

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

.video-one-line {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.video-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.video-meta span {
  padding: 2px 8px;
  background: var(--card-bg);
  border-radius: 4px;
}

.list-page {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

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

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

.page-desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.page--l3 .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-item {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.top-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  flex-shrink: 0;
}

.top-item__link {
  display: flex;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.top-item .video-cover {
  width: 200px;
  padding-top: 0;
  height: 120px;
  flex-shrink: 0;
}

.top-item .video-cover img {
  position: static;
}

.top-item .video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page--l2 .page-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side--filters {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.page--l4 .group {
  margin-bottom: 50px;
}

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

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

.detail-page {
  padding: 40px 20px;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: var(--radius);
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  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: 32px;
  color: var(--primary-color);
  margin-left: 4px;
}

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

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.detail-info,
.detail-module {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-info h2,
.detail-module h2 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

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

.info-list dt {
  font-weight: 600;
  color: #6b7280;
}

.info-list dd {
  color: var(--text-color);
}

.detail-module p {
  line-height: 1.8;
  color: #4b5563;
  font-size: 15px;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--card-bg);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

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

.video-card--related {
  box-shadow: var(--shadow);
}

.site-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.site-footer p {
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

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

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

@media (max-width: 768px) {
  .nav-container {
    height: auto;
    padding: 10px 15px;
  }

  .nav-menu {
    gap: 5px;
    font-size: 14px;
  }

  .nav-menu li a {
    padding: 6px 10px;
  }

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

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

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

  .page-header h1 {
    font-size: 24px;
  }

  .top-item {
    flex-direction: column;
  }

  .top-rank {
    width: 100%;
    height: 40px;
    font-size: 20px;
  }

  .top-item .video-cover {
    width: 100%;
    height: 180px;
  }

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

  .layout__side--filters {
    position: static;
  }

  .detail-info,
  .detail-module {
    padding: 20px;
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 10px 15px;
  }

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

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 24px;
  }
}

.ui-style-0 { --primary-color: #000000; }
.ui-style-1 { --primary-color: #ff6b35; }
.ui-style-2 { --primary-color: #f97316; }
.ui-style-3 { --primary-color: #ef4444; }
.ui-style-4 { --primary-color: #dc2626; }
.ui-style-5 { --primary-color: #991b1b; }
.ui-style-6 { --primary-color: #1e40af; }
.ui-style-7 { --primary-color: #2563eb; }
.ui-style-8 { --primary-color: #059669; }
.ui-style-9 { --primary-color: #111827; }
.ui-style-10 { --primary-color: #00C75A; }
.ui-style-11 { --primary-color: #0099FF; }
.ui-style-12 { --primary-color: #FF6700; }
.ui-style-13 { --primary-color: #00A1D6; }
.ui-style-14 { --primary-color: #1e3a8a; }

.ui-style-0 .hero-section,
.ui-style-1 .hero-section,
.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.ui-style-5 .hero-section,
.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}
