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

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

a {
  text-decoration: none;
  color: inherit;
}

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

.site-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.site-nav a:hover {
  background: #f0f0f0;
}

.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.detail-main {
  max-width: 1200px;
}

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

.hero-slider {
  margin: -2rem -2rem 2rem;
  overflow: hidden;
  background: #000;
}

.hero-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-slider__track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  scroll-snap-align: start;
}

.hero-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0.7;
}

.hero-info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.btn-watch {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #ff6700;
  color: #fff;
  border-radius: 4px;
  margin-top: 1rem;
  transition: all 0.3s;
}

.btn-watch:hover {
  background: #ff8533;
  transform: translateY(-2px);
}

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

.intro-section h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.intro-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #ff6700;
}

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

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

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

.video-card__link {
  display: block;
}

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

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

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #999;
}

.video-meta span {
  padding: 0.25rem 0.5rem;
  background: #f5f5f5;
  border-radius: 3px;
}

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

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-desc {
  color: #666;
  line-height: 1.8;
}

.page--grid {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  margin-bottom: 1rem;
}

.layout__main {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
}

.page--top {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
}

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

.top-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: all 0.3s;
}

.top-item:hover {
  background: #f9f9f9;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6700;
  min-width: 40px;
  text-align: center;
}

.top-cover {
  width: 80px;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 0.5rem;
}

.top-info h3 a {
  color: #333;
  transition: color 0.3s;
}

.top-info h3 a:hover {
  color: #ff6700;
}

.top-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.top-oneline {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

.page--grouped .group {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #ff6700;
}

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

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 103, 0, 0.9);
  color: #fff;
  font-size: 2rem;
  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 {
  margin-left: 5px;
}

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

.detail-header h1 {
  font-size: 2rem;
}

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

.detail-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

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

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

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

.detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #ff6700;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #666;
  transition: all 0.3s;
}

.tag:hover {
  background: #ff6700;
  color: #fff;
}

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

.related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #ff6700;
}

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

.video-card--related .video-cover {
  padding-top: 130%;
}

.ui-style-13 {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  --accent-color: #ff6700;
}

.ui-style-13 .nav-logo,
.ui-style-13 .section-title,
.ui-style-13 .detail-module h2,
.ui-style-13 .related-section h2 {
  color: var(--primary-color);
}

.ui-style-13 .btn-watch,
.ui-style-13 .player-play-btn {
  background: var(--accent-color);
}

.ui-style-13 .video-card:hover {
  border-color: var(--secondary-color);
}

.ui-style-13 .top-rank {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1024px) {
  .page--with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }

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

@media (max-width: 768px) {
  .site-nav {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .site-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .site-main {
    padding: 1rem;
  }

  .hero-slide img {
    height: 250px;
  }

  .hero-info {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .hero-info h2 {
    font-size: 1.3rem;
  }

  .intro-section,
  .page-header,
  .detail-header,
  .detail-info,
  .detail-module,
  .related-section {
    padding: 1.5rem;
  }

  .intro-section h1,
  .page-header h1,
  .detail-header h1 {
    font-size: 1.5rem;
  }

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

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

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

  .top-rank {
    font-size: 1.2rem;
  }

  .top-cover {
    width: 100%;
    height: 200px;
  }

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

@media (max-width: 480px) {
  .site-nav {
    gap: 0.5rem;
  }

  .site-nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }

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

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

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

#back-to-top:hover {
  background: #ff8533;
  transform: translateY(-3px);
}

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