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

:root {
  --primary-color: #0099FF;
  --secondary-color: #FF6600;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

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

.ui-style-0 {
  --primary-color: #FF0050;
  --bg-color: #000;
  --text-color: #fff;
  --border-color: #333;
  --hover-color: #1a1a1a;
}

.ui-style-1 {
  --primary-color: #FF4500;
  --bg-color: #121212;
  --text-color: #fff;
  --border-color: #333;
}

.ui-style-2 {
  --primary-color: #FF5722;
  --secondary-color: #FFC107;
}

.ui-style-3 {
  --primary-color: #E91E63;
  --secondary-color: #FF4081;
}

.ui-style-4 {
  --primary-color: #F44336;
  --secondary-color: #FF5252;
}

.ui-style-5 {
  --primary-color: #E50914;
  --bg-color: #141414;
  --text-color: #fff;
  --border-color: #2a2a2a;
  --hover-color: #2a2a2a;
}

.ui-style-6 {
  --primary-color: #0063e5;
  --bg-color: #1a1d29;
  --text-color: #f9f9f9;
  --border-color: #2a2d3a;
}

.ui-style-7 {
  --primary-color: #2e7cf6;
  --bg-color: #0f171e;
  --text-color: #fff;
  --border-color: #1a2633;
}

.ui-style-8 {
  --primary-color: #1DB954;
  --bg-color: #191414;
  --text-color: #fff;
  --border-color: #282828;
}

.ui-style-9 {
  --primary-color: #ffffff;
  --bg-color: #000000;
  --text-color: #ffffff;
  --border-color: #1a1a1a;
  --hover-color: #1a1a1a;
}

.ui-style-10 {
  --primary-color: #00C75A;
  --secondary-color: #FFD700;
}

.ui-style-11 {
  --primary-color: #0099FF;
  --secondary-color: #FF6B35;
}

.ui-style-12 {
  --primary-color: #FF6700;
  --secondary-color: #FFB800;
}

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

.ui-style-14 {
  --primary-color: #003B8E;
  --secondary-color: #FF6B00;
}

.site-nav {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  white-space: nowrap;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: background-color 0.2s;
}

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

@media (max-width: 768px) {
  .nav-menu {
    gap: var(--spacing-xs);
    font-size: 14px;
  }

  .nav-menu a {
    padding: var(--spacing-xs);
  }
}

.home-page,
.list-page,
.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.hero-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

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

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

.intro-section {
  margin-bottom: var(--spacing-lg);
}

.intro-container {
  background: var(--hover-color);
  padding: var(--spacing-lg);
  border-radius: 8px;
}

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

.video-section {
  margin-bottom: var(--spacing-xl);
}

.section-header {
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--primary-color);
}

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--hover-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.video-info {
  padding: var(--spacing-sm);
}

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

.video-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 12px;
  color: #999;
}

.page-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: var(--spacing-md);
}

.page-header p {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

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

.top-item {
  counter-increment: top-counter;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: var(--hover-color);
  border-radius: 8px;
  transition: transform 0.2s;
}

.top-item:hover {
  transform: translateX(4px);
}

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

.top-rank::before {
  content: counter(top-counter);
}

.top-cover {
  width: 120px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 20px;
  margin-bottom: var(--spacing-xs);
}

.top-info h3 a {
  text-decoration: none;
  color: var(--text-color);
}

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

.top-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: var(--spacing-xs);
}

.top-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 12px;
  color: #999;
}

@media (max-width: 768px) {
  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-cover {
    width: 100%;
  }
}

.video-player-section {
  margin-bottom: var(--spacing-xl);
}

.video-player {
  max-width: 900px;
  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(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

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

.player-play-icon {
  font-size: 32px;
  color: var(--primary-color);
}

.detail-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: var(--spacing-md);
}

.detail-info,
.detail-module {
  margin-bottom: var(--spacing-xl);
  background: var(--hover-color);
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.detail-info h2,
.detail-module h2 {
  font-size: 24px;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--spacing-sm);
}

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

.info-list dd {
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-color);
  color: white;
  border-radius: 16px;
  font-size: 14px;
}

.site-footer {
  background: var(--hover-color);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: var(--spacing-xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-container p {
  color: #666;
  font-size: 14px;
}

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

#back-to-top:hover {
  transform: scale(1.1);
}

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