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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

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

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #007bff;
}

.main-content {
  min-height: calc(100vh - 120px);
  padding: 20px 0;
}

.hero-section {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-title {
  font-size: 32px;
  margin-bottom: 15px;
  color: #222;
}

.page-subtitle {
  font-size: 18px;
  color: #666;
}

.site-intro {
  background: #fff;
  padding: 30px;
  margin: 0 auto 40px;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #222;
  border-left: 4px solid #007bff;
  padding-left: 15px;
}

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

.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(-5px);
  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: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.page-header {
  background: #fff;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 20px;
  transition: background 0.3s;
}

.top-item:hover {
  background: #f9f9f9;
}

.top-item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #007bff;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-item__link {
  display: flex;
  gap: 20px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

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

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

.video-player-section {
  background: #000;
  margin-bottom: 30px;
}

.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-radius: 50%;
  background: rgba(0, 123, 255, 0.9);
  border: none;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

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

.player-play-icon {
  color: #fff;
  font-size: 32px;
  display: block;
}

.detail-header {
  background: #fff;
  padding: 40px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header h1 {
  font-size: 36px;
  color: #222;
}

.detail-info, .detail-module, .detail-related {
  background: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-info h2, .detail-module h2, .detail-related h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
  border-left: 4px solid #007bff;
  padding-left: 15px;
}

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

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

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

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

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 14px;
  color: #495057;
}

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

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

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

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

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

body.ui-style-3 {
  background: #f8f9fa;
}

body.ui-style-3 .site-logo {
  color: #e74c3c;
}

body.ui-style-3 .section-title,
body.ui-style-3 .detail-info h2,
body.ui-style-3 .detail-module h2,
body.ui-style-3 .detail-related h2 {
  border-left-color: #e74c3c;
}

body.ui-style-3 .player-play-btn {
  background: rgba(231, 76, 60, 0.9);
}

body.ui-style-3 .player-play-btn:hover {
  background: rgba(231, 76, 60, 1);
}

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

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

@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .top-item {
    flex-direction: column;
  }

  .top-rank {
    font-size: 24px;
    min-width: auto;
    margin-bottom: 10px;
  }

  .top-item__link {
    flex-direction: column;
  }

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

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 10px;
    font-size: 14px;
  }
}
