
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
}

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

nav {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul li a:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.site-intro {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

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

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

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

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

.video-card .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.video-card .one-line {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.6;
}

.video-card .genre,
.video-card .tags {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.rank-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.date-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.video-list {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.video-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.video-item:last-child {
  border-bottom: none;
}

.video-item h4 {
  margin-bottom: 0.5rem;
}

.video-item h4 a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 1rem;
}

.more-link a:hover {
  text-decoration: underline;
}

.detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.detail-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.detail-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.basic-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.basic-info dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  line-height: 1.8;
}

.basic-info dt {
  font-weight: bold;
  color: var(--secondary-color);
}

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

.one-line-section,
.summary-section,
.review-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.8;
}

.summary-section p,
.review-section p {
  line-height: 1.9;
  text-indent: 2em;
}

.related-section {
  margin-top: 3rem;
}

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

.related-card {
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

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

.related-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--primary-color);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

footer {
  background: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

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

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

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

  .basic-info dl {
    grid-template-columns: 70px 1fr;
  }

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