* {
  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: 1000;
  padding: 16px 0;
}

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

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

.main-nav {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  overflow: hidden;
}

.main-nav a {
  color: #666;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.main-nav a:hover {
  color: #00A1D6;
  background: #f0f0f0;
}

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

.hero-title {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 600;
}

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

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

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

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

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

.video-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e0e0;
  position: relative;
}

.video-cover img {
  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;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
}

.page-header {
  padding: 40px 0 24px;
}

.page-header h1 {
  font-size: 32px;
  color: #333;
  font-weight: 600;
}

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

.top-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.3s;
}

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

.top-item .rank-badge {
  position: static;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-size: 18px;
  flex-shrink: 0;
}

.top-item .video-cover {
  width: 160px;
  flex-shrink: 0;
}

.top-item .video-info {
  flex: 1;
  padding: 0;
}

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

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

.group-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  padding-left: 12px;
  border-left: 4px solid #667eea;
}

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

.video-player {
  max-width: 960px;
  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%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

.detail-page {
  background: #fff;
}

.title-section {
  padding: 32px 0 16px;
}

.title-section h1 {
  font-size: 32px;
  color: #333;
  font-weight: 600;
}

.detail-module {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

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

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
  font-weight: 600;
}

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

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

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

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

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

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

.tag:hover {
  background: #667eea;
  color: #fff;
}

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

.site-footer {
  background: #2c3e50;
  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: #667eea;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

.ui-style-14 {
  --primary-color: #00A1D6;
  --secondary-color: #FF6700;
}

.ui-style-14 .logo a,
.ui-style-14 .section-title {
  color: #00A1D6;
}

.ui-style-14 .main-nav a:hover {
  color: #00A1D6;
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #00A1D6 0%, #0084B4 100%);
}

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

  .main-nav a {
    padding: 6px 8px;
  }

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

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

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

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

  .video-cover {
    aspect-ratio: 3 / 4;
  }

  .video-info {
    padding: 12px;
  }

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

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

  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-item .video-cover {
    width: 100%;
  }

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

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

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