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

:root {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #f9f9f9;
  --hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

body.ui-style-12 {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  background: var(--bg-color);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.site-logo a {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-logo a:hover {
  opacity: 0.8;
}

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

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
}

.main-nav a:hover {
  color: var(--primary-color);
  background: rgba(0, 161, 214, 0.1);
}

.hero-section {
  margin: 32px 0;
}

.hero-content {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  padding: 60px 40px;
  text-align: center;
  color: white;
  width: 100%;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 32px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

.hero-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 161, 214, 0.3);
}

.intro-section {
  background: linear-gradient(135deg, rgba(0, 161, 214, 0.05), rgba(251, 114, 153, 0.05));
  padding: 48px 0;
  margin: 48px 0;
  border-radius: 12px;
}

.intro-content h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--primary-color);
}

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

.content-module {
  margin: 48px 0;
}

.module-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
  color: var(--text-color);
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

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

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

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.site-footer {
  background: #f5f5f5;
  padding: 32px 0;
  margin-top: 64px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99;
}

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

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-4px);
}

.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 48px 0;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.95;
}

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

.filter-bar {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding: 24px 0;
}

.pagination a,
.pagination span {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.top-list__items li {
  background: var(--card-bg);
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.top-list__items li:hover {
  box-shadow: var(--hover-shadow);
  transform: translateX(4px);
}

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 48px;
}

.top-list__items li:nth-child(1) .top-rank {
  color: #FFD700;
}

.top-list__items li:nth-child(2) .top-rank {
  color: #C0C0C0;
}

.top-list__items li:nth-child(3) .top-rank {
  color: #CD7F32;
}

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

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

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

.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(0, 161, 214, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.detail-title {
  font-size: 32px;
  font-weight: 600;
  margin: 24px 0;
  color: var(--text-color);
}

.info-block {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.info-block h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.info-item {
  padding: 8px 0;
  font-size: 15px;
}

.info-label {
  font-weight: 600;
  color: #666;
  margin-right: 8px;
}

.content-block {
  background: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-block h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.content-block p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.video-card--related {
  background: white;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

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

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

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

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

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

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

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

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

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

  .top-list__items li {
    flex-direction: column;
    text-align: center;
  }

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