/* 全局样式 */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-color: #2c3e50;
  --light-bg: #f5f7fa;
  --card-bg: #ffffff;
  --border-color: #e1e8ed;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 30px 20px;
}

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

/* 首页英雄区 */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero .intro {
  font-size: 16px;
  line-height: 1.8;
  color: #5a6c7d;
  max-width: 800px;
  margin: 0 auto;
}

/* 分区模块 */
.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 26px;
  color: var(--text-color);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.section-desc {
  color: #5a6c7d;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 600;
}

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

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

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

.video-card .meta span {
  font-size: 13px;
  color: #718096;
  background: #f7fafc;
  padding: 4px 10px;
  border-radius: 4px;
}

.video-card .desc {
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 12px;
}

.video-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.video-card .tags span {
  font-size: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
}

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
}

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

/* 列表页 */
.page-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  color: #5a6c7d;
  line-height: 1.6;
}

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

.video-list .video-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

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

.detail-page header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 40px;
}

.detail-page header h1 {
  font-size: 36px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.detail-page header .subtitle {
  font-size: 16px;
  color: #718096;
}

.info-section {
  background: var(--card-bg);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.info-section h2 {
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

.info-list dt {
  font-weight: 600;
  color: #4a5568;
}

.info-list dd {
  color: #5a6c7d;
  line-height: 1.6;
}

.highlight {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.8;
  padding: 20px;
  background: rgba(102, 126, 234, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.summary, .review {
  font-size: 16px;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 15px;
}

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

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

.related-item:hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

.related-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.related-item h3 a {
  color: var(--text-color);
}

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

.related-item p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
}

/* 页脚 */
footer {
  background: #2d3748;
  color: #a0aec0;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

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

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

  .section-title {
    font-size: 22px;
  }

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

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

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

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

@media (max-width: 480px) {
  main {
    padding: 20px 15px;
  }

  .hero {
    padding: 40px 15px;
  }

  .info-section {
    padding: 20px;
  }
}

/* UI变体样式 */
.ui-style-3 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
}
