/**
 * 帮助中心版式：对照新版运动会（149Ydh /help/）的左目录右正文，
 * 配色跟随进销存米色与语义按钮。
 */
:root {
  --help-accent: var(--teal);
  --help-accent-dark: var(--teal-2);
  --help-accent-soft: rgba(15, 143, 138, 0.1);
  --help-text: var(--text);
  --help-muted: var(--muted);
  --help-border: var(--line);
  --help-bg: var(--paper);
  --help-panel: var(--card);
  --help-sidebar-w: 248px;
}

.main.help-page {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
}

.help-guest {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--help-bg);
}
.help-guest-bar {
  flex: 0 0 var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--help-panel);
  border-bottom: 1px solid var(--help-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.help-guest-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.help-guest-brand strong { font-size: 15px; font-weight: 650; }
.help-guest-bar .linkish {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--teal);
}
.help-guest-bar .linkish:hover { background: #efe8da; color: var(--ink); }
.help-guest-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.help-guest .help-shell { flex: 1 1 auto; min-height: 0; }
.help-guest .help-sidebar {
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
}

.help-shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--help-bg);
}

.help-sidebar {
  flex: 0 0 var(--help-sidebar-w);
  width: var(--help-sidebar-w);
  background: var(--help-panel);
  border-right: 1px solid var(--help-border);
  padding: 16px 0 28px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: calc(100vh - var(--header-h));
}

.help-search {
  padding: 0 14px 12px;
}
.help-search input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  background: #fff;
}

.help-nav-group { margin-bottom: 14px; }
.help-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 16px 8px;
  border: 0;
  background: transparent;
  color: var(--help-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}
.help-nav-group-title:hover { color: var(--help-accent-dark); }
.help-nav-group.is-collapsed .help-nav-list { display: none; }

.help-nav-list,
.help-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-nav-link {
  display: block;
  width: 100%;
  padding: 7px 16px 7px 18px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--help-text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.help-nav-link--sub {
  padding-left: 32px;
  font-size: 12px;
  color: var(--help-muted);
}
.help-nav-link:hover {
  background: var(--help-bg);
  color: var(--help-accent-dark);
}
.help-nav-link.is-active {
  background: var(--help-accent-soft);
  color: var(--help-accent-dark);
  border-left-color: var(--help-accent);
  font-weight: 650;
}
.help-nav-link.is-ancestor {
  color: var(--help-accent-dark);
  font-weight: 650;
}
.help-nav-item.is-hidden,
.help-nav-group.is-hidden { display: none; }

.help-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px 32px 56px;
}

.help-article { max-width: 860px; }

.help-breadcrumb {
  font-size: 13px;
  color: var(--help-muted);
  margin-bottom: 10px;
}
.help-breadcrumb button {
  border: 0;
  background: none;
  color: var(--help-muted);
  padding: 0;
  cursor: pointer;
}
.help-breadcrumb button:hover { color: var(--help-accent-dark); }
.help-bc-sep { margin: 0 6px; color: #c9cdd4; }
.help-bc-current { color: var(--help-text); }

.help-h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.help-meta {
  margin: 0 0 18px;
  color: var(--help-muted);
  font-size: 13px;
}
.help-meta strong { color: var(--ink); font-weight: 650; }

.help-content h2 {
  margin: 1.6rem 0 0.7rem;
  padding-top: 0.45rem;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  border-top: 1px solid var(--help-border);
}
.help-content h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.help-content h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 15px;
  font-weight: 650;
}
.help-content p,
.help-content ul,
.help-content ol { margin: 0 0 0.85rem; }
.help-content ul,
.help-content ol { padding-left: 1.3rem; }
.help-content li { margin-bottom: 0.32rem; }

.help-content table.data {
  margin: 0 0 1rem;
  font-size: 13px;
  background: var(--help-panel);
}
.help-content table.data th,
.help-content table.data td {
  text-align: center;
  vertical-align: middle;
}

