/* 帮助中心（首页 / 栏目列表 / 文档详情） · 页面专属样式 */
/* ---------------- 两栏布局 ---------------- */
.help-layout {display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:52px;align-items:start}
.help-side {position:sticky;top:calc(var(--header-h) + 20px);max-height:calc(100vh - var(--header-h) - 40px);overflow:auto;
  padding:22px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg-tint);
  scrollbar-width:thin}
.help-side::-webkit-scrollbar {width:4px}
.help-side::-webkit-scrollbar-thumb {background:var(--line-dark);border-radius:2px}
.hs-head {display:flex;flex-direction:column;gap:6px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.hs-label {font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--brand)}
.hs-root {font-size:16px;font-weight:800;color:var(--ink-900);transition:color .25s var(--ease)}
.hs-root:hover,.hs-root.is-on {color:var(--brand)}
.hs-nav {display:flex;flex-direction:column;gap:4px}
.hs-group {display:flex;flex-direction:column;gap:2px;margin-top:10px}
.hs-title {font-size:11.5px;font-weight:800;letter-spacing:.1em;color:var(--ink-400);padding:8px 10px 6px}
.hs-link {display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:8px 10px;border-radius:9px;font-size:13.5px;font-weight:600;color:var(--ink-600);
  transition:background .25s var(--ease),color .25s var(--ease),padding-left .25s var(--ease)}
