/* 华影视 - modern-clean */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #2980b9;
}

nav {
  background: #2c3e50;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav .container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s;
  border-radius: 4px;
}

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

@media (max-width: 768px) {
  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.2rem;
  }
}

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

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

.hero h1 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.8rem;
}

.hero .intro {
  margin: 0 0 1rem 0;
  color: #555;
  font-size: 1.1rem;
}

.hero .tags {
  color: #888;
  font-size: 0.95rem;
}

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

.section h2 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-size: 1.5rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

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

.video-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.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 {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.video-card .meta span {
  background: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #666;
}

.video-card .oneline {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 4px;
  transition: background 0.3s;
}

.list-item:hover {
  background: #e9ecef;
}

.list-item a {
  flex: 1;
  font-weight: 500;
}

.list-item .year {
  color: #888;
  font-size: 0.9rem;
}

.topic-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.topic-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.3s;
}

.topic-card:hover {
  transform: scale(1.05);
  color: white;
}

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

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #3498db;
  color: white;
  border-radius: 4px;
  transition: background 0.3s;
}

.more-link a:hover {
  background: #2980b9;
  color: white;
}

.page-desc {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #3498db;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background 0.3s;
}

.ranking-item:hover {
  background: #e9ecef;
}

.rank-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3498db;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
}

.ranking-item:nth-child(1) .rank-number {
  background: #f39c12;
}

.ranking-item:nth-child(2) .rank-number {
  background: #95a5a6;
}

.ranking-item:nth-child(3) .rank-number {
  background: #cd7f32;
}

.ranking-content {
  flex: 1;
}

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

.ranking-content .meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.ranking-content .meta span {
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #666;
}

.ranking-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

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

.topic-title {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

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

.latest-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background 0.3s;
}

.latest-item:hover {
  background: #e9ecef;
}

.latest-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  color: #3498db;
  font-weight: bold;
  font-size: 1.1rem;
}

.latest-content {
  flex: 1;
}

.latest-content h3 {
  margin: 0 0 0.5rem 0;
}

.latest-content .meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.latest-content .meta span {
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #666;
}

.latest-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

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

.detail h1 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-size: 2rem;
  border-bottom: 3px solid #3498db;
  padding-bottom: 1rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.meta-item {
  color: #555;
  font-size: 0.95rem;
}

.meta-item strong {
  color: #2c3e50;
}

.highlight {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
}

.highlight h2 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.highlight p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.summary {
  margin-bottom: 2rem;
}

.summary h2 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.summary p {
  margin: 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.review {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.review h2 {
  margin: 0 0 1rem 0;
  color: #856404;
  font-size: 1.3rem;
}

.review p {
  margin: 0;
  color: #856404;
  font-size: 0.95rem;
  line-height: 1.8;
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.related h2 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

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

.related-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.related-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero .intro {
    font-size: 1rem;
  }

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

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

  .detail-meta {
    grid-template-columns: 1fr;
  }

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

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

  .latest-date {
    width: 100%;
    text-align: left;
  }
}
