/* ============================================================
   post_step.css — info_post.html 专属样式（步骤1：选择分类）
   头部样式见 post.css（.post-header / .ph-*）
   ============================================================ */

/* ==================== 步骤条 ==================== */
.post-steps {
  width: 100%;
  max-width: 820px;
  margin: 20px auto 28px;
  padding: 20px 0;
}
.post-steps .post-step {
  position: relative;
  display: inline-block;
  width: 240px;
  text-align: center;
  font-size: 0;
}
.post-steps .post-step .step-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #ECECEC;
  color: #B5B5B5;
  font-size: 16px;
  font-weight: 700;
  font-family: "Microsoft YaHei", sans-serif;
  margin-right: 8px;
  position: relative;
  z-index: 2;
  transition: all .25s ease;
}
.post-steps .post-step .step-label {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  position: relative;
  z-index: 2;
  transition: color .25s ease;
}
.post-steps .post-step .step-line {
  position: absolute;
  top: 18px;
  left: 122px;
  width: 220px;
  height: 2px;
  background: #ECECEC;
  z-index: 1;
}
.post-steps .post-step-on .step-num {
  background: linear-gradient(135deg, #3ba9f6, #4a7eee);
  color: #fff;
  box-shadow: 0 3px 8px rgba(89, 129, 238, 0.35);
}
.post-steps .post-step-on .step-label {
  color: #4a7eee;
  font-weight: 700;
}

/* ---------- 分类选择主体 ---------- */
.post-category-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 36px 40px 32px;
  margin: 0 auto 40px;
  max-width: 980px;
}
.post-category-title {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #F2F2F2;
}
.post-category-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2B2B2B;
  font-family: "Microsoft YaHei", sans-serif;
  margin-bottom: 6px;
}
.post-category-title p {
  font-size: 13px;
  color: #9A9A9A;
}

/* ---------- 分类分组块 ---------- */
.cat-block {
  margin-bottom: 24px;
  border: 1px solid #F0F0F0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cat-block:hover {
  border-color: #8dcef3;
  box-shadow: 0 4px 12px rgba(255, 122, 61, 0.08);
}

/* 顶级分类标题栏 */
.cat-block-head {
  background: #FAFAFA;
  background-image: linear-gradient(to right, #9bb8f7, transparent);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  border-left: 4px solid #4a7eee;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 子分类区（默认直接展开展示） */
.cat-block-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 18px 22px 20px;
}

/* 子分类 pill 按钮 */
.cat-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: #444;
  background: #F5F5F5;
  text-decoration: none;
  transition: all .18s ease;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cat-pill:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #3ba9f6, #4a7eee);
  border-color: #4a7eee;
  box-shadow: 0 2px 8px rgba(89, 129, 238, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- 返回上一级 ---------- */
.post-category-back {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #EEE;
}
.post-category-back a {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 13px;
  color: #4a7eee;
  background: #9bb8f7;
  transition: all .2s ease;
  text-decoration: none;
}
.post-category-back a:hover {
  background: #FF7A3D;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 122, 61, 0.3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .post-category-wrap { padding: 24px 18px; }
  .cat-block-head, .cat-block-body { padding-left: 16px; padding-right: 16px; }
  .post-steps { max-width: 100%; }
  .post-steps .post-step { width: 33.3%; }
  .post-steps .post-step .step-line { width: 90%; left: 5%; }
}