.hs-link em {font-style:normal;font-size:11.5px;font-weight:700;color:var(--ink-300);
  background:#fff;border:1px solid var(--line);border-radius:999px;padding:1px 7px;flex:none}
.hs-link:hover {background:#fff;color:var(--brand);padding-left:13px}
.hs-link:hover em {color:var(--brand);border-color:rgba(214,0,17,.25)}
.hs-link.is-on {background:var(--grad-brand);color:#fff;box-shadow:0 8px 18px -10px rgba(214,0,17,.65)}
.hs-link.is-on em {background:rgba(255,255,255,.2);border-color:transparent;color:#fff}
.help-main {min-width:0}

/* ---------------- 面包屑 ---------------- */
.help-crumb {display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12.5px;color:var(--ink-400);
  margin-bottom:18px}
.help-crumb a {color:var(--ink-500);transition:color .25s var(--ease)}
.help-crumb a:hover {color:var(--brand)}
.help-crumb span {color:var(--ink-300)}
.help-crumb em {font-style:normal;color:var(--ink-700);font-weight:700}
.help-crumb em.crumb-cur {max-width:min(52%,420px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------------- 帮助中心首页 ---------------- */
.help-block {margin-bottom:44px}
.hb-head {display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:18px;
  padding-bottom:12px;border-bottom:1px solid var(--line)}
.hb-title {font-size:22px;font-weight:800;letter-spacing:-.01em;color:var(--ink-900)}
.hb-title::before {content:"";display:inline-block;width:4px;height:18px;border-radius:2px;
  background:var(--grad-brand);margin-right:10px;vertical-align:-2px}
.hb-sub {font-size:12.5px;color:var(--ink-400)}
.hb-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:16px}
.hb-card {display:flex;flex-direction:column;gap:10px;padding:18px 18px 14px;
  border:1px solid var(--line);border-radius:14px;background:#fff;
  transition:border-color .3s var(--ease),box-shadow .35s var(--ease),transform .35s var(--ease)}
.hb-card:hover {border-color:rgba(214,0,17,.28);box-shadow:0 18px 38px -24px rgba(214,0,17,.5);
  transform:translateY(-2px)}
.hb-card-top {display:flex;align-items:center;justify-content:space-between;gap:10px}
.hb-name {font-size:15.5px;font-weight:800;color:var(--ink-900);transition:color .25s var(--ease)}
.hb-card:hover .hb-name {color:var(--brand)}
.hb-count {font-style:normal;font-size:11.5px;font-weight:700;color:var(--ink-400);
  background:var(--bg-soft);border-radius:999px;padding:2px 8px;flex:none}
.hb-links {list-style:none;display:flex;flex-direction:column;gap:6px;min-height:0}
.hb-links li {font-size:13px;line-height:1.55;color:var(--ink-500)}
.hb-links a {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--ink-600);transition:color .2s var(--ease),padding-left .25s var(--ease)}
.hb-links a::before {content:"·";color:var(--ink-300);margin-right:6px}
.hb-links a:hover {color:var(--brand);padding-left:3px}
.hb-links .hb-none {color:var(--ink-300);font-size:12.5px;padding:2px 0}
.hb-more {display:inline-flex;align-items:center;gap:5px;margin-top:auto;padding-top:8px;
  font-size:12px;font-weight:800;color:var(--brand);border-top:1px dashed var(--line)}
.hb-more svg {width:13px;height:13px;transition:transform .3s var(--ease)}
.hb-card:hover .hb-more svg {transform:translateX(3px)}
.hb-faq {display:flex;flex-direction:column;border-top:1px solid var(--line)}
.hb-faq-item {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:center;
  padding:15px 6px;border-bottom:1px solid var(--line);position:relative;
  transition:background .3s var(--ease),padding-left .3s var(--ease)}
.hb-faq-item:hover {background:rgba(214,0,17,.025);padding-left:12px}
.hf-q {font-size:14.5px;font-weight:700;color:var(--ink-800);line-height:1.6;
  transition:color .25s var(--ease)}
.hb-faq-item:hover .hf-q {color:var(--brand)}
.hf-d {grid-column:1;font-size:12.5px;color:var(--ink-400);line-height:1.7;margin-top:4px;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.hb-faq-item svg {grid-column:2;grid-row:1/3;width:15px;height:15px;color:var(--ink-300);
  transition:color .25s var(--ease),transform .3s var(--ease)}
.hb-faq-item:hover svg {color:var(--brand);transform:translateX(3px)}
.hb-all {display:inline-flex;align-items:center;gap:6px;margin-top:16px;font-size:13px;font-weight:800;color:var(--brand)}
.hb-all svg {width:14px;height:14px;transition:transform .3s var(--ease)}
.hb-all:hover svg {transform:translateX(4px)}

/* ---------------- 栏目列表 ---------------- */
.hl-head {display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding-bottom:14px;
  border-bottom:1px solid var(--line);margin-bottom:6px}
.hl-head h1 {font-size:26px;font-weight:800;letter-spacing:-.015em;color:var(--ink-900)}
.hl-count {font-size:12.5px;color:var(--ink-400)}
.hl-list {display:flex;flex-direction:column}
.hl-item {display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;column-gap:16px;align-items:center;
  padding:16px 8px;border-bottom:1px solid var(--line);
  transition:background .3s var(--ease),padding-left .3s var(--ease)}
.hl-item:hover {background:rgba(214,0,17,.02);padding-left:14px}
.hl-no {font-size:12px;font-weight:800;color:var(--ink-300);letter-spacing:.04em}
.hl-item:hover .hl-no {color:var(--brand)}
.hl-body {display:flex;flex-direction:column;gap:4px;min-width:0}
.hl-body strong {font-size:15px;font-weight:700;color:var(--ink-800);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .25s var(--ease)}
.hl-item:hover .hl-body strong {color:var(--brand)}
.hl-desc {font-size:12.5px;color:var(--ink-400);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.hl-date {font-size:12px;color:var(--ink-400);white-space:nowrap}
.hl-arrow {width:14px;height:14px;color:var(--ink-300);transition:color .25s var(--ease),transform .3s var(--ease)}
.hl-item:hover .hl-arrow {color:var(--brand);transform:translateX(3px)}
.hl-empty {text-align:center;color:var(--ink-400);font-size:14px;padding:60px 0}

/* ---------------- 文档正文 ---------------- */
.help-doc {max-width:860px}
.help-doc img {max-width:100%;height:auto;border-radius:10px;border:1px solid var(--line);
  background:var(--bg-soft);margin:10px 0}
.help-doc p {margin:0 0 14px}
.help-doc h2 {font-size:21px;font-weight:800;color:var(--ink-900);margin:30px 0 12px}
.help-doc h3 {font-size:17px;font-weight:800;color:var(--ink-800);margin:24px 0 10px}
/* 旧站正文常带内联 list-style-type:disc，会与站内 li::before 圆点叠加成两个圆点，
   这里统一接管列表标记（!important 用于覆盖内联样式） */
.help-doc ul,.help-doc ol {margin:0 0 16px;padding-left:0;list-style:none !important}
.help-doc li {margin-bottom:8px}
.help-doc ul>li::before {content:"";position:absolute;left:0;top:11px;width:5px;height:5px;
  border-radius:50%;background:var(--brand);opacity:.6}
.help-doc ol {counter-reset:helpOl}
.help-doc ol>li {counter-increment:helpOl;padding-left:24px}
.help-doc ol>li::before {content:counter(helpOl) ".";position:absolute;left:0;top:0;width:auto;height:auto;
  border-radius:0;background:none;opacity:1;color:var(--ink-500);font-weight:700;line-height:1.9}
.help-doc table {width:100%;border-collapse:collapse;margin:16px 0;font-size:14px}
.help-doc th,.help-doc td {border:1px solid var(--line);padding:9px 12px;text-align:left}
.help-doc th {background:var(--bg-soft);font-weight:700;color:var(--ink-800)}
.help-doc strong {color:var(--ink-900)}
.help-doc a {color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.help-doc blockquote {margin:16px 0;padding:12px 18px;border-left:3px solid var(--brand);
  background:var(--brand-tint);border-radius:0 10px 10px 0;color:var(--ink-600)}
.help-tip {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:36px 0 8px;padding:20px 22px;
  border:1px solid var(--line);border-radius:14px;background:var(--bg-tint)}
.help-tip strong {font-size:15px;font-weight:800;color:var(--ink-900)}
.help-tip span {font-size:13px;color:var(--ink-500);flex:1;min-width:180px}
.help-tip .btn {flex:none}

/* ---------------- 响应式 ---------------- */
@media (max-width:1080px) {
.help-layout {grid-template-columns:220px minmax(0,1fr);column-gap:32px}
.hb-grid {grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
}
@media (max-width:900px) {
.help-layout {grid-template-columns:1fr;row-gap:22px}
.help-side {position:static;max-height:none;padding:16px}
.hs-nav {display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:6px}
.hs-group {margin-top:0}
}
@media (max-width:760px) {
.hl-item {grid-template-columns:28px minmax(0,1fr) 14px;column-gap:10px;padding:14px 4px}
.hl-date {display:none}
.hl-body strong {font-size:14px}
.hb-grid {grid-template-columns:1fr}
.hb-faq-item {padding:13px 4px;column-gap:12px}
.hf-d {-webkit-line-clamp:2}
.hb-title {font-size:19px}
.hl-head h1 {font-size:21px}
.help-tip {padding:16px 18px}
.help-tip .btn {width:100%;justify-content:center}
}
