/* ===== gerenjiazuo_xuantifenlei.css - 选题分类 ===== */

/* ===== 电脑端（≥1024px）===== */
.gerenjiazuo-xuantifenlei {
  padding: 48px 5%;
  background: #fdfbf7;
  margin: 0;
}

.xf-title {
  text-align: center;
  color: #333;
  font-size: 45px;
  margin-bottom: 10px;
  font-weight: bolder;
  font-family: Source Han Sans CN;
}

.xf-red {
  color: #b8363a;
}

.xf-desc {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 36px;
}

.xf-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.xf-card {
  flex: 0 0 270px;
  text-align: center;
  padding: 36px 24px 20px;
  background: #fdfbf7;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(184,54,58,0.12);
}

.xf-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #b8363a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.xf-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.xf-card h4 {
  color: #b8363a;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: bolder;
  font-family: Source Han Sans CN;
}

.xf-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.xf-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #b8363a;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  margin-top: auto;
  margin-bottom: 16px;
}

.xf-btn:hover {
  background: #a02d31;
}

/* ===== 折叠屏展开态（600~1023px）===== */
@media (min-width: 600px) and (max-width: 1023px) {
  .gerenjiazuo-xuantifenlei {
    padding: 36px 5%;
  }
  .xf-title {
    font-size: 38px;
  }
  .xf-desc {
    font-size: 17px;
    margin-bottom: 28px;
  }
  .xf-grid {
    gap: 12px;
  }
  .xf-card {
    flex: 0 0 calc(25% - 9px);
    padding: 20px 10px 14px;
  }
  .xf-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
  }
  .xf-icon-img {
    width: 28px;
    height: 28px;
  }
  .xf-card h4 {
    font-size: 20px;
  }
  .xf-card p {
    font-size: 14px;
  }
  .xf-btn {
    font-size: 10px;
    padding: 6px 14px;
  }
}

/* ===== 手机端（≤599px）===== */
@media (max-width: 599px) {
  .gerenjiazuo-xuantifenlei {
    padding: 32px 12px;
  }
  .xf-title {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .xf-desc {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .xf-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .xf-card {
    flex: none;
    width: 92%;
    max-width: 400px;
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .xf-card-body {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
  }
  .xf-icon-wrap {
    width: 42px;
    height: 42px;
    margin: 0 10px 0 0;
    flex-shrink: 0;
  }
  .xf-icon-img {
    width: 26px;
    height: 26px;
  }
  .xf-card h4 {
    font-size: 18px;
    margin-bottom: 2px;
    text-align: left;
  }
  .xf-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: left;
  }
  .xf-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 14px;
    white-space: nowrap;
  }
}
