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

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

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-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: #2c3e50;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  color: #555;
  font-size: 14px;
  white-space: nowrap;
}

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

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

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

.hero-title {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.intro-section {
  margin-bottom: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
}

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

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  color: #2c3e50;
  font-weight: 600;
}

.section-more {
  color: #3498db;
  font-size: 14px;
  transition: color 0.3s;
}

.section-more:hover {
  color: #2980b9;
}

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

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

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

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

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

.video-card__link {
  display: block;
}

.video-cover {
  position: relative;
  padding-top: 140%;
  background: #f0f0f0;
  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;
  color: #2c3e50;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.list-page {
  padding-top: 30px;
}

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

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

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

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

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

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

.top-rank {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #3498db;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-cover {
  flex-shrink: 0;
  width: 100px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.top-info {
  flex: 1;
  min-width: 0;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.top-title a {
  color: inherit;
  transition: color 0.3s;
}

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

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

.top-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

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

.layout__side--filters {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #2c3e50;
}

.layout__side--filters p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.filter-tag {
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  border: 1px solid #e5e5e5;
}

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

.group__title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3498db;
}

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

.detail-page {
  max-width: 900px;
}

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

.video-player {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.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.95);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.player-play-icon {
  font-size: 32px;
  color: #3498db;
  margin-left: 4px;
}

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

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

.detail-module {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-module h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3498db;
}

.detail-module p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

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

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

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

.tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.tag-note {
  font-size: 14px;
  color: #777;
}

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

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

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .site-nav {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

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

  .hero-section {
    padding: 40px 20px;
  }

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

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

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .video-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    flex-direction: column;
    gap: 12px;
  }

  .top-cover {
    width: 100%;
    height: 200px;
  }

  .detail-module {
    padding: 20px;
  }

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

.ui-style-0 .hero-section { background: linear-gradient(135deg, #1e1e1e 0%, #434343 100%); }
.ui-style-0 .tag { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); }
.ui-style-0 .nav-link:hover, .ui-style-0 .nav-link.active { background: #ff6b6b; }

.ui-style-1 .hero-section { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); }
.ui-style-1 .tag { background: linear-gradient(135deg, #ff6348 0%, #ff7979 100%); }
.ui-style-1 .nav-link:hover, .ui-style-1 .nav-link.active { background: #e74c3c; }

.ui-style-2 .hero-section { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.ui-style-2 .tag { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); }
.ui-style-2 .nav-link:hover, .ui-style-2 .nav-link.active { background: #e67e22; }

.ui-style-3 .hero-section { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.ui-style-3 .tag { background: linear-gradient(135deg, #ff6b81 0%, #ee5a6f 100%); }
.ui-style-3 .nav-link:hover, .ui-style-3 .nav-link.active { background: #e74c3c; }

.ui-style-4 .hero-section { background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%); }
.ui-style-4 .tag { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.ui-style-4 .nav-link:hover, .ui-style-4 .nav-link.active { background: #c0392b; }

.ui-style-5 .hero-section { background: linear-gradient(135deg, #141414 0%, #333333 100%); }
.ui-style-5 .tag { background: linear-gradient(135deg, #e50914 0%, #b20710 100%); }
.ui-style-5 .nav-link:hover, .ui-style-5 .nav-link.active { background: #e50914; }

.ui-style-6 .hero-section { background: linear-gradient(135deg, #0f1b2b 0%, #1a2f4a 100%); }
.ui-style-6 .tag { background: linear-gradient(135deg, #0063e5 0%, #004db3 100%); }
.ui-style-6 .nav-link:hover, .ui-style-6 .nav-link.active { background: #0063e5; }

.ui-style-7 .hero-section { background: linear-gradient(135deg, #0f171e 0%, #1a2633 100%); }
.ui-style-7 .tag { background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%); }
.ui-style-7 .nav-link:hover, .ui-style-7 .nav-link.active { background: #00b4d8; }

.ui-style-8 .hero-section { background: linear-gradient(135deg, #141414 0%, #2d2d2d 100%); }
.ui-style-8 .tag { background: linear-gradient(135deg, #46d369 0%, #2eb84e 100%); }
.ui-style-8 .nav-link:hover, .ui-style-8 .nav-link.active { background: #46d369; }

.ui-style-9 .hero-section { background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); }
.ui-style-9 .tag { background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%); color: #000; }
.ui-style-9 .nav-link:hover, .ui-style-9 .nav-link.active { background: #333; color: #fff; }

.ui-style-10 .hero-section { background: linear-gradient(135deg, #00C75A 0%, #00a848 100%); }
.ui-style-10 .tag { background: linear-gradient(135deg, #00C75A 0%, #00a848 100%); }
.ui-style-10 .nav-link:hover, .ui-style-10 .nav-link.active { background: #00C75A; }

.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%); }
.ui-style-11 .tag { background: linear-gradient(135deg, #0099FF 0%, #ff6b35 100%); }
.ui-style-11 .nav-link:hover, .ui-style-11 .nav-link.active { background: #0099FF; }

.ui-style-12 .hero-section { background: linear-gradient(135deg, #FF6700 0%, #ff8533 100%); }
.ui-style-12 .tag { background: linear-gradient(135deg, #FF6700 0%, #ff4d4d 100%); }
.ui-style-12 .nav-link:hover, .ui-style-12 .nav-link.active { background: #FF6700; }

.ui-style-13 .hero-section { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }
.ui-style-13 .tag { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }
.ui-style-13 .nav-link:hover, .ui-style-13 .nav-link.active { background: #00A1D6; }

.ui-style-14 .hero-section { background: linear-gradient(135deg, #003d7a 0%, #0052a3 100%); }
.ui-style-14 .tag { background: linear-gradient(135deg, #0052a3 0%, #ff6600 100%); }
.ui-style-14 .nav-link:hover, .ui-style-14 .nav-link.active { background: #0052a3; }
