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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

.site-header {
  background: #fff;
  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;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

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

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

.nav-link:hover,
.nav-link.active {
  background: #3498db;
  color: #fff;
}

.site-main {
  padding: 20px 0;
}

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

.page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
}

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

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.video-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 3px solid #3498db;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px 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%;
  overflow: hidden;
  background: #e0e0e0;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 107, 107, 0.95);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  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: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta span {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 3px;
}

.page-header {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 28px;
  color: #2c3e50;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.top-item:last-child {
  border-bottom: none;
}

.top-item:hover {
  background: #f9f9f9;
}

.top-item .rank-badge {
  position: static;
  min-width: 40px;
  height: 40px;
  font-size: 18px;
}

.top-item .rank-badge.rank-1 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.top-item .rank-badge.rank-2 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.top-item .rank-badge.rank-3 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.top-item .video-cover {
  width: 120px;
  padding-top: 0;
  height: 70px;
  border-radius: 4px;
  flex-shrink: 0;
}

.top-item .video-info {
  flex: 1;
  padding: 0;
}

.top-item .video-title a {
  color: #2c3e50;
  text-decoration: none;
}

.top-item .video-title a:hover {
  color: #3498db;
}

.detail-page {
  background: #fff;
}

.video-player-section {
  background: #000;
  padding: 40px 0;
  margin-bottom: 30px;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(52, 152, 219, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: #fff;
  font-size: 36px;
  display: block;
  margin-left: 5px;
}

.detail-header {
  padding: 30px 0;
}

.detail-header h1 {
  font-size: 32px;
  color: #2c3e50;
}

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 40px;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

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

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

.info-list dd {
  color: #666;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.tag {
  background: #3498db;
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.site-footer {
  background: #2c3e50;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

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

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

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

  .nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }

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

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

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

  .video-info {
    padding: 10px;
  }

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

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

  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

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

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

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

body.ui-style-0 {
  --primary: #000;
  --accent: #ff0050;
}

body.ui-style-1 {
  --primary: #ff6b6b;
  --accent: #ff8c42;
}

body.ui-style-2 {
  --primary: #4ecdc4;
  --accent: #ff6b6b;
}

body.ui-style-3 {
  --primary: #ff385c;
  --accent: #e91e63;
}

body.ui-style-4 {
  --primary: #e50914;
  --accent: #b20710;
}

body.ui-style-5 {
  --primary: #141414;
  --accent: #e50914;
}

body.ui-style-6 {
  --primary: #0f1b2b;
  --accent: #00a8e1;
}

body.ui-style-7 {
  --primary: #000b25;
  --accent: #0063e5;
}

body.ui-style-8 {
  --primary: #1a1a1a;
  --accent: #30d158;
}

body.ui-style-9 {
  --primary: #000;
  --accent: #fff;
}

body.ui-style-10 {
  --primary: #00c75a;
  --accent: #00e268;
}

body.ui-style-11 {
  --primary: #0099ff;
  --accent: #ff6b35;
}

body.ui-style-12 {
  --primary: #ff6700;
  --accent: #fa5a55;
}

body.ui-style-13 {
  --primary: #00a1d6;
  --accent: #fb7299;
}

body.ui-style-14 {
  --primary: #002fa7;
  --accent: #e60012;
}
