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

:root {
  --primary-color: #0099FF;
  --secondary-color: #FF6B35;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-gray: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --spacing: 8px;
}

body.ui-style-11 {
  --primary-color: #0099FF;
  --secondary-color: #FF6B35;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.layout__side {
  width: 260px;
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 3);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.layout__main {
  flex: 1;
  padding: calc(var(--spacing) * 3);
  max-width: 1400px;
}

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

.site-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing);
}

.site-tagline {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  margin-bottom: calc(var(--spacing) * 4);
}

.nav-link {
  display: block;
  padding: calc(var(--spacing) * 1.5);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 14px;
}

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

.nav-link--active {
  background: var(--primary-color);
  color: white;
}

.side-info {
  margin-top: calc(var(--spacing) * 3);
}

.side-info__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--text-color);
}

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

.tag {
  display: inline-block;
  padding: calc(var(--spacing) * 0.5) calc(var(--spacing) * 1.5);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-light);
  transition: all 0.2s;
}

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

.hero-section {
  margin-bottom: calc(var(--spacing) * 4);
  padding: calc(var(--spacing) * 4);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.05), rgba(255, 107, 53, 0.05));
  border-radius: 12px;
}

.hero-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.5;
}

.intro-section {
  margin-bottom: calc(var(--spacing) * 4);
  padding: calc(var(--spacing) * 3);
  background: var(--bg-gray);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.intro-section p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.content-section {
  margin-bottom: calc(var(--spacing) * 5);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 3);
  color: var(--text-color);
  padding-bottom: calc(var(--spacing) * 1.5);
  border-bottom: 2px solid var(--primary-color);
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

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

.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: calc(var(--spacing) * 2);
}

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

.video-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: var(--spacing);
}

.video-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-list-compact {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 2);
}

.video-item-compact {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.video-item-compact:hover {
  box-shadow: var(--shadow-hover);
}

.video-item-compact__link {
  display: flex;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 2);
  text-decoration: none;
  color: inherit;
}

.video-cover-small {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-gray);
}

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

.video-info-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-title-compact {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 0.5);
  color: var(--text-color);
}

.video-desc-compact {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: calc(var(--spacing) * 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.video-meta-compact {
  font-size: 12px;
  color: var(--text-light);
}

.site-footer {
  background: var(--bg-gray);
  padding: calc(var(--spacing) * 3);
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  border-top: 1px solid var(--border-color);
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing) * 4);
  right: calc(var(--spacing) * 4);
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

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

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

.page-header {
  margin-bottom: calc(var(--spacing) * 4);
  padding: calc(var(--spacing) * 3);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.05), rgba(255, 107, 53, 0.05));
  border-radius: 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--text-color);
}

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

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

.video-player {
  max-width: 100%;
  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;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

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

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

.detail-section {
  background: white;
  padding: calc(var(--spacing) * 3);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacing) * 3);
}

.detail-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 2);
  color: var(--text-color);
  padding-bottom: calc(var(--spacing) * 1.5);
  border-bottom: 2px solid var(--primary-color);
}

.info-table {
  width: 100%;
}

.info-row {
  display: flex;
  padding: calc(var(--spacing) * 1.5) 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.detail-content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.detail-content p {
  margin-bottom: calc(var(--spacing) * 2);
}

.video-card--related {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

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

.top-item {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.top-item:hover {
  box-shadow: var(--shadow-hover);
}

.top-item__link {
  display: flex;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 2);
  text-decoration: none;
  color: inherit;
  align-items: center;
}

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

.top-item:nth-child(1) .top-rank {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.top-item:nth-child(2) .top-rank {
  background: linear-gradient(135deg, #C0C0C0, #808080);
}

.top-item:nth-child(3) .top-rank {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
}

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

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

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

.top-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--spacing) * 0.5);
  color: var(--text-color);
}

.top-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: calc(var(--spacing) * 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.top-meta {
  font-size: 12px;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
    height: auto;
    position: static;
  }

  .layout__main {
    padding: calc(var(--spacing) * 2);
  }

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

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

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

  .back-to-top {
    bottom: calc(var(--spacing) * 2);
    right: calc(var(--spacing) * 2);
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .top-item__link {
    flex-wrap: wrap;
  }

  .top-rank {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

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