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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

.ui-style-14 {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --accent-color: #ea4335;
  --bg-color: #ffffff;
  --text-color: #202124;
  --border-color: #dadce0;
  --hover-color: #f1f3f4;
}

.ui-style-14 .site-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ui-style-14 .nav-link {
  padding: 12px 16px;
  color: var(--text-color);
  font-weight: 500;
  transition: background 0.2s;
}

.ui-style-14 .nav-link:hover,
.ui-style-14 .nav-link.active {
  background: var(--hover-color);
  color: var(--primary-color);
}

.ui-style-14 .video-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ui-style-14 .video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
}

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

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #1a73e8);
  padding: 16px 0;
}

.main-nav {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  display: inline-block;
  padding: 12px 16px;
  font-size: 15px;
}

.layout--s2 {
  display: flex;
  min-height: 100vh;
}

.layout__side {
  width: 240px;
  background: white;
  border-right: 1px solid var(--border-color);
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.layout__side .site-logo {
  font-size: 28px;
  margin-bottom: 32px;
  display: block;
}

.layout__side .main-nav {
  flex-direction: column;
  gap: 8px;
}

.layout__side .nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
}

.side-info {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.layout__main {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-section {
  margin-bottom: 48px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
}

.hero-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hero-slide {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2/3;
}

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

.hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 16px;
  color: white;
}

.hero-info h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.hero-info p {
  font-size: 13px;
  opacity: 0.9;
}

.intro-section {
  background: white;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 48px;
  border: 1px solid var(--border-color);
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.intro-section p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #555;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
}

.section-more {
  color: var(--primary-color);
  font-size: 14px;
}

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

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

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

.video-info {
  padding: 16px;
}

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

.video-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

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

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

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

.page--l3 .top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.top-list__item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.top-list__item:hover {
  background: var(--hover-color);
}

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

.top-rank {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
}

.top-cover {
  width: 80px;
  margin-right: 20px;
  flex-shrink: 0;
}

.top-cover img {
  border-radius: 4px;
}

.top-info {
  flex: 1;
  min-width: 0;
}

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.top-info .video-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

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

.filter-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  align-self: flex-start;
  position: sticky;
  top: 80px;
}

.filter-sidebar h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #666;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page--l2 .page-main {
  flex: 1;
  min-width: 0;
}

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

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

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.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-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  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;
  margin-left: 4px;
  color: var(--primary-color);
}

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

.detail-info {
  background: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

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

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

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

.detail-module {
  background: white;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text-color);
}

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

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

.tag {
  padding: 8px 16px;
  background: var(--hover-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-color);
}

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

.related-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

.site-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 32px 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .layout--s2 {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
  }

  .layout__side .main-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .side-info {
    display: none;
  }

  .layout__main {
    padding: 20px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .main-nav {
    width: 100%;
    font-size: 14px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }

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

  .hero-slider {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .video-info {
    padding: 12px;
  }

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

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

  .filter-sidebar {
    width: 100%;
    position: static;
  }

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

  .top-rank {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .top-cover {
    width: 60px;
    margin-right: 12px;
  }

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

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

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