:root {
  --help-sidebar: #121526;
  --help-sidebar-soft: #1b2035;
  --help-green: #0b7a46;
  --help-green-hover: #08673b;
  --help-green-soft: #e9f4ef;
  --help-bg: #f8f9f8;
  --help-surface: #ffffff;
  --help-text: #121a27;
  --help-muted: #6f7887;
  --help-border: #e1e7e4;
  --help-sidebar-width: 286px;
  --help-topbar-height: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html { min-width: 320px; background: var(--help-bg); }
body.help-center-page {
  min-height: 100vh;
  margin: 0;
  background: var(--help-bg);
  color: var(--help-text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.help-sidebar {
  position: fixed;
  z-index: 80;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--help-sidebar-width);
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background: var(--help-sidebar);
  color: #fff;
}

.help-sidebar__brand {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.help-sidebar__brand > a {
  display: flex;
  align-items: center;
  padding-left: 50px;
  color: #fff;
  text-decoration: none;
}

.help-sidebar__brand span { display: grid; }
.help-sidebar__brand strong { font-size: 19px; line-height: 1.2; letter-spacing: .01em; }

.help-sidebar__close,
.help-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.help-search {
  position: relative;
  margin: 18px 18px 10px;
}

.help-search label {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #858fa4;
  transform: translateY(-50%);
  pointer-events: none;
}

.help-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  outline: none;
  background: var(--help-sidebar-soft);
  color: #fff;
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease;
}

.help-search input::placeholder { color: #7d879b; }
.help-search input:focus { border-color: rgba(50,194,125,.65); background: #20263c; }
.help-search > button {
  position: absolute;
  top: 50%;
  right: 9px;
  display: none;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #8c95a8;
  cursor: pointer;
  transform: translateY(-50%);
}
.help-search.has-value > button { display: block; }
.help-search__empty { margin: 0 22px 8px; color: #9ba4b5; font-size: 12px; }

.help-nav {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px 12px 28px;
  scrollbar-color: #32394e transparent;
  scrollbar-width: thin;
}

.help-nav__group { margin-top: 20px; }
.help-nav__group[hidden] { display: none; }
.help-nav__group h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 10px 8px;
  color: #f3f5f8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.help-nav__group h2 i { width: 16px; color: #6f7a91; text-align: center; }
.help-nav__item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  padding: 8px 12px 8px 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9da6b9;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.help-nav__item i { width: 16px; color: #6f7a91; text-align: center; transition: color .18s ease; }
.help-nav__item:hover { background: rgba(255,255,255,.055); color: #fff; transform: translateX(2px); }
.help-nav__item:hover i { color: #a8d7bf; }
.help-nav__item.is-active { background: var(--help-green); color: #fff; font-weight: 650; }
.help-nav__item.is-active i { color: #fff; }
.help-nav__item[hidden] { display: none; }

.help-sidebar__support {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 26px;
  align-items: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: var(--help-sidebar-soft);
}
.help-sidebar__support > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(11,122,70,.35);
  color: #8fe0b8;
}
.help-sidebar__support div { display: grid; gap: 2px; min-width: 0; }
.help-sidebar__support strong { font-size: 12px; }
.help-sidebar__support small { color: #8791a4; font-size: 10px; white-space: nowrap; }
.help-sidebar__support b { color: #50d998; font-size: 12px; }
.help-sidebar__online-dot { width: 8px; height: 8px; justify-self: center; border-radius: 50%; background: #36d28a; box-shadow: 0 0 0 4px rgba(54,210,138,.12); }

.help-topbar {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto var(--help-sidebar-width);
  display: flex;
  height: var(--help-topbar-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--help-border);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.help-topbar a { color: #4f5968; font-size: 13px; font-weight: 600; text-decoration: none; }
.help-topbar__home { display: inline-flex; align-items: center; gap: 8px; }
.help-topbar__home i { color: var(--help-green); }
.help-topbar__actions { display: flex; align-items: center; gap: 18px; }
.help-topbar__actions > a:hover { color: var(--help-green); }
.help-topbar__register {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--help-green);
  color: #fff !important;
}
.help-topbar__register:hover { background: var(--help-green-hover); }
.help-topbar__profile img { display: block; width: 32px; height: 32px; border: 1px solid var(--help-border); border-radius: 50%; object-fit: cover; }

.help-main {
  min-height: 100vh;
  margin-left: var(--help-sidebar-width);
  padding: calc(var(--help-topbar-height) + 38px) 32px 72px;
}
.help-home { width: 100%; }
.help-article { width: min(1240px, 100%); margin: 0 auto; }

.help-hero {
  display: flex;
  min-height: 200px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 36px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.help-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.15; letter-spacing: -.04em; }
.help-hero__copy > p:last-child { max-width: 600px; margin: 16px 0 0; color: #929aa7; font-size: 14px; line-height: 1.75; }
.help-hero__start {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: var(--help-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.help-hero__start:hover { background: var(--help-green-hover); transform: translateY(-1px); }

.help-home > .help-section { width: 100%; }
.help-section { margin-top: 50px; }
.help-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.help-section__heading h2 { margin: 0; font-size: 25px; line-height: 1.35; letter-spacing: -.02em; }
.help-section__heading > span { color: #929aa7; font-size: 13px; }

.help-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.help-category-card {
  display: flex;
  min-height: 296px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--help-border);
  border-radius: 14px;
  background: var(--help-surface);
  box-shadow: 0 5px 18px rgba(24,34,29,.035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.help-category-card:hover { transform: translateY(-3px); border-color: #cddbd4; box-shadow: 0 13px 30px rgba(24,34,29,.07); }
.help-category-card--featured { border-color: #c7ded2; background: #fbfdfc; }
.help-category-card__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 10px;
  background: var(--help-green-soft);
  color: var(--help-green);
}
.help-category-card h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.help-category-card > p { min-height: 44px; margin: 8px 0 15px; color: var(--help-muted); font-size: 13px; line-height: 1.65; }
.help-category-card > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid #eef1ef;
  background: transparent;
  color: #475164;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.help-category-card > button i { color: #a4aca8; font-size: 11px; transition: transform .18s ease, color .18s ease; }
.help-category-card > button:hover { color: var(--help-green); }
.help-category-card > button:hover i { color: var(--help-green); transform: translateX(2px); }

.help-tutorials { margin-top: 52px; }
.help-tutorial-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.help-tutorial-grid > button {
  position: relative;
  display: flex;
  min-height: 165px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--help-border);
  border-radius: 13px;
  background: var(--help-surface);
  color: var(--help-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.help-tutorial-grid > button:hover { transform: translateY(-3px); border-color: #bcd7ca; box-shadow: 0 10px 24px rgba(24,34,29,.06); }
.help-tutorial-grid > button > span { position: absolute; top: 17px; right: 17px; color: #c7ceca; font-size: 12px; font-weight: 800; }
.help-tutorial-grid > button > i { margin: 3px 0 22px; color: var(--help-green); font-size: 23px; }
.help-tutorial-grid strong { font-size: 15px; }
.help-tutorial-grid small { margin-top: 8px; color: var(--help-muted); font-size: 12px; line-height: 1.55; }

.help-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 27px; color: #929aa7; font-size: 12px; }
.help-breadcrumb button { padding: 0; border: 0; background: transparent; color: var(--help-green); cursor: pointer; }
.help-breadcrumb i { font-size: 8px; }
.help-article__header { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--help-border); }
.help-article__icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border-radius: 13px; background: var(--help-green); color: #fff; font-size: 20px; }
.help-article__header h1 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: -.03em; }
.help-article__header span { display: block; margin-top: 7px; color: var(--help-muted); font-size: 14px; }
.help-article__layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 54px; margin-top: 34px; align-items: start; }
.help-article__content { min-width: 0; }
.help-article__content section { scroll-margin-top: 90px; margin-bottom: 38px; }
.help-article__lead-image { overflow: hidden; margin: 0 0 24px; border: 1px solid var(--help-border); border-radius: 12px; background: #0a1117; box-shadow: 0 8px 24px rgba(24,34,29,.06); }
.help-article__lead-image img { display: block; width: 100%; height: auto; }
.help-article__lead-video { overflow: hidden; margin: 0 0 24px; aspect-ratio: 16 / 9; border: 1px solid var(--help-border); border-radius: 12px; background: #0a1117; box-shadow: 0 8px 24px rgba(24,34,29,.06); }
.help-article__lead-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0a1117; }
.help-article__content h2 { margin: 0 0 13px; font-size: 22px; line-height: 1.4; }
.help-article__content p { margin: 0 0 13px; color: #5f6978; font-size: 14px; line-height: 1.85; }
.help-article__content p.help-paragraph--warning { color: #fb4c0f; font-weight: 600; }
.help-article__content ol, .help-article__content ul { display: grid; gap: 10px; margin: 14px 0; padding-left: 22px; color: #4e5968; font-size: 14px; line-height: 1.75; }
.help-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px; margin: 20px 0; }
.help-qr-card { margin: 0; padding: 16px; border: 1px solid var(--help-border); border-radius: 12px; background: #fff; text-align: center; }
.help-qr-card img { display: block; width: 100%; max-width: 188px; height: auto; margin: 0 auto; border-radius: 6px; }
.help-qr-card figcaption { display: grid; gap: 4px; margin-top: 12px; }
.help-qr-card strong { color: var(--help-text); font-size: 14px; }
.help-qr-card small { color: #929aa7; font-size: 12px; }
.help-callout { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; padding: 15px 17px; border: 1px solid #cce2d7; border-radius: 10px; background: var(--help-green-soft); color: #315d49; }
.help-callout i { margin-top: 3px; color: var(--help-green); }
.help-callout p { margin: 0; color: inherit; font-size: 13px; }
.help-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 20px 0 4px; }
.help-guide-card { overflow: hidden; padding: 19px; border: 1px solid var(--help-border); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(24,34,29,.025); }
.help-guide-card--wide { grid-column: 1 / -1; }
.help-guide-card > header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.help-guide-card > header > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: var(--help-green-soft); color: var(--help-green); font-size: 14px; }
.help-guide-card h3 { margin: 0; color: var(--help-text); font-size: 16px; line-height: 1.4; }
.help-guide-card__items { display: grid; }
.help-guide-item { min-width: 0; padding: 12px 0; border-bottom: 1px solid #edf1ef; }
.help-guide-item:first-child { padding-top: 2px; }
.help-guide-item:last-child { padding-bottom: 1px; border-bottom: 0; }
.help-guide-item strong { display: block; margin-bottom: 4px; color: #253129; font-size: 13px; line-height: 1.55; }
.help-article__content .help-guide-item p { margin: 0; color: #66716c; font-size: 12px; line-height: 1.75; }
.help-guide-card__items--columns { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.help-guide-card__items--columns .help-guide-item { padding: 14px; border: 1px solid #e7edea; border-radius: 10px; background: #f8faf9; }
.help-guide-card__items--columns .help-guide-item:first-child,
.help-guide-card__items--columns .help-guide-item:last-child { padding: 14px; }
.help-guide-item__codes { display: grid; gap: 5px; margin-top: 10px; }
.help-guide-item__codes code { display: block; padding: 7px 9px; border-radius: 7px; background: #edf5f1; color: #35604b; font-family: Consolas, "SFMono-Regular", "Microsoft YaHei", monospace; font-size: 10.5px; line-height: 1.55; overflow-wrap: anywhere; user-select: all; }
.help-step-list { display: grid; gap: 12px; margin: 17px 0; }
.help-step { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 13px; align-items: start; padding: 15px; border: 1px solid var(--help-border); border-radius: 10px; background: #fff; }
.help-step > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--help-green-soft); color: var(--help-green); font-size: 12px; font-weight: 800; }
.help-step strong { display: block; margin-bottom: 4px; font-size: 14px; }
.help-step p { margin: 0; font-size: 13px; line-height: 1.65; }
.help-screenshot-list { display: grid; gap: 18px; margin: 20px 0; }
.help-screenshot-card { display: grid; grid-template-columns: minmax(210px,.75fr) minmax(280px,1fr); overflow: hidden; margin: 0; border: 1px solid var(--help-border); border-radius: 12px; background: #fff; }
.help-screenshot-card figcaption { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; align-content: start; padding: 22px; }
.help-screenshot-card figcaption > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--help-green-soft); color: var(--help-green); font-size: 12px; font-weight: 800; }
.help-screenshot-card figcaption strong { display: block; margin: 5px 0 8px; color: var(--help-text); font-size: 15px; }
.help-screenshot-card figcaption p { margin: 0; font-size: 13px; line-height: 1.75; }
.help-screenshot-card__media { display: flex; min-height: 320px; align-items: center; justify-content: center; padding: 16px; border-left: 1px solid var(--help-border); background: #f4f6f5; }
.help-screenshot-card img { display: block; width: auto; max-width: 100%; max-height: 600px; object-fit: contain; border-radius: 7px; box-shadow: 0 5px 20px rgba(16,24,20,.09); }
.help-article__aside { position: sticky; top: calc(var(--help-topbar-height) + 28px); display: grid; gap: 15px; }
.help-article__aside > div { padding: 18px; border: 1px solid var(--help-border); border-radius: 12px; background: #fff; }
.help-article__aside > div > span { display: block; margin-bottom: 11px; color: #9098a3; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
#articleToc { display: grid; gap: 4px; }
#articleToc a { padding: 6px 0; color: #596475; font-size: 13px; text-decoration: none; }
#articleToc a:hover { color: var(--help-green); }
.help-article__tip i { margin-bottom: 14px; color: var(--help-green); font-size: 19px; }
.help-article__tip strong { display: block; font-size: 14px; }
.help-article__tip p { margin: 7px 0 13px; color: var(--help-muted); font-size: 12px; line-height: 1.65; }
.help-article__tip a { color: var(--help-green); font-size: 12px; font-weight: 700; text-decoration: none; }

.help-overlay { position: fixed; z-index: 70; inset: 0; background: rgba(7,11,20,.48); }

@media (max-width: 1180px) {
  :root { --help-sidebar-width: 260px; }
  .help-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .help-category-card { min-height: 276px; }
  .help-tutorial-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (min-width: 1181px) and (max-width: 1300px) {
  .help-category-grid, .help-tutorial-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .help-sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  body.help-menu-open { overflow: hidden; }
  body.help-menu-open .help-sidebar { transform: translateX(0); }
  .help-sidebar__close, .help-menu-button { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; }
  .help-sidebar__close:hover { background: rgba(255,255,255,.08); }
  .help-topbar { left: 0; padding: 0 18px; }
  .help-menu-button { color: #384252; }
  .help-topbar__home { margin-right: auto; margin-left: 6px; }
  .help-main { margin-left: 0; padding-right: 22px; padding-left: 22px; }
  .help-article__layout { grid-template-columns: 1fr; gap: 22px; }
  .help-article__aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .help-topbar { height: 58px; }
  .help-topbar__home span { display: none; }
  .help-topbar__actions { gap: 12px; }
  .help-topbar__register { padding: 7px 13px; }
  .help-main { padding: 82px 15px 48px; }
  .help-hero { min-height: 0; align-items: flex-start; flex-direction: column; padding: 26px 0; border-radius: 0; }
  .help-hero h1 { font-size: 34px; }
  .help-hero__copy > p:last-child { font-size: 14px; }
  .help-hero__start { width: 100%; justify-content: space-between; }
  .help-section { margin-top: 34px; }
  .help-section__heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .help-section__heading h2 { font-size: 22px; }
  .help-category-grid, .help-tutorial-grid { grid-template-columns: 1fr; }
  .help-category-card { min-height: 0; padding: 20px; }
  .help-tutorial-grid > button { min-height: 145px; }
  .help-article__header { align-items: flex-start; }
  .help-article__header h1 { font-size: 27px; }
  .help-article__icon { width: 46px; height: 46px; flex-basis: 46px; }
  .help-article__layout { margin-top: 26px; }
  .help-article__aside { grid-template-columns: 1fr; }
  .help-qr-grid { grid-template-columns: 1fr; }
  .help-guide-grid { grid-template-columns: 1fr; }
  .help-guide-card--wide { grid-column: auto; }
  .help-guide-card__items--columns { grid-template-columns: 1fr; }
  .help-guide-card { padding: 16px; }
  .help-screenshot-card { grid-template-columns: 1fr; }
  .help-screenshot-card__media { min-height: 0; border-top: 1px solid var(--help-border); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
