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

:root {
  --color-primary: #1a73e8;
  --color-bg: #ffffff;
  --color-text: #202124;
  --color-text-secondary: #5f6368;
  --color-border: #dadce0;
  --spacing-unit: 8px;
  --border-radius: 8px;
  --transition: 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(--color-text);
  background: var(--color-bg);
}

.ui-style-0 {
  --color-primary: #fe2c55;
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-secondary: #e0e0e0;
}

.ui-style-1 {
  --color-primary: #ff4500;
  --color-bg: #121212;
  --color-text: #ffffff;
  --color-text-secondary: #cccccc;
}

.ui-style-2 {
  --color-primary: #ff6b35;
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #666666;
}

.ui-style-3 {
  --color-primary: #ff0028;
  --color-bg: #ffffff;
  --color-text: #212121;
  --color-text-secondary: #757575;
}

.ui-style-4 {
  --color-primary: #e50914;
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #666666;
}

.ui-style-5 {
  --color-primary: #e50914;
  --color-bg: #141414;
  --color-text: #ffffff;
  --color-text-secondary: #b3b3b3;
}

.ui-style-6 {
  --color-primary: #0063e5;
  --color-bg: #1a1d29;
  --color-text: #f9f9f9;
  --color-text-secondary: #cacaca;
}

.ui-style-7 {
  --color-primary: #0080ff;
  --color-bg: #0f1419;
  --color-text: #ffffff;
  --color-text-secondary: #8899a6;
}

.ui-style-8 {
  --color-primary: #1db954;
  --color-bg: #121212;
  --color-text: #ffffff;
  --color-text-secondary: #b3b3b3;
}

.ui-style-9 {
  --color-primary: #ffffff;
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-secondary: #999999;
}

.ui-style-10 {
  --color-primary: #00C75A;
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #666666;
}

.ui-style-11 {
  --color-primary: #0099FF;
  --color-bg: #fafafa;
  --color-text: #333333;
  --color-text-secondary: #888888;
}

.ui-style-12 {
  --color-primary: #FF6700;
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #757575;
}

.ui-style-13 {
  --color-primary: #00A1D6;
  --color-bg: #ffffff;
  --color-text: #212121;
  --color-text-secondary: #999999;
}

.ui-style-14 {
  --color-primary: #1e50ae;
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #666666;
}

.site-nav {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 3);
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 3);
}

.hero-section {
  text-align: center;
  padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 3);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-text-secondary) 100%);
  color: #ffffff;
}

.hero-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.site-intro {
  background: var(--color-bg);
  padding: calc(var(--spacing-unit) * 6) 0;
}

.site-intro h2 {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text);
}

.site-intro p {
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.video-section {
  padding: calc(var(--spacing-unit) * 6) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-header h2 {
  font-size: 24px;
  color: var(--color-text);
}

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

.more-link:hover {
  opacity: 0.8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.video-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

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

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

.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;
}

.video-info {
  padding: calc(var(--spacing-unit) * 2);
}

.video-title {
  font-size: 16px;
  margin-bottom: calc(var(--spacing-unit));
  color: var(--color-text);
  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-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text);
}

.page-desc {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

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

.top-list__item {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: transform var(--transition);
}

.top-list__item:hover {
  transform: translateX(4px);
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  min-width: 40px;
}

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

.top-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  margin-bottom: calc(var(--spacing-unit));
}

.top-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.top-title a:hover {
  color: var(--color-primary);
}

.top-meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: calc(var(--spacing-unit));
}

.top-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.group {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.group__title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-text);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid var(--color-primary);
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.layout__with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing-unit) * 4);
}

.layout__side--filters {
  background: var(--color-bg);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h2 {
  font-size: 18px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text);
}

.layout__side--filters p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.video-player-section {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: #fff;
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  display: block;
  margin-left: 4px;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-text);
}

.detail-info {
  background: var(--color-bg);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.detail-info h2 {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 14px;
}

.info-list dt {
  font-weight: 600;
  color: var(--color-text);
}

.info-list dd {
  color: var(--color-text-secondary);
}

.detail-module {
  background: var(--color-bg);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-text);
}

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.detail-module p:last-child {
  margin-bottom: 0;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit));
}

.tag {
  display: inline-block;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  background: var(--color-primary);
  color: #fff;
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: calc(var(--spacing-unit) * 4) 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: calc(var(--spacing-unit) * 3);
  bottom: calc(var(--spacing-unit) * 3);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
    margin-top: calc(var(--spacing-unit) * 2);
    gap: calc(var(--spacing-unit));
    font-size: 14px;
  }

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

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
  }

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

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

  .top-list__item {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
  }

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

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