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

:root {
  --primary-color: #0099FF;
  --secondary-color: #FF6700;
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --border-color: #e5e5e5;
  --hover-bg: #f5f5f5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ui-style-3 {
  --primary-color: #FB7299;
  --secondary-color: #FF6B9D;
}

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

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

.header__logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.header__logo a:hover {
  opacity: 0.8;
}

.header__nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--hover-bg);
  color: var(--primary-color);
}

.main {
  flex: 1;
  padding-bottom: 60px;
}

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

.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.hero__title {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.4;
}

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

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

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

.intro-text {
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  font-size: 15px;
}

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

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

.video-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  min-height: 44px;
}

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  text-align: center;
  margin: 40px 0;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.page-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

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

.top-item {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.top-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.top-rank--gold {
  color: var(--primary-color);
  font-size: 28px;
}

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

.top-cover {
  width: 120px;
  flex-shrink: 0;
  position: relative;
  padding-top: calc(120px * 0.5625);
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
}

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

.top-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.top-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.top-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.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;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-color);
}

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

.player-play-icon {
  padding-left: 4px;
}

.detail-header {
  margin: 30px 0;
}

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

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

.detail-section__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.detail-section__content {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 15px;
}

.detail-section__content p {
  margin-bottom: 12px;
}

.detail-info {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
}

.info-item {
  margin-bottom: 12px;
  display: flex;
  line-height: 1.6;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: var(--text-color);
  min-width: 80px;
  flex-shrink: 0;
}

.info-value {
  color: var(--text-secondary);
  flex: 1;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--hover-bg);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

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

.video-card--related {
  margin-bottom: 0;
}

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

.footer__text {
  font-size: 14px;
  opacity: 0.9;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .header__container {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .header__logo {
    margin-bottom: 8px;
  }

  .header__nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header__nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

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

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .video-meta {
    font-size: 12px;
    margin-bottom: 6px;
  }

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

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

  .page-desc {
    font-size: 14px;
  }

  .top-item {
    padding: 12px;
    gap: 12px;
  }

  .top-rank {
    font-size: 20px;
    min-width: 30px;
  }

  .top-rank--gold {
    font-size: 24px;
  }

  .top-cover {
    width: 80px;
    padding-top: calc(80px * 0.5625);
  }

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

  .top-meta,
  .top-desc {
    font-size: 13px;
  }

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

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

  .detail-section__title {
    font-size: 18px;
  }

  .detail-section__content {
    font-size: 14px;
  }

  .info-item {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .info-label {
    margin-bottom: 4px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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

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