/**
 * help.css - 帮助中心页专属样式
 * 依赖 common.css。引入顺序：common.css → help.css
 */

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.help-hero { padding: 64px 24px 32px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); text-align: center; }
.help-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.help-hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.search-box { max-width: 540px; margin: 0 auto; position: relative; }
.search-box input { width: 100%; padding: 14px 16px 14px 48px; border: 2px solid var(--border); border-radius: 12px; font-size: 15px; background: #fff; transition: all .2s; outline: none; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.08); }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }

/* ─── 布局 ──────────────────────────────────────────────────────────────────── */
.help-sec { padding: 32px 24px 64px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.help-sidebar { position: sticky; top: 88px; align-self: start; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
.help-sidebar h3 { font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 12px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.cat-list { list-style: none; margin-bottom: 12px; }
.cat-list li { margin-bottom: 2px; }
.cat-btn { width: 100%; text-align: left; padding: 10px 12px; border: none; background: transparent; color: var(--text-light); border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .15s; display: flex; justify-content: space-between; align-items: center; }
.cat-btn:hover { background: var(--bg-soft); color: var(--primary); }
.cat-btn.active { background: var(--primary); color: #fff; font-weight: 500; }
.cat-count { background: rgba(0,0,0,.06); padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.cat-btn.active .cat-count { background: rgba(255,255,255,.25); }

/* ─── 帮助列表 ─────────────────────────────────────────────────────────────── */
.help-content { min-height: 400px; }
.help-list { display: flex; flex-direction: column; gap: 12px; }
.help-item { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 16px; }
.help-item:hover { border-color: var(--primary-light); background: var(--bg-soft); transform: translateX(4px); }
.help-item-icon { width: 40px; height: 40px; background: var(--gradient-soft); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help-item-icon svg { width: 20px; height: 20px; }
.help-item-text { flex: 1; }
.help-item-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.help-item-cat { font-size: 12px; color: var(--muted); }
.help-item-arrow { color: var(--muted); }
.help-item-arrow svg { width: 20px; height: 20px; }

/* ─── 详情 ─────────────────────────────────────────────────────────────────── */
.help-detail { display: none; }
.help-detail.show { display: block; }

/* ─── 响应式 ─────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .help-sec { grid-template-columns: 1fr; }
  .help-sidebar { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .help-hero { padding: 32px 16px 24px; }
  .help-hero h1 { font-size: 24px; }
  .help-hero p { font-size: 14px; }
  .help-sec { padding: 0 16px 40px; gap: 16px; }
  .help-sidebar { position: static; max-height: none; padding: 12px; }
  .help-item { padding: 10px 12px; font-size: 13px; }
  .help-content { padding: 16px; }
  .detail-title { font-size: 20px; }
}
