:root {
  --help-ink: #182230;
  --help-muted: #64748b;
  --help-soft: #f6f8fc;
  --help-line: #e3e8f1;
  --help-blue: #2563eb;
  --help-blue-dark: #1d4ed8;
  --help-green: #047857;
  --help-max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.help-body {
  margin: 0;
  color: var(--help-ink);
  background: #fff;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.help-body a { color: inherit; text-decoration: none; }
.help-body img { display: block; max-width: 100%; }

.help-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(227, 232, 241, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.help-header-inner {
  display: flex;
  width: min(var(--help-max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.help-brand { display: inline-flex; align-items: center; gap: 14px; min-width: max-content; }
.help-brand img { width: 184px; height: auto; }
.help-brand span { padding-left: 14px; border-left: 1px solid var(--help-line); color: var(--help-muted); font-size: 13px; font-weight: 700; }
.help-header-actions { display: inline-flex; align-items: center; gap: 10px; }
.help-header-actions a { color: var(--help-muted); font-size: 13px; font-weight: 700; }
.help-header-actions a:hover { color: var(--help-blue); }
.help-header-actions .help-header-button { padding: 9px 14px; border: 1px solid var(--help-line); border-radius: 8px; color: var(--help-ink); background: #fff; }

.help-shell { width: min(var(--help-max), calc(100% - 40px)); margin: 0 auto; }
.help-hero { padding: 72px 0 58px; background: linear-gradient(180deg, #f7faff 0%, #fff 100%); }
.help-hero-copy { max-width: 710px; margin: 0 auto; text-align: center; }
.help-eyebrow { margin: 0 0 10px; color: var(--help-blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.help-hero h1 { margin: 0; color: #101827; font-size: clamp(34px, 5vw, 58px); letter-spacing: 0; line-height: 1.08; }
.help-hero p { max-width: 600px; margin: 18px auto 0; color: var(--help-muted); font-size: 17px; }
.help-version { display: inline-flex; margin-top: 20px; padding: 6px 10px; border: 1px solid #cfe0ff; border-radius: 999px; color: var(--help-blue-dark); background: #eff5ff; font-size: 12px; font-weight: 750; }

.help-search { display: flex; max-width: 650px; margin: 30px auto 0; padding: 6px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 16px 34px -24px rgba(37, 99, 235, .55); }
.help-search svg { width: 20px; height: 20px; flex: none; margin: 13px 10px 13px 13px; color: var(--help-muted); }
.help-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--help-ink); background: transparent; font: inherit; }
.help-search input::placeholder { color: #94a3b8; }

.help-content { padding: 50px 0 80px; }
.help-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.help-section-heading h2 { margin: 0; color: #101827; font-size: 26px; line-height: 1.2; }
.help-section-heading p { margin: 6px 0 0; color: var(--help-muted); }
.help-filters { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.help-filter { padding: 8px 12px; border: 1px solid var(--help-line); border-radius: 8px; color: var(--help-muted); background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.help-filter:hover, .help-filter[aria-pressed="true"] { border-color: #b8cdfb; color: var(--help-blue-dark); background: #eff5ff; }

.help-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-card { display: flex; min-height: 212px; flex-direction: column; padding: 22px; border: 1px solid var(--help-line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -27px rgba(15, 23, 42, .35); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.help-card:hover { border-color: #b8cdfb; box-shadow: 0 20px 36px -28px rgba(37, 99, 235, .45); transform: translateY(-2px); }
.help-card.is-hidden { display: none; }
.help-card-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; color: var(--help-blue-dark); background: #eff5ff; font-size: 13px; font-weight: 850; }
.help-card h3 { margin: 18px 0 7px; color: #101827; font-size: 17px; line-height: 1.3; }
.help-card p { margin: 0; color: var(--help-muted); font-size: 13px; }
.help-card-meta { display: flex; margin-top: auto; padding-top: 18px; align-items: center; justify-content: space-between; color: #94a3b8; font-size: 11px; font-weight: 750; }
.help-card-meta strong { color: var(--help-blue); font-size: 12px; }
.help-empty { display: none; padding: 42px 16px; border: 1px dashed #cbd5e1; border-radius: 10px; color: var(--help-muted); text-align: center; }
.help-empty.is-visible { display: block; }

.help-note { display: flex; margin: 46px 0 0; gap: 14px; padding: 20px; border: 1px solid #cfe0ff; border-radius: 10px; background: #f7faff; }
.help-note strong { display: block; margin-bottom: 3px; color: var(--help-ink); }
.help-note p { margin: 0; color: var(--help-muted); font-size: 13px; }
.help-note a { color: var(--help-blue-dark); font-weight: 750; }

.help-footer { border-top: 1px solid var(--help-line); background: #fbfcfe; }
.help-footer-inner { display: flex; width: min(var(--help-max), calc(100% - 40px)); min-height: 92px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 20px; color: var(--help-muted); font-size: 12px; }
.help-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.help-footer a:hover { color: var(--help-blue); }
.help-footer-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--help-muted); }
.help-footer-contact img { width: 42px; height: 42px; padding: 3px; border: 1px solid var(--help-line); border-radius: 6px; background: #fff; object-fit: contain; }

.help-article-layout { display: grid; grid-template-columns: 215px minmax(0, 720px); justify-content: center; gap: 58px; padding: 58px 0 90px; }
.help-article-sidebar { position: sticky; top: 105px; align-self: start; }
.help-article-sidebar a { display: block; padding: 7px 0; color: var(--help-muted); font-size: 13px; }
.help-article-sidebar a:hover { color: var(--help-blue); }
.help-article-sidebar .help-sidebar-label { margin: 0 0 8px; color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.help-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; color: var(--help-muted); font-size: 12px; }
.help-breadcrumbs a:hover { color: var(--help-blue); }
.help-article h1 { margin: 0; color: #101827; font-size: clamp(30px, 5vw, 44px); line-height: 1.14; }
.help-article-lede { margin: 14px 0 0; color: var(--help-muted); font-size: 17px; }
.help-article-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 38px; color: #64748b; font-size: 12px; }
.help-article-meta span { padding: 5px 9px; border-radius: 6px; background: #f1f5f9; }
.help-article h2 { margin: 42px 0 12px; color: #101827; font-size: 23px; line-height: 1.25; }
.help-article h3 { margin: 26px 0 8px; color: #1e293b; font-size: 17px; }
.help-article p, .help-article li { color: #475569; }
.help-article p { margin: 11px 0; }
.help-article ul, .help-article ol { margin: 12px 0 18px; padding-left: 23px; }
.help-article li + li { margin-top: 7px; }
.help-article a { color: var(--help-blue-dark); font-weight: 700; }
.help-step { margin: 16px 0; padding: 17px 19px; border-left: 3px solid #93b3fd; background: #f7faff; }
.help-step strong { display: block; margin-bottom: 4px; color: var(--help-ink); }
.help-callout { margin: 24px 0; padding: 18px 20px; border: 1px solid #b9eadb; border-radius: 8px; background: #f0fdf9; }
.help-callout strong { color: var(--help-green); }
.help-callout p { margin-bottom: 0; }
.help-article figure { margin: 25px 0; padding: 12px; border: 1px solid var(--help-line); border-radius: 10px; background: #f8fafc; }
.help-article figure img { max-height: 500px; margin: 0 auto; border-radius: 6px; object-fit: contain; }
.help-article figcaption { padding: 9px 4px 0; color: var(--help-muted); font-size: 12px; text-align: center; }
.help-article-footer { display: flex; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--help-line); align-items: center; justify-content: space-between; gap: 15px; color: var(--help-muted); font-size: 13px; }
.help-article-footer a { color: var(--help-blue-dark); }

@media (max-width: 820px) {
  .help-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-article-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 38px; }
  .help-article-sidebar { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding-bottom: 15px; border-bottom: 1px solid var(--help-line); }
  .help-article-sidebar .help-sidebar-label { width: 100%; }
}

@media (max-width: 560px) {
  .help-header-inner, .help-shell, .help-footer-inner { width: min(100% - 28px, var(--help-max)); }
  .help-header-inner { min-height: 64px; gap: 10px; }
  .help-brand img { width: 142px; }
  .help-brand span { display: none; }
  .help-header-actions a:first-child { display: none; }
  .help-hero { padding: 50px 0 42px; }
  .help-hero h1 { font-size: 36px; }
  .help-hero p { font-size: 15px; }
  .help-content { padding-top: 36px; }
  .help-section-heading { display: block; }
  .help-filters { justify-content: start; margin-top: 14px; }
  .help-card-grid { grid-template-columns: 1fr; }
  .help-footer-inner { display: block; padding: 24px 0; }
  .help-footer nav { margin-top: 12px; }
  .help-footer-contact { margin-top: 14px; }
}

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