/* 清风影视 - UI风格: 新中式 - 布局: F */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

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

/* 头部导航 */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

header nav ul li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 5px;
  display: block;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
}

header nav ul li a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* 移动端导航优化 */
@media (max-width: 768px) {
  header nav ul {
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  header nav ul li {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px;
  }

  header nav ul li a {
    font-size: 13px;
    padding: 12px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  header nav ul li a {
    font-size: 12px;
    padding: 10px 2px;
  }
}

/* 主要内容区 */
main {
  margin-top: 30px;
  margin-bottom: 50px;
}

h1 {
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

h2 {
  font-size: 1.8em;
  color: #34495e;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  font-weight: 600;
}

h3 {
  font-size: 1.3em;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.intro, .site-intro, .topic-intro {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  line-height: 1.9;
}

.site-intro p, .topic-intro p {
  margin-bottom: 15px;
  text-align: justify;
}

.site-intro a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed #667eea;
}

.site-intro a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* 视频网格布局 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.video-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102,126,234,0.2);
}

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s;
}

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

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.video-meta span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.video-desc, .video-card p {
  color: #5a6c7d;
  line-height: 1.7;
  margin-top: 12px;
}

/* 列表布局 */
.video-list, .top-list, .topic-list, .latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card .rank {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.topic-item, .latest-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.topic-item:hover, .latest-item:hover {
  box-shadow: 0 6px 20px rgba(102,126,234,0.15);
}

.topic-desc, .latest-desc {
  color: #5a6c7d;
  line-height: 1.8;
  margin-top: 12px;
}

.latest-item .date {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-bottom: 10px;
  font-weight: 500;
}

/* 入口卡片 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.entry-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102,126,234,0.2);
}

.entry-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.entry-card p {
  color: #5a6c7d;
  line-height: 1.8;
}

/* 详情页 */
.detail-page article {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.detail-page section {
  margin-bottom: 30px;
}

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

.basic-info li {
  padding: 10px 0;
  border-bottom: 1px solid #ecf0f1;
  color: #5a6c7d;
}

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

.highlight {
  font-size: 1.2em;
  color: #667eea;
  font-weight: 600;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

.summary p, .review p {
  text-align: justify;
  line-height: 2;
  color: #2c3e50;
}

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

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

.related-card:hover {
  background: #ecf0f1;
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.related-card a {
  color: #2c3e50;
  text-decoration: none;
}

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

.related-card p {
  color: #5a6c7d;
  font-size: 0.95em;
  line-height: 1.6;
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 30px 0;
  margin-top: 50px;
  text-align: center;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  margin-bottom: 15px;
}

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

footer nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.9;
}

footer nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

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

  .detail-page article {
    padding: 25px;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }

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

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

/* Hero区域 */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.hero h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 年份分组 */
.year-group {
  margin-bottom: 40px;
}

.year-group h2 {
  color: #667eea;
}
