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

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FF6700;
}

.nav-main {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.nav-main a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

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

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

.hero-section h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.intro-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro-section h2 {
  color: #FF6700;
  margin-bottom: 1rem;
}

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

.video-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #FF6700;
  padding-left: 1rem;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  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%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 103, 0, 0.9);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10;
}

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

.page-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

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

.page--grid,
.page--with-sidebar,
.page--top,
.page--grouped {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.layout__side--filters {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.layout__side--filters h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #FF6700;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  gap: 1rem;
}

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

.rank-badge--top {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-badge--normal {
  background: #999;
}

.video-cover--small {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
}

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

.group {
  margin-bottom: 2rem;
}

.group__title {
  font-size: 1.3rem;
  color: #FF6700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #FF6700;
  padding-bottom: 0.5rem;
}

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

.detail-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.video-player {
  width: 100%;
  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;
  border-radius: 50%;
  background: rgba(255, 103, 0, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.player-play-btn:hover {
  background: rgba(255, 103, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: white;
  font-size: 2rem;
  display: block;
}

.detail-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.detail-module {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.detail-module:last-child {
  border-bottom: none;
}

.detail-module h2 {
  font-size: 1.3rem;
  color: #FF6700;
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
  line-height: 1.8;
}

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

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

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
}

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

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

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #FF6700;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #e55d00;
  transform: translateY(-5px);
}

.ui-style-0 .logo,
.ui-style-0 .nav-main a:hover,
.ui-style-0 .hero-section,
.ui-style-0 .rank-badge {
  background: linear-gradient(135deg, #000 0%, #333 100%);
}

.ui-style-1 .logo { color: #FF6700; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #FF6700 0%, #FF4500 100%); }

.ui-style-2 .logo { color: #1890ff; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%); }

.ui-style-3 .logo { color: #52c41a; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); }

.ui-style-4 .logo { color: #f5222d; }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #f5222d 0%, #cf1322 100%); }

.ui-style-5 .logo { color: #722ed1; }
.ui-style-5 .hero-section { background: linear-gradient(135deg, #722ed1 0%, #531dab 100%); }

.ui-style-6 .logo { color: #13c2c2; }
.ui-style-6 .hero-section { background: linear-gradient(135deg, #13c2c2 0%, #08979c 100%); }

.ui-style-7 .logo { color: #fa8c16; }
.ui-style-7 .hero-section { background: linear-gradient(135deg, #fa8c16 0%, #d46b08 100%); }

.ui-style-8 .logo { color: #eb2f96; }
.ui-style-8 .hero-section { background: linear-gradient(135deg, #eb2f96 0%, #c41d7f 100%); }

.ui-style-9 .logo { color: #2f54eb; }
.ui-style-9 .hero-section { background: linear-gradient(135deg, #2f54eb 0%, #1d39c4 100%); }

.ui-style-10 .logo { color: #00C75A; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00C75A 0%, #00a047 100%); }

.ui-style-11 .logo { color: #0099FF; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%); }

.ui-style-12 .logo { color: #FF6700; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #FF6700 0%, #ff8c00 100%); }

.ui-style-13 .logo { color: #00A1D6; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00A1D6 0%, #0081b3 100%); }

.ui-style-14 .logo { color: #003f8c; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #003f8c 0%, #002766 100%); }

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

  .nav-main {
    gap: 1rem;
    font-size: 0.9rem;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
  }

  .main-content {
    padding: 0 1rem;
  }

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

  .video-cover {
    height: 150px;
  }

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

  .hero-section h1 {
    font-size: 1.3rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

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

  .video-cover--small {
    width: 100%;
    height: 120px;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .video-grid,
  .group__grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .video-cover {
    height: 180px;
  }
}
