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

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0099FF;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  white-space: nowrap;
  padding: 0.5rem 0;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #0099FF;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0099FF;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

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

.intro-section h2 {
  margin-bottom: 1rem;
  color: #333;
}

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

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

.video-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

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

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

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

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

.video-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e0e0e0;
  position: relative;
}

.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;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.video-one-line {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-header {
  background: #fff;
  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;
  margin-bottom: 0.5rem;
  color: #333;
}

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

.page--top .top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-list__item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.top-list__item:last-child {
  border-bottom: none;
}

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

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0099FF;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-cover {
  width: 120px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
}

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

.top-info {
  flex: 1;
}

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

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

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

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

.top-desc {
  color: #666;
  line-height: 1.5;
}

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

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

.video-player {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.player-play-icon {
  font-size: 2rem;
  color: #0099FF;
}

.detail-header h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

.detail-module h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #0099FF;
  padding-left: 1rem;
}

.module-content {
  color: #666;
  line-height: 1.8;
  font-size: 1rem;
}

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

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-item .label {
  color: #999;
  font-weight: 500;
  min-width: 60px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: #e8f4ff;
  color: #0099FF;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

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

.video-card--related {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 2rem;
  text-align: center;
  color: #999;
  margin-top: 3rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0099FF;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  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: 999;
}

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

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

.ui-style-0 .hero-section,
.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ui-style-3 .hero-section,
.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ui-style-5 .hero-section,
.ui-style-6 .hero-section,
.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

  .main-nav {
    gap: 1rem;
    justify-content: space-between;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

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

  .video-cover {
    aspect-ratio: 3/4;
  }

  .video-info {
    padding: 0.75rem;
  }

  .video-title {
    font-size: 0.95rem;
  }

  .video-one-line {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }

  .top-list__item {
    flex-direction: column;
  }

  .top-rank {
    align-self: flex-start;
  }

  .top-cover {
    width: 100%;
  }

  .detail-module {
    padding: 1.5rem;
  }

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

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}
