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

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

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 32px;
  white-space: nowrap;
}

.main-nav a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #1a1a1a;
}

.layout--with-sidebar {
  padding: 40px 0;
}

.layout--with-sidebar .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.site-intro {
  background: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-intro h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

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

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

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

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

.more-link {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.more-link:hover {
  color: #764ba2;
}

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

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

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

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

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

.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: 48px;
  height: 48px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  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: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 13px;
  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;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 12px;
  color: #999;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.layout__sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-widget {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 12px;
}

.sidebar-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-nav a:hover {
  color: #667eea;
}

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}

.tag:hover {
  background: #667eea;
  color: white;
}

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

.sidebar-top-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rank-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  flex-shrink: 0;
}

.sidebar-top-list li:nth-child(1) .rank-badge { background: #ffd700; color: white; }
.sidebar-top-list li:nth-child(2) .rank-badge { background: #c0c0c0; color: white; }
.sidebar-top-list li:nth-child(3) .rank-badge { background: #cd7f32; color: white; }

.sidebar-top-list a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.sidebar-top-list a:hover {
  color: #667eea;
}

.page-main {
  padding: 40px 0;
}

.page-header {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

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

.top-list__item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.top-list__item .rank-badge {
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-size: 20px;
  border-radius: 8px;
}

.item-cover {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

.item-info h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s;
}

.item-info h3 a:hover {
  color: #667eea;
}

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

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

.detail-main {
  padding: 40px 0;
}

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

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

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

.player-play-btn {
  position: absolute;
  top: 50%;
  left: 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: #1a1a1a;
  margin-left: 4px;
}

.video-header {
  background: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.video-basic-info {
  background: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

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

.info-list dd {
  color: #1a1a1a;
}

.content-module {
  background: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-module h2 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 16px;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-section {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.related-section h2 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.site-footer {
  background: #2a2a2a;
  color: #999;
  padding: 32px 0;
  margin-top: 60px;
}

.site-footer p {
  text-align: center;
  font-size: 14px;
}

body.ui-style-14 {
  background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

body.ui-style-14 .site-header {
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
}

body.ui-style-14 .logo {
  color: white;
}

body.ui-style-14 .main-nav a {
  color: rgba(255,255,255,0.85);
}

body.ui-style-14 .main-nav a:hover {
  color: white;
}

body.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

body.ui-style-14 .more-link {
  color: #3b82f6;
}

body.ui-style-14 .more-link:hover {
  color: #1e3a8a;
}

body.ui-style-14 .sidebar-nav a:hover,
body.ui-style-14 .sidebar-top-list a:hover,
body.ui-style-14 .item-info h3 a:hover {
  color: #3b82f6;
}

body.ui-style-14 .tag:hover {
  background: #3b82f6;
  color: white;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 16px;
    font-size: 13px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

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

  .layout__sidebar {
    position: static;
  }

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

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

  .hero-section {
    padding: 40px 24px;
  }

  .site-intro,
  .video-basic-info,
  .content-module,
  .related-section,
  .page-header {
    padding: 24px;
  }

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

  .video-info {
    padding: 12px;
  }

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

  .top-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .item-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }
}
