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

:root {
  --primary-color: #ff6700;
  --secondary-color: #333;
  --bg-color: #fff;
  --text-color: #333;
  --border-color: #e0e0e0;
  --hover-color: #ff8533;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
  --spacing: 8px;
}

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

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

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

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

.site-nav {
  display: flex;
  gap: calc(var(--spacing) * 3);
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: calc(var(--spacing) * 1) calc(var(--spacing) * 2);
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

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

main {
  min-height: 60vh;
}

.home-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
  padding: calc(var(--spacing) * 8) calc(var(--spacing) * 3);
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.intro-section {
  background: #f8f9fa;
  padding: calc(var(--spacing) * 6) calc(var(--spacing) * 3);
}

.intro-container {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  color: #666;
}

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

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 24px;
  font-weight: bold;
}

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

.section-more:hover {
  text-decoration: underline;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-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;
}

.video-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .video-cover-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 48px;
  color: white;
}

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

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

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: calc(var(--spacing) * 1);
}

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

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

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

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

.page-desc {
  color: #666;
  font-size: 16px;
}

.filter-bar {
  margin-bottom: calc(var(--spacing) * 4);
  padding: calc(var(--spacing) * 2);
  background: #f8f9fa;
  border-radius: 8px;
}

.filter-label {
  margin-right: calc(var(--spacing) * 2);
  font-weight: bold;
}

.filter-item {
  display: inline-block;
  padding: calc(var(--spacing) * 1) calc(var(--spacing) * 2);
  margin: 0 calc(var(--spacing) * 1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-item.active {
  background: var(--primary-color);
  color: white;
}

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

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

.layout__side--filters h3 {
  margin-bottom: calc(var(--spacing) * 2);
}

.filter-group {
  margin-bottom: calc(var(--spacing) * 2);
}

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

.top-item {
  display: flex;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 3);
  margin-bottom: calc(var(--spacing) * 2);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  align-items: center;
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

.top-rank--gold {
  color: var(--primary-color);
}

.top-rank--normal {
  color: #999;
}

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

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

.top-info {
  flex: 1;
}

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

.top-title a {
  color: inherit;
  text-decoration: none;
}

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

.top-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: calc(var(--spacing) * 1);
}

.top-desc {
  font-size: 14px;
  color: #666;
}

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

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

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

.detail-main {
  background: #f8f9fa;
}

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

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

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

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

.player-play-icon {
  font-size: 32px;
  color: white;
  margin-left: 4px;
}

.detail-header,
.detail-info {
  background: #fff;
  padding: calc(var(--spacing) * 4) 0;
}

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

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

.detail-info {
  border-bottom: 1px solid var(--border-color);
}

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

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

.info-item {
  display: flex;
  padding: calc(var(--spacing) * 1) 0;
}

.info-label {
  font-weight: bold;
  min-width: 80px;
  color: #666;
}

.info-value {
  flex: 1;
}

.detail-module {
  background: #fff;
  padding: calc(var(--spacing) * 4);
  margin-bottom: calc(var(--spacing) * 3);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: calc(var(--spacing) * 3);
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 2px solid var(--primary-color);
}

.module-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

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

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

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

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

.video-card--related .video-cover {
  padding-top: 66.67%;
}

.site-footer {
  background: #333;
  color: #fff;
  padding: calc(var(--spacing) * 6) calc(var(--spacing) * 3);
  text-align: center;
  margin-top: calc(var(--spacing) * 8);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.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%;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}

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

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

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

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: calc(var(--spacing) * 1);
  }

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

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

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

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

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

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

  .layout__side--filters {
    display: none;
  }

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

  .top-cover {
    width: 100%;
  }

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

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

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

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

  .video-one-line {
    font-size: 13px;
  }
}

.ui-style-0 {
  --primary-color: #000;
  --hover-color: #333;
}

.ui-style-1 {
  --primary-color: #ff385c;
  --hover-color: #ff5a78;
}

.ui-style-2 {
  --primary-color: #ea4c89;
  --hover-color: #f178a5;
}

.ui-style-3 {
  --primary-color: #e60023;
  --hover-color: #ec3d4f;
}

.ui-style-4 {
  --primary-color: #ff0000;
  --hover-color: #ff3333;
}

.ui-style-5 {
  --primary-color: #e50914;
  --hover-color: #f6121d;
}

.ui-style-6 {
  --primary-color: #0063e5;
  --hover-color: #1f7aed;
}

.ui-style-7 {
  --primary-color: #006ffd;
  --hover-color: #2088ff;
}

.ui-style-8 {
  --primary-color: #00b578;
  --hover-color: #1ac689;
}

.ui-style-9 {
  --primary-color: #000;
  --hover-color: #262626;
}

.ui-style-10 {
  --primary-color: #00C75A;
  --hover-color: #2ad874;
}

.ui-style-11 {
  --primary-color: #0099FF;
  --hover-color: #29acff;
}

.ui-style-12 {
  --primary-color: #FF6700;
  --hover-color: #ff8533;
}

.ui-style-13 {
  --primary-color: #00A1D6;
  --hover-color: #1fb3e0;
}

.ui-style-14 {
  --primary-color: #003d7a;
  --hover-color: #004f9b;
}
