.help-page {
  line-height: 1.75;
}

.help-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(223, 227, 243, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.help-header-inner,
.help-main,
.help-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.help-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.help-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.help-brand strong,
.help-brand small {
  display: block;
}

.help-brand small {
  color: var(--muted);
  font-size: 12px;
}

.help-home-link {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary-dark);
  background: white;
  font-weight: 700;
  text-decoration: none;
}

.help-home-link:hover,
.help-home-link:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 5px 18px rgba(80, 64, 195, 0.12);
}

.help-main {
  padding: 64px 0 90px;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr);
  gap: 42px;
  align-items: center;
}

.help-hero h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.help-hero > div > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.help-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.help-tags span {
  padding: 7px 12px;
  border: 1px solid #dcd7ff;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
}

.help-quick-card {
  padding: 28px;
  border: 1px solid rgba(103, 87, 220, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f1efff);
  box-shadow: var(--shadow);
}

.help-quick-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.help-quick-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.help-toc {
  display: grid;
  margin: 54px 0 34px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(71, 64, 151, 0.07);
}

.help-toc a {
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus-visible {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.help-section {
  display: grid;
  margin-top: 24px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(71, 64, 151, 0.07);
  scroll-margin-top: 96px;
}

.help-section-number {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--primary), #3974d9);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(80, 64, 195, 0.22);
}

.help-section-content h2,
.help-faq h2,
.help-finish h2 {
  margin: 5px 0 14px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
}

.help-lead {
  margin-top: 0;
  color: var(--muted);
}

.help-steps,
.help-feature-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 23px;
}

.help-steps li::marker {
  color: var(--primary);
  font-weight: 800;
}

.help-note,
.help-warning {
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 13px;
}

.help-note {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.help-warning {
  border-left: 4px solid #d58a16;
  color: #74470a;
  background: var(--amber-soft);
}

.help-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.help-status-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.help-status-table th,
.help-status-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.help-status-table th {
  color: var(--muted);
  background: #f7f7fd;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.help-status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #9da4bc;
}

.status-dot.active { background: var(--primary); }
.status-dot.done { background: #269b6a; }
.status-dot.warning { background: #d58a16; }
.status-dot.failed { background: var(--red); }

.help-card-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-mini-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfbff;
}

.help-mini-card h3,
.help-privacy h3,
.help-feedback h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.help-mini-card p {
  margin: 0;
  color: var(--muted);
}

.help-privacy,
.help-feedback {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
}

.help-privacy {
  border: 1px solid #dcd7ff;
  background: var(--primary-soft);
}

.help-privacy ul {
  margin: 0;
  padding-left: 20px;
}

.help-feedback {
  border: 1px solid var(--line);
  background: #f7f8fc;
}

.help-feedback p {
  margin: 0 0 10px;
}

.help-feedback pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  color: #e9e8ff;
  background: #292649;
  font: 14px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif;
  white-space: pre-wrap;
}

.admin-help {
  border-color: #d8d2ff;
  background: linear-gradient(135deg, #fff, #f4f1ff);
}

.help-faq {
  margin-top: 52px;
  scroll-margin-top: 96px;
}

.help-faq details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.help-faq summary {
  padding: 17px 20px;
  font-weight: 700;
  cursor: pointer;
}

.help-faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.help-finish {
  display: flex;
  margin-top: 54px;
  padding: 34px;
  border-radius: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: white;
  background: linear-gradient(130deg, #4e3ec2, #6677ed);
  box-shadow: 0 18px 40px rgba(69, 55, 178, 0.25);
}

.help-finish .eyebrow,
.help-finish p {
  color: rgba(255, 255, 255, 0.82);
}

.help-finish h2,
.help-finish p {
  margin-bottom: 0;
}

.help-start-button {
  flex: 0 0 auto;
  color: var(--primary-dark);
  background: white;
  text-decoration: none;
}

.help-footer {
  display: flex;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.help-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 850px) {
  .help-hero {
    grid-template-columns: 1fr;
  }

  .help-toc {
    grid-template-columns: repeat(3, 1fr);
  }

  .help-section {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 28px;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .help-header-inner,
  .help-main,
  .help-footer {
    width: min(100% - 24px, 1120px);
  }

  .help-header-inner {
    min-height: 66px;
  }

  .help-brand img {
    width: 44px;
    height: 44px;
  }

  .help-brand small {
    display: none;
  }

  .help-home-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .help-main {
    padding-top: 40px;
  }

  .help-hero h1 {
    font-size: 38px;
  }

  .help-toc {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-section {
    display: block;
    padding: 22px 18px;
  }

  .help-section-number {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 15px;
  }

  .help-card-grid {
    grid-template-columns: 1fr;
  }

  .help-finish,
  .help-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-start-button {
    width: 100%;
    text-align: center;
  }
}

@media print {
  .help-header,
  .help-toc,
  .help-finish,
  .help-footer {
    display: none;
  }

  .help-main {
    width: 100%;
    padding: 0;
  }

  .help-section,
  .help-quick-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
