/* 全局样式 */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #e0e0e0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部 */
.site-header {
  background: var(--primary-color);
  color: #fff;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.9;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.8rem;
}

.nav-link {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 0.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s;
  font-size: 0.95rem;
}

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

/* 主内容 */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* 首页英雄区 */
.hero-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-section .intro {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* 列表区块 */
.list-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-left: 4px solid var(--highlight-color);
  padding-left: 1rem;
}

.list-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.list-section a {
  color: var(--highlight-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.list-section a:hover {
  border-bottom-color: var(--highlight-color);
}

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

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

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.video-card h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-card .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.video-card .oneline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: var(--highlight-color);
  transform: translateY(-2px);
}

/* 列表页 */
.page-header {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

.list-container {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

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

.list-item:hover {
  background: #f9f9f9;
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight-color);
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-tag {
  background: var(--accent-color);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  align-self: flex-start;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.item-content h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.item-content h3 a:hover {
  color: var(--highlight-color);
}

.item-content .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.item-content .summary {
  line-height: 1.7;
  color: var(--text-color);
}

/* 详情页 */
.detail-page {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-page h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--highlight-color);
}

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

.detail-page h2 {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--highlight-color);
}

.info-list {
  list-style: none;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.info-list strong {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.highlight {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 4px solid var(--highlight-color);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.summary-section p,
.review-section p {
  line-height: 1.9;
  font-size: 1rem;
  text-align: justify;
}

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

.related-item {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.related-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item h4 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.related-item h4 a:hover {
  color: var(--highlight-color);
}

.related-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* 页脚 */
.site-footer {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .site-nav {
    gap: 0.3rem;
    margin-top: 0.8rem;
  }

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

  .main-content {
    padding: 1rem;
  }

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

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section .intro {
    font-size: 0.95rem;
  }

  .list-section {
    padding: 1.5rem;
  }

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

  .page-header {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .list-container {
    padding: 1rem;
  }

  .list-item {
    flex-direction: column;
    padding: 1rem;
  }

  .rank-num {
    align-self: flex-start;
  }

  .detail-page {
    padding: 1.5rem;
  }

  .detail-page h1 {
    font-size: 1.6rem;
  }

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

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }

  .hero-section h1 {
    font-size: 1.3rem;
  }

  .list-section h2 {
    font-size: 1.2rem;
  }
}
