* {
  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: #fff;
}

.ui-style-4 {
  --primary-color: #e50914;
  --bg-primary: #fff;
  --bg-secondary: #f8f8f8;
  --text-primary: #141414;
  --text-secondary: #666;
  --border-color: #e5e5e5;
}

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

.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.main-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
  background: rgba(229, 9, 20, 0.1);
}

.hero-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

.site-intro {
  padding: 40px 0;
  background: var(--bg-secondary);
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.video-section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

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

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

.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: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line,
.video-meta {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-page {
  padding: 40px 0;
}

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

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.page--l3 .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-item {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

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

.top-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), #ff4757);
  color: #fff;
}

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

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

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

.top-item .video-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.detail-page {
  background: var(--bg-secondary);
}

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

.video-player {
  max-width: 1280px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

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

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

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

.detail-page .container {
  background: #fff;
  padding: 40px;
  margin-top: -40px;
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 10;
}

.video-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.video-basic-info {
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.video-basic-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
}

.info-list dt {
  font-weight: 600;
  color: var(--text-secondary);
}

.info-list dd {
  color: var(--text-primary);
}

.content-module {
  margin: 40px 0;
}

.content-module h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.content-module p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-primary);
}

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

.site-footer {
  background: var(--text-primary);
  color: #fff;
  padding: 40px 0;
  text-align: center;
  margin-top: 80px;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  z-index: 99;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

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

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

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

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

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

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

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

  .top-item {
    flex-direction: column;
  }

  .top-rank {
    min-width: auto;
    padding: 12px;
  }

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

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

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

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 8px 12px;
    font-size: 14px;
  }

  .content-module h2 {
    font-size: 20px;
  }

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

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