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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

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;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: nowrap;
}

nav a {
  padding: 8px 15px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
}

nav a:hover {
  background: rgba(0,0,0,0.05);
}

main {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

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

.hero-section h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.section {
  margin-bottom: 50px;
}

.section-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ddd;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #222;
}

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

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

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

.video-cover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e0e0e0;
  position: relative;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  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: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

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

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.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 ease;
  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: #333;
  margin-left: 4px;
}

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

.detail-main-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}

.info-item {
  font-size: 14px;
}

.info-label {
  font-weight: 600;
  color: #555;
  margin-right: 8px;
}

.info-value {
  color: #333;
}

.module {
  margin-bottom: 35px;
}

.module-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
  padding-left: 12px;
  border-left: 4px solid #667eea;
}

.module-content {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

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

.related-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #222;
}

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

.video-card--related {
  background: white;
}

.page--grid .video-grid {
  margin-top: 30px;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side--filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.filter-list {
  list-style: none;
}

.filter-list li {
  padding: 8px 0;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.filter-list li:hover {
  color: #667eea;
}

.page--top .top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.top-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

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

.top-rank {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
}

.top-rank--1 { color: #ff6b6b; }
.top-rank--2 { color: #ffa500; }
.top-rank--3 { color: #ffd700; }

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

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

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

.group-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.group-title {
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

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

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: #5568d3;
  transform: translateY(-3px);
}

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

footer {
  background: #2c3e50;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

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

.footer-text {
  font-size: 14px;
  opacity: 0.9;
}

body.ui-style-6 {
  background: #1a1a2e;
  color: #eee;
}

body.ui-style-6 header {
  background: #16213e;
}

body.ui-style-6 .logo {
  color: #00d4ff;
}

body.ui-style-6 nav a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
}

body.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

body.ui-style-6 .section-title {
  color: #eee;
}

body.ui-style-6 .video-card {
  background: #16213e;
  border: 1px solid #2a3f5f;
}

body.ui-style-6 .video-title {
  color: #eee;
}

body.ui-style-6 .video-meta,
body.ui-style-6 .video-one-line {
  color: #aaa;
}

body.ui-style-6 .page-header,
body.ui-style-6 .detail-content {
  background: #16213e;
  border: 1px solid #2a3f5f;
}

body.ui-style-6 .page-title,
body.ui-style-6 .detail-main-title {
  color: #eee;
}

body.ui-style-6 .page-description {
  color: #bbb;
}

body.ui-style-6 .info-grid {
  background: #0f1b2e;
}

body.ui-style-6 .module-title {
  color: #eee;
  border-left-color: #00d4ff;
}

body.ui-style-6 .module-content {
  color: #ccc;
}

body.ui-style-6 .layout__side--filters {
  background: #16213e;
  border: 1px solid #2a3f5f;
}

body.ui-style-6 .filter-title {
  color: #eee;
}

body.ui-style-6 .filter-list li {
  color: #aaa;
}

body.ui-style-6 .filter-list li:hover {
  color: #00d4ff;
}

body.ui-style-6 .top-list__items {
  background: #16213e;
  border: 1px solid #2a3f5f;
}

body.ui-style-6 .top-item {
  border-bottom-color: #2a3f5f;
}

body.ui-style-6 .top-item:hover {
  background: #1a2942;
}

body.ui-style-6 .top-title {
  color: #eee;
}

body.ui-style-6 .top-desc {
  color: #aaa;
}

body.ui-style-6 .group-header {
  border-bottom-color: #2a3f5f;
}

body.ui-style-6 .group-title {
  color: #eee;
}

body.ui-style-6 .back-to-top {
  background: #00d4ff;
}

body.ui-style-6 .back-to-top:hover {
  background: #00b8e6;
}

body.ui-style-6 footer {
  background: #0f1b2e;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    justify-content: center;
    font-size: 12px;
    gap: 5px;
  }

  nav a {
    padding: 6px 10px;
  }

  .hero-section {
    padding: 50px 20px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .hero-section p {
    font-size: 16px;
  }

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

  .video-cover {
    height: 100px;
  }

  .video-info {
    padding: 10px;
  }

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

  .video-meta,
  .video-one-line {
    font-size: 12px;
  }

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

  .layout__side--filters {
    position: static;
  }

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

  .top-rank {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .top-cover {
    width: 100px;
    height: 66px;
  }

  .section-title,
  .related-title {
    font-size: 22px;
  }

  .detail-main-title {
    font-size: 26px;
  }

  .module-title {
    font-size: 18px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
}
