/* 飞鱼数据 · 使用帮助（主站独立页） */

.help-site-page {
  background: var(--bg-soft);
}

.help-page-wrap {
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 48px;
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg-soft) 280px);
}

.help-site-footer {
  margin-top: 0;
}

.help-site-footer .footer-main {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.help-hero {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 24px;
}

.help-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.help-hero p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.help-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(60, 102, 255, 0.06);
  display: flex;
  min-height: 560px;
  overflow: hidden;
}

/* ── 帮助侧栏目录 ── */
.help-nav {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 12px 0 16px;
  overflow-y: auto;
}

.help-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.help-nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.help-nav-item.is-active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.help-nav-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.help-nav-caret {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.help-nav-group.is-open .help-nav-caret {
  transform: rotate(90deg);
}

.help-nav-sub {
  display: none;
  padding: 2px 0 4px;
}

.help-nav-group.is-open .help-nav-sub {
  display: block;
}

.help-nav-sub-item {
  display: block;
  padding: 8px 16px 8px 42px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.help-nav-sub-item:hover {
  background: #f8f9fc;
  color: var(--primary);
  text-decoration: none;
}

.help-nav-sub-item.is-active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* ── 帮助正文区 ── */
.help-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.help-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.help-content-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.help-search {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.help-search-input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fc;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.help-search-input:focus {
  border-color: var(--primary);
  background: var(--bg);
}

.help-search-input::placeholder {
  color: var(--text-muted);
}

.help-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
}

.help-search-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.help-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* 话题列表 */
.help-topic-list {
  list-style: none;
}

.help-topic-item {
  border-bottom: 1px solid var(--border);
}

.help-topic-link {
  display: block;
  padding: 18px 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.help-topic-link:hover {
  background: #fafbfd;
  text-decoration: none;
}

.help-topic-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.help-topic-path {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.help-topic-path strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.help-topic-preview {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.help-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* 文章详情 */
.help-article-detail {
  padding: 16px 36px 56px;
  max-width: none;
  margin: 0;
}

.help-content-body--article {
  padding: 0 !important;
  background: #fff;
}

.ha-figure {
  margin: 16px 0 24px;
  text-align: center;
}

.ha-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(26, 29, 38, 0.08);
}

.ha-figure-sm img {
  max-width: 480px;
}

.ha-figure-qr img {
  width: 200px;
  max-width: 200px;
  border-radius: 12px;
}

.ha-figure figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.help-article-body p strong {
  color: var(--text);
  font-weight: 600;
}

.help-article-body > p {
  margin-bottom: 10px;
}

.ha-tip p {
  margin: 6px 0 0;
}

.help-article-crumb {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.help-article-crumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.help-article-crumb a:hover {
  color: var(--primary);
}

.help-crumb-sep {
  margin: 0 4px;
  color: var(--text-muted);
}

.help-article-toolbar {
  margin-bottom: 8px;
}

.help-article-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.help-article-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.help-article-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

.help-article-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}

.help-article-back:hover {
  text-decoration: underline;
}

.help-article-body {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.help-article-body p {
  margin-bottom: 14px;
}

.help-article-body ol,
.help-article-body ul {
  margin: 0 0 14px 1.3em;
}

.help-article-body li {
  margin-bottom: 8px;
}

.help-article-body strong {
  color: var(--text);
}

.help-article-body a {
  color: var(--primary);
}

.help-article-body h3.ha-section {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}

.help-article-body h4.ha-subsection {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.ha-tip {
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.82rem;
}

.ha-tip ul {
  margin-top: 8px;
  margin-bottom: 0;
}

.ha-faq-toc {
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px 14px 2.2em;
  margin: 16px 0 24px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ha-faq-toc li {
  margin-bottom: 6px;
}

.ha-faq-end {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* 会员页示意图 */
.ha-shot-ms-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 160px;
  background: #fff;
}

.ha-shot-ms-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  background: #f7f9fc;
  border-right: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.ha-shot-ms-buy {
  margin-top: auto;
  padding: 6px 8px;
  border-radius: 6px;
  position: relative;
}

.ha-shot-ms-buy.is-highlight {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.ha-shot-ms-main {
  padding: 12px 14px;
}

.ha-shot-ms-tabs {
  display: flex;
  gap: 12px;
  font-size: 0.68rem;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.ha-shot-ms-tabs .is-active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  margin-bottom: -9px;
  padding-bottom: 6px;
}

.ha-shot-ms-plans {
  display: flex;
  gap: 8px;
}

.ha-shot-ms-plan {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.68rem;
}

.ha-shot-ms-plan b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.ha-shot-ms-plan small {
  color: var(--text-muted);
}

.ha-shot-ms-plan.is-current {
  border-color: var(--primary);
  background: var(--primary-light);
}

.ha-shot-ms-plan.is-current b {
  color: var(--primary);
}

/* 示意图 */
.ha-shot {
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f7f9fc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ha-shot-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: #eef0f5;
  border-bottom: 1px solid var(--border);
}

.ha-shot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d5e0;
}

.ha-shot-browser em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ha-shot-home-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  position: relative;
}

.ha-shot-logo {
  font-weight: 700;
  color: var(--text);
}

.ha-shot-nav-item {
  color: var(--text-secondary);
}

.ha-shot-target {
  margin-left: auto;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  position: relative;
}

.ha-shot-arrow {
  position: absolute;
  top: -28px;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #f53f3f;
}

.ha-shot-arrow::after {
  content: "登录入口";
  position: absolute;
  top: 14px;
  right: -24px;
  font-size: 0.6rem;
  color: #f53f3f;
  white-space: nowrap;
  font-weight: 600;
  border: none;
  width: auto;
  height: auto;
}

.ha-shot-home-body {
  position: relative;
  min-height: 200px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
}

.ha-shot-hero-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.ha-shot-hero-text b {
  color: var(--primary);
}

.ha-shot-modal {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: 0 8px 32px rgba(60, 102, 255, 0.12);
}

.ha-shot-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.ha-shot-modal-tabs span {
  color: var(--text-muted);
  padding-bottom: 4px;
}

.ha-shot-modal-tabs .is-active {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

.ha-shot-qr {
  text-align: center;
}

.ha-shot-qr-grid {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  background:
    linear-gradient(90deg, #333 2px, transparent 2px) 0 0 / 12px 12px,
    linear-gradient(#333 2px, transparent 2px) 0 0 / 12px 12px;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  opacity: 0.7;
}

.ha-shot-qr small {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ha-shot-modal-tip {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
}

.ha-shot-profile {
  background: #fff;
}

.ha-shot-profile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
}

.ha-shot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.ha-shot-profile-menu {
  padding: 8px;
}

.ha-shot-menu-item {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-radius: 8px;
}

.ha-shot-menu-item.is-highlight {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.ha-shot-menu-item.muted {
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  border-radius: 0;
}

@media (max-width: 900px) {
  .help-page-wrap { padding-top: calc(var(--nav-h) + 12px); }
  .help-container { flex-direction: column; }
  .help-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 200px;
  }
  .help-content-head { flex-direction: column; align-items: stretch; }
  .help-search { width: 100%; }
}
