/* UI Style 11 */
:root {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
}

* {
  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: var(--text-color);
  background: var(--bg-color);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: var(--hover-color);
}

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

.site-intro {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--hover-color);
  border-radius: 8px;
}

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

.site-intro p {
  line-height: 1.8;
}

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

.video-section h2 {
  font-size: 1.5rem;
  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(280px, 1fr));
  gap: 1.5rem;
}

.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-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  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: 1.1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  margin-bottom: 2rem;
}

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

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

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

.layout__side--filters {
  background: var(--hover-color);
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.filter-group p {
  font-size: 0.9rem;
  color: #666;
}

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

.top-list__item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}

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

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

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

.top-one-line {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.top-meta {
  font-size: 0.85rem;
  color: #999;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

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

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

.detail-page {
  max-width: 1000px;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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: transform 0.3s, background 0.3s;
}

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

.player-play-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.detail-header {
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
}

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

.detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.detail-module p {
  line-height: 1.8;
  color: #666;
}

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

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

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

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

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--hover-color);
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
}

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

.video-card--related {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.site-footer {
  background: #f8f8f8;
  padding: 2rem;
  text-align: center;
  color: #666;
  margin-top: 3rem;
}

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

  .nav-links {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

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

  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }

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

  .video-info {
    padding: 0.75rem;
  }

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

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

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

.back-to-top:hover {
  transform: scale(1.1);
}

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