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

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

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

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

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

.site-nav a {
  padding: 8px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a.active {
  background: #e8f4ff;
  color: #1890ff;
}

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

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

.hero-section h1 {
  font-size: 28px;
  color: #1890ff;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-intro {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.content-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
}

.more-link {
  color: #1890ff;
  text-decoration: none;
  font-size: 14px;
}

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

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  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%;
  background: #ddd;
  overflow: hidden;
}

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

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

.page-header h1 {
  font-size: 28px;
  color: #1890ff;
}

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

.top-item {
  background: #fff;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #1890ff;
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 150px;
  height: 85px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}

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

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

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

.detail-main {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.video-player {
  max-width: 100%;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 80px;
  height: 80px;
  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: #1890ff;
  margin-left: 4px;
}

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

.detail-info,
.detail-module,
.detail-related {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.detail-related {
  border-bottom: none;
}

.detail-info h2,
.detail-module h2,
.detail-related h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 16px;
}

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

.info-list dt {
  color: #999;
  font-weight: normal;
}

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

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

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

.tag {
  background: #e8f4ff;
  color: #1890ff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
}

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

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

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

.ui-style-0 .site-logo a {
  color: #000;
}

.ui-style-0 .site-nav a.active {
  background: #ff4500;
  color: #fff;
}

.ui-style-1 .site-logo a {
  color: #ff6b35;
}

.ui-style-1 .site-nav a.active {
  background: #ff6b35;
  color: #fff;
}

.ui-style-2 .site-logo a {
  color: #2196f3;
}

.ui-style-2 body {
  background: #fafafa;
}

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

.ui-style-3 .hero-section h1 {
  color: #e91e63;
}

.ui-style-4 .site-logo a {
  color: #e50914;
}

.ui-style-4 body {
  background: #141414;
  color: #fff;
}

.ui-style-4 .site-header {
  background: #141414;
  border-bottom: 1px solid #333;
}

.ui-style-4 .hero-section,
.ui-style-4 .video-card,
.ui-style-4 .detail-main,
.ui-style-4 .top-item,
.ui-style-4 .page-header {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-4 .video-title,
.ui-style-4 .top-info h3 a,
.ui-style-4 .detail-header h1,
.ui-style-4 .info-list dd,
.ui-style-4 .section-header h2,
.ui-style-4 .page-header h1 {
  color: #fff;
}

.ui-style-4 .hero-intro,
.ui-style-4 .video-one-line,
.ui-style-4 .detail-module p {
  color: #b3b3b3;
}

.ui-style-5 .site-logo a {
  color: #0073e6;
}

.ui-style-6 .site-logo a {
  color: #1976d2;
}

.ui-style-7 .site-logo a {
  color: #00a8e1;
}

.ui-style-8 .site-logo a {
  color: #00b140;
}

.ui-style-9 .site-logo a {
  color: #000;
}

.ui-style-9 body {
  background: #000;
  color: #fff;
}

.ui-style-9 .site-header {
  background: #000;
  border-bottom: 1px solid #222;
}

.ui-style-9 .hero-section,
.ui-style-9 .video-card,
.ui-style-9 .detail-main,
.ui-style-9 .top-item,
.ui-style-9 .page-header {
  background: #0a0a0a;
  color: #fff;
}

.ui-style-9 .video-title,
.ui-style-9 .top-info h3 a,
.ui-style-9 .detail-header h1,
.ui-style-9 .info-list dd,
.ui-style-9 .section-header h2,
.ui-style-9 .page-header h1,
.ui-style-9 .site-logo a {
  color: #fff;
}

.ui-style-10 .site-logo a {
  color: #00c75a;
}

.ui-style-10 body {
  background: #f8fafb;
}

.ui-style-11 .site-logo a {
  color: #0099ff;
}

.ui-style-12 .site-logo a {
  color: #ff6700;
}

.ui-style-13 .site-logo a {
  color: #00a1d6;
}

.ui-style-14 .site-logo a {
  color: #1e3d8f;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .site-logo {
    margin-bottom: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 0 4px;
  }

  .site-nav a {
    padding: 6px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .hero-section {
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 20px;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .video-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

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

  .top-rank {
    align-self: center;
  }

  .top-cover {
    width: 100%;
    height: 180px;
  }

  .detail-main {
    padding: 16px;
  }

  .video-player-section {
    margin: -16px -16px 20px;
  }

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

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

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

@media (max-width: 480px) {
  .site-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .hero-section h1 {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 20px;
  }

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

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