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

.ui-style-9 {
  --primary-color: #000;
  --secondary-color: #fff;
  --accent-color: #d4af37;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --bg-dark: #1a1a1a;
  --bg-card: #2a2a2a;
  background: var(--primary-color);
  color: var(--text-primary);
}

.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 15px;
  color: var(--text-secondary);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-color);
}

.home-page,
.list-page,
.detail-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
  border-radius: 16px;
  padding: 80px 40px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,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-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 300;
}

.intro-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 60px;
  line-height: 1.8;
  font-size: 16px;
  color: var(--text-secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.featured-section,
.categories-section {
  margin-bottom: 60px;
}

.featured-section h2,
.categories-section h2,
.page-header h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}

.featured-section h2::before,
.categories-section h2::before,
.page-header h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

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

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

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.3);
}

.video-card__link {
  display: block;
}

.video-cover {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.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: 20px;
}

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

.video-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0.7;
}

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

.category-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.category-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.2);
}

.category-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.category-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.video-player {
  max-width: 1200px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: none;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: var(--accent-color);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.video-header h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text-primary);
  font-weight: 700;
}

.video-info-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.video-info-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

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

.info-list dt {
  font-weight: 600;
  color: var(--text-secondary);
}

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

.detail-module {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.detail-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.detail-module p,
.detail-module div {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 15px;
}

.highlight-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 20px;
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  font-size: 14px;
  color: var(--accent-color);
}

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

.video-card--related {
  background: rgba(42, 42, 42, 0.6);
}

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
}

.site-footer p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

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

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

  .hero-subtitle {
    font-size: 16px;
  }

  .intro-section {
    padding: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .category-links {
    grid-template-columns: 1fr;
  }

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

  .related-grid {
    grid-template-columns: 1fr;
  }

  .player-play-btn {
    width: 70px;
    height: 70px;
  }

  .player-play-icon {
    font-size: 24px;
  }
}

.page--top .video-grid {
  display: block;
}

.page--top .video-card {
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.page--top .video-cover {
  width: 200px;
  min-width: 200px;
  padding-top: 0;
  height: 120px;
  flex-shrink: 0;
}

.page--top .video-cover img {
  position: static;
  height: 100%;
  object-fit: cover;
}

.page--top .video-info {
  flex: 1;
}

@media (max-width: 768px) {
  .page--top .video-card {
    flex-direction: column;
  }

  .page--top .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

  .page--top .video-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }
}
