.doc-page {
  min-height: 100vh;
  background: #f5f7f8;
  color: #1f2937;
}

.doc-shell {
  padding-top: 28px;
  padding-bottom: 56px;
}

.doc-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  color: #334155;
  font-size: 15px;
  line-height: 1.82;
}

.doc-content > *:first-child {
  margin-top: 0;
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4,
.doc-content h5,
.doc-content h6 {
  position: relative;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: 0;
  scroll-margin-top: 86px;
}

.doc-content h1 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 30px;
  font-weight: 820;
}

.doc-content h2 {
  margin: 38px 0 14px;
  padding-top: 4px;
  font-size: 24px;
  font-weight: 800;
}

.doc-content h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  font-weight: 780;
}

.doc-content h4,
.doc-content h5,
.doc-content h6 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 760;
}

.doc-anchor {
  position: absolute;
  left: -22px;
  top: 0.08em;
  color: #94a3b8;
  opacity: 0;
  font-size: 0.82em;
  font-weight: 700;
}

.doc-content h1:hover .doc-anchor,
.doc-content h2:hover .doc-anchor,
.doc-content h3:hover .doc-anchor,
.doc-content h4:hover .doc-anchor,
.doc-content h5:hover .doc-anchor,
.doc-content h6:hover .doc-anchor {
  opacity: 1;
}

.doc-content p {
  margin: 0 0 14px;
}

.doc-content a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-content a:hover {
  color: #065f46;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 16px 22px;
  padding: 0;
  color: #334155;
}

.doc-content ul {
  list-style: disc;
}

.doc-content ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
  list-style: circle;
}

.doc-content li {
  margin: 5px 0;
  padding-left: 2px;
}

.doc-content blockquote {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 4px solid #10b981;
  border-radius: 0 8px 8px 0;
  background: #f0fdf4;
  color: #475569;
}

.doc-content blockquote p {
  margin: 0 0 8px;
}

.doc-content blockquote p:last-child {
  margin-bottom: 0;
}

.doc-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2f7;
  color: #0f172a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

.doc-content pre {
  margin: 14px 0 20px;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.65;
}

.doc-content pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
}

.doc-table-wrap {
  width: 100%;
  margin: 14px 0 22px;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.doc-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.doc-content th,
.doc-content td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.doc-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 760;
}

.doc-content tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .doc-shell {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .doc-content {
    padding: 24px 18px;
  }

  .doc-content h1 {
    font-size: 25px;
  }

  .doc-content h2 {
    margin-top: 32px;
    font-size: 21px;
  }

  .doc-content h3 {
    font-size: 18px;
  }

  .doc-anchor {
    display: none;
  }
}
