:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #ddd;
  --hover-color: #34495e;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  text-align: center;
  padding: 20px;
  font-size: 28px;
  font-weight: bold;
}

.logo a {
  color: #ecf0f1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-nav {
  background: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.nav-list a {
  display: block;
  padding: 15px 10px;
  color: #ecf0f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-list a:hover,
.nav-list .active a {
  background: var(--hover-color);
  transform: translateY(-2px);
}

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

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 30px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  color: #fff;
  font-size: 32px;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.intro-section {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  line-height: 2;
}

.intro-section p {
  font-size: 16px;
  color: #555;
}

.list-section {
  margin-bottom: 50px;
}

.list-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  color: var(--secondary-color);
}

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

.video-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

.rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.video-card h3 a {
  color: var(--secondary-color);
}

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

.video-card .oneline {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.more-link a:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

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

.page-header h1 {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-intro {
  font-size: 16px;
  color: #666;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto;
}

.list-content {
  margin-top: 30px;
}

.detail-page {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.detail-content h1 {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.detail-content h2 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.detail-content section {
  margin-bottom: 30px;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 16px;
}

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

.one-line p,
.summary p,
.review p {
  font-size: 16px;
  line-height: 2;
  color: #555;
}

.related {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

footer {
  background: var(--secondary-color);
  color: #ecf0f1;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .nav-list a {
    padding: 12px 5px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 20px;
  }

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

  .container {
    padding: 15px;
  }

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

  .detail-page {
    padding: 20px;
  }

  .detail-content h1 {
    font-size: 26px;
  }

  .page-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 22px;
    padding: 15px;
  }

  .nav-list a {
    padding: 10px 3px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .list-section h2 {
    font-size: 22px;
  }

  .detail-content h1 {
    font-size: 22px;
  }
}

.ui-style-0 {
  --primary-color: #3498db;
  --accent-color: #e74c3c;
}
