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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.main-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.nav-logo a {
  font-size: 24px;
  font-weight: bold;
  color: #0099FF;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links li a {
  padding: 8px 16px;
  display: block;
  border-radius: 4px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: #f0f0f0;
  color: #0099FF;
}

.home-main,
.list-main,
.detail-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

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

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 16px;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.section-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0099FF;
}

.section-title {
  font-size: 24px;
  color: #1a1a1a;
}

.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.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 153, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #999;
  flex-wrap: wrap;
}

.meta-year,
.meta-type,
.meta-region {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #0099FF;
}

.page-header h1 {
  font-size: 28px;
  color: #1a1a1a;
}

.page--top {
  max-width: 1000px;
  margin: 0 auto;
}

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

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

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

.top-rank {
  counter-increment: top-counter;
  font-size: 36px;
  font-weight: bold;
  color: #0099FF;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

.top-rank::before {
  content: counter(top-counter);
}

.top-cover {
  width: 150px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.top-title a {
  color: #1a1a1a;
}

.top-title a:hover {
  color: #0099FF;
}

.top-one-line {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
}

.top-meta {
  font-size: 14px;
  color: #999;
}

.page--with-sidebar {
  display: flex;
  gap: 30px;
}

.layout__side--filters {
  width: 200px;
  flex-shrink: 0;
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.layout__main {
  flex: 1;
}

.page--grouped .group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0099FF;
  color: #1a1a1a;
}

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

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

.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;
  background: rgba(0, 153, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(0, 153, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

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

.detail-title {
  font-size: 32px;
  color: #1a1a1a;
}

.detail-info {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.info-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
}

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

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

.detail-module {
  margin-bottom: 30px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.module-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: #1a1a1a;
  padding-bottom: 12px;
  border-bottom: 2px solid #0099FF;
}

.module-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 6px 14px;
  background: #e3edf7;
  color: #0099FF;
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-top: 50px;
}

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

.video-card--related {
  background: #fff;
}

.main-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #0099FF;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

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

.back-to-top:hover {
  background: #0088EE;
  transform: translateY(-4px);
}

.ui-style-2 {
  background-color: #fff;
}

.ui-style-2 .nav-logo a {
  color: #FF6700;
}

.ui-style-2 .section-header {
  border-bottom-color: #FF6700;
}

.ui-style-2 .play-icon {
  background: rgba(255, 103, 0, 0.9);
}

.ui-style-2 .player-play-btn {
  background: rgba(255, 103, 0, 0.9);
}

.ui-style-2 .player-play-btn:hover {
  background: rgba(255, 103, 0, 1);
}

.ui-style-2 .top-rank {
  color: #FF6700;
}

.ui-style-2 .module-title {
  border-bottom-color: #FF6700;
}

.ui-style-2 .tag-item {
  background: #ffe5d9;
  color: #FF6700;
}

.ui-style-2 .back-to-top {
  background: #FF6700;
}

.ui-style-2 .back-to-top:hover {
  background: #FF5500;
}

@media (max-width: 768px) {
  .nav-container {
    height: auto;
    padding: 10px 15px;
  }

  .nav-links {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links li a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .hero-section {
    padding: 30px 20px;
  }

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

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

  .top-item {
    flex-direction: column;
    padding: 16px;
  }

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

  .top-cover {
    width: 100%;
  }

  .top-cover img {
    height: auto;
  }

  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

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

  .detail-info {
    padding: 16px;
  }

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

  .detail-module {
    padding: 16px;
  }

  .module-title {
    font-size: 18px;
  }

  .module-content p {
    font-size: 15px;
  }

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