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

:root {
  --brand-green: #00C75A;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-gray: #666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

.ui-style-11 {
  --primary-color: var(--brand-green);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

.site-logo a:hover {
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: 32px;
  white-space: nowrap;
}

.site-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
}

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

.site-main {
  min-height: calc(100vh - 200px);
}

.hero-section {
  background: linear-gradient(135deg, #e8f8f0 0%, #f5fef9 100%);
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.intro-section {
  padding: 48px 0;
  background: var(--bg-white);
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

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

section {
  padding: 48px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.carousel-section {
  background: #fafafa;
}

.horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f0f0f0;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

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

.video-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.video-card--large {
  min-width: 320px;
  flex-shrink: 0;
}

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

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  font-size: 14px;
  color: var(--text-gray);
}

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

.ranking-preview {
  background: #fafafa;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 199, 90, 0.2);
}

.rank-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 48px;
  text-align: center;
}

.ranking-cover {
  width: 80px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.ranking-info {
  flex: 1;
}

.ranking-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.ranking-desc {
  font-size: 14px;
  color: var(--text-gray);
}

.more-link {
  text-align: center;
  margin-top: 32px;
}

.more-link a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.more-link a:hover {
  background: #00b350;
  transform: translateY(-2px);
}

.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 32px 0;
  text-align: center;
  margin-top: 48px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 199, 90, 0.4);
  z-index: 99;
}

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

.back-to-top:hover {
  background: #00b350;
  transform: translateY(-4px);
}

.page-header {
  background: linear-gradient(135deg, #e8f8f0 0%, #f5fef9 100%);
  padding: 48px 0;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-gray);
}

.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-gray);
  transition: var(--transition);
}

.filter-tag:hover {
  background: var(--primary-color);
  color: white;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

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

.layout__side--filters {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-list a {
  padding: 6px 12px;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
}

.filter-list a:hover {
  background: #f0f0f0;
  color: var(--primary-color);
}

.page--top .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page--top .top-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.page--top .top-item:hover {
  box-shadow: 0 4px 16px rgba(0, 199, 90, 0.2);
}

.page--top .top-rank {
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), #00b350);
  color: white;
  font-size: 32px;
  font-weight: 700;
}

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

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

.page--top .top-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page--top .top-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.page--top .top-meta {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.page--top .top-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

.page--grouped .group {
  margin-bottom: 48px;
}

.page--grouped .group__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

.video-player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.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;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 199, 90, 0.4);
}

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

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

.detail-main {
  max-width: 1000px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.info-block {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.info-block h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  color: var(--text-dark);
}

.content-block {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.content-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 12px;
}

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

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

.tag-item {
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-gray);
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
}

.related-section {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.related-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-dark);
}

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

.video-card--related {
  box-shadow: none;
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .site-nav {
    gap: 16px;
    font-size: 14px;
  }

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

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

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

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

  .video-card--large {
    min-width: 240px;
  }

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

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

  .layout__side--filters {
    position: static;
  }

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

  .page--top .top-cover {
    width: 100%;
    height: 200px;
  }

  .detail-header h1 {
    font-size: 28px;
  }

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

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

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

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