
/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #2c3e50;
  line-height: 1.8;
  font-size: 16px;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-align: center;
  letter-spacing: 2px;
}

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

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

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* 主内容区 */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h1 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  color: #764ba2;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.intro, .site-intro {
  background: #f8f9fc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  margin-bottom: 2rem;
  line-height: 2;
}

.site-intro a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  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: 1.5rem;
  margin-top: 1.5rem;
}

.video-card {
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1rem;
}

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

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

.oneline {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 视频列表 */
.video-list {
  margin-top: 1.5rem;
}

.video-item {
  background: #fafbfc;
  border-left: 4px solid #667eea;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.video-item:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left-color: #764ba2;
}

.video-item h3 a, .video-item h4 a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
}

.video-item h3 a:hover, .video-item h4 a:hover {
  color: #667eea;
}

/* 快速导航卡片 */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.nav-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-8px);
}

.nav-card h3 a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
}

.nav-card p {
  margin-top: 0.8rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* 排行榜样式 */
.ranking-list {
  margin-top: 1.5rem;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.rank-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  min-width: 80px;
  text-align: center;
  margin-right: 1.5rem;
}

.ranking-item:nth-child(1) .rank-number { color: #f39c12; }
.ranking-item:nth-child(2) .rank-number { color: #95a5a6; }
.ranking-item:nth-child(3) .rank-number { color: #cd7f32; }

.rank-content {
  flex: 1;
}

.rank-content h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.rank-content h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.rank-content h2 a:hover {
  color: #667eea;
}

.tags {
  color: #764ba2;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.review {
  color: #555;
  line-height: 1.8;
  margin-top: 0.8rem;
}

/* 专题页样式 */
.topic-intro {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-left: none;
  font-size: 1.05rem;
}

.topic-list {
  margin-top: 1.5rem;
}

.topic-item {
  background: #fafbfc;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.topic-item:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.topic-item h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.topic-item h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.topic-item h2 a:hover {
  color: #667eea;
}

.topic-desc {
  margin-top: 1rem;
}

.topic-desc p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.highlight {
  background: #fffbea;
  padding: 0.8rem 1.2rem;
  border-left: 4px solid #f39c12;
  border-radius: 4px;
  font-style: italic;
  color: #555;
}

/* 最新页样式 */
.latest-list {
  margin-top: 1.5rem;
}

.latest-item {
  display: flex;
  align-items: flex-start;
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.latest-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.date-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  margin-right: 1.5rem;
  font-size: 0.9rem;
}

.latest-content {
  flex: 1;
}

.latest-content h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.latest-content h2 a {
  color: #2c3e50;
  text-decoration: none;
}

.latest-content h2 a:hover {
  color: #667eea;
}

.brief {
  color: #555;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* 大全页样式 */
.year-group {
  margin-bottom: 3rem;
}

.year-group h3 {
  font-size: 1.5rem;
  color: #667eea;
  border-bottom: 2px solid #e8ecf1;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

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

.video-detail section {
  margin-bottom: 2.5rem;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
  background: #fafbfc;
  padding: 1.5rem;
  border-radius: 8px;
}

.basic-info dt {
  font-weight: 600;
  color: #764ba2;
}

.basic-info dd {
  margin: 0;
  color: #555;
}

.oneline-text {
  font-size: 1.2rem;
  color: #667eea;
  font-style: italic;
  background: #f8f9fc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.summary p, .review p {
  line-height: 2;
  color: #444;
  text-indent: 2em;
}

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

.related-item {
  background: #fafbfc;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.related-item:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.related-item h3 {
  margin-top: 0;
  font-size: 1rem;
}

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

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

/* 页脚 */
footer {
  background: #2c3e50;
  color: white;
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
}

footer nav ul {
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

footer nav ul li {
  flex: none;
}

footer nav a {
  color: white;
  opacity: 0.8;
  font-size: 0.95rem;
  padding: 0.3rem 0.8rem;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
  main {
    margin: 1rem;
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.3rem;
  }

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

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

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

  .rank-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }

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

  .date-badge {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .basic-info dl {
    grid-template-columns: 80px 1fr;
    gap: 0.5rem;
  }

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