:root {
  --color-primary: #FF6700;
  --color-secondary: #FF8C3A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F5;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E0E0E0;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

* {
  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: var(--color-text);
  background: var(--color-bg);
}

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

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.site-nav {
  display: flex;
  gap: var(--spacing-md);
  white-space: nowrap;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(255, 103, 0, 0.1);
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  font-size: 14px;
}

.filter-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: white;
  color: var(--color-primary);
}

.content-section {
  margin-bottom: var(--spacing-xl);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
}

.section-more {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.section-more:hover {
  opacity: 0.7;
}

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

.video-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

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

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

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

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

.video-cover__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .video-cover__overlay {
  opacity: 1;
}

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

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

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

.video-one-line {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.meta-item {
  font-size: 12px;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.list-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.page-header {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border-radius: var(--radius-lg);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.page-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.95;
}

.top-list {
  background: var(--color-bg);
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: var(--transition);
}

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

.rank-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

.rank-badge--top {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-item-cover {
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

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

.top-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.top-item-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-item-meta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

.video-player-section {
  margin-bottom: var(--spacing-lg);
}

.video-player {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.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;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.player-play-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-left: 4px;
}

.detail-header {
  margin-bottom: var(--spacing-lg);
}

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

.detail-info {
  background: var(--color-bg-alt);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
}

.info-item {
  display: flex;
  gap: var(--spacing-xs);
}

.info-label {
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
}

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

.detail-module {
  margin-bottom: var(--spacing-lg);
  background: var(--color-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.module-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

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

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag-item {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  transition: var(--transition);
}

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

.detail-related {
  margin-bottom: var(--spacing-lg);
}

.related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

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

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

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

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .site-nav {
    gap: var(--spacing-xs);
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

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

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

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

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

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

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

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

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

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

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

  .page-desc {
    font-size: 14px;
  }

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

  .top-item-link {
    flex-direction: column;
    width: 100%;
  }

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

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

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

  .detail-info,
  .detail-module {
    padding: var(--spacing-md);
  }

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

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

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

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
