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

:root {
  --primary-color: #FF6700;
  --secondary-color: #fff;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #e0e0e0;
  --hover-color: #ff8533;
}

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: #FF6700;
  --secondary-color: #fff;
  --hover-color: #ff8533;
}

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

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

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

.site-logo a:hover {
  color: var(--hover-color);
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-color);
}

.site-main {
  min-height: calc(100vh - 140px);
}

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

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

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.intro-section {
  padding: 40px 0;
  background: var(--card-bg);
}

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  color: #666;
}

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.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: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

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

.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: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
  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.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-header {
  background: var(--card-bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.page-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.top-list__item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

.top-list__item .video-cover {
  width: 120px;
  padding-top: 0;
  height: 68px;
  border-radius: 8px;
  flex-shrink: 0;
}

.top-list__item .video-cover img {
  position: static;
  width: 100%;
  height: 100%;
}

.top-list__item .video-info {
  flex: 1;
  padding: 0;
}

.top-list__item .video-title a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.top-list__item .video-title a:hover {
  color: var(--primary-color);
}

.group {
  margin-bottom: 40px;
}

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

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

.video-player-section {
  background: #000;
  padding: 40px 0;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 103, 0, 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: rgba(255, 103, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: white;
  margin-left: 4px;
}

.detail-header {
  background: var(--card-bg);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
}

.detail-info {
  background: var(--card-bg);
  padding: 30px 0;
}

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

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

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

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

.detail-module {
  padding: 40px 0;
  background: var(--bg-color);
}

.detail-module:nth-child(even) {
  background: var(--card-bg);
}

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

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.3s;
}

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

.detail-related {
  padding: 40px 0;
  background: var(--card-bg);
}

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

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

.site-footer {
  background: var(--text-color);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding: 12px 16px;
  }

  .site-nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: 20px;
    padding: 0 16px;
  }

  .intro-section {
    padding: 24px 0;
  }

  .video-section {
    padding: 24px 0;
  }

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

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

  .video-card {
    border-radius: 8px;
  }

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .page-header {
    padding: 24px 0;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .top-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-list__item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

  .video-player {
    padding: 0 16px;
  }

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

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

  .detail-header h1 {
    font-size: 24px;
  }

  .detail-module {
    padding: 24px 0;
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 8px;
    font-size: 14px;
  }

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

@media (max-width: 480px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

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

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