/* =============================================================================
 * 帮助中心 · 购物流程（help.css）
 * -----------------------------------------------------------------------------
 * 作用域：仅 .help-page，不影响其它页面。
 * 设计：左侧深海蓝帮助侧栏 + 右侧白色内容卡片；蓝色步骤序号 + 连接线（全站统一配色）。
 * 响应式：≤ 900px 侧栏转为顶部横向分组，步骤改为紧凑布局。
 * ========================================================================== */

.help-page {
  --hc-red:      #1A1917;
  --hc-red-dark: #141310;
  --hc-red-soft: #F7F1E4;
  --hc-line:     #E8D3A9;
  --hc-amber:    #A67C3D;
  --hc-amber-bg: #FBF7EE;
  --hc-amber-bd: #F0DCB8;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* ---------- 左侧侧栏 ---------- */
.help-side {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid var(--border, #EAE4D8);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 4px 18px rgba(31,29,26,.08));
}
.help-side-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 17px;
  background: linear-gradient(135deg, var(--hc-red) 0%, var(--hc-red-dark) 100%);
  color: #fff;
}
.help-q {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255,.18);
  border: 1px solid rgba(255, 255, 255,.5);
  font-size: 20px; font-weight: 700; line-height: 1;
}
.help-side-title strong { display: block; font-size: 16px; letter-spacing: 1px; }
.help-side-title small { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: .5px; opacity: .8; }

.help-menu { padding: 8px 0 14px; }
.help-group { margin-top: 8px; }
.help-group-title {
  padding: 8px 18px 6px;
  font-size: 12px; font-weight: 700;
  color: var(--hc-red);
  letter-spacing: .5px;
}
.help-link {
  display: block;
  padding: 8px 18px 8px 26px;
  font-size: 13.5px;
  color: var(--text-2, #57534E);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.help-link:hover { background: #FAFAFC; color: var(--hc-red); }
.help-link.active {
  background: var(--hc-red-soft);
  color: var(--hc-red);
  border-left-color: var(--hc-red);
  font-weight: 600;
}

/* ---------- 右侧正文 ---------- */
.help-main { min-width: 0; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted, #8D877D);
  margin: 2px 0 12px;
}
.breadcrumb a { color: var(--muted, #8D877D); text-decoration: none; }
.breadcrumb a:hover { color: var(--hc-red); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--text, #1F1D1A); }

.help-doc {
  background: #fff;
  border: 1px solid var(--border, #EAE4D8);
  border-radius: 14px;
  padding: 30px 34px 34px;
  box-shadow: var(--shadow-soft, 0 4px 18px rgba(31,29,26,.08));
}
.help-doc-head { padding-bottom: 20px; border-bottom: 1px dashed #EDE9E1; }
.help-doc-head h1 {
  margin: 0 0 10px;
  font-size: 26px; font-weight: 700;
  color: var(--text, #1F1D1A);
}
.help-doc-head .lead { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--text-2, #57534E); }
.help-doc-head .meta {
  display: flex; align-items: center; gap: 12px;
  margin: 0; font-size: 12px; color: var(--muted, #8D877D);
}
.help-doc-head .meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* 温馨提示 */
.help-tip {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 22px 0 8px;
  padding: 14px 16px;
  background: var(--hc-amber-bg);
  border: 1px solid var(--hc-amber-bd);
  border-radius: 10px;
}
.help-tip .tip-ico {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hc-amber); color: #fff;
  font-size: 13px; font-weight: 700;
}
.help-tip p { margin: 0; font-size: 13px; line-height: 1.8; color: #8A6330; }
.help-tip strong { color: var(--hc-red); }

/* ---------- 步骤列表 ---------- */
.steps { list-style: none; margin: 14px 0 0; padding: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0 20px;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px; top: 58px; bottom: -4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--hc-line), #EFE2C6);
}
.step-no {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hc-red);
  color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(26,25,23,.28);
  z-index: 1;
}
.step-body h2 {
  margin: 2px 0 8px;
  font-size: 17px; font-weight: 700;
  color: var(--text, #1F1D1A);
}
.step-body p {
  margin: 0 0 10px;
  font-size: 13.5px; line-height: 1.85;
  color: var(--text-2, #57534E);
}
.step-body p b { color: var(--hc-red-dark); font-weight: 600; }
.step-body ul { margin: 0 0 4px; padding-left: 18px; }
.step-body ul + ul { margin-top: 4px; }
.step-body li {
  position: relative;
  font-size: 13px; line-height: 1.85;
  color: var(--text-2, #57534E);
  margin-bottom: 2px;
}
.step-body li::marker { color: var(--hc-red); }
.step-body li b { color: var(--hc-red-dark); font-weight: 600; }

/* ---------- 底部引导 ---------- */
.help-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding: 20px 22px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--hc-red-soft), #FBF7EE);
  border: 1px solid var(--hc-line);
}
.help-cta strong { font-size: 15px; color: var(--hc-red-dark); }
.help-cta p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2, #57534E); }
.btn-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hc-red), var(--hc-red-dark));
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(26,25,23,.28);
  transition: transform .12s, box-shadow .12s;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(26,25,23,.36); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .help-page { grid-template-columns: 1fr; gap: 14px; }
  .help-side { position: static; }
  .help-menu {
    display: flex; flex-wrap: wrap;
    gap: 4px 10px; padding: 10px 12px 14px;
  }
  .help-group { margin-top: 0; width: 100%; }
  .help-group-title { padding: 6px 6px 4px; }
  .help-link { display: inline-block; padding: 5px 10px; border: 1px solid #EEE; border-radius: 6px; border-left: 1px solid #EEE; }
  .help-link.active { border-color: var(--hc-red); }
  .help-doc { padding: 22px 18px 26px; }
  .help-doc-head h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .help-doc { padding: 18px 14px 22px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .step-no { width: 36px; height: 36px; font-size: 13px; }
  .step:not(:last-child)::before { left: 17px; top: 48px; }
  .help-doc-head .meta { flex-wrap: wrap; gap: 6px 10px; }
  .help-cta { flex-direction: column; align-items: flex-start; }
}
