:root {
  --primary-color: #d32f2f;
  --primary-hover: #b71c1c;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-gray: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
}

body.ui-style-8 {
  --primary-color: #d32f2f;
  --primary-hover: #b71c1c;
}

.main-content {
  min-height: calc(100vh - 60px - 80px);
}

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

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section .subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.intro-section {
  padding: 60px 20px;
  background: var(--white);
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.intro-content p {
  margin-bottom: 20px;
}

.intro-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.intro-content a:hover {
  border-bottom-color: var(--primary-color);
}

.featured-section,
.ranking-section,
.latest-section {
  padding: 60px 20px;
}

.featured-section {
  background: var(--bg-gray);
}

.latest-section {
  background: var(--bg-gray);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: 600;
}

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

.video-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-card h3,
.video-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.video-card h3 a,
.video-card h4 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.video-card h3 a:hover,
.video-card h4 a:hover {
  color: var(--primary-color);
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.year {
  color: var(--text-light);
  font-size: 0.9rem;
}

.video-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

.category-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

.category-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.video-item {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.video-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.video-item h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.video-item h3 a:hover {
  color: var(--primary-color);
}

.video-info {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.video-item p {
  color: var(--text-light);
  line-height: 1.6;
}

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

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.more-link a:hover {
  background: var(--primary-hover);
}

.page-header {
  padding: 40px 0;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 700;
}

.page-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.list-content {
  padding-bottom: 60px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-item {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.rank-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.rank-content h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.rank-content h3 a:hover {
  color: var(--primary-color);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.timeline-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 80px;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-content h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.timeline-content h3 a:hover {
  color: var(--primary-color);
}

.topic-group {
  margin-bottom: 50px;
}

.group-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-color);
  font-weight: 600;
}

.video-detail {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow);
  margin: 40px 0;
}

.detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 700;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.video-detail section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.video-detail section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.video-detail h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

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

.info-item {
  padding: 12px;
  background: var(--bg-gray);
  border-radius: 6px;
  font-size: 0.95rem;
}

.tags-item {
  grid-column: 1 / -1;
}

.tags-item .tag {
  margin-right: 8px;
  margin-bottom: 8px;
  display: inline-block;
}

.one-line .highlight {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
  font-weight: 500;
  padding: 20px;
  background: #fff3e0;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.summary-content p,
.review-content p {
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
  text-align: justify;
}

.review-content {
  padding: 20px;
  background: #f3f4f6;
  border-radius: 8px;
  font-style: italic;
}

.related .video-grid {
  margin-top: 20px;
}

.site-footer {
  background: #2c3e50;
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section .subtitle {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

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

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

  .page-header h1 {
    font-size: 1.8rem;
  }

  .ranking-item {
    flex-direction: column;
    gap: 12px;
  }

  .rank-number {
    font-size: 1.5rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 12px;
  }

  .video-detail {
    padding: 24px 16px;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }

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

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

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

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

  .featured-section,
  .ranking-section,
  .latest-section {
    padding: 40px 20px;
  }
}
