/* 全局样式增强 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: 40px;
}

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.site-desc {
  font-size: 16px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.95;
}

.site-desc a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

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

.video-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  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: 18px;
  margin-bottom: 10px;
}

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

.video-card h3 a:hover {
  color: #007bff;
}

.video-card .meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.video-card .one-line {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
}

/* 视频列表 */
.video-list {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

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

.video-item a {
  text-decoration: none;
  color: #2c3e50;
  flex: 1;
}

.video-item a:hover {
  color: #007bff;
}

.video-item .year {
  color: #999;
  font-size: 14px;
  margin-left: 20px;
}

/* 章节样式 */
section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #2c3e50;
  border-left: 4px solid #007bff;
  padding-left: 16px;
}

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

.more-link a {
  display: inline-block;
  padding: 10px 30px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.more-link a:hover {
  background: #0056b3;
}

/* 专题入口 */
.topic-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.topic-links {
  margin-top: 30px;
}

.topic-btn {
  display: inline-block;
  padding: 12px 40px;
  margin: 0 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 列表页样式 */
.intro {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-list-page {
  display: grid;
  gap: 20px;
}

/* 大全页卡片 */
.video-card-daquan {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

.video-card-daquan .group-label {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.video-card-daquan h3 {
  font-size: 20px;
  margin-bottom: 10px;
  padding-right: 80px;
}

.video-card-daquan h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-card-daquan h3 a:hover {
  color: #007bff;
}

.video-card-daquan .summary {
  color: #555;
  line-height: 1.8;
  margin-top: 12px;
}

/* 排行页卡片 */
.video-card-top {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.video-card-top .rank-num {
  font-size: 36px;
  font-weight: bold;
  color: #007bff;
  min-width: 60px;
  text-align: center;
}

.video-card-top .content {
  flex: 1;
}

.video-card-top h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.video-card-top h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-card-top h3 a:hover {
  color: #007bff;
}

.video-card-top .one-line {
  color: #555;
  line-height: 1.6;
  margin-top: 8px;
}

/* 专题页卡片 */
.video-card-topic {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-card-topic .topic-tag {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
}

.video-card-topic h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.video-card-topic h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-card-topic h3 a:hover {
  color: #007bff;
}

.video-card-topic .desc {
  color: #666;
  line-height: 1.8;
  margin-top: 12px;
}

/* 最新页卡片 */
.video-card-latest {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-card-latest .date-tag {
  display: inline-block;
  background: #f3e5f5;
  color: #7b1fa2;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
}

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

.video-card-latest h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-card-latest h3 a:hover {
  color: #007bff;
}

.video-card-latest .short {
  color: #555;
  line-height: 1.6;
  margin-top: 8px;
  font-size: 14px;
}

/* 详情页样式 */
.video-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-detail h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 3px solid #007bff;
  padding-bottom: 16px;
}

.video-detail section {
  margin-bottom: 40px;
}

.video-detail section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #2c3e50;
}

.basic-info ul {
  list-style: none;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.basic-info li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

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

.basic-info strong {
  color: #495057;
  margin-right: 12px;
}

.one-line p, .summary p, .review p {
  line-height: 1.8;
  color: #555;
  font-size: 16px;
}

.summary p {
  text-indent: 2em;
}

.review {
  background: #fffbf0;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

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

.related-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.related-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.related-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.related-card h3 a:hover {
  color: #007bff;
}

.related-card .desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}

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

footer p {
  margin: 0;
  opacity: 0.9;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
  }

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

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

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

  .video-card {
    padding: 16px;
  }

  .video-detail {
    padding: 24px 16px;
  }

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

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

  .topic-btn {
    display: block;
    margin: 10px 0;
  }

  .video-card-top {
    flex-direction: column;
    align-items: center;
  }

  .video-card-top .rank-num {
    font-size: 28px;
  }

  section h2 {
    font-size: 20px;
  }
}

/* UI风格变体 */
.ui-style-0 { --primary-color: #667eea; }
.ui-style-1 { --primary-color: #f093fb; }
.ui-style-2 { --primary-color: #4facfe; }
.ui-style-3 { --primary-color: #43e97b; }
.ui-style-4 { --primary-color: #fa709a; }
.ui-style-5 { --primary-color: #30cfd0; }
.ui-style-6 { --primary-color: #a8edea; }
.ui-style-7 { --primary-color: #ff6e7f; }
.ui-style-8 { --primary-color: #e0c3fc; }
.ui-style-9 { --primary-color: #f5576c; }
.ui-style-10 { --primary-color: #4fd1c5; }
.ui-style-11 { --primary-color: #feca57; }
.ui-style-12 { --primary-color: #ee5a6f; }
.ui-style-13 { --primary-color: #00d2ff; }
.ui-style-14 { --primary-color: #c471ed; }
.ui-style-15 { --primary-color: #12c2e9; }

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #007bff;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s;
  z-index: 999;
}

#backToTop:hover {
  background: #0056b3;
  transform: translateY(-4px);
}

#backToTop.show {
  display: flex;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
