/* 全局样式 */
body {
  font-size: 16px;
  background: #f5f5f5;
}

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

/* 首页样式 */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hero h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-intro h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.site-intro p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.site-intro a {
  color: #667eea;
  text-decoration: none;
}

.site-intro a:hover {
  text-decoration: underline;
}

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

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

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

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

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

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

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

.video-card .one-line {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 列表样式 */
.hot-picks, .new-items, .list-entries {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.hot-picks h2, .new-items h2, .list-entries h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

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

.video-item {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  position: relative;
}

.video-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

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

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

.video-item .summary, .video-item .one-line {
  color: #666;
  line-height: 1.6;
}

.video-item .tags {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* 入口卡片 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.entry-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.entry-card:hover {
  transform: scale(1.05);
}

.entry-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

.entry-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* 列表页 */
.list-header {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.list-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.list-intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.video-list-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.rank-num {
  display: inline-block;
  background: #667eea;
  color: #fff;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.video-list.top .video-item {
  padding-left: 4.5rem;
}

.date-tag {
  display: inline-block;
  background: #764ba2;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

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

.video-detail h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 1rem;
}

.video-detail section {
  margin-bottom: 2rem;
}

.video-detail h2 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem 1rem;
  line-height: 1.8;
}

.basic-info dt {
  font-weight: bold;
  color: #555;
}

.basic-info dd {
  color: #666;
}

.highlight {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: 500;
  line-height: 1.6;
  padding: 1rem;
  background: #f0f4ff;
  border-radius: 6px;
}

.summary-sec p, .review-sec p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

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

.related-item {
  background: #fafafa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #764ba2;
}

.related-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-item h3 a {
  color: #333;
  text-decoration: none;
}

.related-item h3 a:hover {
  color: #764ba2;
}

.related-item .meta {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.related-item .one-line {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

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

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

  .container {
    padding: 1rem 0.5rem;
  }

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

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

  .basic-info dl {
    grid-template-columns: 80px 1fr;
  }

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

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

/* UI 风格变体 */
.ui-style-0 { --primary: #667eea; }
.ui-style-1 { --primary: #f093fb; }
.ui-style-2 { --primary: #4facfe; }
.ui-style-3 { --primary: #43e97b; }
.ui-style-4 { --primary: #fa709a; }
.ui-style-5 { --primary: #30cfd0; }
.ui-style-6 { --primary: #a8edea; }
.ui-style-7 { --primary: #ffd89b; }
.ui-style-8 { --primary: #667eea; }
.ui-style-9 { --primary: #764ba2; }
.ui-style-10 { --primary: #f093fb; }
.ui-style-11 { --primary: #4facfe; }
.ui-style-12 { --primary: #43e97b; }
.ui-style-13 { --primary: #fa709a; }
.ui-style-14 { --primary: #30cfd0; }
.ui-style-15 { --primary: #ffd89b; }
