
/* Reset and Base */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 2rem 0;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #2c2c2c;
  border-left: 4px solid #1a1a1a;
  padding-left: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: #333;
}

h4 {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #444;
}

a {
  color: #0066cc;
  transition: color 0.3s;
}

a:hover {
  color: #004499;
}

/* Header */
nav .active {
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

/* Footer */
footer {
  background: #2c2c2c;
  color: #ccc;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

footer .container {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  font-size: 0.85rem;
  color: #999;
}

/* Home Page */
.intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.8;
}

.quick-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-link:hover {
  background: #333;
}

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

.video-card {
  background: white;
  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;
}

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

.video-card h3 a,
.video-card h4 a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.video-card h3 a:hover,
.video-card h4 a:hover {
  color: #0066cc;
}

.meta {
  display: flex;
  gap: 0.75rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #666;
}

.meta span {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.desc {
  color: #555;
  line-height: 1.6;
  margin: 0.75rem 0;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  background: #e8f4f8;
  color: #0066cc;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

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

.video-item {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

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

.video-item h4 {
  display: inline;
  margin-right: 1rem;
}

.video-item .year {
  color: #999;
  font-size: 0.9rem;
}

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

.more-link a {
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.entry-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.entry-card:hover {
  transform: translateY(-4px);
}

.entry-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.3rem;
}

.entry-card p {
  color: #666;
  margin-top: 1rem;
  line-height: 1.7;
}

/* List Pages */
.list-page h1 {
  text-align: center;
  margin: 2rem 0;
}

.list-page .intro {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.year-group {
  margin-bottom: 3rem;
}

.year-title {
  background: #1a1a1a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* Top Page */
.rank-list {
  max-width: 900px;
  margin: 2rem auto;
}

.rank-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.rank-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #1a1a1a;
  min-width: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-item:nth-child(1) .rank-number { color: #d4af37; }
.rank-item:nth-child(2) .rank-number { color: #c0c0c0; }
.rank-item:nth-child(3) .rank-number { color: #cd7f32; }

.rank-content {
  flex: 1;
}

.rank-content h3 {
  margin-top: 0;
}

.rank-content h3 a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.3rem;
}

.recommend {
  color: #555;
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Topic Page */
.topic-intro {
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.topic-intro p {
  margin-bottom: 1rem;
}

.topic-list {
  max-width: 900px;
  margin: 0 auto;
}

.topic-item {
  background: white;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-item h3 a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.3rem;
}

.topic-desc {
  margin-top: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Latest Page */
.latest-list {
  max-width: 900px;
  margin: 2rem auto;
}

.latest-item {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.latest-date {
  font-weight: bold;
  color: #666;
  min-width: 100px;
  font-size: 0.95rem;
}

.latest-content {
  flex: 1;
}

.latest-content h3 a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.2rem;
}

.latest-content p {
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Detail Page */
.detail-page .container {
  max-width: 900px;
}

.info-section,
.highlight-section,
.summary-section,
.review-section,
.related-section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.info-item {
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.info-item strong {
  color: #1a1a1a;
}

.highlight {
  font-size: 1.1rem;
  color: #0066cc;
  line-height: 1.7;
  font-weight: 500;
  padding: 1rem;
  background: #f0f8ff;
  border-radius: 4px;
}

.summary-content,
.review-content {
  line-height: 1.8;
  color: #444;
}

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

.related-item {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
  transition: background 0.3s;
}

.related-item:hover {
  background: #f0f0f0;
}

.related-item h4 a {
  color: #1a1a1a;
  text-decoration: none;
}

.related-item p {
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

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

  .rank-item {
    flex-direction: column;
    gap: 1rem;
  }

  .rank-number {
    min-width: auto;
  }

  .latest-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .latest-date {
    min-width: auto;
  }

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

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

  .entry-cards {
    grid-template-columns: 1fr;
  }
}
