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

:root {
  --primary-color: #0099FF;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.ui-style-11 {
  --primary-color: #0099FF;
  --accent-color: #FF6700;
}

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-link {
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-color);
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
  font-size: 14px;
}

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

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

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.hero-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.hero-slide {
  position: relative;
  min-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 40px 20px 20px;
  color: #fff;
}

.hero-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.btn-play {
  display: inline-block;
  padding: 8px 24px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s;
}

.btn-play:hover {
  transform: translateY(-2px);
}

.intro-section {
  padding: 40px 0;
  background: #f9f9f9;
  margin-bottom: 40px;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

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

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

.section-title {
  font-size: 24px;
  font-weight: 600;
}

.section-more {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  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: 50%;
  background: #f0f0f0;
  overflow: hidden;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.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-meta {
  font-size: 13px;
  color: #666;
  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 {
  color: #666;
  font-size: 16px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

.layout__side {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

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

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  align-items: center;
}

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

.top-cover {
  width: 120px;
  height: 160px;
  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: inherit;
  text-decoration: none;
}

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

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

.group-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

.video-player {
  max-width: 1000px;
  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.2);
  border: 3px solid #fff;
  border-radius: 50%;
  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 {
  color: #fff;
  font-size: 32px;
  margin-left: 4px;
}

.detail-page {
  background: #f9f9f9;
}

.detail-header {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

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

.detail-info {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

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

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

.detail-module {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.detail-module p {
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.tag-cloud .tag {
  padding: 6px 16px;
  font-size: 14px;
}

.site-footer {
  background: #2c2c2c;
  color: #fff;
  padding: 32px 0;
  text-align: center;
  margin-top: 60px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s, transform 0.2s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

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

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

  .site-nav {
    width: 100%;
    gap: 6px;
  }

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

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

  .hero-slide {
    min-width: 240px;
  }

  .hero-slide img {
    height: 320px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .layout__side {
    position: static;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

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

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

  .info-grid {
    grid-template-columns: 80px 1fr;
    gap: 8px 12px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
