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

:root {
  --primary-color: #0099FF;
  --secondary-color: #FF6700;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body.ui-style-0 { --primary-color: #000; --secondary-color: #FF0050; }
body.ui-style-1 { --primary-color: #000; --secondary-color: #FF4500; }
body.ui-style-2 { --primary-color: #fff; --secondary-color: #FF6B35; background: #fff; }
body.ui-style-3 { --primary-color: #fff; --secondary-color: #FF0066; background: #fff; }
body.ui-style-4 { --primary-color: #fff; --secondary-color: #E50914; background: #fff; }
body.ui-style-5 { --primary-color: #141414; --secondary-color: #E50914; background: #141414; color: #fff; }
body.ui-style-6 { --primary-color: #1a1a2e; --secondary-color: #0f3460; background: #1a1a2e; color: #eee; }
body.ui-style-7 { --primary-color: #0c1821; --secondary-color: #1b4965; background: #0c1821; color: #eee; }
body.ui-style-8 { --primary-color: #141414; --secondary-color: #00B140; background: #141414; color: #eee; }
body.ui-style-9 { --primary-color: #000; --secondary-color: #fff; background: #000; color: #fff; }
body.ui-style-10 { --primary-color: #00C75A; --secondary-color: #00E676; background: #f9f9f9; }
body.ui-style-11 { --primary-color: #0099FF; --secondary-color: #FF6B35; background: #fff; }
body.ui-style-12 { --primary-color: #FF6700; --secondary-color: #FF4500; background: #fff; }
body.ui-style-13 { --primary-color: #00A1D6; --secondary-color: #FB7299; background: #fff; }
body.ui-style-14 { --primary-color: #0066CC; --secondary-color: #FF6600; background: #f8f9fa; }

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

.site-nav {
  background: var(--primary-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

body.ui-style-5 .site-nav,
body.ui-style-6 .site-nav,
body.ui-style-7 .site-nav,
body.ui-style-8 .site-nav,
body.ui-style-9 .site-nav {
  background: rgba(0,0,0,0.95);
}

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

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 20px;
}

body.ui-style-2 .site-logo,
body.ui-style-3 .site-logo,
body.ui-style-4 .site-logo {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: visible;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  display: block;
  font-size: 14px;
}

body.ui-style-2 .nav-links a,
body.ui-style-3 .nav-links a,
body.ui-style-4 .nav-links a,
body.ui-style-10 .nav-links a,
body.ui-style-11 .nav-links a,
body.ui-style-12 .nav-links a,
body.ui-style-13 .nav-links a,
body.ui-style-14 .nav-links a {
  color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

body.ui-style-2 .nav-links a:hover,
body.ui-style-2 .nav-links a.active,
body.ui-style-3 .nav-links a:hover,
body.ui-style-3 .nav-links a.active,
body.ui-style-4 .nav-links a:hover,
body.ui-style-4 .nav-links a.active {
  background: var(--secondary-color);
  color: #fff;
}

.home-main,
.list-main,
.detail-main {
  min-height: 60vh;
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 20px;
  color: #fff;
}

body.ui-style-2 .hero-section,
body.ui-style-3 .hero-section,
body.ui-style-10 .hero-section,
body.ui-style-11 .hero-section,
body.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: var(--text-color);
}

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

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.intro-section {
  padding: 40px 0;
}

.intro-text {
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
  color: #666;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

body.ui-style-5 .intro-text,
body.ui-style-6 .intro-text,
body.ui-style-7 .intro-text,
body.ui-style-8 .intro-text,
body.ui-style-9 .intro-text {
  background: rgba(255,255,255,0.05);
  color: #ccc;
}

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

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

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

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

.more-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.more-link:hover {
  opacity: 0.7;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

body.ui-style-5 .video-card,
body.ui-style-6 .video-card,
body.ui-style-7 .video-card,
body.ui-style-8 .video-card,
body.ui-style-9 .video-card {
  background: rgba(255,255,255,0.05);
}

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

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

.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;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  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;
  margin-bottom: 8px;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.ui-style-5 .video-title,
body.ui-style-6 .video-title,
body.ui-style-7 .video-title,
body.ui-style-8 .video-title,
body.ui-style-9 .video-title {
  color: #fff;
}

.video-meta {
  font-size: 13px;
  color: #999;
  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;
}

body.ui-style-5 .video-one-line,
body.ui-style-6 .video-one-line,
body.ui-style-7 .video-one-line,
body.ui-style-8 .video-one-line,
body.ui-style-9 .video-one-line {
  color: #ccc;
}

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

.page-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.page-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

body.ui-style-5 .page-desc,
body.ui-style-6 .page-desc,
body.ui-style-7 .page-desc,
body.ui-style-8 .page-desc,
body.ui-style-9 .page-desc {
  color: #ccc;
}

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

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

body.ui-style-5 .top-item,
body.ui-style-6 .top-item,
body.ui-style-7 .top-item,
body.ui-style-8 .top-item,
body.ui-style-9 .top-item {
  background: rgba(255,255,255,0.05);
}

.top-item:hover {
  transform: translateX(5px);
}

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

.top-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-cover {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-color);
}

body.ui-style-5 .top-title,
body.ui-style-6 .top-title,
body.ui-style-7 .top-title,
body.ui-style-8 .top-title,
body.ui-style-9 .top-title {
  color: #fff;
}

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

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

body.ui-style-5 .top-desc,
body.ui-style-6 .top-desc,
body.ui-style-7 .top-desc,
body.ui-style-8 .top-desc,
body.ui-style-9 .top-desc {
  color: #ccc;
}

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

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

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

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  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: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #000;
  margin-left: 5px;
}

.detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--text-color);
  text-align: center;
}

.detail-info {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

body.ui-style-5 .detail-info,
body.ui-style-6 .detail-info,
body.ui-style-7 .detail-info,
body.ui-style-8 .detail-info,
body.ui-style-9 .detail-info {
  background: rgba(255,255,255,0.05);
}

.info-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  font-size: 15px;
}

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

.info-list dd {
  color: var(--text-color);
}

body.ui-style-5 .info-list dd,
body.ui-style-6 .info-list dd,
body.ui-style-7 .info-list dd,
body.ui-style-8 .info-list dd,
body.ui-style-9 .info-list dd {
  color: #fff;
}

.detail-module {
  margin-bottom: 40px;
}

.module-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-color);
  padding-left: 12px;
  border-left: 4px solid var(--secondary-color);
}

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

body.ui-style-5 .module-content,
body.ui-style-6 .module-content,
body.ui-style-7 .module-content,
body.ui-style-8 .module-content,
body.ui-style-9 .module-content {
  color: #ccc;
}

.module-content p {
  margin-bottom: 15px;
}

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

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.site-footer {
  background: var(--primary-color);
  color: #fff;
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
}

body.ui-style-2 .site-footer,
body.ui-style-3 .site-footer,
body.ui-style-4 .site-footer,
body.ui-style-10 .site-footer,
body.ui-style-11 .site-footer,
body.ui-style-12 .site-footer,
body.ui-style-13 .site-footer,
body.ui-style-14 .site-footer {
  background: #f5f5f5;
  color: var(--text-color);
}

.footer-text {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-note {
  font-size: 12px;
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
  }

  .nav-links {
    gap: 3px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .site-logo {
    font-size: 18px;
    margin-right: 10px;
  }

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

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

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

  .top-item {
    flex-direction: column;
    gap: 15px;
  }

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

  .top-link {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
    height: auto;
  }

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

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

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

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

@media (max-width: 480px) {
  .nav-links a {
    padding: 5px 6px;
    font-size: 12px;
  }

  .site-logo {
    font-size: 16px;
  }
}
