* {
  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: #333;
  background: #f5f5f5;
}

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

.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.main-nav .logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  white-space: nowrap;
  overflow: visible;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ff6700;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.8;
}

.site-intro {
  background: white;
  padding: 40px 20px;
  margin-bottom: 30px;
}

.site-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  max-width: 1000px;
  margin: 0 auto;
}

.video-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 4px solid #ff6700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  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%;
  background: #e0e0e0;
  overflow: hidden;
}

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

.play-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 .play-overlay {
  opacity: 1;
}

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

.list-page {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

.page-header {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

.page--grid .video-grid {
  margin-top: 20px;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side--filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.filter-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.layout__main h1 {
  font-size: 28px;
  margin-bottom: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.page--top .page-header {
  text-align: center;
}

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

.top-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 60px 150px 1fr;
  gap: 20px;
  align-items: center;
  counter-increment: top-counter;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #ff6700;
  text-align: center;
}

.top-cover {
  width: 150px;
  height: 85px;
  border-radius: 4px;
  overflow: hidden;
}

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

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #ff6700;
}

.top-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.page--grouped .group {
  margin-bottom: 40px;
}

.group-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

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

.detail-page {
  background: white;
}

.video-player-section {
  background: #000;
  padding: 0;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  padding: 40px 20px 20px;
  border-bottom: 2px solid #f0f0f0;
}

.detail-header h1 {
  font-size: 32px;
  line-height: 1.4;
}

.detail-info {
  padding: 30px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px 20px;
  font-size: 15px;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.detail-module {
  padding: 30px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #f0f0f0;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.related-section {
  padding: 40px 20px;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 25px;
}

.site-footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

.site-footer p {
  font-size: 14px;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #ff6700;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}

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

.back-to-top:hover {
  background: #e65500;
  transform: translateY(-3px);
}

.ui-style-7 {
  --primary-color: #00C75A;
  --secondary-color: #764ba2;
}

.ui-style-7 .main-nav .logo {
  color: var(--primary-color);
}

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

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.ui-style-7 .section-title {
  border-left-color: var(--primary-color);
}

.ui-style-7 .top-rank {
  color: var(--primary-color);
}

.ui-style-7 .back-to-top {
  background: var(--primary-color);
}

.ui-style-7 .back-to-top:hover {
  background: #00a347;
}

@media (max-width: 768px) {
  .main-nav {
    padding: 12px 15px;
  }

  .main-nav .logo {
    font-size: 20px;
    margin-right: 15px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

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

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

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

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    grid-template-columns: 40px 1fr;
    gap: 15px;
  }

  .top-cover {
    display: none;
  }

  .top-rank {
    font-size: 24px;
  }

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

  .detail-header h1 {
    font-size: 24px;
  }

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

  .player-play-icon {
    font-size: 24px;
  }
}
