/* 视野影视 - ui-style-5 - Layout A */

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

main {
  flex: 1;
}

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

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

section h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #555;
}

.site-intro, .intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1.8;
}

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

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.video-card h3 a {
  color: #333;
}

.video-card h3 a:hover {
  color: #667eea;
  text-decoration: none;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.tags {
  font-size: 0.85rem;
  color: #888;
  margin: 0.5rem 0;
}

.one-line {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.8rem;
  line-height: 1.6;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.list-item h3 a {
  color: #333;
}

.list-item h3 a:hover {
  color: #667eea;
  text-decoration: none;
}

.ranked {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

.ranked .content {
  flex: 1;
}

.review-snippet {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.date {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.timeline-item .content {
  flex: 1;
}

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

.compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.compact-card {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.compact-card h4 {
  font-size: 1rem;
  margin: 0 0 0.3rem 0;
}

.compact-card h4 a {
  color: #333;
}

.compact-card h4 a:hover {
  color: #667eea;
}

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

.detail-page h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 1rem;
}

.basic-info ul {
  list-style: none;
  padding: 0;
}

.basic-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.summary p, .review p {
  line-height: 1.8;
  text-align: justify;
}

.related-card {
  padding: 1rem;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.3rem;
  }

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

  .container {
    padding: 1rem 0.5rem;
  }

  .site-intro, .intro, .video-detail {
    padding: 1rem;
  }
}