/* ===== 容器 ===== */
.wp-card {
    max-width: 1200px;
    margin: 20px auto;
    box-sizing: border-box;
    font-family: ivypresto-text, serif;
}

.wp-card p {
    font-size: 19px;
}

/* ===== 卡片左右布局 ===== */
.wp-flex-card {
  display: flex;
  gap: 24px;
  align-items: stretch;
  box-sizing: border-box;
}

/* ===== 左侧图片 ===== */
.wp-flex-card__image {
  flex: 0 0 auto;
  max-width: 500px;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.wp-flex-card__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.wp-flex-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 右侧内容 ===== */
.wp-flex-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* 标题 */
.wp-flex-card__title {
  font-size: 1.75rem;
  line-height: 2.5rem;
  margin: 0 0 24px 0;
  font-weight: 700;
  word-break: break-word;
}

/* 按钮 */
.wp-flex-card__button a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: darkgreen;
  border: 2px solid #fff;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 3px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.wp-flex-card__button a:hover,
.wp-flex-card__button a:active {
  background: #000;
  color: #fff;
}

.wp-flex-card__button a .arrow {
  margin-left: 8px;
}

/* ===== 移动端自适应 ===== */
@media screen and (max-width: 820px) {
  .wp-flex-card {
    flex-direction: column !important;
  }

  .wp-flex-card__image {
    max-width: 100% !important;
    width: 100%;
  }

  .wp-flex-card__content {
    min-height: auto;
    padding: 16px 0 0 0;
  }

  .wp-flex-card__title {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 16px;
  }

  .wp-flex-card__button a {
    margin-top: 16px;
  }
}

/* ===== 关键词链接样式 ===== */
.wp-keyword-link {
    color: #cf2351;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}