/* 全局样式 */
* {
  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.6;
  color: #333;
  background: #f8f9fa;
}

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

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

a:hover {
  color: #e74c3c;
}

/* 头部 */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  padding: 1rem 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.site-logo a {
  color: #1abc9c;
}

.main-nav {
  background: #16a085;
  padding: 0;
}

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

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

.nav-item a {
  display: block;
  padding: 1rem 0.5rem;
  color: #ecf0f1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
  background: rgba(255,255,255,0.1);
}

/* 主内容 */
.main-content {
  min-height: 60vh;
  padding: 2rem 0;
}

/* 首页英雄区 */
.hero-section {
  background: linear-gradient(135deg, #1abc9c, #16a085);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* 区块 */
section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #1abc9c;
  color: #16a085;
}

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

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

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

.video-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #16a085;
}

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

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

/* 列表样式 */
.video-list {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ecf0f1;
  transition: background 0.3s;
}

.video-item:hover {
  background: #f8f9fa;
}

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

.rank-num {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #1abc9c;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.item-title {
  flex: 1;
  font-size: 1.1rem;
}

.item-meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

/* 列表页 */
.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #16a085;
}

.page-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1.8;
}

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

.video-list-page .video-card {
  display: flex;
  flex-direction: column;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.date-tag {
  display: inline-block;
  background: #1abc9c;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.topic-group {
  background: #16a085;
  color: #fff;
  padding: 0.5rem 1rem;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
}

.video-tags {
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: #ecf0f1;
  color: #555;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

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

.detail-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #16a085;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1abc9c;
}

.detail-info {
  margin-bottom: 2rem;
}

.info-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #16a085;
}

.info-list {
  list-style: none;
  line-height: 2;
}

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

.detail-oneline,
.detail-summary,
.detail-review {
  margin-bottom: 2rem;
}

.oneline-text {
  font-size: 1.1rem;
  color: #1abc9c;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #1abc9c;
  border-radius: 4px;
}

.summary-text,
.review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.summary-text p {
  margin-bottom: 1rem;
}

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

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

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

.related-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #16a085;
}

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

.related-desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.more-link a {
  margin: 0 0.5rem;
}

.rank-intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1.8;
}

/* 页脚 */
.site-footer {
  background: #16a085;
  color: #ecf0f1;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-item a {
    padding: 0.8rem 0.3rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

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

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

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

  .video-detail {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-item a {
    padding: 0.6rem 0.2rem;
    font-size: 0.75rem;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .site-logo {
    font-size: 1.2rem;
  }
}