:root {
  --primary-color: #FF6700;
  --secondary-color: #FFB366;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --border-color: #e5e5e5;
  --hover-bg: #f5f5f5;
}

* {
  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: var(--text-color);
  background: var(--bg-color);
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

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

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

.intro-section {
  padding: 48px 0;
  background: #fafafa;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.video-list-section {
  padding: 48px 0;
}

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

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-card__link {
  display: block;
}

.video-cover {
  position: relative;
  padding-top: 56.25%;
  background: #f0f0f0;
  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: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  padding: 32px 0;
  background: #fafafa;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

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

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

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

.player-play-icon {
  display: block;
  font-size: 36px;
  color: var(--primary-color);
  line-height: 80px;
}

.video-detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.detail-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 24px;
}

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

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

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

.info-item {
  font-size: 15px;
  line-height: 1.8;
}

.info-label {
  color: var(--text-light);
  display: inline-block;
  min-width: 60px;
}

.detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

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

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

.tag-item {
  display: inline-block;
  padding: 6px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--primary-color);
  color: #fff;
}

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

.video-card--related {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

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

.page--top {
  background: #fafafa;
  min-height: 100vh;
}

.top-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.top-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

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

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

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

.top-cover {
  width: 120px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 16px;
  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-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}

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

.site-footer {
  background: #2c2c2c;
  color: #fff;
  padding: 32px 0;
  text-align: center;
  margin-top: 48px;
}

.footer-text {
  font-size: 14px;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

  .top-rank {
    font-size: 24px;
    min-width: 50px;
  }

  .top-cover {
    width: 90px;
    height: 51px;
  }

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

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