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

:root {
  --spacing-unit: 8px;
  --color-primary: #00C75A;
  --color-secondary: #00A048;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-border: #e0e0e0;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body.ui-style-10 {
  --color-primary: #00C75A;
  --color-secondary: #00A048;
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

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

.site-main {
  flex: 1;
  padding: calc(var(--spacing-unit) * 4) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: calc(var(--spacing-unit) * 8) 0;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.95;
}

.intro-section {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
}

.section-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.section-more:hover {
  opacity: 0.8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

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

.video-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.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%;
  overflow: hidden;
  background: var(--color-bg-light);
}

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

.video-info {
  padding: calc(var(--spacing-unit) * 2);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit));
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: calc(var(--spacing-unit));
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 12px;
  color: var(--color-text-light);
}

.page-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text);
}

.page-desc {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.filter-bar {
  padding: calc(var(--spacing-unit) * 2);
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.filter-label {
  font-size: 14px;
  color: var(--color-text-light);
}

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

.top-list__item {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 2);
  transition: var(--transition);
}

.top-list__item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  width: 40px;
  flex-shrink: 0;
  text-align: center;
}

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

.top-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit));
}

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

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

.top-meta {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: calc(var(--spacing-unit));
}

.top-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.page--with-sidebar .layout-with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: calc(var(--spacing-unit) * 4);
}

.layout__side--filters {
  position: sticky;
  top: calc(var(--spacing-unit) * 12);
  height: fit-content;
}

.filter-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 3);
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.filter-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit));
}

.filter-tag {
  padding: calc(var(--spacing-unit) / 2) calc(var(--spacing-unit) * 1.5);
  background: var(--color-bg-light);
  border-radius: calc(var(--border-radius) / 2);
  font-size: 12px;
  color: var(--color-text-light);
}

.page--grouped .group {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.group__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid var(--color-primary);
}

.video-player-section {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--border-radius);
  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.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}

.detail-info {
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 4);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}

.info-item {
  display: flex;
  font-size: 15px;
}

.info-label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 60px;
}

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

.detail-module {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.module-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid var(--color-primary);
}

.module-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.module-content p {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 1.5);
}

.tag {
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  background: var(--color-bg-light);
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.related-section {
  margin-top: calc(var(--spacing-unit) * 6);
}

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

.site-footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: calc(var(--spacing-unit) * 4) 0;
  margin-top: auto;
}

.footer-text {
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: calc(var(--spacing-unit) * 3);
  bottom: calc(var(--spacing-unit) * 3);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2);
  }

  .site-nav {
    gap: calc(var(--spacing-unit) * 2);
    font-size: 14px;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
  }

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

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
  }

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

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

  .layout__side--filters {
    position: static;
  }

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

  .top-rank {
    width: auto;
    text-align: left;
  }

  .top-cover {
    width: 100%;
  }

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

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

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

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

  .back-to-top {
    right: calc(var(--spacing-unit) * 2);
    bottom: calc(var(--spacing-unit) * 2);
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
