/* History page overrides */

/* 修复卡片样式冲突 */
.section .split .card {
  flex-direction: column;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

/* 调整图片样式 */
.section .split .card img {
  max-height: 320px;
  object-fit: cover;
  width: 100%;
  border-radius: 10px;
}

/* 修复视频嵌入样式 */
.section .split aside .card {
  display: block;
}

.section .split aside .card iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-width: 100%;
}

/* 修复split布局中的间距问题 */
.section .split {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

/* 确保文本内容正确显示 */
.section .split > div p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* 修复侧边栏卡片间距 */
.section .split aside .card {
  margin-bottom: 16px;
}

/* 修复链接样式 */
.section .split a {
  color: var(--ghost);
  text-decoration: none;
}

.section .split a:hover {
  color: #c1fbff;
}

/* 页脚底部样式 */
.footer-bottom {
  padding: 0 0 22px;
}

/* 响应式设计优化 */
@media (max-width: 900px) {
  .section .split {
    grid-template-columns: 1fr;
  }
  
  .section .split .card img {
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 24px 0;
  }
  
  .section h2 {
    font-size: 1.4rem;
  }
  
  .footer-bottom {
    padding: 0 0 16px;
  }
}
