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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

.ui-style-12 {
  --primary-color: #FF6700;
  --secondary-color: #FF8533;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #FF7F2E;
}

.site-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.site-logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.2);
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

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

.hero-slider {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.hero-title {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.slider-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.slider-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.slider-item:hover {
  transform: translateY(-8px);
}

.slider-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.slider-info {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 1rem;
}

.slider-info h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.intro-section {
  background: white;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.intro-section p {
  line-height: 1.8;
  color: #555;
}

.video-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary-color);
}

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

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

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255,103,0,0.2);
}

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

.video-cover {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f0f0f0;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #999;
}

.video-meta span {
  padding: 0.2rem 0.6rem;
  background: #f5f5f5;
  border-radius: 12px;
}

.page-header {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-desc {
  color: #666;
  font-size: 1.1rem;
}

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-list__item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.top-list__item:hover {
  background: #fef5f0;
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.top-item-link {
  flex: 1;
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

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

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.top-one-line {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.top-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #999;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 8px;
  display: inline-block;
}

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

.video-player-section {
  background: #000;
  margin-bottom: 2rem;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255,103,0,0.4);
}

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

.player-play-icon {
  font-size: 2rem;
  color: white;
  display: block;
  line-height: 1;
}

.detail-page {
  background: #f8f9fa;
}

.detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.detail-title {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}

.detail-module {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-module h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.detail-module p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
  line-height: 1.8;
}

.info-list dt {
  font-weight: 600;
  color: var(--text-color);
}

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

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
}

.related-section {
  margin-top: 3rem;
}

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

.video-card--related .video-cover {
  height: 260px;
}

.site-footer {
  background: #2d3436;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 999;
}

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

.back-to-top.show {
  display: flex;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  .site-nav a {
    padding: 0.4rem 0.6rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

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

  .video-cover {
    height: 200px;
  }

  .video-card--related .video-cover {
    height: 200px;
  }

  .slider-item {
    flex: 0 0 200px;
  }

  .slider-item img {
    height: 280px;
  }

  .detail-title {
    font-size: 1.8rem;
  }

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

  .top-rank {
    margin-bottom: 0.5rem;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
  }
}

@media (max-width: 480px) {
  .site-logo a {
    font-size: 1.4rem;
  }

  .site-nav {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .site-nav a {
    padding: 0.3rem 0.5rem;
  }

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

  .video-cover {
    height: 180px;
  }
}
