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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

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

a:hover {
  color: #c62828;
}

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

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 24px;
  font-weight: bold;
  color: #e53935;
  text-decoration: none;
}

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

.nav-menu li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu a {
  display: block;
  padding: 20px 15px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #e53935;
}

/* 移动端导航 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 10px;
  }

  .nav-logo a {
    font-size: 18px;
  }

  .nav-menu a {
    padding: 15px 5px;
    font-size: 14px;
  }
}

/* 主内容区 */
.main-content {
  padding: 30px 0;
  min-height: calc(100vh - 200px);
}

/* 首页样式 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
}

.hero-desc {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.intro-section {
  margin-bottom: 40px;
}

.intro-text {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 16px;
  line-height: 1.8;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e53935;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.video-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.video-title a {
  color: #333;
}

.video-title a:hover {
  color: #e53935;
}

.video-meta {
  margin-bottom: 10px;
}

.meta-item {
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 8px;
  color: #666;
}

.video-oneline {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.section-links {
  text-align: center;
  margin-top: 20px;
}

.link-more {
  display: inline-block;
  padding: 12px 30px;
  background: #e53935;
  color: #fff;
  border-radius: 25px;
  margin: 0 10px;
  transition: background 0.3s;
}

.link-more:hover {
  background: #c62828;
}

/* 列表页样式 */
.page-header {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.page-title {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

.page-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.list-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item.with-rank {
  display: flex;
}

.item-rank {
  font-size: 24px;
  font-weight: bold;
  color: #e53935;
  min-width: 50px;
  margin-right: 20px;
}

.item-content {
  flex: 1;
}

.item-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.item-title a {
  color: #333;
}

.item-title a:hover {
  color: #e53935;
}

.item-meta {
  margin-bottom: 10px;
}

.meta-tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 8px;
  color: #666;
}

.item-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
}

.item-review {
  font-size: 14px;
  color: #999;
  font-style: italic;
  line-height: 1.5;
}

/* 详情页样式 */
.detail-article {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #e53935;
}

.detail-title {
  font-size: 36px;
  color: #333;
}

.section-heading {
  font-size: 24px;
  margin: 30px 0 20px;
  color: #333;
}

.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  font-size: 15px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.oneline-text {
  font-size: 18px;
  color: #e53935;
  font-weight: 500;
  padding: 20px;
  background: #fff5f5;
  border-left: 4px solid #e53935;
  line-height: 1.8;
}

.summary-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.summary-text p {
  margin-bottom: 15px;
}

.review-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  font-style: italic;
}

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

.related-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  transition: background 0.3s;
}

.related-item:hover {
  background: #f0f0f0;
}

.related-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-title a {
  color: #333;
}

.related-title a:hover {
  color: #e53935;
}

.related-oneline {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 页脚样式 */
.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

.site-footer p {
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

  .detail-article {
    padding: 20px;
  }

  .detail-title {
    font-size: 28px;
  }

  .info-list {
    grid-template-columns: 100px 1fr;
    gap: 10px;
  }
}
