/* 观影影视 - UI Style: style-10, Layout: A */

* {
  box-sizing: border-box;
}

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

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

/* 导航 */
nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav a {
  display: block;
  padding: 1rem 0.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav a:hover {
  color: #007bff;
  background: #f0f8ff;
}

/* 响应式导航 */
@media (max-width: 768px) {
  nav ul {
    padding: 0 0.5rem;
  }

  nav a {
    padding: 0.8rem 0.3rem;
    font-size: 0.9rem;
  }
}

/* 头部 */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.site-header h1 {
  font-size: 2rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

/* 介绍区 */
.site-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-intro p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}

/* 通用标题 */
.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #1a1a1a;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

/* 卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  background: #fff;
  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 12px rgba(0,0,0,0.15);
}

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

.video-card a {
  color: #1a1a1a;
  text-decoration: none;
}

.video-card a:hover {
  color: #007bff;
}

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

.video-card .desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 列表样式 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

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

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

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

.video-item a:hover {
  color: #007bff;
}

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

.video-item .desc {
  color: #666;
  margin: 0.5rem 0 0;
}

/* 入口卡片 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.entry-card h3 {
  margin: 0 0 1rem;
}

.entry-card a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.entry-card p {
  margin: 0;
  opacity: 0.9;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.more-link a:hover {
  background: #0056b3;
}

/* 排行榜 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rank-number {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
  min-width: 3rem;
  text-align: center;
}

.rank-content {
  flex: 1;
}

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

.rank-content .review {
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid #e0e0e0;
}

/* 分组 */
.year-group {
  margin-bottom: 2rem;
}

.group-title {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

/* 专题 */
.topic-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topic-intro p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}

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

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

.topic-item h3 {
  margin: 0 0 0.5rem;
}

.topic-item .oneline {
  font-weight: 500;
  color: #333;
  margin: 0.5rem 0;
}

.topic-item .summary {
  color: #666;
  line-height: 1.7;
  margin: 0.5rem 0;
}

.topic-item .review {
  color: #007bff;
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f8ff;
  border-radius: 4px;
}

/* 最新整理 */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
  padding-left: 7rem;
}

.date-tag {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  background: #007bff;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

/* 详情页 */
.detail-page {
  max-width: 900px;
}

.video-detail {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-detail h1 {
  font-size: 1.8rem;
  margin: 0 0 2rem;
  color: #1a1a1a;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1rem;
}

.video-detail h2 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: #333;
}

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

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

.highlight {
  font-size: 1.1rem;
  color: #007bff;
  font-weight: 500;
  line-height: 1.7;
}

.summary p, .review p {
  line-height: 1.8;
  color: #666;
}

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

.related-card {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

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

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

/* 页脚 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  margin: 0;
}

/* 通用文本样式 */
.intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
  }

  .site-header h1 {
    font-size: 1.5rem;
  }

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

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

  .rank-number {
    font-size: 1.5rem;
  }

  .latest-item {
    padding-left: 1rem;
    padding-top: 3rem;
  }

  .date-tag {
    left: 1rem;
    top: 1rem;
  }

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