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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-2 {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --bg-color: #f5f5f5;
  --text-color: #333;
  --border-color: #ddd;
}

.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: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  overflow: visible;
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-color);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

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

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

.video-section {
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title,
.page-title,
.module-title {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

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

.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.15);
}

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

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

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

.video-info {
  padding: 1rem;
}

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

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

.page-header {
  margin-bottom: 2rem;
}

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

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

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.top-title a:hover {
  color: var(--primary-color);
}

.top-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.top-desc {
  font-size: 0.875rem;
  color: #666;
}

.detail-page {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
}

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

.video-player {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  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: 2rem;
  color: var(--primary-color);
}

.detail-header {
  margin-bottom: 2rem;
}

.detail-title {
  font-size: 2rem;
  color: var(--text-color);
}

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 2rem;
}

.module-title {
  margin-bottom: 1rem;
}

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

.info-item {
  padding: 0.5rem 0;
}

.info-label {
  font-weight: 600;
  color: #666;
}

.info-value {
  color: var(--text-color);
}

.module-content {
  line-height: 1.8;
  color: #555;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.8rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

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

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

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

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

  .top-cover {
    width: 100%;
  }

  .detail-page {
    padding: 1rem;
  }

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