/* 继承全局字体与玻璃变量 */
.doc-card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 32px 40px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
}

.doc-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

.doc-body {
  line-height: 1.8;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.86);
}

.doc-body h1,
.doc-body h2,
.doc-body h3 {
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-weight: 500;
}

.doc-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
}

.doc-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

/* ===== detail-btn ===== */
.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.detail-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.detail-btn:active {
  transform: translateY(0);
}

.detail-btn i {
  font-size: 0.85em;
}

.api-desc-pre {
  white-space: pre-wrap;      /* 识别 \n 和连续空格 */
  word-break: break-word;     /* 长单词换行 */
  line-height: 1.0;
  color: rgba(255,255,255,0.86);
}