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 .brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.open-header .brand-badge {
  flex: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 10px;
  color: #d9ecff;
  background: rgba(64, 158, 255, .28);
  border: 1px solid rgba(255, 255, 255, .28);
}

.open-header .open-links { flex: none; }

.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;
}

/* API 调用地址：加粗 + 蓝色边框，突出显示 */
.doc-emphasis-table {
  border: 2px solid #409eff;
  border-radius: 4px;
  overflow: hidden;
}

.doc-emphasis-table th.el-table__cell {
  background: #ecf5ff !important;
  color: #1d5fbf !important;
  font-size: 14px;
}

.doc-emphasis-table td.el-table__cell .cell {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}

.doc-emphasis-table td.el-table__cell:last-child .cell {
  color: #1d5fbf;
}

/* 公开文档提示 */
.public-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #1d5fbf;
  background: #f4f8ff;
  border-left: 3px solid #409eff;
  border-radius: 2px;
}

.public-foot {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px dashed #ebeef5;
}

@media (max-width: 768px) {
  .open-header { padding: 0 12px; }
  .open-header .brand { font-size: 14px; }
  .doc-side { width: 190px; flex-basis: 190px; }
  .doc-main { padding: 14px 14px 40px; }
  .doc-main h2 { font-size: 19px; }
}
