:root {
  --primary-color: #e53935;
  --primary-light: #ff6f60;
  --primary-dark: #ab000d;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.intro {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.intro p {
  margin-bottom: 10px;
}

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

.intro a {
  color: var(--primary-color);
  text-decoration: underline;
}

.hero {
  margin-bottom: 40px;
}

.video-section, .links-section, .related-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

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

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

.video-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.video-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
}

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

.link-card {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

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

.video-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.video-item .rank {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.video-item .date {
  display: inline-block;
  background: var(--primary-light);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 10px;
}

.video-item:has(.rank) .video-title {
  margin-left: 45px;
}

.video-item .video-title {
  margin-bottom: 8px;
}

.video-item .video-meta {
  margin-bottom: 8px;
}

.video-item .video-review {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

.video-detail {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.detail-meta span {
  font-size: 14px;
  color: var(--text-light);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-color);
}

.detail-section {
  margin-bottom: 25px;
}

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

.detail-section p {
  line-height: 1.8;
  color: var(--text-color);
}

.highlight {
  font-size: 16px;
  color: var(--primary-dark);
  font-weight: 500;
  padding: 15px;
  background: #fff5f5;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.review {
  font-style: italic;
  color: var(--text-light);
  background: #fafafa;
  padding: 15px;
  border-radius: 4px;
}

.footer {
  background: #fff;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .main-content {
    padding: 20px 0;
  }

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

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

  .video-card {
    padding: 15px;
  }

  .video-detail {
    padding: 20px 15px;
  }

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

  .detail-meta {
    flex-direction: column;
    gap: 8px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  z-index: 99;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}
