.nd-page {
  padding: 28px 0 72px;
  background: #f0f4f8;
}

.nd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px 40px;
  align-items: start;
}

.nd-main {
  background: #fff;
  padding: 28px 32px 40px;
  box-sizing: border-box;
}

.nd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #a0a6b0;
}

.nd-crumb a {
  color: #a0a6b0;
}

.nd-crumb a:hover {
  color: #163a7a;
}

.nd-crumb em {
  font-style: normal;
  color: #a0a6b0;
}

.nd-head {
  padding-bottom: 22px;
  border-bottom: 1px solid #e8ebf0;
}

.nd-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 4px;
  background: #e8f1fb;
  color: #2f7cf6;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.nd-head h1 {
  margin: 16px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  color: #1a1f2c;
}

.nd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 0;
  font-size: 13px;
  color: #9aa3b0;
}

.nd-notice {
  margin-top: 22px;
  padding: 14px 18px;
  background: #eaf1f9;
  border: 1px solid #d5e3f4;
  color: #4a5d78;
  font-size: 13px;
  line-height: 1.7;
}

.nd-content {
  margin-top: 28px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.nd-content pre,
.nd-content .detail-text {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
}

.nd-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #666;
}

.nd-figure {
  margin: 28px 0 0;
  line-height: 0;
  background: #f5f7fa;
}

.nd-figure-link {
  display: block;
  cursor: zoom-in;
}

.nd-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.nd-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #a0a7b2;
  text-align: center;
}

.nd-section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid #e8ebf0;
  scroll-margin-top: 88px;
}

.nd-section:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.nd-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #34495e;
  line-height: 1.4;
}

.nd-section h2 em {
  font-style: normal;
  color: #34495e;
  margin-right: 6px;
  font-weight: 700;
}

.nd-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #7a8490;
}

.nd-section p + p {
  margin-top: 14px;
}

.nd-pager {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e8ebf0;
}

.nd-next {
  font-size: 15px;
  font-weight: 600;
  color: #2f7cf6;
  line-height: 1.5;
}

.nd-next:hover,
.nd-back:hover {
  color: #163a7a;
}

.nd-back {
  font-size: 14px;
  font-weight: 400;
  color: #6b7585;
}

.nd-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.nd-panel {
  padding: 22px 20px 20px;
  background: #e8eef5;
  border: 0;
  box-shadow: none;
}

.nd-panel h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #1a2b3c;
  letter-spacing: 0.02em;
}

.nd-panel:has(.nd-extend) h2,
.nd-panel:has(.nd-related) h2 {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf3;
}

.nd-panel:has(.nd-extend) .nd-extend,
.nd-panel:has(.nd-related) .nd-related {
  margin-top: 4px;
}

.nd-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nd-toc a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #606f7b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.nd-toc a:hover,
.nd-toc a.is-active {
  color: #1a2b3c;
}

.nd-toc em {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 400;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.nd-extend {
  display: flex;
  flex-direction: column;
}

.nd-extend a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #e8edf3;
}

.nd-extend a:first-child {
  padding-top: 0;
}

.nd-extend a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nd-extend span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #909399;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.nd-extend strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #1a2b3c;
  line-height: 1.45;
}

.nd-extend a:hover strong {
  color: #2f7cf6;
}

.nd-related a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #e8edf3;
}

.nd-related a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nd-related a:first-child {
  padding-top: 0;
}

.nd-related time {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #909399;
  letter-spacing: 0.02em;
}

.nd-related strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #1a2b3c;
  line-height: 1.5;
}

.nd-related a:hover strong {
  color: #2f7cf6;
}

.nd-toc a.is-active {
  color: #163a7a;
  font-weight: 600;
}

@media (max-width: 980px) {
  .nd-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nd-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .nd-page {
    padding: 20px 0 56px;
  }

  .nd-main {
    padding: 20px 16px 28px;
  }

  .nd-head h1 {
    font-size: 24px;
  }

  .nd-section h2 {
    font-size: 19px;
  }
}
