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

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

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

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

.site-nav a {
  padding: 8px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a.active {
  background: #f0f0f0;
  color: #1a1a1a;
}

.home-main,
.list-main,
.detail-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

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

.intro-section {
  margin-bottom: 60px;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.intro-text {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.video-module {
  margin-bottom: 60px;
}

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

.module-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  display: inline-block;
}

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

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

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

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

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

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

.video-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .video-cover__overlay {
  opacity: 1;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
}

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

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

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

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

.page--grid {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.layout__side--filters {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: fit-content;
}

.layout__side--filters h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.layout__side--filters p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.layout__main {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.page--top {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.top-list__item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
  counter-increment: top-counter;
}

.top-list__item:hover {
  background: #fafafa;
}

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  min-width: 60px;
  text-align: center;
}

.top-rank::before {
  content: counter(top-counter);
}

.top-list__item:nth-child(1) .top-rank { color: #FFD700; }
.top-list__item:nth-child(2) .top-rank { color: #C0C0C0; }
.top-list__item:nth-child(3) .top-rank { color: #CD7F32; }

.top-cover {
  width: 120px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
}

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

.top-info {
  flex: 1;
}

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

.top-title a {
  color: #1a1a1a;
  text-decoration: none;
}

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

.top-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

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

.page--grouped {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.group {
  margin-bottom: 60px;
}

.group:last-child {
  margin-bottom: 0;
}

.group__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}

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

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

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

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

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

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

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

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

.detail-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
}

.detail-info {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}

.info-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 12px;
}

.info-label {
  font-weight: 600;
  color: #667eea;
  min-width: 60px;
}

.info-value {
  color: #666;
  flex: 1;
}

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

.detail-module .module-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}

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

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

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

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

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

.site-footer {
  background: #2c3e50;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }

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

  .site-nav a {
    padding: 6px 10px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

  .hero-section {
    padding: 40px 20px;
  }

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

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

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

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

  .page--grid,
  .page--top,
  .page--grouped,
  .layout__main {
    padding: 20px;
  }

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

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

  .top-rank {
    font-size: 24px;
  }

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

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.ui-style-1 {
  --primary-color: #FF6700;
  --secondary-color: #fff;
  --text-color: #333;
}

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

.ui-style-1 .module-title,
.ui-style-1 .detail-module .module-title,
.ui-style-1 .group__title {
  border-color: #FF6700;
}

.ui-style-1 .site-nav a.active {
  background: #FF6700;
  color: #fff;
}

.ui-style-1 .top-rank {
  color: #FF6700;
}

.ui-style-1 .back-to-top {
  background: #FF6700;
}

.ui-style-1 .back-to-top:hover {
  background: #e65c00;
}
