/* 产品 API Explorer — 浅色工作台，对齐移动云 API Explorer 布局 */

body.page-api-explorer { background: #f4f6f8; }
body.page-api-explorer .footer { margin-top: 0; }

.ape-page {
  background: #f4f6f8;
  min-height: 70vh;
  padding: 20px 0 48px;
}
.ape-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.ape-shell-docs { grid-template-columns: 200px 220px minmax(0, 1fr); }

.ape-sidebar,
.ape-aside,
.ape-main,
.ape-product-nav {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
}

.ape-sidebar { padding: 16px 12px 20px; }
.ape-brand {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  padding: 4px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ape-beta {
  display: inline-block;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .4px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 2px 8px;
}
.ape-beta-note {
  margin: 0 10px 14px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.55;
}
.ape-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
}
.ape-status-beta {
  display: inline-block;
  font-size: 12px;
  color: #b45309;
  background: #fff7ed;
  border-radius: 4px;
  padding: 2px 8px;
}
.ape-core-card.is-disabled,
.ape-btn.is-disabled {
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
}
.ape-locked {
  max-width: 520px;
  padding: 36px 8px 16px;
}
.ape-locked h2 { font-size: 22px; margin: 12px 0 10px; color: #111827; }
.ape-locked p { color: #6b7280; font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.ape-locked .ape-btn, .ape-locked .ape-btn-ghost { margin-right: 8px; }
.ape-nav { display: flex; flex-direction: column; gap: 2px; }
.ape-nav-item {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
}
.ape-nav-item:hover { background: #f3f4f6; color: #111827; }
.ape-nav-item.is-active {
  background: #e8f1ff;
  color: #1d4ed8;
  font-weight: 700;
}
.ape-fav-box { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.ape-fav-title { font-size: 12px; color: #9ca3af; font-weight: 700; padding: 0 10px 8px; }
.ape-fav-list a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
}
.ape-fav-list a:hover { background: #f3f4f6; }
.ape-fav-list a small { display: block; color: #9ca3af; font-size: 12px; }

.ape-main { padding: 22px 24px 28px; min-height: 560px; }
.ape-page-title { font-size: 24px; font-weight: 800; color: #111827; margin: 0 0 8px; }
.ape-lead { color: #6b7280; font-size: 14px; margin: 0 0 20px; line-height: 1.7; }
.ape-h2 { font-size: 16px; font-weight: 700; margin: 28px 0 12px; color: #111827; }
.ape-block { margin-top: 28px; }
.ape-block h2 { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 12px; }
.ape-muted { color: #9ca3af; font-size: 13px; }
.ape-muted a { color: #1d4ed8; }

.ape-search label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}
.ape-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
}
.ape-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  height: 42px;
  font-size: 14px;
  background: transparent;
}
.ape-search-count { color: #9ca3af; font-size: 12px; }

.ape-api-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ape-api-card {
  display: block;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 14px 14px 12px;
  text-decoration: none;
  background: #fafbfc;
}
.ape-api-card:hover { border-color: #93c5fd; background: #fff; }
.ape-api-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
  word-break: break-all;
}
.ape-api-card span { color: #6b7280; font-size: 12px; }

.ape-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ape-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 13px;
  text-decoration: none;
}
.ape-chip:hover { background: #dbeafe; }

.ape-core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ape-core-card {
  text-align: center;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  padding: 22px 12px 18px;
  text-decoration: none;
  background: #fff;
}
.ape-core-card:hover { border-color: #93c5fd; }
.ape-core-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #eff6ff center/36px no-repeat;
}
.ape-core-debug { background-color: #eff6ff; }
.ape-core-doc { background-color: #ecfdf5; }
.ape-core-sdk { background-color: #fff7ed; }
.ape-core-card h3 { font-size: 15px; color: #111827; margin: 0 0 6px; }
.ape-core-card p { margin: 0; font-size: 12px; color: #6b7280; }

.ape-aside { padding: 18px 16px 20px; }
.ape-aside h3 { font-size: 13px; color: #111827; margin: 0 0 10px; }
.ape-aside h3 + .ape-sdk-list { margin-top: 8px; }
.ape-link-card {
  display: block;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  text-decoration: none;
}
.ape-link-card:hover { border-color: #93c5fd; }
.ape-link-card strong { display: block; color: #111827; font-size: 14px; margin-bottom: 4px; }
.ape-link-card span { color: #6b7280; font-size: 12px; }
.ape-sdk-list { list-style: none; margin: 0; padding: 0; }
.ape-sdk-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
}
.ape-sdk-list a { color: #1d4ed8; text-decoration: none; }

.ape-product-nav { padding: 14px 10px; }
.ape-product-nav-title {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  padding: 0 8px 8px;
}
.ape-product-nav-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
}
.ape-product-nav-item:hover { background: #f3f4f6; }
.ape-product-nav-item.is-active { background: #e8f1ff; color: #1d4ed8; font-weight: 700; }

.ape-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ape-product-card {
  display: block;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  background: #fff;
}
.ape-product-card:hover { border-color: #93c5fd; }
.ape-product-cat { font-size: 12px; color: #1d4ed8; }
.ape-product-card h3 { margin: 6px 0 8px; font-size: 16px; color: #111827; }
.ape-product-card p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.6; }

.ape-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ape-table th, .ape-table td {
  border-bottom: 1px solid #eef1f5;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.ape-table th { color: #6b7280; font-weight: 600; background: #f8fafc; }
.ape-action { color: #1d4ed8; text-decoration: none; font-family: ui-monospace, monospace; }
.ape-td-sub { color: #9ca3af; font-size: 12px; margin-top: 3px; }
.ape-mini-btn {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 12px;
}

.ape-method {
  display: inline-block;
  min-width: 48px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}
.ape-method-get { background: #0f766e; }
.ape-method-post { background: #1d4ed8; }

.ape-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 20px;
}
.ape-endpoint code { color: #e5e7eb; font-size: 13px; word-break: break-all; }

.ape-api-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.ape-api-actions { display: flex; gap: 8px; flex: none; }
.ape-btn, .ape-btn-ghost {
  display: inline-block;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ape-btn { background: #1d4ed8; color: #fff; border: 0; }
.ape-btn:hover { background: #1e40af; color: #fff; }
.ape-btn-ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.ape-crumb { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }
.ape-crumb a { color: #6b7280; text-decoration: none; }
.ape-crumb span { margin: 0 6px; }
.ape-ul { padding-left: 18px; color: #4b5563; font-size: 14px; line-height: 1.8; }

.ape-debug-form { max-width: 640px; }
.ape-debug-row { margin-bottom: 12px; }
.ape-debug-row label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.ape-debug-row label i { color: #dc2626; font-style: normal; }
.ape-debug-row input, .ape-debug-row select {
  width: 100%;
  height: 38px;
  border: 1px solid #d5dbe3;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
}
.ape-code {
  background: #111827;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  margin-top: 16px;
}

.ape-result-list { list-style: none; margin: 0; padding: 0; }
.ape-result-list li { border-bottom: 1px solid #eef1f5; }
.ape-result-list a { display: block; padding: 12px 2px; text-decoration: none; }
.ape-result-list strong { color: #111827; }
.ape-result-prod { margin-left: 10px; color: #1d4ed8; font-size: 12px; }
.ape-result-list em { display: block; color: #6b7280; font-style: normal; font-size: 13px; margin-top: 4px; }
.ape-result-meta { color: #6b7280; font-size: 13px; margin-bottom: 8px; }

.ape-scene-list { display: grid; gap: 10px; }
.ape-scene {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
}
.ape-scene:hover { border-color: #93c5fd; }
.ape-scene strong { color: #111827; }
.ape-scene span { color: #6b7280; font-size: 13px; }

.ape-history-item {
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.ape-history-item a { color: #1d4ed8; text-decoration: none; }
.ape-history-item time { display: block; color: #9ca3af; font-size: 12px; margin-top: 4px; }

@media (max-width: 1100px) {
  .ape-shell, .ape-shell-docs { grid-template-columns: 1fr; }
  .ape-api-grid, .ape-core-grid { grid-template-columns: 1fr; }
  .ape-aside { display: none; }
}
