
/* Reset and Base */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

/* Typography */
.page-title {
  font-size: 32px;
  margin-bottom: 30px;
  color: #1890ff;
  text-align: center;
}

.section-title {
  font-size: 24px;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1890ff;
  color: #333;
}

/* Site Intro */
.site-intro,
.page-intro,
.topic-intro {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topic-intro p {
  margin-bottom: 15px;
}

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

.video-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.video-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.video-title a:hover {
  color: #1890ff;
}

.video-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.meta-item {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 4px;
}

.video-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* List Entrance */
.entrance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.entrance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
}

.entrance-card:hover {
  transform: scale(1.05);
}

.entrance-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.entrance-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* Video List */
.video-list {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

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

.item-title {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  flex: 1;
}

.item-title:hover {
  color: #1890ff;
}

.item-meta {
  color: #999;
  font-size: 14px;
}

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

.more-link a {
  color: #1890ff;
  text-decoration: none;
  font-size: 16px;
}

/* Year Group */
.year-group {
  margin-bottom: 50px;
}

.year-title {
  font-size: 28px;
  color: #1890ff;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #1890ff;
}

/* Ranking List */
.ranking-list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ranking-item {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

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

.rank-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  background: #e6f7ff;
  border-radius: 8px;
  margin-right: 20px;
}

.rank-content {
  flex: 1;
}

.rank-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.rank-title a {
  color: #333;
  text-decoration: none;
}

.rank-title a:hover {
  color: #1890ff;
}

.rank-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #999;
}

.rank-review {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Topic List */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.topic-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.topic-item-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.topic-item-title a {
  color: #333;
  text-decoration: none;
}

.topic-item-title a:hover {
  color: #1890ff;
}

.topic-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #999;
}

.topic-intro {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

.topic-reason {
  font-size: 14px;
  color: #1890ff;
  line-height: 1.6;
  padding: 10px;
  background: #e6f7ff;
  border-radius: 4px;
}

/* Latest List */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-item {
  display: flex;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.latest-date {
  flex-shrink: 0;
  width: 120px;
  padding: 10px;
  background: #1890ff;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  margin-right: 20px;
}

.latest-content {
  flex: 1;
}

.latest-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.latest-title a {
  color: #333;
  text-decoration: none;
}

.latest-title a:hover {
  color: #1890ff;
}

.latest-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #999;
}

.latest-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Detail Page */
.detail-page {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-title {
  font-size: 32px;
  color: #1890ff;
  margin-bottom: 30px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.info-item {
  font-size: 15px;
  line-height: 1.6;
}

.highlight-text {
  font-size: 18px;
  color: #1890ff;
  line-height: 1.8;
  padding: 20px;
  background: #e6f7ff;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.summary-text {
  font-size: 16px;
  color: #333;
  line-height: 2;
  text-align: justify;
}

.review-text {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 8px;
  border-left: 4px solid #1890ff;
}

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

.related-card {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: background 0.3s;
}

.related-card:hover {
  background: #e6f7ff;
}

.related-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-title a {
  color: #333;
  text-decoration: none;
}

.related-title a:hover {
  color: #1890ff;
}

.related-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.footer-nav a:hover {
  background: rgba(255,255,255,0.1);
}

.copyright {
  font-size: 14px;
  color: #999;
}

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

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

  .section-title {
    font-size: 20px;
  }

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

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

  .ranking-item {
    flex-direction: column;
  }

  .rank-number {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .latest-item {
    flex-direction: column;
  }

  .latest-date {
    width: 100%;
    margin-bottom: 15px;
    margin-right: 0;
  }

  .detail-page {
    padding: 20px;
  }

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

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

/* Active nav */
.nav a.active {
  background: #1890ff;
  color: #fff;
}

.nav a.active:hover {
  background: #40a9ff;
}
