/* Global Enhancements */
h1, h2, h3 {
  color: #1a3a6e;
  margin-bottom: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; }

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

.intro { margin-bottom: 2rem; }
.intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-top: 1rem;
}

/* Video Grid - Index & List Pages */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  background: #fafafa;
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.video-card .meta {
  color: #777;
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.video-card .oneline {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Ranking List */
.rank-list {
  list-style: none;
  margin-top: 1rem;
}

.rank-list li {
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  background: #fafafa;
  border-left: 4px solid #2c5aa0;
  border-radius: 4px;
}

.rank-list .rank {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #2c5aa0;
  color: white;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  margin-right: 1rem;
  font-weight: bold;
}

/* More Link */
.more-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.more-link a {
  color: #2c5aa0;
  font-weight: bold;
}

/* Full Video List - daquan.html */
.video-list-full .video-item {
  background: #fafafa;
  padding: 1.2rem;
  margin: 1rem 0;
  border-radius: 6px;
  border-left: 4px solid #2c5aa0;
}

.video-list-full h3 {
  margin: 0 0 0.5rem 0;
}

.video-list-full .meta {
  color: #777;
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.video-list-full .summary {
  color: #555;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.video-list-full .tags {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Ranking List Page - top.html */
.ranking-list .rank-item {
  display: flex;
  align-items: flex-start;
  background: #fafafa;
  padding: 1.2rem;
  margin: 1rem 0;
  border-radius: 6px;
}

.ranking-list .rank-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2c5aa0, #4a7bc8);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  border-radius: 8px;
  margin-right: 1.5rem;
}

.ranking-list .rank-content {
  flex: 1;
}

.ranking-list h3 {
  margin: 0 0 0.5rem 0;
}

/* Topic Group - topic.html */
.topic-group {
  margin-bottom: 3rem;
}

.topic-group h2 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2c5aa0;
}

/* Latest Grid - latest.html */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.latest-item {
  background: #fafafa;
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  position: relative;
}

.latest-item .date-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #2c5aa0;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.latest-item h3 {
  margin: 0 0 0.5rem 0;
  padding-right: 60px;
}

/* Video Detail Page */
.video-detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-detail h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #2c5aa0;
}

.basic-info .info-list {
  list-style: none;
  margin-top: 1rem;
}

.basic-info .info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
}

.basic-info .info-list li:last-child {
  border-bottom: none;
}

.one-line .highlight {
  font-size: 1.15rem;
  color: #2c5aa0;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: #f0f5ff;
  border-left: 4px solid #2c5aa0;
  border-radius: 4px;
}

.summary p, .review p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

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

.related-card {
  background: #fafafa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s;
}

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

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

.related-card .meta {
  color: #777;
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

.related-card .oneline {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

  section { padding: 1rem; }

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

  .ranking-list .rank-num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.2rem;
    margin-right: 1rem;
  }

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

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

  .video-detail {
    padding: 1.2rem;
  }

  .video-detail h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  main { padding: 0 0.5rem; }

  .video-card, .latest-item, .related-card {
    padding: 1rem;
  }

  .one-line .highlight {
    font-size: 1rem;
    padding: 0.8rem;
  }
}
