.c-top-menu { position: relative; }

.api-docs-menu-trigger {
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: inherit;
}
.api-docs-menu-trigger i { margin-left: 5px; font-size: 12px; transition: transform .2s; }
.api-docs-menu-trigger:hover i { transform: rotate(180deg); }

.api-docs-mega-menu {
  position: absolute;
  z-index: 120;
  top: 44px;
  left: 50%;
  width: 1200px;
  padding: 0 24px 16px;
  box-sizing: border-box;
  transform: translateX(-50%);
  border: 1px solid #edf0f7;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 52, 111, .16);
  color: #333;
}

.api-docs-platforms {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0 12px;
  overflow-x: auto;
  border-bottom: 1px solid #edf0f5;
}
.api-docs-platforms button {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #f6f8fc;
  color: #555;
  cursor: pointer;
}
.api-docs-platforms button:hover,
.api-docs-platforms button.active {
  border-color: #b7ccff;
  background: #edf3ff;
  color: #2d6cff;
}
.api-docs-platforms img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 3px;
  object-fit: contain;
}

.api-docs-menu-body { min-height: 180px; max-height: 480px; overflow-y: auto; }
.api-docs-groups { padding: 4px 0; }
.api-docs-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f5;
}
.api-docs-group:last-child { border-bottom: 0; }
.api-docs-group h3 {
  padding-left: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #263247;
}
.api-docs-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 18px;
}
.api-docs-links a {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  color: #555;
}
.api-docs-links a:hover { color: #2d6cff; }
.api-docs-links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-docs-links a i {
  flex: none;
  margin-left: 4px;
  font-size: 9px;
  font-style: normal;
}
.api-docs-links a .is-new { color: #ff4f4f; }
.api-docs-links a .is-hot { color: #ff8a00; }

.api-docs-menu-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #999;
}
.api-docs-menu-empty button {
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: #2d6cff;
  cursor: pointer;
}
.api-docs-menu-fade-enter-active,
.api-docs-menu-fade-leave-active { transition: opacity .18s, margin-top .18s; }
.api-docs-menu-fade-enter,
.api-docs-menu-fade-leave-to { margin-top: -6px; opacity: 0; }
