* {
  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: #fff;
  background: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ui-style-7 {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  color: #e0e0e0;
}

.ui-style-7 a {
  color: #64b5f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ui-style-7 a:hover {
  color: #ffc107;
}

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

.site-header {
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 181, 246, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: #64b5f6;
  text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: #e0e0e0;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(100, 181, 246, 0.2);
  color: #64b5f6;
  transform: translateY(-2px);
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

.timeline-layout .hero-section {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #64b5f6;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(100, 181, 246, 0.3);
  line-height: 1.3;
}

.site-intro {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 50px;
  border: 1px solid rgba(100, 181, 246, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #b0b0b0;
}

.group {
  margin-bottom: 60px;
}

.group-title, .group__title {
  font-size: 28px;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid #64b5f6;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(100, 181, 246, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(100, 181, 246, 0.3);
  border-color: #64b5f6;
}

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

.video-cover {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: linear-gradient(135deg, #203a43 0%, #2c5364 100%);
}

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

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

.video-info {
  padding: 20px;
}

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

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

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

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

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

.video-player {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(100, 181, 246, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(100, 181, 246, 0.5);
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffc107;
  box-shadow: 0 6px 30px rgba(255, 193, 7, 0.6);
}

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

.title-section {
  margin-bottom: 30px;
}

.detail-title {
  font-size: 42px;
  font-weight: 700;
  color: #64b5f6;
  text-shadow: 0 2px 10px rgba(100, 181, 246, 0.3);
  line-height: 1.3;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid rgba(100, 181, 246, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.module-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(100, 181, 246, 0.3);
}

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

.info-item {
  display: flex;
  gap: 10px;
}

.info-label {
  color: #888;
  font-weight: 600;
  white-space: nowrap;
}

.info-value {
  color: #e0e0e0;
  flex: 1;
}

.detail-module {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(100, 181, 246, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.module-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.module-content p:last-child {
  margin-bottom: 0;
}

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

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(100, 181, 246, 0.2);
  border: 1px solid rgba(100, 181, 246, 0.3);
  border-radius: 20px;
  color: #64b5f6;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(100, 181, 246, 0.3);
  transform: translateY(-2px);
}

.related-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid rgba(100, 181, 246, 0.2);
}

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

.video-card--related {
  background: rgba(255, 255, 255, 0.05);
}

.page--grid, .page--with-sidebar, .page--top, .page--grouped {
  min-height: 400px;
}

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

.page-header .page-title {
  font-size: 36px;
}

.page-desc {
  font-size: 16px;
  color: #b0b0b0;
  margin-top: 15px;
  line-height: 1.6;
}

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

.layout__side--filters {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(100, 181, 246, 0.1);
}

.layout__side--filters h2 {
  font-size: 20px;
  color: #ffc107;
  margin-bottom: 15px;
}

.filter-section p {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.6;
}

.page--top .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(100, 181, 246, 0.1);
}

.top-list__item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(10px);
  box-shadow: 0 4px 20px rgba(100, 181, 246, 0.2);
}

.rank-badge {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(100, 181, 246, 0.2);
  color: #64b5f6;
}

.rank-badge--top {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

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

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

.top-list__item:hover .item-cover img {
  transform: scale(1.1);
}

.item-info {
  flex: 1;
}

.item-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.item-title a {
  color: #fff;
}

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

.item-desc {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.5;
}

.site-footer {
  background: rgba(15, 32, 39, 0.95);
  border-top: 1px solid rgba(100, 181, 246, 0.2);
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

.site-footer p {
  color: #888;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(100, 181, 246, 0.9);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(100, 181, 246, 0.5);
  z-index: 999;
}

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

.back-to-top:hover {
  background: #ffc107;
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(255, 193, 7, 0.6);
}

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

  .main-nav {
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav a {
    padding: 6px 12px;
    font-size: 14px;
    flex-shrink: 0;
  }

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

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

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

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

  .layout__side--filters {
    position: static;
  }

  .video-info {
    padding: 15px;
  }

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

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

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

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