/* 全局样式增强 */
body.ui-style-5 {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 48px 32px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero .desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.95;
}

section {
  background: white;
  padding: 32px;
  margin-bottom: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

section h2 {
  font-size: 24px;
  color: #1e40af;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.intro-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

/* 视频网格 - 首页热门 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

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

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

.video-card h3 a {
  color: #1f2937;
}

.video-card h3 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.video-card .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.video-card .oneline {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* 视频列表 - 首页最新 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
  transition: all 0.3s;
}

.video-item:hover {
  background: #eff6ff;
}

.video-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.video-item h4 a {
  color: #1f2937;
}

.video-item h4 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.video-item p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.video-item .year {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
}

/* 列表页 - 资源大全 */
.page-desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.video-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.video-card-full {
  padding: 24px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.video-card-full:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #2563eb;
}

.video-card-full h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.video-card-full h3 a {
  color: #1f2937;
}

.video-card-full h3 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.video-card-full .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.video-card-full .summary {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
}

.video-card-full .tags {
  font-size: 12px;
  color: #9ca3af;
}

/* 列表页 - 热门榜单 */
.video-list-ranked {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item-ranked {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.video-item-ranked:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #2563eb;
}

.video-item-ranked .rank {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-item-ranked .info {
  flex: 1;
}

.video-item-ranked h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.video-item-ranked h3 a {
  color: #1f2937;
}

.video-item-ranked h3 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.video-item-ranked .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.video-item-ranked p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* 列表页 - 专题精选 */
.topic-group {
  margin-bottom: 40px;
}

.topic-group h2 {
  font-size: 22px;
  color: #1e40af;
  margin-bottom: 20px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.video-item-topic {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.video-item-topic:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.video-item-topic h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.video-item-topic h4 a {
  color: #1f2937;
}

.video-item-topic h4 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.video-item-topic p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* 列表页 - 最新整理 */
.video-list-latest {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item-latest {
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  position: relative;
  transition: all 0.3s;
}

.video-item-latest:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #2563eb;
}

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

.video-item-latest h3 a {
  color: #1f2937;
}

.video-item-latest h3 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.video-item-latest .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.video-item-latest p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
}

.video-item-latest .date {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
}

/* 详情页样式 */
.video-detail h1 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #2563eb;
}

.video-detail section {
  background: white;
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.video-detail h2 {
  font-size: 20px;
  color: #1e40af;
  margin-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.basic-info ul {
  list-style: none;
}

.basic-info li {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
  color: #4b5563;
}

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

.basic-info strong {
  color: #1f2937;
  min-width: 80px;
  display: inline-block;
}

.oneline p, .summary p, .review p {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

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

.related-item {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.related-item:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.related-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.related-item h4 a {
  color: #1f2937;
}

.related-item h4 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.related-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

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

  .hero {
    padding: 32px 20px;
  }

  section {
    padding: 20px 16px;
  }

  section h2 {
    font-size: 20px;
  }

  .video-grid,
  .video-grid-full,
  .topic-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .video-item-ranked {
    flex-direction: column;
    gap: 12px;
  }

  .video-item-ranked .rank {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 18px;
  }

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