/* ================================================================== 帮助中心 (2026-10-23)
 * 版式照 SaleSmartly 帮助中心 (help.salesmartly.com): 首页大搜索 + 快捷卡片 + 分类卡片墙;
 * 文章页 = 左侧分类树 + 正文 + 右侧大纲。颜色、字体、圆角用官网那套 (site.css 的 --brand 等)。
 * 页面由 design/make-help.py 从 content/help/ 生成, 类名都带 hc- 前缀, 不碰全站其他页面。 */

.hc-body { background: #fff; }
.hc-body .nav { background: rgba(255, 255, 255, .92); border-bottom-color: #eef0f4; }
.hc-page { padding: 0 0 72px; font-size: 15px; }

/* ------------------------------------------------------------------ 搜索框 */
.hc-search { position: relative; display: flex; align-items: center; height: 38px; border: 1px solid #e3e7ef; border-radius: 10px; background: #f8f9fb; transition: border-color .15s, box-shadow .15s, background .15s; }
.hc-search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.hc-search-ico { width: 16px; height: 16px; margin-left: 12px; color: var(--faint); }
.hc-search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 8px; border: 0; background: none; font-size: 14px; outline: none; }
.hc-search input::-webkit-search-cancel-button { cursor: pointer; }
.hc-search-big { height: 54px; max-width: 720px; margin: 0 auto; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -18px rgba(31, 54, 92, .35); }
.hc-search-big .hc-search-ico { width: 20px; height: 20px; margin-left: 18px; }
.hc-search-big input { font-size: 16px; padding-left: 12px; }
.hc-search-pop { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 60vh); overflow-y: auto; padding: 6px; border: 1px solid #e3e7ef; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px -24px rgba(31, 54, 92, .32); text-align: left; }
.hc-search-pop a { display: block; padding: 9px 12px; border-radius: 8px; line-height: 1.5; }
.hc-search-pop a:hover, .hc-search-pop a.is-active { background: var(--brand-soft); }
.hc-search-pop b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.hc-search-pop small { display: block; color: var(--faint); font-size: 12px; }
.hc-search-pop span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-search-pop mark { background: none; color: var(--brand-dark); font-weight: 600; }
.hc-search-pop p { margin: 0; padding: 14px 12px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ 首页 */
.hc-hero { padding: 72px 0 84px; text-align: center; background:
  radial-gradient(60% 120% at 15% 0%, #e6efff 0%, rgba(230, 239, 255, 0) 70%),
  radial-gradient(50% 120% at 85% 10%, #eaf3ff 0%, rgba(234, 243, 255, 0) 70%),
  linear-gradient(180deg, #f4f8ff 0%, #fff 100%); }
.hc-hero h1 { margin-bottom: 28px; font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: var(--blue-ink); letter-spacing: .02em; }
.hc-home { padding-top: 8px; }
.hc-quicks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: -28px; position: relative; }
.hc-quick { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 104px; padding: 22px 22px; border-radius: 14px; color: #fff; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.hc-quick:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(16, 42, 86, .5); }
.hc-quick b { font-size: 16px; font-weight: 600; line-height: 1.4; }
.hc-quick-ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.hc-quick.q1 { background: linear-gradient(120deg, #277cf5, #5aa2ff); }
.hc-quick.q2 { background: linear-gradient(120deg, #5b6cf0, #8f9bff); }
.hc-quick.q3 { background: linear-gradient(120deg, #f0a52b, #f8c860); }
.hc-quick.q4 { background: linear-gradient(120deg, #12a150, #4cc58a); }
.hc-home-h { margin: 44px 0 18px; font-size: 18px; font-weight: 600; color: var(--ink); }
.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hc-cat { display: flex; flex-direction: column; padding: 22px 24px 18px; border: 1px solid #eef0f4; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px -16px rgba(31, 54, 92, .35); }
.hc-cat h3 { font-size: 17px; }
.hc-cat h3 a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hc-cat h3 a:hover { color: var(--brand-dark); }
.hc-cat-ico { width: 24px; height: 24px; color: var(--brand); }
.hc-cat ul { flex: 1; margin: 14px 0 10px; padding-left: 4px; }
.hc-cat li { position: relative; padding-left: 14px; font-size: 14px; line-height: 2; }
.hc-cat li::before { content: ""; position: absolute; left: 0; top: .95em; width: 4px; height: 4px; border-radius: 50%; background: #9aa3b2; }
.hc-cat li a { color: var(--text); }
.hc-cat li a:hover { color: var(--brand-dark); }
.hc-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--brand); font-size: 13.5px; font-weight: 500; }
.hc-more svg { width: 15px; height: 15px; transition: transform .15s; }
.hc-more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ 栏目页 / 文章页三栏 */
.hc-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) 232px; max-width: var(--wrap); margin: 0 auto; align-items: start; }
.hc-side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 12px 28px 16px; background: #f8f9fb; border-right: 1px solid #eef0f4; font-size: 14px; scrollbar-width: thin; }
.hc-tree ul { margin: 0; }
.hc-tree li { position: relative; }
.hc-tree a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 34px 6px 10px; border-radius: 8px; color: var(--text); line-height: 1.45; transition: background .12s, color .12s; }
.hc-tree a:hover { background: #eef1f6; color: var(--ink); }
.hc-tree a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.hc-tree-ico { width: 17px; height: 17px; color: var(--brand); }
.hc-tree-top > li > a, .hc-tree-top > li > .hc-row > a { color: var(--ink); font-weight: 500; }
.hc-tree li li a { padding-left: 35px; font-size: 13.5px; }
.hc-tree li li li a { padding-left: 50px; font-size: 13px; color: var(--muted); }
.hc-tree li li li a[aria-current="page"] { color: var(--brand-dark); }
.hc-tree ul ul { display: none; }
.hc-tree li.is-open > ul { display: block; }
.hc-tog { position: absolute; right: 4px; top: 5px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer; }
.hc-tog:hover { background: #e6eaf1; color: var(--ink); }
.hc-tog svg { width: 14px; height: 14px; transition: transform .15s; }
.hc-tree li.is-open > .hc-row > .hc-tog svg { transform: rotate(90deg); }

.hc-main { min-width: 0; padding: 22px 48px 40px; }
.hc-open { display: none; align-items: center; gap: 6px; height: 34px; margin-bottom: 12px; padding: 0 12px; border: 1px solid #e3e7ef; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); cursor: pointer; }
.hc-open svg { width: 16px; height: 16px; }
.hc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.hc-crumb a:hover { color: var(--brand-dark); }
.hc-crumb svg { width: 13px; height: 13px; color: #c3c8d1; }
.hc-crumb [aria-current] { color: var(--ink); font-weight: 600; }
.hc-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 22px 0 28px; }
.hc-title h1 { padding-top: 8px; font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.hc-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; color: var(--ink); }
.hc-qr svg { width: 76px; height: 76px; padding: 6px; border: 1px solid #eef0f4; border-radius: 8px; background: #fff; }
.hc-qr span { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

/* 栏目页: 栏目 / 文章 格子 */
.hc-sh { margin: 34px 0 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hc-tile { display: flex; align-items: center; min-height: 54px; padding: 12px 16px; border: 1px solid #e9ebf0; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; transition: border-color .15s, box-shadow .15s, color .15s; }
.hc-tile:hover { border-color: var(--brand-line); color: var(--brand-dark); box-shadow: 0 8px 20px -14px rgba(39, 124, 245, .45); }

/* 文章正文 */
.hc-doc { color: var(--text); font-size: 15px; line-height: 1.85; max-width: 860px; }
.hc-doc h2 { margin: 40px 0 16px; padding-top: 4px; font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.hc-doc h2:first-child { margin-top: 8px; }
.hc-doc h3 { margin: 28px 0 12px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.hc-doc h4 { margin: 22px 0 10px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.hc-doc p { margin: 0 0 12px; }
.hc-doc b { color: var(--ink); font-weight: 600; }
.hc-doc a { color: var(--brand); }
.hc-doc a:hover { text-decoration: underline; }
.hc-doc ul, .hc-doc ol { margin: 0 0 14px; padding-left: 1.4em; }
.hc-doc ul { list-style: disc; }
.hc-doc ol { list-style: decimal; }
.hc-doc li { margin: 4px 0; padding-left: 2px; }
.hc-doc li ul { margin: 4px 0 0; list-style: circle; }
.hc-note { margin: 4px 0 16px; padding: 10px 16px; border-left: 3px solid #c7cfdc; border-radius: 0 8px 8px 0; background: #f5f7fa; font-size: 14px; color: var(--muted); }
.hc-note p { margin: 0; }
.hc-note.hc-warn { border-left-color: #f0a52b; background: #fff8eb; color: #7a5200; }
.hc-fig { margin: 8px 0 22px; }
.hc-fig img { max-width: 100%; border: 1px solid #e9ebf0; border-radius: 10px; box-shadow: 0 10px 30px -22px rgba(31, 54, 92, .5); cursor: zoom-in; }
.hc-fig-todo div { display: grid; place-items: center; min-height: 180px; padding: 20px; border: 1px dashed #c9d2e0; border-radius: 10px; background: #f8f9fb; color: var(--faint); font-size: 13px; text-align: center; line-height: 1.7; }
.hc-table { margin: 6px 0 18px; overflow-x: auto; border: 1px solid #e9ebf0; border-radius: 10px; }
.hc-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.hc-table th, .hc-table td { padding: 10px 14px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: top; }
.hc-table th { background: #f8f9fb; color: var(--ink); font-weight: 600; white-space: nowrap; }
.hc-table tr:last-child td { border-bottom: 0; }

/* 内容是否有帮助 */
.hc-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 44px 0 0; padding: 18px 0 0; border-top: 1px solid #eef0f4; font-size: 14px; color: var(--ink); }
.hc-fb button { height: 30px; padding: 0 16px; border: 1px solid #e3e7ef; border-radius: 8px; background: #fff; font-size: 13.5px; cursor: pointer; transition: border-color .15s, color .15s; }
.hc-fb button:hover, .hc-fb button.is-on { border-color: var(--brand); color: var(--brand-dark); }
.hc-fb p { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.hc-fb p a { color: var(--brand); }

/* 上一个 / 下一个 */
.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 0; }
.hc-pager a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border: 1px solid #e9ebf0; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.hc-pager a:hover { border-color: var(--brand-line); box-shadow: 0 8px 20px -14px rgba(39, 124, 245, .45); }
.hc-pager svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.hc-pager small { display: block; font-size: 12px; color: var(--faint); }
.hc-pager b { display: block; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
.hc-pager .hc-next { flex-direction: row-reverse; text-align: right; }
.hc-mod { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #eef0f4; color: var(--faint); font-size: 12.5px; }

/* 右侧大纲 */
.hc-outline { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 22px 16px 24px 4px; font-size: 13px; scrollbar-width: thin; }
.hc-ol-tog { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.hc-ol-tog svg { width: 14px; height: 14px; color: var(--faint); transform: rotate(90deg); transition: transform .15s; }
.hc-ol-tog[aria-expanded="false"] svg { transform: none; }
.hc-ol-tog[aria-expanded="false"] + ol { display: none; }
.hc-outline ol { padding: 8px 0; border-radius: 10px; background: #f8f9fb; }
.hc-outline li a { display: block; padding: 5px 12px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.5; }
.hc-outline li.l3 a { padding-left: 22px; }
.hc-outline li.l4 a { padding-left: 32px; }
.hc-outline li a:hover { color: var(--ink); }
.hc-outline li a.is-active { border-left-color: var(--brand); color: var(--brand-dark); font-weight: 500; }

/* 看大图 */
.hc-zoom { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(15, 20, 30, .78); cursor: zoom-out; }
.hc-zoom img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.hc-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(15, 20, 30, .35); }

/* ------------------------------------------------------------------ 窄屏 */
@media (max-width: 1240px) {
  .hc-layout { grid-template-columns: 248px minmax(0, 1fr); }
  .hc-outline { display: none; }
  .hc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hc-quicks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hc-layout { display: block; }
  .hc-side { position: fixed; z-index: 95; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
  .hc-side.is-open { transform: none; }
  .hc-open { display: inline-flex; }
  .hc-main { padding: 18px 16px 32px; }
  .hc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hc-hero { padding: 44px 0 60px; }
  .hc-quicks, .hc-cats { grid-template-columns: minmax(0, 1fr); }
  .hc-quick { min-height: 72px; padding: 18px; }
  .hc-qr { display: none; }
  .hc-title { margin: 16px 0 20px; }
  .hc-tiles { grid-template-columns: minmax(0, 1fr); }
  .hc-pager { grid-template-columns: minmax(0, 1fr); }
  .hc-pager i { display: none; }
}

/* 侧栏顶上的搜索框: 背景跟侧栏一样是浅灰, 输入框给白底 */
.hc-side > .hc-search { margin: 0 0 12px; background: #fff; }
.hc-side .hc-search-pop { right: -40px; }
