* {
  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.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.site-nav a {
  padding: 8px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

.site-nav a:hover {
  background: #f0f0f0;
  color: #333;
}

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

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

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

.hero-desc {
  font-size: 18px;
  opacity: 0.95;
}

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

.intro-content {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

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

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

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

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

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

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

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

.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;
}

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

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

.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 32px 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102,126,234,0.4);
  transition: all 0.3s;
  z-index: 999;
}

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

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

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

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}

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

.page--grid .video-grid {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

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

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

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

.top-rank {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-right: 16px;
}

.top-rank--1 { color: #f44336; }
.top-rank--2 { color: #ff9800; }
.top-rank--3 { color: #ffc107; }
.top-rank--other { color: #999; }

.top-cover {
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  margin-right: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
}

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

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

.top-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

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

.top-desc {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.video-player {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

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

.player-play-btn:hover {
  background: rgba(118,75,162,0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.detail-main {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.detail-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #333;
  line-height: 1.3;
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

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

.detail-info-item {
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
}

.detail-info-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}

.detail-info-value {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.detail-content p {
  margin-bottom: 12px;
}

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

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

.video-card--related {
  height: 100%;
}

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

.page--grouped .group:last-child {
  margin-bottom: 0;
}

.group__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  padding-left: 12px;
  border-left: 4px solid #667eea;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 12px 0;
    gap: 12px;
  }

  .site-logo a {
    font-size: 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }

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

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

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

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .detail-title {
    font-size: 28px;
  }

  .detail-section__title {
    font-size: 20px;
  }

  .top-cover {
    width: 80px;
    height: 45px;
  }

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

  .top-desc {
    font-size: 13px;
  }

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

.ui-style-3 {
  --primary-color: #FB7299;
  --secondary-color: #00A1D6;
  --accent-color: #667eea;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.ui-style-3 .site-nav a:hover {
  background: #fef0f4;
  color: var(--primary-color);
}

.ui-style-3 .back-to-top {
  background: var(--secondary-color);
}

.ui-style-3 .back-to-top:hover {
  background: var(--primary-color);
}

.ui-style-3 .detail-section__title {
  border-bottom-color: var(--secondary-color);
}

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

.ui-style-3 .player-play-btn:hover {
  background: rgba(251,114,153,0.9);
}
