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

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

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

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

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

.site-nav a:hover,
.site-nav a.active {
  background: #ff6700;
  color: #fff;
}

.main-content {
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, #ff6700 0%, #ff8533 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

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

.intro-section {
  background: #fff;
  padding: 40px 0;
  border-radius: 8px;
  margin-bottom: 40px;
}

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

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

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

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

.more-link {
  color: #ff6700;
  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: 24px;
}

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

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

.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 8px 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: #e0e0e0;
  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;
  color: #333;
  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;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: #fff;
  border-radius: 8px;
}

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

.page-header p {
  font-size: 16px;
  color: #666;
}

.detail-page .container {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 40px;
}

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  max-width: 900px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 32px;
  color: #ff6700;
}

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

.detail-header h1 {
  font-size: 28px;
  color: #333;
}

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

.detail-module:last-of-type {
  border-bottom: none;
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

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

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

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

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

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

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 13px;
  color: #666;
}

.related-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

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

.ui-style-12 .site-logo a,
.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #ff6700 0%, #ff8533 100%);
}

.ui-style-12 .site-nav a:hover,
.ui-style-12 .site-nav a.active {
  background: #ff6700;
}

.ui-style-12 .player-play-icon,
.ui-style-12 .more-link {
  color: #ff6700;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .site-nav a {
    padding: 6px 8px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

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

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

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

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

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

  .video-one-line {
    -webkit-line-clamp: 1;
  }

  .detail-page .container {
    padding: 20px;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

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

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