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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #2d3748;
  line-height: 1.6;
}

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

/* 头部 */
header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航 */
.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

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

.site-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
}

/* 主内容区 */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

main.container {
  background: white;
  border-radius: 12px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* 页面标题 */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #1a202c;
  text-align: center;
  line-height: 1.3;
}

/* 介绍区 */
.intro {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #667eea;
}

.intro p {
  margin: 0;
  color: #4a5568;
  line-height: 1.8;
}

/* Section标题 */
section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: #2d3748;
  position: relative;
  padding-left: 1rem;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

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

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

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

.video-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.video-card h3 a {
  text-decoration: none;
  color: #2d3748;
  transition: color 0.3s ease;
}

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

.video-card .meta {
  color: #718096;
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.video-card .desc {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

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

.video-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.video-item h3 a {
  text-decoration: none;
  color: #2d3748;
  transition: color 0.3s ease;
}

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

.video-item .meta {
  color: #718096;
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.video-item .desc {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* 链接网格 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.link-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.link-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
}

.link-card h3 a {
  text-decoration: none;
  color: #667eea;
  font-weight: 600;
}

.link-card p {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin: 2rem 0;
}

.more-link a {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.more-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 完整列表 */
.video-list-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item-full {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

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

.item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.item-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0;
}

.item-header h2::before {
  display: none;
}

.item-header h2 a {
  text-decoration: none;
  color: #2d3748;
  transition: color 0.3s ease;
}

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

.video-item-full .meta {
  color: #718096;
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.video-item-full .one-line {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}

.video-item-full .review {
  color: #667eea;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
  padding: 0.75rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

/* 详情页 */
.detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  color: #1a202c;
  line-height: 1.3;
}

.detail-info {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.info-list li {
  display: flex;
  line-height: 1.6;
}

.info-list strong {
  min-width: 80px;
  color: #2d3748;
}

.detail-highlight {
  background: white;
  border-left: 4px solid #667eea;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-text {
  font-size: 1.1rem;
  color: #667eea;
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}

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

.detail-summary p,
.detail-review p {
  color: #4a5568;
  line-height: 1.8;
  font-size: 1rem;
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.related-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

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

.related-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.related-card h3 a {
  text-decoration: none;
  color: #2d3748;
  transition: color 0.3s ease;
}

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

.related-card .meta {
  color: #718096;
  font-size: 0.8rem;
  margin: 0 0 0.5rem 0;
}

.related-card .desc {
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* 页脚 */
footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
}

footer p {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: space-between;
  }

  .site-nav a {
    padding: 0.6rem 0.3rem;
    font-size: 0.85rem;
  }

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

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

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

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

  main.container {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

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

@media (max-width: 480px) {
  .site-nav a {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .intro {
    padding: 1rem;
  }

  section h2 {
    font-size: 1.25rem;
  }
}
