/* 全局样式 */
:root {
  --primary-color: #64b5f6;
  --primary-hover: #90caf9;
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --border-color: #333;
}

* {
  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: var(--text-primary);
  background: var(--bg-primary);
  font-size: 16px;
}

/* 头部导航 */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--primary-color);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 15px;
}

.nav a:hover {
  background: #333;
  color: #fff;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* 首页 Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.3;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 介绍区块 */
.intro-section {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}

.intro-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.intro-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.intro-content a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* 视频区块 */
.video-section {
  margin-bottom: 50px;
}

.video-section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #fff;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

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

.video-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-color: var(--primary-color);
}

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

.video-card h3 a {
  color: #fff;
  text-decoration: none;
}

.video-card h3 a:hover {
  color: var(--primary-color);
}

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

.meta-item {
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(100, 181, 246, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
}

.video-oneline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 快速链接 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.quick-link-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.3s;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-color: var(--primary-color);
}

.quick-link-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.quick-link-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.more-link a:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* 列表页样式 */
.page-intro {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-list-item {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.video-list-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.video-list-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.video-list-item h3 a {
  color: #fff;
  text-decoration: none;
}

.video-list-item h3 a:hover {
  color: var(--primary-color);
}

.video-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
}

/* 排行榜样式 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.rank-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.rank-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

.rank-content {
  flex: 1;
}

.rank-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.rank-content h3 a {
  color: #fff;
  text-decoration: none;
}

.rank-content h3 a:hover {
  color: var(--primary-color);
}

.video-review {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.6;
  font-style: italic;
}

/* 专题页样式 */
.topic-section {
  margin-bottom: 50px;
}

.topic-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

/* 时间线样式 */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.timeline-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.timeline-date {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 80px;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.timeline-content h3 a {
  color: #fff;
  text-decoration: none;
}

.timeline-content h3 a:hover {
  color: var(--primary-color);
}

/* 详情页样式 */
.video-detail {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.video-detail h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #fff;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 15px;
}

.video-detail h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #fff;
}

.detail-info {
  margin-bottom: 30px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 16px;
}

.info-list dt {
  color: var(--text-secondary);
  font-weight: 500;
}

.info-list dd {
  color: var(--text-primary);
}

.detail-oneline {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(100, 181, 246, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.oneline-text {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.8;
}

.detail-summary {
  margin-bottom: 30px;
}

.summary-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

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

.detail-review {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(100, 181, 246, 0.05);
  border-radius: 8px;
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
  font-style: italic;
}

.detail-related {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

/* 页脚 */
.footer {
  background: var(--bg-secondary);
  color: #999;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .logo {
    text-align: center;
    padding: 10px 0;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
  }

  .nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 13px;
    padding: 8px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .container {
    padding: 20px 15px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 24px;
  }

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

  .intro-section {
    padding: 25px 20px;
  }

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

  .video-detail {
    padding: 25px 20px;
  }

  .video-detail h1 {
    font-size: 28px;
  }

  .rank-item {
    flex-direction: column;
    gap: 15px;
  }

  .rank-number {
    min-width: auto;
    text-align: left;
  }

  .timeline-item {
    flex-direction: column;
    gap: 10px;
  }

  .timeline-date {
    min-width: auto;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

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

  .video-section h2 {
    font-size: 22px;
  }

  .video-detail h1 {
    font-size: 24px;
  }
}
