@charset "UTF-8";
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: calc(40% - 30px);
  /* 调整卡片宽度 */
  margin: 35px;
  background: var(--background);
  border-radius: var(--rounded);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 100%;
}

.card[data-style=small] {
  width: 200px;
}

.card-image img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.card-text {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  padding: 20px;
}

.card-text > * {
  margin: 0 !important;
  line-height: 1.5;
}

.card-title {
  font-family: var(--heading);
  font-weight: var(--semi-bold);
  font-size: 18px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.card-subtitle {
  margin-top: -10px !important;
  font-style: italic;
}

/* 新增：卡片详细信息样式 */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* 设置行间距 */
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  min-height: 100%;
}

/* 新增：卡片悬停效果 */
.card:hover {
  transform: translateY(-10px);
  /* 在悬停时保持缩放比例并增加浮动效果 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* 增强阴影效果 */
}

/* 主题部分的整体样式 */
.themes-section {
  margin-top: 30px;
  background-color: #f9f9f9;
  /* 修改背景颜色 */
  padding: 20px;
  /* 添加内边距 */
  border-radius: 8px;
  /* 圆角 */
  display: flex;
  flex-wrap: wrap;
  /* 允许换行 */
  justify-content: space-between;
  /* 卡片之间平均分配空间 */
  gap: 15px;
  margin-bottom: -20px;
}

/* 针对主题部分的卡片样式 */
.themes-section .card {
  flex: 1 1 calc(24% - 20px);
  /* 三列布局，减去间距 */
  box-sizing: border-box;
  margin: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* 修改阴影样式 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  /* 圆角 */
  overflow: hidden;
  /* 防止内容溢出 */
  background-color: #ffffff;
  /* 设置背景颜色 */
}

.themes-section .card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* 卡片文本区域 */
.themes-section .card-text {
  padding: 10px;
  text-align: center;
}

/* 悬停效果 */
.themes-section .card:hover {
  transform: translateY(-10px);
  /* 悬停时轻微浮动，保持适度 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* 悬停时增加阴影 */
}

/* 响应式设计：在较小屏幕上调整列数 */
@media (max-width: 768px) {
  .themes-section .card {
    flex: 1 1 calc(50% - 20px);
    /* 调整为两列布局 */
  }
}
@media (max-width: 480px) {
  .themes-section .card {
    flex: 1 1 100%;
    /* 调整为一列布局 */
  }
}

/*# sourceMappingURL=carding.css.map */