* {
  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;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1890ff;
}

.site-main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 12px;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.8;
}

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

.intro-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.intro-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

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

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
  font-weight: 600;
}

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

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

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

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

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

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 48px;
  color: white;
}

.video-info {
  padding: 16px;
}

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

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

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

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

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

.page--grid {
  background: white;
  padding: 40px;
  border-radius: 8px;
}

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

.layout__side--filters {
  background: white;
  padding: 24px;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.layout__main {
  background: white;
  padding: 40px;
  border-radius: 8px;
}

.page--top {
  background: white;
  padding: 40px;
  border-radius: 8px;
}

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

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

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

.top-rank {
  font-size: 28px;
  font-weight: bold;
  color: #1890ff;
  min-width: 50px;
  text-align: center;
}

.top-item:nth-child(1) .top-rank {
  color: #f5222d;
}

.top-item:nth-child(2) .top-rank {
  color: #fa8c16;
}

.top-item:nth-child(3) .top-rank {
  color: #faad14;
}

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

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

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-info a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.top-info a:hover {
  color: #1890ff;
}

.page--grouped {
  background: white;
  padding: 40px;
  border-radius: 8px;
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
  padding-bottom: 12px;
  border-bottom: 2px solid #1890ff;
}

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

.video-player-section {
  background: #000;
  padding: 40px 0;
  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: 3px solid white;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  margin-left: 4px;
}

.video-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #333;
}

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

.detail-module h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.module-content {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.info-item {
  font-size: 15px;
  color: #666;
}

.info-label {
  font-weight: 600;
  color: #333;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 14px;
  color: #666;
}

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

.video-card--related {
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.site-footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(24,144,255,0.4);
}

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

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

@media (max-width: 768px) {
  .site-nav {
    gap: 12px;
    font-size: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

  .layout__side--filters {
    display: none;
  }

  .page--grid,
  .layout__main,
  .page--top,
  .page--grouped,
  .video-detail {
    padding: 20px;
  }

  .top-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  .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(2, 1fr);
    gap: 12px;
  }
}

.ui-style-0 {
  --primary-color: #1890ff;
  --accent-color: #f5222d;
}

.ui-style-1 {
  --primary-color: #ff6b35;
  --accent-color: #004e89;
}

.ui-style-2 {
  --primary-color: #2ecc71;
  --accent-color: #e74c3c;
}

.ui-style-3 {
  --primary-color: #e91e63;
  --accent-color: #9c27b0;
}

.ui-style-4 {
  --primary-color: #f5222d;
  --accent-color: #1890ff;
}

.ui-style-5 {
  --primary-color: #1890ff;
  --accent-color: #f5222d;
}

.ui-style-6 {
  --primary-color: #00a8e8;
  --accent-color: #ffb700;
}

.ui-style-7 {
  --primary-color: #0077b6;
  --accent-color: #ffd60a;
}

.ui-style-8 {
  --primary-color: #52b788;
  --accent-color: #2d6a4f;
}

.ui-style-9 {
  --primary-color: #333;
  --accent-color: #fff;
}

.ui-style-10 {
  --primary-color: #00c75a;
  --accent-color: #ff6b35;
}

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

.ui-style-12 {
  --primary-color: #ff6700;
  --accent-color: #ff4500;
}

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

.ui-style-14 {
  --primary-color: #003a70;
  --accent-color: #ff6b35;
}

body[class*="ui-style"] .site-nav a:hover,
body[class*="ui-style"] .site-nav a.active {
  color: var(--primary-color);
}

body[class*="ui-style"] .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

body[class*="ui-style"] .top-rank {
  color: var(--primary-color);
}

body[class*="ui-style"] .group__title {
  border-bottom-color: var(--primary-color);
}

body[class*="ui-style"] .back-to-top {
  background: var(--primary-color);
}
