html {
  scroll-behavior: smooth;
}

.help-article-layout {
  display: flex;
  gap: 32px;
  max-width: 1400px;
  margin: 140px auto 60px auto;
  padding: 0 24px;
  align-items: flex-start;
}

.help-article-main {
  flex: 1 1 0;
  background: #181f2c;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.13);
  padding: 40px 32px 48px 32px;
  color: #e5e7ef;
  min-width: 0;
}

.help-article-meta {
  width: 250px;
  min-width: 200px;
  position: sticky;
  top: 100px;
}

.meta-box {
  background: #181f2c;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #e5e7ef;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-article-breadcrumbs {
  font-size: 1rem;
  color: #bfc7d5;
  margin-bottom: 18px;
}
.help-article-breadcrumbs a {
  color: #bfc7d5;
  text-decoration: none;
}
.help-article-breadcrumbs a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.help-article-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.meta-category {
  color: #3b82f6;
  font-weight: 600;
}
.meta-date, .meta-readtime {
  color: #a0aec0;
}
.meta-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 6px 0 10px;
  line-height: 1.4;
}

.help-article-content {
  font-size: 1.13rem;
  line-height: 1.7;
  color: #e5e7ef;
}
.help-article-content h2,
.help-article-content h3,
.help-article-content h4 {
  color: #fff;
  margin-top: -5.5em;
  margin-bottom: 0.7em;
}

.help-article-sidebar {
  width: 320px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-wrapper {
  background: #181f2c;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toc-wrapper h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  border-left: 4px solid #3b82f6;
  padding-left: 10px;
}

.toc-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-wrapper .toc-item {
  position: relative;
  padding: 8px 10px 8px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
  margin-bottom: 8px;
}
.toc-wrapper .toc-item a {
  color: #a0aec0;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}
.toc-wrapper .toc-item:hover {
  background: #2a3143;
}
.toc-wrapper .toc-item:hover a {
  color: #ffffff;
}
.toc-wrapper .toc-item.active a {
  color: #ffffff;
  font-weight: 500;
}
.toc-wrapper .toc-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.4em;
  width: 4px;
  background-color: transparent;
  border-radius: 2px;
}
.toc-wrapper .toc-item.active::before {
  background-color: #3b82f6;
}

.toc-wrapper .toc-level-3 { margin-left: 16px; }
.toc-wrapper .toc-level-4 { margin-left: 32px; }

.help-article-content h2[id]::before,
.help-article-content h3[id]::before,
.help-article-content h4[id]::before {
  content: "";
  display: block;
  height: 140px;
  margin-top: -80px;
  visibility: hidden;
}

.help-article-content ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 2em;
}
.help-article-content ol li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.help-article-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, #3b82f6, #9333ea);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
  .help-article-layout {
    flex-direction: column;
  }
  .help-article-meta,
  .help-article-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
}
