.help-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.34);
  z-index: 50;
}

.help-modal.is-open {
  display: flex;
}

.help-dialog {
  display: flex;
  width: 572px;
  height: 600px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.help-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 16px 24px;
}

.help-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  box-shadow: inset 0 -1px 0 #f0f0f0;
}

.help-title {
  margin: 0;
  color: rgba(0, 0, 0, 0.85);
  font-family: var(--source-han-sans, "Source Han Sans"), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}

.help-close {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.help-close-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.help-body {
  position: relative;
  flex: 1;
  width: 100%;
  padding: 24px 36px 24px 24px;
  overflow-y: auto;
  scrollbar-width: none;
}

.help-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.help-scrollbar {
  position: absolute;
  top: 24px;
  right: 12px;
  width: 8px;
  height: 160px;
  display: none;
  padding: 0 4px;
  border-radius: 99px;
  background: #C1C1C1;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  z-index: 2;
}

.help-scrollbar.is-dragging {
  cursor: grabbing;
}

.help-scrollbar-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 160px;
  border-radius: 99px;
  background: transparent;
  pointer-events: none;
}

.help-content-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.help-question-title {
  margin: 0;
  color: rgba(0, 0, 0, 0.8);
  font-feature-settings: "liga" off, "clig" off;
  font-family: var(--source-han-sans, "Source Han Sans"), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.help-answer {
  color: rgba(0, 0, 0, 0.5);
  font-feature-settings: "liga" off, "clig" off;
  font-family: var(--source-han-sans, "Source Han Sans"), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.help-answer p {
  margin: 0;
}

.help-list {
  margin: 0;
  padding-left: 20px;
}

.help-list li {
  margin: 0;
}

.help-sublist {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.help-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 56px;
  padding: 12px 16px;
}

.help-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  box-shadow: inset 0 1px 0 #f0f0f0;
}

.help-confirm {
  min-width: 88px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #3cae49;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  color: #fff;
  font-family: var(--source-han-sans, "Source Han Sans"), "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;
}

.help-confirm:hover {
  background: #349f40;
}

body.is-english .help-title,
body.is-english .help-question-title,
body.is-english .help-answer,
body.is-english .help-confirm {
  font-family: Graphie, var(--source-han-sans, "Source Han Sans"), sans-serif;
}

@media (max-width: 920px) {
  .help-modal {
    padding: 72px 32px 24px;
  }
}

@media (max-width: 560px) {
  .help-modal {
    padding: 18px 10px;
  }
}
