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

:root {
  --spacing-unit: 8px;
  --container-width: 1200px;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2);
  width: 100%;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: calc(var(--spacing-unit) * 2) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--spacing-unit) * 3);
}

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

.site-nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
  padding: calc(var(--spacing-unit)) 0;
}

.nav-link:hover {
  color: #0066cc;
}

.main-content {
  flex: 1;
  padding: calc(var(--spacing-unit) * 4) 0;
}

.hero-section {
  padding: calc(var(--spacing-unit) * 6) 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.hero-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 3);
  line-height: 1.3;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.video-section {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.section-title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid #e0e0e0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px 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: #f0f0f0;
  overflow: hidden;
}

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

.video-info {
  padding: calc(var(--spacing-unit) * 2);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit));
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: calc(var(--spacing-unit));
}

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

.page-header {
  margin-bottom: calc(var(--spacing-unit) * 5);
  text-align: center;
}

.page-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

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

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

.top-list__item {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 2);
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
  transition: transform var(--transition);
}

.top-list__item:hover {
  transform: translateX(4px);
}

.top-rank {
  counter-increment: top-counter;
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

.top-cover {
  width: 120px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  margin-bottom: calc(var(--spacing-unit));
}

.top-title a {
  text-decoration: none;
  color: #000;
  transition: color var(--transition);
}

.top-title a:hover {
  color: #667eea;
}

.top-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: calc(var(--spacing-unit));
}

.top-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

.video-player-section {
  margin-bottom: calc(var(--spacing-unit) * 5);
}

.video-player {
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

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

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

.player-play-icon {
  margin-left: 4px;
}

.video-detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: calc(var(--spacing-unit) * 4);
  text-align: center;
}

.detail-title {
  font-size: 32px;
  line-height: 1.3;
}

.detail-info {
  background: #f9f9f9;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.info-title {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 15px;
}

.info-list dt {
  font-weight: 600;
  color: #333;
}

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

.detail-section {
  margin-bottom: calc(var(--spacing-unit) * 4);
  padding-bottom: calc(var(--spacing-unit) * 4);
  border-bottom: 1px solid #e0e0e0;
}

.detail-section:last-of-type {
  border-bottom: none;
}

.detail-section .section-title {
  font-size: 22px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding-bottom: calc(var(--spacing-unit));
  border-bottom: 2px solid #667eea;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 2);
}

.tag {
  display: inline-block;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  background: #f0f0f0;
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
  color: #666;
  transition: all var(--transition);
}

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

.related-section {
  margin-top: calc(var(--spacing-unit) * 6);
  padding-top: calc(var(--spacing-unit) * 4);
  border-top: 2px solid #e0e0e0;
}

.site-footer {
  background: #2d2d2d;
  color: #fff;
  padding: calc(var(--spacing-unit) * 4) 0;
  text-align: center;
  margin-top: auto;
}

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

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.ui-style-0 .nav-link:hover {
  color: #ff6b6b;
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.ui-style-1 .nav-link:hover {
  color: #ff5722;
}

.ui-style-2 body {
  background: #fafafa;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  color: #333;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
}

.ui-style-4 .nav-link:hover {
  color: #e74c3c;
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #065f46 100%);
}

.ui-style-8 .nav-link:hover {
  color: #10b981;
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00C75A 0%, #00e06c 100%);
}

.ui-style-10 .nav-link:hover {
  color: #00C75A;
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0099FF;
}

.ui-style-11 .nav-link:hover {
  color: #0099FF;
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #FF6700 0%, #ff8534 100%);
}

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

.ui-style-14 body {
  background: #f5f5f5;
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
  }

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

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

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

  .top-cover {
    width: 100%;
  }

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

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: calc(var(--spacing-unit));
  }

  .section-content p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: calc(var(--spacing-unit) * 2);
    font-size: 14px;
  }

  .nav-link {
    padding: calc(var(--spacing-unit) / 2) 0;
  }

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

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