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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.ui-style-13 {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  --bg-color: #fff;
  --text-color: #333;
  --border-radius: 8px;
}

.layout--s2 {
  display: flex;
  min-height: 100vh;
  background: var(--bg-color, #fff);
}

.layout__side {
  width: 240px;
  background: linear-gradient(135deg, var(--primary-color, #00A1D6), var(--secondary-color, #FB7299));
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar {
  padding: 24px;
}

.site-logo h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

.site-logo a {
  color: #fff;
}

.main-nav {
  margin-bottom: 32px;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 8px;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--border-radius, 8px);
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sidebar-info {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  padding: 16px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius, 8px);
}

.layout__main {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color, #333);
  line-height: 1.4;
  margin-bottom: 16px;
}

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

.site-intro {
  background: #fff;
  padding: 24px;
  border-radius: var(--border-radius, 8px);
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

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

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color, #333);
}

.section-more {
  color: var(--primary-color, #00A1D6);
  font-size: 14px;
  transition: opacity 0.3s;
}

.section-more:hover {
  opacity: 0.7;
}

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

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

.video-card {
  background: #fff;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.video-card__link {
  display: block;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
  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;
  color: var(--text-color, #333);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #999;
}

.meta-item {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
}

.page--grid,
.page--with-sidebar,
.page--top,
.page--grouped {
  background: #fff;
  padding: 32px;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-color, #333);
}

.layout__side--filters p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

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

.top-list__item {
  counter-increment: rank;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

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

.rank-badge {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--primary-color, #00A1D6);
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 16px;
}

.top-item__link {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.top-item__cover {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  background: #f0f0f0;
}

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

.top-item__info {
  flex: 1;
}

.top-item__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color, #333);
}

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

.top-item__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color, #333);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color, #00A1D6);
}

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

.video-detail {
  background: #fff;
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.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;
  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: var(--primary-color, #00A1D6);
  margin-left: 4px;
}

.video-header {
  padding: 32px;
  border-bottom: 1px solid #eee;
}

.video-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-color, #333);
  line-height: 1.4;
}

.video-basic-info {
  padding: 32px;
  border-bottom: 1px solid #eee;
}

.video-basic-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color, #333);
}

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

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

.info-list dd {
  color: var(--text-color, #333);
}

.detail-module {
  padding: 32px;
  border-bottom: 1px solid #eee;
}

.detail-module h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color, #333);
}

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

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--primary-color, #00A1D6), var(--secondary-color, #FB7299));
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.related-section {
  padding: 32px;
}

.related-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color, #333);
}

.site-footer {
  margin-left: 240px;
  padding: 24px 32px;
  text-align: center;
  color: #999;
  font-size: 14px;
  background: #fff;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .layout__side {
    width: 100%;
    height: auto;
    position: static;
  }

  .layout__main {
    margin-left: 0;
    padding: 20px;
  }

  .site-footer {
    margin-left: 0;
  }

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

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

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

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

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

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

  .top-item__cover {
    width: 100%;
    height: auto;
    padding-top: 133%;
    position: relative;
  }

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

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