* {
  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-color: #fff;
}

.ui-style-11 {
  --primary-color: #00C75A;
  --bg-color: #fff;
  --text-color: #333;
  --border-color: #e0e0e0;
  --hover-bg: #f5f5f5;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

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

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
}

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

.main-content {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.timeline-layout .hero-section {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
  border-radius: 16px;
  margin-bottom: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.4;
}

.page-subtitle {
  font-size: 16px;
  color: #666;
}

.site-intro {
  margin-bottom: 48px;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.site-intro h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.site-intro p {
  color: #555;
  line-height: 1.8;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-color);
}

.horizontal-slider-section {
  margin-bottom: 48px;
}

.horizontal-slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f0f0f0;
}

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

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

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

.slider-track {
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
}

.video-card--horizontal {
  flex: 0 0 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.group-section {
  margin-bottom: 48px;
}

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

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.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;
  transition: transform 0.3s ease;
}

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  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: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page--grid .page-header {
  text-align: center;
  padding: 32px 0;
  margin-bottom: 32px;
}

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

.page--top {
  padding: 40px 0;
}

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

.top-list__item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.top-rank {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  background: linear-gradient(135deg, #f0f0f0, #fff);
  border-radius: 8px;
}

.top-list__item:nth-child(1) .top-rank,
.top-list__item:nth-child(2) .top-rank,
.top-list__item:nth-child(3) .top-rank {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
}

.top-item__cover {
  flex: 0 0 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
}

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

.top-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-item__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.top-item__desc {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  border-radius: 12px;
  overflow: hidden;
}

.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: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,199,90,0.4);
}

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

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

.detail-section {
  margin-bottom: 32px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.detail-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--primary-color);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.detail-section p,
.detail-section ul {
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  display: inline-block;
  width: 80px;
  font-weight: 600;
  color: var(--text-color);
}

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

.video-card--related {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.video-card--related:hover {
  transform: translateY(-4px);
}

.site-footer {
  background: #f5f5f5;
  padding: 32px 0;
  margin-top: 64px;
  border-top: 1px solid var(--border-color);
}

.footer-text {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,199,90,0.3);
  z-index: 99;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,199,90,0.4);
}

@media (max-width: 768px) {
  .page-title {
    font-size: 22px;
  }

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

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

  .video-card--horizontal {
    flex: 0 0 260px;
  }

  .video-info {
    padding: 12px;
  }

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

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

  .top-list__item {
    flex-direction: column;
    gap: 12px;
  }

  .top-rank {
    align-self: flex-start;
  }

  .top-item__cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-item__cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

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

  .main-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .main-content {
    padding: 24px 0;
  }

  .hero-section {
    padding: 24px 16px;
  }

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

  .site-intro {
    padding: 16px;
  }
}
