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

.ui-style-0 {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --text-color: #202124;
  --bg-color: #ffffff;
  --border-color: #dadce0;
}

.main-nav {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  padding: 15px 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-list a {
  color: var(--text-color);
  text-decoration: none;
  padding: 15px 15px;
  display: block;
  transition: color 0.3s;
  white-space: nowrap;
}

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

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-color);
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 20px;
}

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

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

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

.section-title {
  font-size: 28px;
  color: var(--text-color);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

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

.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;
  color: var(--text-color);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-one-line {
  font-size: 14px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-color);
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #5f6368;
  max-width: 800px;
  margin: 0 auto;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-color);
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.top-list__item .video-cover {
  width: 150px;
  flex-shrink: 0;
  padding-top: 0;
  height: 85px;
}

.top-list__item .video-cover img {
  position: static;
  width: 100%;
  height: 100%;
}

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

.detail-page {
  max-width: 1200px;
}

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

.video-player {
  max-width: 100%;
}

.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, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 32px;
  color: var(--primary-color);
}

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

.video-main-title {
  font-size: 36px;
  color: var(--text-color);
}

.video-basic-info {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.info-title {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 20px;
}

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

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

.info-list dd {
  color: #5f6368;
}

.detail-module {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.module-title {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #e8f0fe;
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-top: 60px;
}

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

.site-footer {
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  color: #5f6368;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
  }

  .nav-list a {
    padding: 15px 10px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .top-list__item .video-cover {
    width: 100%;
    padding-top: 56.25%;
    height: auto;
  }

  .video-main-title {
    font-size: 24px;
  }

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