.help-figure {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: var(--help-panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.help-figure-cap {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--help-border);
  font-size: 13px;
  color: var(--help-muted);
  line-height: 1.5;
  background: var(--help-bg);
}

.help-tip,
.help-warn {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.help-tip {
  background: var(--help-accent-soft);
  border: 1px solid rgba(15, 143, 138, 0.28);
  color: #18574f;
}
.help-warn {
  background: #fff7e8;
  border: 1px solid #ffe0a3;
  color: #8a5a00;
}

.help-article-foot {
  margin-top: 2.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--help-border);
  color: var(--help-muted);
  font-size: 12px;
}

.help-related button {
  border: 0;
  background: none;
  color: var(--teal-2);
  padding: 0;
  cursor: pointer;
}
.help-related button:hover { text-decoration: underline; }

.help-mobile-bar { display: none; padding: 12px 0 0; }

/* —— 界面示意图（HTML 复刻，非真实截屏文件） —— */
.help-mock {
  background: var(--paper);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  user-select: none;
}
.help-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: #12384a;
  color: #e7eef1;
  font-weight: 650;
}
.help-mock-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3c15c;
  display: inline-block;
}
.help-mock-bar em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.9;
  margin-left: 6px;
}
.help-mock-body { padding: 12px; }
.help-mock .page-head { margin-bottom: 10px; }
.help-mock .page-head h2 { font-size: 16px; }
.help-mock .btn { min-height: 28px; padding: 0 9px; border-radius: 8px; font-size: 12px; }
.help-mock .btn.sm { min-height: 26px; }
.help-mock .search input,
.help-mock .field input,
.help-mock .field select,
.help-mock .field textarea {
  height: 30px;
  min-height: 30px;
  min-width: 0;
  font-size: 12px;
  border-radius: 8px;
}
.help-mock .field { margin-bottom: 8px; }
.help-mock .field label { font-size: 12px; margin-bottom: 4px; }
.help-mock .panel { padding: 12px; border-radius: 12px; box-shadow: none; }
.help-mock table.data { font-size: 12px; min-width: 0; }
.help-mock table.data th,
.help-mock table.data td { padding: 6px 8px; }
.help-mock .table-wrap { border-radius: 10px; box-shadow: none; }
.help-mock .form-split { gap: 10px; }
.help-mock .form-grid { gap: 8px 12px; }
.help-mock .tabs button { min-height: 32px; padding: 0 12px; font-size: 12px; }
.help-mock .tag { font-size: 11px; }
.help-mock-login {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 280px;
  background: var(--card);
}
.help-mock-login-brand {
  padding: 22px 20px;
  color: #f4f7f4;
  background: #12384a;
}
.help-mock-login-brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3c15c;
  color: #102a3c;
  font-weight: 700;
}
.help-mock-login-brand h3 { margin: 14px 0 4px; font-size: 18px; }
.help-mock-login-brand p { margin: 0; opacity: 0.8; font-size: 12px; }
.help-mock-login-form { padding: 22px 20px; }
.help-mock .captcha-row { display: flex; gap: 8px; align-items: center; }
.help-mock .captcha-ph {
  width: 92px;
  height: 32px;
  border-radius: 8px;
  background: repeating-linear-gradient(-18deg, #d7efe9, #d7efe9 6px, #eef6f5 6px, #eef6f5 12px);
  border: 1px solid var(--line);
  color: #18574f;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.help-mock .ops { justify-content: center; }
.help-mock-expand {
  background: #d6ebf6;
  text-align: left;
  font-size: 11px;
  color: var(--ink);
}
.help-mock-expand td { text-align: left; }

.help-backdrop { display: none; }

@media (max-width: 1023px) {
  .help-mobile-bar { display: block; }
  .help-shell { display: block; }
  .help-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-h);
    z-index: 36;
    width: min(86vw, 300px);
    max-height: calc(100vh - var(--header-h));
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  body.help-nav-open .help-sidebar { transform: none; }
  .help-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 34;
    background: rgba(16, 42, 60, 0.35);
    opacity: 0;
    pointer-events: none;
  }
  body.help-nav-open .help-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .help-main { padding: 16px 14px 48px; }
  .help-h1 { font-size: 22px; }
  .help-mock-login { grid-template-columns: 1fr; }
  .help-mock-login-brand { display: none; }
}

@media (max-width: 767px) {
  .main.help-page { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .help-mock .form-split { grid-template-columns: 1fr; }
  .help-mock table.data,
  .help-content table.data { display: table; }
}
