html, body, #app {
  height: 100%;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body { overflow: hidden; background: #f0f2f5; }

.doc-workbench {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #303133;
}

.open-header {
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #304156;
  color: #fff;
}

.open-header .brand {
  font-size: 16px;
  font-weight: 600;
}

.open-header .gateway {
  margin-right: 16px;
  color: #d3dce6;
  font-size: 13px;
}

.open-header a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
}

.doc-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.doc-side {
  width: 280px;
  flex: 0 0 280px;
  border-right: 1px solid #e6e6e6;
  overflow: auto;
  background: #fff;
}

.doc-side-title {
  padding: 14px 16px 8px;
  font-weight: 600;
}

.doc-side .search {
  padding: 0 12px 8px;
}

.doc-side .el-menu {
  border-right: none;
}

.doc-side .el-menu-item {
  height: 40px;
  line-height: 40px;
}

.method-tag {
  display: inline-block;
  width: 46px;
  font-size: 12px;
  font-weight: 700;
}

.method-tag.GET { color: #67c23a; }
.method-tag.POST { color: #409eff; }
.method-tag.PUT { color: #e6a23c; }
.method-tag.DOC { color: #909399; }

.doc-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 20px 24px 48px;
}

.doc-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.doc-main h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.doc-diagram {
  margin: 8px 0 16px;
  overflow-x: auto;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  background: #fafafa;
}

.doc-diagram svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.doc-main p,
.summary {
  line-height: 1.7;
  color: #606266;
}

.doc-path {
  margin: 8px 0 12px;
}

.doc-samples {
  margin: 8px 0 16px;
}

.doc-samples .doc-code {
  margin: 0;
  max-height: 560px;
  white-space: pre;
}

.doc-code,
.result-pre {
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  padding: 12px;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.sandbox-card,
.notify-card {
  margin-top: 20px;
}

.sandbox-actions {
  margin: 8px 0 12px;
}

.hint {
  color: #909399;
  font-size: 12px;
  line-height: 1.6;
}

.pkce-box {
  margin-bottom: 12px;
}

.doc-main .el-table .cell {
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}
