:root {
  --primary-color: #00C75A;
  --primary-dark: #00A048;
  --primary-light: #33D375;
  --text-color: #1a1a1a;
  --text-secondary: #666;
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 199, 90, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 199, 90, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 199, 90, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --spacing-unit: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.ui-style-11 {
  --primary-color: #00C75A;
  --primary-dark: #00A048;
  --primary-light: #33D375;
}

.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  padding: calc(var(--spacing-unit) * 2) 0;
}

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

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.site-logo:hover {
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 4);
  align-items: center;
}

.nav-item {
  white-space: nowrap;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: block;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.nav-item.active .nav-link {
  color: var(--primary-color);
  background: rgba(0, 199, 90, 0.1);
}

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
  width: 100%;
}

.hero-section {
  text-align: center;
  padding: calc(var(--spacing-unit) * 6) 0;
  background: linear-gradient(135deg, rgba(0, 199, 90, 0.05) 0%, rgba(51, 211, 117, 0.05) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: calc(var(--spacing-unit) * 5);
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
}

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

.intro-container {
  background: var(--bg-secondary);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid var(--primary-color);
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

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

.video-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-secondary);
  overflow: hidden;
}

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-icon {
  font-size: 48px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.video-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

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

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

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing-unit));
}

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-more {
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 3);
}

.more-link {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

.more-link:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
}

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

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

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

.layout__with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing-unit) * 4);
}

.layout__side--filters {
  background: var(--bg-secondary);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--radius-md);
  height: fit-content;
  position: sticky;
  top: calc(var(--spacing-unit) * 10);
}

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

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

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

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

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  background: #fff;
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.top-list__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

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

.top-list__item .rank-badge.rank-1,
.top-list__item .rank-badge.rank-2,
.top-list__item .rank-badge.rank-3 {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-sm);
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 1.5);
}

.top-list__item .video-cover {
  flex-shrink: 0;
  width: 120px;
  padding-top: 0;
  height: 68px;
  border-radius: var(--radius-sm);
}

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

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

.top-list__item .video-title a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
}

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

.grouped-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 5);
}

.group {
  background: var(--bg-secondary);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--radius-md);
}

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

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

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

.video-player {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-btn:hover {
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 199, 90, 0.6);
}

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

.video-player.is-playing .player-play-btn {
  display: none;
}

.video-player.is-playing .video-player-inner {
  padding-top: 0;
  background: #000;
}

.video-player.is-playing video {
  width: 100%;
  height: auto;
}

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

.video-main-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.video-basic-info {
  background: var(--bg-secondary);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--radius-md);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

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

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  font-size: 15px;
  line-height: 1.6;
}

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

.info-list dd {
  color: var(--text-secondary);
}

.detail-module {
  background: #fff;
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--radius-md);
  margin-bottom: calc(var(--spacing-unit) * 3);
  box-shadow: var(--shadow-sm);
}

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

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

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

.module-content p:last-child {
  margin-bottom: 0;
}

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

.tag-item {
  display: inline-block;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  background: rgba(0, 199, 90, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

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

.video-card--related {
  box-shadow: var(--shadow-sm);
}

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

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

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

.footer-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 4);
  right: calc(var(--spacing-unit) * 4);
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .nav-container {
    padding: 0 calc(var(--spacing-unit) * 2);
  }

  .nav-menu {
    gap: calc(var(--spacing-unit) * 1.5);
    font-size: 14px;
  }

  .nav-link {
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit));
    font-size: 14px;
  }

  .main-content {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
  }

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

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

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

  .section-title {
    font-size: 20px;
  }

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

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

  .layout__side--filters {
    position: static;
  }

  .top-list__item {
    flex-wrap: wrap;
  }

  .top-list__item .video-cover {
    width: 100px;
    height: 56px;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .site-logo {
    font-size: 20px;
  }

  .nav-menu {
    gap: calc(var(--spacing-unit));
  }

  .nav-link {
    padding: calc(var(--spacing-unit) * 0.5);
    font-size: 13px;
  }

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

  .hero-section {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
  }

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

  .hero-subtitle {
    font-size: 14px;
  }

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

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

  .play-icon {
    font-size: 36px;
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 24px;
  }
}
