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

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

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

.site-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-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: bold;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 8px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: #f0f0f0;
  color: #333;
}

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

.hero-section {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-slider::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  min-width: 100%;
  scroll-snap-align: start;
  position: relative;
}

.hero-slide a {
  display: block;
  position: relative;
}

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

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

.hero-info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-info p {
  font-size: 16px;
  opacity: 0.9;
}

.home-intro {
  background: #fff;
  padding: 40px 0;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.home-intro h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.4;
}

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

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

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

.section-header h2 {
  font-size: 24px;
  color: #333;
}

.more-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.more-link:hover {
  color: #333;
}

.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.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 16px;
}

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

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

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

.video-meta span {
  white-space: nowrap;
}

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

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

.page-desc {
  font-size: 16px;
  color: #666;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.top-list__item {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

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

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

.top-item__link {
  display: flex;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  gap: 20px;
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  color: #999;
  min-width: 40px;
  text-align: center;
}

.top-list__item:nth-child(1) .top-rank {
  color: #ff6b6b;
}

.top-list__item:nth-child(2) .top-rank {
  color: #ff8c42;
}

.top-list__item:nth-child(3) .top-rank {
  color: #ffa726;
}

.top-item__cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
}

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

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

.top-item__info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.top-item__info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.layout__side--filters {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.filter-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.filter-section p {
  font-size: 14px;
  color: #666;
}

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

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

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

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.3;
}

.detail-info,
.detail-module {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-module:last-child {
  border-bottom: none;
}

.detail-info h2,
.detail-module h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

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

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

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

.summary-text,
.review-text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

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

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.tag:hover {
  background: #e0e0e0;
  color: #333;
}

.related-section {
  padding-bottom: 0;
}

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

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

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-menu {
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu li a {
    padding: 8px 12px;
    font-size: 14px;
  }

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

  .hero-info h2 {
    font-size: 20px;
  }

  .hero-info p {
    font-size: 14px;
  }

  .home-intro {
    padding: 30px 0;
  }

  .home-intro h1 {
    font-size: 22px;
  }

  .home-intro p {
    font-size: 15px;
  }

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

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

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

  .video-one-line {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .page-header {
    padding: 30px 20px;
  }

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

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

  .layout__side--filters {
    order: 2;
  }

  .top-item__link {
    padding: 15px;
    gap: 15px;
  }

  .top-item__cover {
    width: 80px;
    height: 110px;
  }

  .top-rank {
    font-size: 18px;
    min-width: 30px;
  }

  .top-item__info h3 {
    font-size: 16px;
  }

  .top-item__info p {
    font-size: 13px;
  }

  .detail-page {
    padding: 20px 15px;
  }

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

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

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

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

.ui-style-7 {
  --primary-color: #00A1D6;
  --accent-color: #FB7299;
}

.ui-style-7 .site-logo {
  color: var(--primary-color);
}

.ui-style-7 .nav-menu li a.active {
  background: var(--primary-color);
  color: #fff;
}

.ui-style-7 .player-play-btn {
  background: rgba(0, 161, 214, 0.9);
}

.ui-style-7 .player-play-btn:hover {
  background: var(--primary-color);
}

.ui-style-7 .player-play-icon {
  color: #fff;
}

.ui-style-7 .more-link {
  color: var(--primary-color);
}

.ui-style-7 .top-rank {
  color: var(--primary-color);
}

.ui-style-7 .tag:hover {
  background: var(--accent-color);
  color: #fff;
}
