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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.main-nav {
  flex: 1;
  margin-left: 2rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-item {
  flex-shrink: 0;
}

.nav-item a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
  background: #ff6b00;
  color: #fff;
}

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

.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

.intro-section {
  padding: 3rem 0;
  background: #f5f5f5;
}

.intro-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.intro-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.video-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #222;
  border-left: 4px solid #ff6b00;
  padding-left: 1rem;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 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 {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0f0f0;
}

.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: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

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

.page-header {
  padding: 2rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

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

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

.top-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
  transition: all 0.3s;
}

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

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

.top-cover {
  width: 100px;
  height: 133px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.top-info h3 a {
  color: #222;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #ff6b00;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.layout__side--filters {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.group {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  border-left: 4px solid #ff6b00;
  padding-left: 1rem;
}

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

.detail-page {
  padding: 2rem 0;
}

.video-player-section {
  margin-bottom: 2rem;
}

.video-player {
  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: none;
  background: rgba(255, 107, 0, 0.9);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 2rem;
}

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

.detail-header {
  text-align: center;
  padding: 2rem 0;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: #222;
  line-height: 1.3;
}

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

.detail-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
}

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

.info-list dt {
  font-weight: bold;
  color: #555;
}

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

.detail-module {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-module h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
  border-left: 4px solid #ff6b00;
  padding-left: 1rem;
}

.detail-module p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

.related-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #222;
  border-left: 4px solid #ff6b00;
  padding-left: 1rem;
}

.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
  z-index: 999;
}

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

.back-to-top:hover {
  background: #e55a00;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    text-align: center;
    margin-bottom: 1rem;
  }

  .main-nav {
    margin-left: 0;
  }

  .nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-item a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

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

  .top-rank {
    min-width: auto;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .info-list dt {
    font-weight: bold;
    margin-top: 1rem;
  }
}

.ui-style-1 .site-header {
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
}

.ui-style-1 .nav-item a:hover,
.ui-style-1 .nav-item.active a {
  background: #ff6b00;
}

.ui-style-1 .video-card:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.ui-style-1 .player-play-btn {
  background: rgba(255, 107, 0, 0.9);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

.ui-style-1 .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ff6b00;
  margin-top: 0.5rem;
}
