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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-9 {
  --primary-color: #000;
  --secondary-color: #fff;
  --accent-color: #d4af37;
  --text-color: #e0e0e0;
  --bg-color: #0a0a0a;
  --card-bg: #1a1a1a;
  --border-color: #2a2a2a;
}

.ui-style-9 body {
  background: var(--bg-color);
  color: var(--text-color);
}

.ui-style-9 .site-header {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.ui-style-9 .video-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ui-style-9 .video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  border-color: var(--accent-color);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.nav-logo a {
  font-size: 24px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  letter-spacing: 1px;
}

.ui-style-9 .nav-logo a {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 15px;
}

.nav-links a:hover {
  background: rgba(0,0,0,0.05);
}

.ui-style-9 .nav-links a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

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

.hero-slider {
  margin: -40px -20px 40px;
  background: #000;
  overflow: hidden;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  height: 500px;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.slider-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
}

.slider-info h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.slider-info p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
}

.page-intro {
  margin-bottom: 48px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.ui-style-9 .page-title {
  color: var(--accent-color);
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.85;
  max-width: 900px;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
}

.ui-style-9 .section-title {
  border-color: var(--accent-color);
}

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

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

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

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

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

.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-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-cover-overlay {
  opacity: 1;
}

.play-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 24px;
  color: #000;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  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;
  opacity: 0.6;
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  margin-bottom: 40px;
}

.page-desc {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.6;
  margin-top: 12px;
}

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

.top-list__item {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ui-style-9 .top-list__item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

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

.top-rank {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
}

.ui-style-9 .top-rank {
  background: var(--accent-color);
  color: var(--primary-color);
}

.top-cover {
  flex-shrink: 0;
  width: 100px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
}

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

.top-info {
  flex: 1;
  min-width: 0;
}

.top-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-info h3 a {
  color: inherit;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #667eea;
}

.ui-style-9 .top-info h3 a:hover {
  color: var(--accent-color);
}

.top-meta {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.top-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
}

.group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid;
}

.ui-style-9 .group__title {
  border-color: var(--accent-color);
}

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

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

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

.video-player {
  background: #000;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 40px;
  color: #000;
  margin-left: 6px;
}

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

.detail-title {
  font-size: 36px;
  line-height: 1.3;
}

.detail-info {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.ui-style-9 .detail-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.info-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.ui-style-9 .info-title {
  border-color: var(--border-color);
}

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

.info-item {
  display: flex;
  line-height: 1.6;
}

.info-label {
  font-weight: 600;
  flex-shrink: 0;
  width: 80px;
}

.info-value {
  flex: 1;
}

.detail-module {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.ui-style-9 .detail-module {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.module-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.ui-style-9 .module-title {
  border-color: var(--border-color);
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
}

.module-content p {
  margin-bottom: 16px;
}

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

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.ui-style-9 .tag {
  background: var(--border-color);
}

.tag:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
}

.ui-style-9 .tag:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

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

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

.site-footer {
  background: #2a2a2a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.ui-style-9 .site-footer {
  background: #000;
  border-top: 1px solid var(--border-color);
}

.footer-content p {
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

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

.ui-style-9 .back-to-top {
  background: var(--accent-color);
  color: var(--primary-color);
}

.ui-style-9 .back-to-top:hover {
  background: var(--accent-color);
  opacity: 1;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    height: auto;
    padding: 12px 20px;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 14px;
  }

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

  .slider-item {
    height: 300px;
  }

  .slider-info {
    padding: 40px 20px 20px;
  }

  .slider-info h2 {
    font-size: 24px;
  }

  .slider-info p {
    font-size: 14px;
  }

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

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

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

  .top-cover {
    width: 120px;
    height: 168px;
  }

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

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

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

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 16px;
    -webkit-line-clamp: 1;
  }

  .video-one-line {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
