/* 帮助中心 · 仅本目录使用，不改全站 styles.css */

.help-embed-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(12, 15, 20, 0.94);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

html.help-embed .help-embed-bar {
  display: flex;
}

html.help-embed .site-header,
html.help-embed .site-footer {
  display: none !important;
}

html.help-embed body {
  padding-bottom: 1.5rem;
}

.help-embed-bar a {
  color: var(--accent);
  font-weight: 600;
}

.help-page {
  padding: 2.25rem 0 4rem;
}

.help-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.help-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.help-search {
  width: min(100%, 28rem);
  margin-bottom: 1.75rem;
}

.help-search input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font: inherit;
}

.help-search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.help-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.help-cat {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.help-cat:hover,
.help-cat.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.help-cat small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.help-section-title {
  margin: 2rem 0 0.85rem;
  font-size: 1.15rem;
}

.help-topic-list {
  display: grid;
  gap: 0.65rem;
}

.help-topic {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.help-topic:hover {
  border-color: rgba(255, 119, 94, 0.45);
}

.help-topic h3 {
  margin: 0;
  font-size: 1rem;
}

.help-topic h3 a {
  color: var(--text);
}

.help-topic h3 a:hover {
  color: var(--accent);
}

.help-topic p,
.help-topic .path {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.help-topic .path {
  color: #fdba74;
}

.guide-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}

.help-feedback-box,
.help-notes,
.help-article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}

.help-feedback-box {
  margin-top: 2.25rem;
}

.help-feedback-box h2,
.help-notes h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.help-feedback-box p,
.help-notes li,
.help-article-body p {
  color: var(--text-muted);
}

.help-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.help-crumb a {
  color: #fdba74;
}

.help-article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.path-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
}

.path-pills span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffd7cc;
  font-size: 0.85rem;
  font-weight: 600;
}

.path-pills .sep {
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  font-weight: 500;
}

.help-steps {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.help-steps > li {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-head {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0e0c;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.help-steps h3 {
  margin: 0.1rem 0 0;
  font-size: 1rem;
}

.help-steps p {
  margin: 0;
  color: var(--text-muted);
}

.help-steps ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.help-steps li ul {
  display: grid;
  gap: 0.35rem;
}

.help-steps code {
  word-break: break-all;
}

.guide-shot {
  margin: 0.2rem 0 0;
}

.shot-frame {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #111;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-frame.shot-wide {
  max-width: 36rem;
  border-radius: 16px;
}

.hotspot {
  position: absolute;
  width: 1.45rem;
  height: 1.45rem;
  margin-left: -0.72rem;
  margin-top: -0.72rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0e0c;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(255, 119, 94, 0.35);
}

.guide-shot figcaption {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.help-notes ul {
  margin: 0;
  padding-left: 1.1rem;
}

.help-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.help-related a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
}

.help-related a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
}

.help-webapp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 119, 94, 0.35);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 119, 94, 0.12), rgba(255, 119, 94, 0.04));
}

.help-webapp-copy {
  flex: 1 1 16rem;
}

.help-webapp-copy strong {
  display: block;
  margin-bottom: 0.25rem;
}

.help-webapp-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-hero-web {
  margin: 0 0 1.25rem;
}

.help-topic-web {
  margin: 0.45rem 0 0;
}

.help-topic-web a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

html.help-embed .help-webapp,
html.help-embed .help-hero-web,
html.help-embed .help-topic-web,
html.help-embed .help-actions .btn-primary {
  display: none;
}

.help-hidden {
  display: none !important;
}

.section-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

@media (max-width: 640px) {
  .shot-frame {
    max-width: 240px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
