:root {
  --nb-tut-bg: #f6f8fc;
  --nb-tut-card: #ffffff;
  --nb-tut-text: #171a21;
  --nb-tut-muted: #59606f;
  --nb-tut-faint: #98a0af;
  --nb-tut-border: #ebedf3;
  --nb-tut-pill: #ffffff;
  --nb-tut-accent-a: #4338ca;
  --nb-tut-accent-b: #3b82f6;
  --nb-tut-shadow: 0 6px 18px -10px rgba(40, 55, 110, .28);
}

:root[data-nodebuy-tutorial-theme="dark"] {
  --nb-tut-bg: #10131a;
  --nb-tut-card: #191d27;
  --nb-tut-text: #f3f5fa;
  --nb-tut-muted: #b3bac8;
  --nb-tut-faint: #7f8797;
  --nb-tut-border: #292f3d;
  --nb-tut-pill: #191d27;
  --nb-tut-shadow: 0 10px 28px -14px rgba(0, 0, 0, .7);
}

html {
  scroll-behavior: smooth;
}

body.nb-tutorial-page {
  min-width: 320px;
  margin: 0;
  background: var(--nb-tut-bg) !important;
  color: var(--nb-tut-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.nb-tutorial-page,
body.nb-tutorial-page * {
  box-sizing: border-box;
}

body.nb-tutorial-page a {
  color: inherit;
  text-decoration: none;
}

.nb-tut {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px 60px;
  font-size: 16px;
  line-height: 1.6;
}

.nb-tut-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin-bottom: 28px;
}

.nb-tut-back {
  color: var(--nb-tut-muted) !important;
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease;
}

.nb-tut-back:hover {
  color: var(--nb-tut-accent-b) !important;
}

.nb-tut-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nb-tut-lang {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 1px;
  overflow: hidden;
  background: var(--nb-tut-card);
  border: 1px solid var(--nb-tut-border);
  border-radius: 999px;
}

.nb-tut-lang button,
.nb-tut-icon-btn {
  appearance: none;
  border: 0;
  color: var(--nb-tut-muted);
  cursor: pointer;
  font: inherit;
}

.nb-tut-lang button {
  min-width: 36px;
  height: 34px;
  padding: 6px 10px;
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.nb-tut-lang button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--nb-tut-accent-a), var(--nb-tut-accent-b));
}

.nb-tut-icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 9px;
  place-items: center;
  background: var(--nb-tut-card);
  border: 1px solid var(--nb-tut-border);
  border-radius: 12px;
}

.nb-tut-icon-btn svg {
  width: 19px;
  height: 19px;
}

.nb-tut-hero {
  margin-bottom: 22px;
  text-align: center;
}

.nb-tut-hero h1 {
  margin: 0 0 8px;
  color: var(--nb-tut-text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.nb-tut-hero p {
  margin: 0;
  color: var(--nb-tut-muted);
  font-size: 15px;
}

.nb-tut-toc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.nb-tut-toc a {
  flex: 0 0 auto;
  padding: 8px 16px;
  color: var(--nb-tut-muted) !important;
  background: var(--nb-tut-pill);
  border: 1px solid var(--nb-tut-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px -7px rgba(40, 55, 110, .5);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}

.nb-tut-toc a:hover {
  color: var(--nb-tut-accent-b) !important;
  border-color: rgba(59, 130, 246, .38);
  transform: translateY(-1px);
}

.nb-tut-card {
  margin: 0 0 18px;
  padding: 28px;
  scroll-margin-top: 18px;
  background: var(--nb-tut-card);
  border: 1px solid var(--nb-tut-border);
  border-radius: 24px;
  box-shadow: var(--nb-tut-shadow);
}

.nb-tut-card h2 {
  margin: 0 0 12px;
  color: var(--nb-tut-text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.nb-tut-card > p {
  margin: 0 0 8px;
  color: var(--nb-tut-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.nb-tut-card > .nb-tut-intro {
  margin-bottom: 16px;
}

.nb-tut-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-tut-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nb-tut-number {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--nb-tut-accent-a), var(--nb-tut-accent-b));
  border-radius: 50%;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.nb-tut-steps h3,
.nb-tut-qa h3 {
  color: var(--nb-tut-text);
}

.nb-tut-steps h3 {
  margin: 1px 0 4px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.45;
}

.nb-tut-steps p {
  margin: 0;
  color: var(--nb-tut-muted);
  font-size: 14px;
  line-height: 1.75;
}

.nb-tut-card > .nb-tut-note {
  margin: 14px 0 8px;
  font-size: 13.5px;
}

.nb-tut-card > .nb-tut-warn {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #9a621e;
  background: rgba(224, 145, 42, .14);
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
}

:root[data-nodebuy-tutorial-theme="dark"] .nb-tut-card > .nb-tut-warn {
  color: #e8b669;
}

.nb-tut-faq {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nb-tut-qa {
  padding: 12px 0;
  border-bottom: 1px solid var(--nb-tut-border);
}

.nb-tut-qa:first-child {
  padding-top: 2px;
}

.nb-tut-qa:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nb-tut-qa h3 {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.5;
}

.nb-tut-qa p {
  margin: 0;
  color: var(--nb-tut-muted);
  font-size: 14px;
  line-height: 1.75;
}

.nb-tut-cta {
  margin: 28px 0;
  text-align: center;
}

.nb-tut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 44px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--nb-tut-accent-a), var(--nb-tut-accent-b));
  border-radius: 999px;
  box-shadow: 0 12px 24px -13px rgba(67, 56, 202, .85);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease;
}

.nb-tut-btn:hover {
  color: #fff !important;
  box-shadow: 0 15px 28px -13px rgba(67, 56, 202, .95);
  transform: translateY(-1px);
}

.nb-tut footer {
  margin-top: 20px;
  color: var(--nb-tut-faint);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .nb-tut {
    padding: 18px 14px 48px;
  }

  .nb-tut-nav {
    margin-bottom: 22px;
  }

  .nb-tut-hero h1 {
    font-size: 30px;
  }

  .nb-tut-toc {
    justify-content: flex-start;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nb-tut-toc::-webkit-scrollbar {
    display: none;
  }

  .nb-tut-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .nb-tut-steps li {
    gap: 11px;
  }
}
