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

:root {
  --primary-color: #FF6700;
  --secondary-color: #FFA040;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

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

.ui-style-12 {
  --primary-color: #FF6700;
  --secondary-color: #FFA040;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.site-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

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

.site-nav {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.site-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

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

.hero-section {
  background: linear-gradient(135deg, rgba(255,103,0,0.1), rgba(255,160,64,0.1));
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  line-height: 1.3;
}

.hero-desc {
  font-size: 18px;
  color: #666;
}

.site-intro {
  padding: var(--spacing-xl) 0;
  background: #fafafa;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  color: #555;
}

.video-module {
  padding: var(--spacing-xl) 0;
}

.module-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  position: relative;
  padding-left: var(--spacing-sm);
}

.module-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,103,0,0.15);
}

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

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

.video-info {
  padding: var(--spacing-sm);
}

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

.video-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-player-section {
  padding: var(--spacing-lg) 0;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255,103,0,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

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

.player-play-icon {
  font-size: 32px;
  color: white;
  display: block;
  line-height: 1;
}

.video-detail-header {
  padding: var(--spacing-lg) 0;
}

.video-detail-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  line-height: 1.3;
}

.video-meta-info {
  background: #fafafa;
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
}

.meta-info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.meta-info-item {
  display: flex;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid #e0e0e0;
}

.meta-info-item:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
  color: #666;
}

.meta-value {
  color: var(--text-color);
}

.content-module {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-color);
}

.content-module-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.content-module-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.content-module-text p {
  margin-bottom: var(--spacing-sm);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag-item {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(255,103,0,0.1), rgba(255,160,64,0.1));
  color: var(--primary-color);
  border-radius: 16px;
  font-size: 14px;
}

.related-section {
  padding: var(--spacing-xl) 0;
  background: #fafafa;
}

.related-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  text-align: center;
}

.video-card--related {
  background: white;
}

.page-header {
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
  text-align: center;
}

.page-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.page-desc {
  font-size: 16px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.page--grid .video-grid {
  padding: var(--spacing-lg) 0;
}

.top-list__items {
  list-style: none;
  padding: var(--spacing-lg) 0;
}

.top-list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.top-list-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(255,103,0,0.15);
}

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

.top-rank--special {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

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

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

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

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

.site-footer {
  background: #2c2c2c;
  color: #999;
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: var(--spacing-xl);
}

.footer-text {
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255,103,0,0.3);
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-sm);
  }

  .hero-section {
    padding: var(--spacing-md) 0;
  }

  .video-module {
    padding: var(--spacing-md) 0;
  }

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

  .site-nav {
    gap: var(--spacing-sm);
  }

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

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

  .top-list-item {
    flex-wrap: wrap;
  }

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

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

  .content-module {
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
  }
}