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

:root {
  --primary-color: #FF0000;
  --bg-color: #FFFFFF;
  --text-color: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --hover-bg: #f5f5f5;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --spacing: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing) * 2) 0;
}

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

.main-nav {
  display: flex;
  gap: calc(var(--spacing) * 3);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  flex-shrink: 0;
}

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

.site-main {
  min-height: 60vh;
}

.skeleton-s3 .hero-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  padding: calc(var(--spacing) * 8) 0 calc(var(--spacing) * 6);
  text-align: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 2);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 16px;
  color: var(--text-secondary);
}

.featured-section,
.ranking-section,
.latest-section {
  padding: calc(var(--spacing) * 6) 0;
}

.ranking-section {
  background: #fafafa;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 4);
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

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

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

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

.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;
  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);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.section-footer {
  margin-top: calc(var(--spacing) * 4);
  text-align: center;
}

.more-link {
  display: inline-block;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 4);
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
}

.more-link:hover {
  background: #cc0000;
}

.site-footer {
  background: #2a2a2a;
  color: #ffffff;
  padding: calc(var(--spacing) * 4) 0;
  text-align: center;
  margin-top: calc(var(--spacing) * 8);
}

.site-footer p {
  font-size: 14px;
  line-height: 1.8;
}

.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: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background 0.3s;
  z-index: 99;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: #cc0000;
}

.detail-main {
  padding-bottom: calc(var(--spacing) * 8);
}

.video-player-section {
  background: #000;
  padding: calc(var(--spacing) * 4) 0;
}

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

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

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

.detail-header {
  padding: calc(var(--spacing) * 6) 0 calc(var(--spacing) * 4);
}

.detail-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-info,
.detail-module {
  padding: calc(var(--spacing) * 4) 0;
  border-top: 1px solid var(--border-color);
}

.module-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 3);
  color: var(--text-color);
}

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

.info-item {
  padding: calc(var(--spacing) * 1.5);
  background: #f9f9f9;
  border-radius: 4px;
}

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

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

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

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

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

.tag {
  display: inline-block;
  padding: calc(var(--spacing) * 0.75) calc(var(--spacing) * 1.5);
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-color);
}

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

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

.video-card--related .video-info {
  padding: calc(var(--spacing) * 1.5);
}

.video-card--related .video-title {
  font-size: 15px;
  -webkit-line-clamp: 1;
}

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

.list-main {
  min-height: 70vh;
  padding: calc(var(--spacing) * 4) 0 calc(var(--spacing) * 8);
}

.page-header {
  padding: calc(var(--spacing) * 6) 0 calc(var(--spacing) * 4);
  border-bottom: 2px solid var(--border-color);
  margin-bottom: calc(var(--spacing) * 6);
}

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

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

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

.top-list__item {
  display: flex;
  gap: calc(var(--spacing) * 3);
  background: var(--bg-color);
  border-radius: 8px;
  padding: calc(var(--spacing) * 2);
  box-shadow: var(--shadow);
  align-items: center;
  transition: transform 0.3s;
}

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

.rank-badge {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

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

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

.top-item-info {
  flex: 1;
}

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

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

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

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

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

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: calc(var(--spacing) * 4);
}

.layout__side--filters {
  background: #f9f9f9;
  padding: calc(var(--spacing) * 3);
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: calc(var(--spacing) * 10);
}

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

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

.grouped-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 6);
}

.group {
  padding: calc(var(--spacing) * 3);
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: calc(var(--spacing) * 2);
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    gap: calc(var(--spacing) * 2);
    font-size: 14px;
  }

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

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

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

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

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

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

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

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

  .layout__side--filters {
    position: static;
  }

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

  .top-item-cover {
    width: 100%;
  }

  .rank-badge {
    font-size: 24px;
    min-width: 40px;
  }

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

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