/* ============ 帮助中心 ============ */
#hcApp, .hc-page { max-width: 1200px; }

.hc-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.hc-search {
  position: relative; flex: 1; min-width: 220px;
}
.hc-search input {
  width: 100%; height: 38px; padding: 0 36px 0 34px;
  border: 1px solid var(--border, #e5e9f0); border-radius: var(--radius-sm, 8px);
  font-size: 13.5px; color: var(--gray-900, #0f172a); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.hc-search input:focus {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px var(--primary-100, #dbeafe);
}
.hc-search .hc-search-ic {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--gray-400, #7d8a9c); pointer-events: none;
}
.hc-search .hc-search-x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; cursor: pointer; font-size: 16px;
  color: var(--gray-400, #7d8a9c); line-height: 1; padding: 4px 6px; border-radius: 4px;
}
.hc-search .hc-search-x:hover { background: var(--gray-100, #f1f5f9); }

.hc-group-title {
  display: flex; align-items: center; gap: 6px;
  margin: 18px 0 10px; font-size: 13px; font-weight: 600;
  color: var(--gray-600, #475569); letter-spacing: .3px;
}
.hc-group-title::before {
  content: ''; width: 3px; height: 12px;
  background: var(--primary, #2563eb); border-radius: 2px;
}

.hc-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.hc-card {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px; background: #fff;
  border: 1px solid var(--border, #e5e9f0); border-radius: var(--radius, 10px);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hc-card:hover {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}
.hc-card:focus-visible {
  outline: none; border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px var(--primary-100, #dbeafe);
}
.hc-card-icon {
  flex: 0 0 36px; height: 36px; border-radius: 9px;
  background: var(--primary-50, #eff6ff); color: var(--primary, #2563eb);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.hc-card-main { flex: 1; min-width: 0; }
.hc-card-title { font-size: 14px; font-weight: 600; color: var(--gray-900, #0f172a); }
.hc-card-desc {
  margin-top: 3px; font-size: 12.5px; line-height: 1.55;
  color: var(--gray-500, #64748b);
}
.hc-card-arrow { color: var(--gray-300, #cbd5e1); font-size: 16px; line-height: 1.4; }

.hc-empty {
  padding: 34px 16px; text-align: center; font-size: 13.5px;
  color: var(--gray-500, #64748b);
  background: #fff; border: 1px dashed var(--border, #e5e9f0);
  border-radius: var(--radius, 10px);
}

/* ============ 帮助详情 ============ */
.hc-detail {
  background: #fff; border: 1px solid var(--border, #e5e9f0);
  border-radius: var(--radius, 10px); padding: 18px 20px 20px;
}
.hc-back { margin-bottom: 14px; }
.hc-dhead { display: flex; align-items: center; gap: 13px; }
.hc-dhead-icon {
  flex: 0 0 46px; height: 46px; border-radius: 12px;
  background: var(--primary-50, #eff6ff); color: var(--primary, #2563eb);
  display: flex; align-items: center; justify-content: center; font-size: 23px;
}
.hc-dhead-main { min-width: 0; }
.hc-dhead-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--gray-900, #0f172a); }
.hc-oneliner { margin-top: 4px; font-size: 13.5px; color: var(--primary, #2563eb); font-weight: 500; }

.hc-sec-title {
  margin: 20px 0 10px; font-size: 13px; font-weight: 600;
  color: var(--gray-600, #475569);
}

.hc-steps { list-style: none; margin: 0; padding: 0; }
.hc-steps li {
  display: flex; gap: 11px; padding: 9px 0;
  border-bottom: 1px dashed var(--border, #e5e9f0);
}
.hc-steps li:last-child { border-bottom: 0; }
.hc-step-no {
  flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--primary, #2563eb); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.hc-step-tx { font-size: 13.5px; line-height: 1.75; color: var(--gray-700, #334155); }

.hc-tip {
  display: flex; gap: 9px; margin-top: 16px; padding: 11px 13px;
  background: var(--warning-50, #fffbeb);
  border: 1px solid #fde68a; border-radius: var(--radius-sm, 8px);
  font-size: 13px; line-height: 1.7; color: #92400e;
}
.hc-tip-ic { flex: 0 0 auto; }

.hc-video { margin-top: 16px; }
.hc-video video {
  display: block; width: 100%; max-height: 420px;
  background: #0f172a; border-radius: var(--radius-sm, 8px);
}

.hc-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border, #e5e9f0);
}
.hc-video-note {
  margin-top: 16px; padding: 10px 13px; font-size: 12.5px;
  color: var(--gray-500, #64748b); background: var(--gray-50, #f8fafc);
  border: 1px dashed var(--border, #e5e9f0); border-radius: var(--radius-sm, 8px);
}

/* ============ 侧边栏帮助入口 ============ */
.sf-help {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  color: var(--primary, #2563eb); font-weight: 600;
  border-radius: 5px; padding: 1px 4px;
}
.sf-help:hover { background: var(--primary-50, #eff6ff); }
.sf-note { margin-top: 3px; }

/* ============ 新手引导 ============ */
.ob-wrap {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: auto;
}
.ob-wrap.dim { background: rgba(15, 23, 42, .66); }

.ob-hole {
  position: fixed; z-index: 1; pointer-events: none;
  border-radius: 10px; border: 2px solid var(--primary, #2563eb);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .66);
  transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease;
  animation: obPulse 1.8s ease-out infinite;
}
@keyframes obPulse {
  0%   { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .66), 0 0 0 0 rgba(37, 99, 235, .55); }
  70%  { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .66), 0 0 0 15px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 9999px rgba(15, 23, 42, .66), 0 0 0 0 rgba(37, 99, 235, 0); }
}

.ob-card {
  position: fixed; z-index: 2;
  width: min(344px, calc(100vw - 28px));
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .3);
  padding: 16px 18px 14px;
  transition: left .22s ease, top .22s ease;
}
.ob-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
}
.ob-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--primary-50, #eff6ff); color: var(--primary, #2563eb);
  font-size: 11.5px; font-weight: 600;
}
.ob-x {
  border: 0; background: transparent; cursor: pointer;
  font-size: 19px; line-height: 1; padding: 2px 4px;
  color: var(--gray-400, #7d8a9c); border-radius: 5px;
}
.ob-x:hover { background: var(--gray-100, #f1f5f9); }
.ob-title { font-size: 16px; font-weight: 700; color: var(--gray-900, #0f172a); }
.ob-text { margin-top: 7px; font-size: 13.5px; line-height: 1.75; color: var(--gray-600, #475569); }
.ob-text b { color: var(--primary, #2563eb); }
.ob-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 15px; padding-top: 13px;
  border-top: 1px solid var(--border, #e5e9f0);
}
.ob-flex { flex: 1; }
.ob-skip {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12.5px; color: var(--gray-500, #64748b);
  padding: 4px 2px; border-radius: 5px;
}
.ob-skip:hover { color: var(--primary, #2563eb); text-decoration: underline; }
.ob-dots {
  display: flex; gap: 5px; justify-content: center; margin-top: 11px;
}
.ob-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300, #cbd5e1); transition: all .2s;
}
.ob-dots i.on { width: 16px; border-radius: 3px; background: var(--primary, #2563eb); }

/* 引导中的「最后一步」按钮强调 */
.ob-card .btn-primary { font-weight: 600; }

@media (max-width: 560px) {
  .hc-grid { grid-template-columns: 1fr; }
  .hc-detail { padding: 15px 14px 16px; }
  .hc-card-desc { font-size: 12px; }
  .ob-card { padding: 15px 15px 13px; }
}
