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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  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: 100;
}

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

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  font-size: 15px;
}

.main-nav a:hover {
  color: #007bff;
}

.main-content {
  padding: 40px 0;
}

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

.hero-section h1 {
  font-size: 28px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.site-intro {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
  color: #555;
}

.video-section {
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 25px;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 15px;
}

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

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

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

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

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

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

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

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

.video-info {
  padding: 15px;
}

.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-one-line {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

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

.page-header p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.top-list__item .video-cover {
  width: 100px;
  padding-top: 0;
  height: 140px;
  flex-shrink: 0;
  border-radius: 6px;
}

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

.top-list__item .video-title a {
  text-decoration: none;
  color: #333;
}

.top-list__item .video-title a:hover {
  color: #007bff;
}

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

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

.detail-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.video-player {
  width: 100%;
  max-width: 900px;
  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;
  border-radius: 50%;
  background: rgba(0,123,255,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: rgba(0,123,255,1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: white;
  margin-left: 5px;
}

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

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

.detail-info, .detail-module {
  background: white;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-info h2, .detail-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 12px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #555;
}

.info-list li:last-child {
  border-bottom: none;
}

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

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
}

.related-section .video-grid {
  margin-top: 25px;
}

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

.ui-style-12 {
  --primary-color: #FF6700;
  --primary-gradient: linear-gradient(135deg, #FF6700 0%, #FF8C00 100%);
}

.ui-style-12 .hero-section {
  background: var(--primary-gradient);
}

.ui-style-12 .section-title,
.ui-style-12 .detail-info h2,
.ui-style-12 .detail-module h2 {
  border-left-color: var(--primary-color);
}

.ui-style-12 .main-nav a:hover {
  color: var(--primary-color);
}

.ui-style-12 .player-play-btn {
  background: rgba(255,103,0,0.9);
}

.ui-style-12 .player-play-btn:hover {
  background: rgba(255,103,0,1);
}

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

  .main-nav ul {
    gap: 12px;
    font-size: 13px;
    justify-content: center;
  }

  .hero-section h1 {
    font-size: 22px;
  }

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

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

  .video-title {
    font-size: 14px;
    -webkit-line-clamp: 1;
  }

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

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

  .top-list__item .video-cover {
    width: 100%;
    max-width: 200px;
  }

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

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

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

@media (max-width: 480px) {
  .main-nav ul {
    gap: 8px;
    font-size: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
