/* UI Style 6: Deep Blue/Dark Gray + White Text + Blue/Yellow Accent */
:root {
  --primary-color: #1a2a6c;
  --secondary-color: #fdbb2d;
  --bg-dark: #0f1419;
  --bg-mid: #1a2332;
  --bg-light: #2a3544;
  --text-light: #ffffff;
  --text-dim: #b0b8c3;
  --accent-blue: #4a9eff;
  --accent-yellow: #fdbb2d;
  --border-color: #3a4556;
  --shadow: rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

body.ui-style-6 {
  font-weight: 400;
}

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

header {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-yellow);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(253, 187, 45, 0.3);
}

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

nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--text-light);
  background: var(--accent-blue);
  transform: translateY(-1px);
}

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

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-mid) 100%);
  border-radius: 16px;
  padding: 60px 40px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 8px 24px var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-section h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

.hero-section p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-blue);
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
}

.section-more {
  color: var(--accent-yellow);
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.section-more:hover {
  transform: translateX(5px);
}

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

.video-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
}

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

.video-cover {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-dark);
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  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: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-blue);
}

.page-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-light);
}

.page-description {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
}

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

.top-list__item {
  background: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

.top-list__item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
}

.top-list__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.top-rank {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-yellow));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  box-shadow: 0 4px 8px rgba(74, 158, 255, 0.4);
}

.top-list__item:nth-child(1) .top-rank {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.top-list__item:nth-child(2) .top-rank {
  background: linear-gradient(135deg, #C0C0C0, #808080);
}

.top-list__item:nth-child(3) .top-rank {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.top-cover {
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-dark);
}

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

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

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.top-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.top-desc {
  font-size: 13px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-player {
  background: var(--bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(74, 158, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.5);
}

.player-play-btn:hover {
  background: var(--accent-blue);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(74, 158, 255, 0.7);
}

.player-play-icon {
  font-size: 32px;
  color: white;
  display: block;
  line-height: 1;
  margin-left: 6px;
}

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

.detail-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
}

.detail-info-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}

.detail-info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent-yellow);
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 8px;
}

.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-dim);
}

.info-value {
  flex: 1;
  color: var(--text-light);
}

.content-module {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-blue);
}

.module-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent-yellow);
}

.module-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

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

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

.tag {
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-color));
  color: var(--text-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(74, 158, 255, 0.3);
}

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

.related-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-blue);
}

.video-card--related {
  height: 100%;
}

footer {
  background: var(--bg-dark);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dim);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-color));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.5);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.7);
}

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    padding: 12px 20px;
  }

  nav ul {
    justify-content: center;
    font-size: 13px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

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

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

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

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .top-list__link {
    flex-direction: column;
    text-align: center;
  }

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

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

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

  nav ul {
    gap: 4px;
  }

  nav a {
    padding: 6px 8px;
    font-size: 12px;
  }
}
