* {
  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;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #fb7299;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  overflow: visible;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 15px;
}

.main-nav a:hover {
  background: #f0f0f0;
  color: #fb7299;
}

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

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

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

.site-intro {
  background: #fff;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.site-intro h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
}

.site-intro p {
  line-height: 1.8;
  color: #666;
}

.video-section {
  padding: 40px 0;
}

.video-section--alt {
  background: #fff;
}

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

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

.video-card {
  background: #fff;
  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(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.video-cover {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
  background: #e0e0e0;
}

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.video-player-section {
  margin-bottom: 32px;
}

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

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

.detail-header {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-header h1 {
  font-size: 28px;
  color: #333;
}

.detail-info {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

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

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

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

.content-module {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.content-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

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

.related-section {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.related-section h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #333;
}

.video-card--related {
  background: #f9f9f9;
}

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

.page-header {
  background: #fff;
  padding: 40px 20px;
  margin: 20px 0;
  border-radius: 8px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #333;
}

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

.list-content {
  padding: 40px 0;
}

.page--top .video-grid {
  display: block;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.top-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateX(4px);
}

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

.top-item:nth-child(1) .top-rank,
.top-item:nth-child(2) .top-rank,
.top-item:nth-child(3) .top-rank {
  color: #ff6b6b;
}

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e0e0e0;
}

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

.top-info {
  flex: 1;
  min-width: 0;
}

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

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

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

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

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

.site-footer {
  background: #333;
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  margin-top: 40px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: #fb7299;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

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

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

.ui-style-3 .logo a {
  color: #fb7299;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ui-style-3 .section-title {
  border-left-color: #fb7299;
}

.ui-style-3 .main-nav a:hover {
  color: #fb7299;
}

.ui-style-3 .back-to-top {
  background: #fb7299;
}

.ui-style-3 .back-to-top:hover {
  background: #e5648a;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 20px;
  }

  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .main-nav a {
    padding: 6px 10px;
  }

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

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

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

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

  .video-info {
    padding: 12px;
  }

  .video-one-line {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: auto;
    flex-direction: column;
    padding: 12px 20px;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .main-nav a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .logo a {
    font-size: 20px;
  }
}
