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

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

.site-header {
  background: #000;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.main-nav {
  display: flex;
  gap: 30px;
  white-space: nowrap;
}

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

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

.main-content {
  min-height: calc(100vh - 200px);
}

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

.hero-section h1 {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.4;
}

.site-intro {
  background: #f5f5f5;
  padding: 40px 0;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.video-module {
  padding: 50px 0;
}

.module-header {
  margin-bottom: 30px;
}

.module-header h2 {
  font-size: 28px;
  font-weight: bold;
  border-left: 4px solid #ff6700;
  padding-left: 15px;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  background: #f5f5f5;
  padding: 40px 0;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.filter-bar {
  background: #fff;
  padding: 20px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

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

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

.detail-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.detail-info {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.info-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff6700;
}

.info-item {
  display: flex;
  margin-bottom: 12px;
  font-size: 16px;
}

.info-label {
  font-weight: bold;
  min-width: 100px;
  color: #666;
}

.info-value {
  flex: 1;
}

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

.module-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff6700;
  border-left: 4px solid #ff6700;
  padding-left: 15px;
}

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

.module-content p {
  margin-bottom: 15px;
}

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

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

.related-section {
  background: #f5f5f5;
  padding: 40px 0;
}

.video-card--related {
  background: #fff;
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #ff6700;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  background: #e55b00;
}

.page--grid .video-grid {
  margin-top: 30px;
}

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

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

.top-rank {
  font-size: 36px;
  font-weight: bold;
  color: #ff6700;
  min-width: 60px;
  text-align: center;
}

.top-rank--1 {
  color: #FFD700;
}

.top-rank--2 {
  color: #C0C0C0;
}

.top-rank--3 {
  color: #CD7F32;
}

.top-cover {
  width: 150px;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 20px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

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

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

.group__title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff6700;
  border-left: 4px solid #ff6700;
  padding-left: 15px;
}

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

.page--with-sidebar {
  display: flex;
  gap: 30px;
  padding: 40px 0;
}

.layout__side--filters {
  width: 250px;
  flex-shrink: 0;
}

.layout__main {
  flex: 1;
}

.filter-group {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ff6700;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
}

.filter-option:hover {
  color: #ff6700;
}

.ui-style-5 {
  background: #0a0a0a;
}

.ui-style-5 .main-content {
  background: #0a0a0a;
}

.ui-style-5 .video-module {
  background: #0a0a0a;
}

.ui-style-5 .video-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.ui-style-5 .video-card:hover {
  border-color: #ff6700;
}

.ui-style-5 .video-info {
  color: #e0e0e0;
}

.ui-style-5 .video-title {
  color: #fff;
}

.ui-style-5 .module-header h2 {
  color: #fff;
}

.ui-style-5 .detail-section {
  background: #0a0a0a;
  color: #e0e0e0;
}

.ui-style-5 .detail-title {
  color: #fff;
}

.ui-style-5 .detail-info {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.ui-style-5 .info-item {
  color: #e0e0e0;
}

.ui-style-5 .module-content {
  color: #e0e0e0;
}

.ui-style-5 .page-header {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-5 .page-desc {
  color: #b0b0b0;
}

.ui-style-5 .top-list__item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.ui-style-5 .top-info {
  color: #e0e0e0;
}

.ui-style-5 .top-title {
  color: #fff;
}

.ui-style-5 .filter-group {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.ui-style-5 .filter-group h3 {
  color: #fff;
}

.ui-style-5 .filter-option {
  color: #b0b0b0;
}

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

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

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

  .module-header h2 {
    font-size: 22px;
  }

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

  .video-info {
    padding: 10px;
  }

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

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

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

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

  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

  .top-list__item {
    flex-wrap: wrap;
  }

  .top-cover {
    width: 100px;
    height: 56px;
    margin: 0 15px 0 0;
  }
}
