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

:root {
  --primary-color: #0099FF;
  --secondary-color: #FF6700;
  --bg-color: #FFFFFF;
  --text-color: #333333;
  --border-color: #E0E0E0;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.ui-style-11 {
  --primary-color: #0099FF;
  --secondary-color: #FF6700;
}

.ui-style-11 .main-nav {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.main-nav {
  background: var(--primary-color);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  padding: 15px 0;
}

.nav-brand a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 20px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
}

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

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.95;
}

.site-intro {
  padding: 40px 20px;
  background: #F8F9FA;
}

.site-intro p {
  line-height: 1.8;
  font-size: 16px;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary-color);
  position: relative;
  padding-left: 15px;
}

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

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

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

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

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

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

.list-page {
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.page-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.page--l3 .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.top-item:hover {
  box-shadow: var(--hover-shadow);
  transform: translateX(4px);
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

.top-item:nth-child(1) .top-rank {
  color: #FFD700;
}

.top-item:nth-child(2) .top-rank {
  color: #C0C0C0;
}

.top-item:nth-child(3) .top-rank {
  color: #CD7F32;
}

.top-cover {
  width: 120px;
  height: 68px;
  margin: 0 20px;
  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: 18px;
  margin-bottom: 8px;
}

.top-title a {
  color: inherit;
  text-decoration: none;
}

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

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

.top-desc {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page--l4 .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

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

.detail-page {
  min-height: calc(100vh - 200px);
}

.video-player-section {
  background: #000;
  margin-bottom: 40px;
}

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

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

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

.player-play-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-left: 4px;
}

.detail-header {
  padding: 40px 0 20px;
}

.detail-header h1 {
  font-size: 32px;
  color: var(--text-color);
  line-height: 1.4;
}

.detail-info,
.detail-module {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-info h2,
.detail-module h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 16px;
  line-height: 1.8;
}

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

.info-list dd {
  margin-left: 0;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #F0F7FF;
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid #D0E7FF;
}

.related-section {
  border-bottom: none;
}

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

.video-card--related {
  font-size: 14px;
}

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

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

.site-footer {
  background: #2C3E50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  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: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .main-nav .container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-brand {
    text-align: center;
    padding: 12px 0;
  }

  .nav-menu {
    justify-content: space-around;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

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

  .hero-desc {
    font-size: 16px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

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

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

  .top-cover {
    width: 100px;
    height: 56px;
    margin: 0 12px;
  }

  .top-title {
    font-size: 16px;
  }

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

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

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