

:root {
  --gd-page:       #f0f4f8;
  --gd-sidebar:    #f8fafc;
  --gd-content:    #ffffff;
  --gd-border:     #e2e8f0;
  --gd-border-mid: #cbd5e1;
  --gd-accent:     #6366f1;         
  --gd-accent-dim: rgba(99,102,241,0.08);
  --gd-accent-bd:  rgba(99,102,241,0.22);
  --gd-text:       #0f172a;
  --gd-text-2:     #1e293b;
  --gd-muted:      #64748b;
  --gd-subtle:     #94a3b8;
  --gd-code-bg:    #1e2030;
  --gd-code-text:  #cdd6f4;
  --gd-green-bg:   #f0fdf4;
  --gd-green-bd:   #16a34a;
  --gd-green-text: #15803d;
  --gd-blue-bg:    #eff6ff;
  --gd-blue-bd:    #3b82f6;
  --gd-blue-text:  #1d4ed8;
  --gd-yellow-bg:  #fffbeb;
  --gd-yellow-bd:  #f59e0b;
  --gd-yellow-text:#92400e;
  --gd-red-bg:     #fef2f2;
  --gd-red-bd:     #ef4444;
  --gd-red-text:   #b91c1c;
  --gd-r:          6px;
  --gd-mono: 'Source Code Pro','Fira Code','Cascadia Code','Consolas',monospace;
  --gd-sans: 'Lato','Inter',system-ui,-apple-system,sans-serif;
}

.store-subpage.page-guide { background: var(--gd-page) !important; }
.store-subpage.page-guide .mmorpg-bg { display: none !important; }
.store-subpage.page-guide .store-page-content-inner,
.store-subpage.page-guide .store-page-content-inner .store-section-inner {
  padding: 0 !important;
  max-width: none !important;
}

.guide-wrap {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--gd-content);
}

.guide-sidebar {
  width: 268px;
  min-width: 268px;
  background: var(--gd-sidebar);
  border-right: 1px solid var(--gd-border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.guide-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid var(--gd-border);
  user-select: none;
  flex-shrink: 0;
}
.guide-sidebar-brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.14) 0%, rgba(99,102,241,0.06) 100%);
  border: 1px solid var(--gd-accent-bd);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gd-accent);
  font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.guide-sidebar-brand-text { min-width: 0; }
.guide-sidebar-brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gd-text);
  font-family: var(--gd-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.guide-sidebar-brand-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.1rem;
  padding: 0.06rem 0.45rem;
  background: var(--gd-accent-dim);
  border: 1px solid var(--gd-accent-bd);
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--gd-sans);
  color: var(--gd-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-sidebar-search {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--gd-border);
  flex-shrink: 0;
}
.guide-sidebar-search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gd-page);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-r);
  padding: 0.42rem 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-sidebar-search-inner:focus-within {
  border-color: var(--gd-accent-bd);
  box-shadow: 0 0 0 3px var(--gd-accent-dim);
}
.guide-sidebar-search-inner i {
  font-size: 0.82rem;
  color: var(--gd-subtle);
  flex-shrink: 0;
}
.guide-sidebar-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  font-family: var(--gd-sans);
  color: var(--gd-text);
  width: 100%;
  min-width: 0;
}
.guide-sidebar-search-input::placeholder { color: var(--gd-subtle); }

.guide-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gd-border-mid) transparent;
}
.guide-sidebar-nav::-webkit-scrollbar { width: 3px; }
.guide-sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--gd-border-mid); border-radius: 2px;
}

.guide-nav-group { margin-bottom: 0.25rem; }
.guide-nav-group-title {
  padding: 0.55rem 1.2rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--gd-sans);
  color: var(--gd-subtle);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.guide-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-nav-item { position: relative; }
.guide-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.845rem;
  font-family: var(--gd-sans);
  color: var(--gd-muted);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
  border-left: 2px solid transparent;
  line-height: 1.3;
}
.guide-nav-item a i {
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.6;
  width: 14px;
}
.guide-nav-item a:hover {
  color: var(--gd-text-2);
  background: rgba(99,102,241,0.04);
}
.guide-nav-item.is-active a {
  color: var(--gd-accent);
  background: linear-gradient(90deg, rgba(99,102,241,0.12) 0%, rgba(99,102,241,0.04) 100%);
  border-left-color: var(--gd-accent);
  font-weight: 600;
}
.guide-nav-item.is-active a i { opacity: 1; }

.guide-nav-item.is-hidden { display: none; }

.guide-sidebar-footer {
  border-top: 1px solid var(--gd-border);
  padding: 0.85rem 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.guide-sidebar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.guide-sidebar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: guide-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes guide-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(22,163,74,0); }
}
.guide-sidebar-status-text {
  font-size: 0.72rem;
  font-family: var(--gd-sans);
  color: var(--gd-muted);
}
.guide-sidebar-status-text strong { color: #16a34a; font-weight: 600; }
.guide-sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.75rem;
  font-family: var(--gd-sans);
  color: var(--gd-muted);
  text-decoration: none;
  transition: color 0.13s;
}
.guide-sidebar-back-link:hover { color: var(--gd-accent); }

.guide-main {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, #f0f5ff 0px, #ffffff 100px);
  border-left: none;
}
.guide-page-wrap {
  max-width: 1080px;
  padding: 0 3rem;
  margin: 0;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 3rem 0;
  max-width: 1080px;
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--gd-sans);
  color: var(--gd-subtle);
}
.guide-breadcrumb a {
  color: var(--gd-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.guide-breadcrumb a:hover { color: var(--gd-accent); }
.guide-breadcrumb-sep { color: var(--gd-border-mid); font-size: 0.7rem; }
.guide-breadcrumb-current { color: var(--gd-muted); }

.guide-section {
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid var(--gd-border);
  scroll-margin-top: 20px;
}
.guide-section:first-child { padding-top: 2rem; }
.guide-section:last-child { border-bottom: none; padding-bottom: 3rem; }

.guide-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0.6rem;
  padding: 0.22rem 0.7rem;
  background: var(--gd-accent-dim);
  border: 1px solid var(--gd-accent-bd);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--gd-sans);
  color: var(--gd-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.guide-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--gd-text);
  margin: 0 0 0.9rem;
  line-height: 1.2;
  font-family: var(--gd-sans);
  letter-spacing: -0.025em;
}

.guide-section-lead {
  font-size: 1rem;
  color: var(--gd-muted);
  line-height: 1.78;
  margin: 0 0 1.75rem;
  font-family: var(--gd-sans);
}
.guide-section-lead strong { color: var(--gd-text-2); font-weight: 600; }
.guide-section-lead code {
  font-family: var(--gd-mono);
  font-size: 0.83em;
  background: rgba(99,102,241,0.08);
  color: var(--gd-accent);
  padding: 0.1rem 0.36rem;
  border-radius: 4px;
  border: 1px solid var(--gd-accent-bd);
}

.guide-label {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--gd-sans);
  color: var(--gd-subtle);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 1.85rem 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.guide-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gd-border) 0%, transparent 100%);
  max-width: 120px;
}
.guide-label:first-child { margin-top: 0; }

.guide-cred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.guide-cred-card {
  background: var(--gd-page);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.guide-cred-card:hover {
  border-color: var(--gd-accent-bd);
  box-shadow: 0 4px 18px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.guide-cred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.guide-cred-card-icon {
  width: 32px;
  height: 32px;
  background: var(--gd-accent-dim);
  border: 1px solid var(--gd-accent-bd);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gd-accent);
  flex-shrink: 0;
}
.guide-cred-badge {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  font-family: var(--gd-sans);
  line-height: 1.5;
}
.guide-cred-badge--public {
  background: var(--gd-green-bg);
  color: var(--gd-green-text);
  border: 1px solid rgba(22,163,74,0.2);
}
.guide-cred-badge--config {
  background: var(--gd-yellow-bg);
  color: var(--gd-yellow-text);
  border: 1px solid rgba(245,158,11,0.2);
}
.guide-cred-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--gd-sans);
  color: var(--gd-text);
}
.guide-cred-card-desc {
  font-size: 0.76rem;
  color: var(--gd-muted);
  line-height: 1.55;
  font-family: var(--gd-sans);
}
.guide-cred-card-desc code {
  font-family: var(--gd-mono);
  font-size: 0.82em;
  background: rgba(99,102,241,0.07);
  color: var(--gd-accent);
  padding: 0.06rem 0.3rem;
  border-radius: 3px;
  border: 1px solid var(--gd-accent-bd);
}

.guide-callout {
  display: flex;
  gap: 0.8rem;
  border-radius: var(--gd-r);
  padding: 0.9rem 1.1rem;
  margin: 1.1rem 0;
  border: 1px solid;
  font-family: var(--gd-sans);
}
.guide-callout--info {
  background: var(--gd-blue-bg);
  border-color: rgba(59,130,246,0.25);
}
.guide-callout--success {
  background: var(--gd-green-bg);
  border-color: rgba(22,163,74,0.25);
}
.guide-callout--warning {
  background: var(--gd-yellow-bg);
  border-color: rgba(245,158,11,0.3);
}
.guide-callout--danger {
  background: var(--gd-red-bg);
  border-color: rgba(239,68,68,0.25);
}
.guide-callout-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  margin-top: 0.06rem;
  line-height: 1;
}
.guide-callout--info    .guide-callout-icon { color: var(--gd-blue-text); }
.guide-callout--success .guide-callout-icon { color: var(--gd-green-text); }
.guide-callout--warning .guide-callout-icon { color: var(--gd-yellow-text); }
.guide-callout--danger  .guide-callout-icon { color: var(--gd-red-text); }
.guide-callout-body {
  font-size: 0.875rem;
  line-height: 1.68;
}
.guide-callout--info    .guide-callout-body { color: var(--gd-blue-text); }
.guide-callout--success .guide-callout-body { color: var(--gd-green-text); }
.guide-callout--warning .guide-callout-body { color: var(--gd-yellow-text); }
.guide-callout--danger  .guide-callout-body { color: var(--gd-red-text); }
.guide-callout-body strong { font-weight: 700; }
.guide-callout-body code {
  font-family: var(--gd-mono);
  font-size: 0.82em;
  background: rgba(0,0,0,0.06);
  padding: 0.08rem 0.32rem;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
}

.guide-endpoint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--gd-code-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--gd-r);
  padding: 0.72rem 1.1rem;
  margin: 1.1rem 0;
  overflow-x: auto;
  white-space: nowrap;
}
.guide-method {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--gd-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.guide-method--post {
  background: rgba(245,158,11,0.18);
  border: 1px solid rgba(245,158,11,0.35);
  color: #b45309;
}
.guide-endpoint-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.guide-endpoint-url { font-family: var(--gd-mono); font-size: 0.81rem; color: #94a3b8; }
.guide-endpoint-url strong { color: #e2e8f0; font-weight: 600; }
.guide-endpoint-meta { font-size: 0.71rem; font-family: var(--gd-sans); color: rgba(255,255,255,0.3); flex-shrink: 0; }

.guide-code-wrap {
  background: var(--gd-code-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  margin: 0.85rem 0 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1);
}

.guide-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 0.75rem 0 0;
  min-height: 38px;
}

.guide-code-tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.guide-code-tabs::-webkit-scrollbar { display: none; }
.guide-code-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  height: 38px;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: var(--gd-sans);
  color: rgba(255,255,255,0.35);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: color 0.13s, border-color 0.13s;
  user-select: none;
  -webkit-user-select: none;
}
.guide-code-tab:hover { color: rgba(255,255,255,0.65); }
.guide-code-tab.is-active { color: #a5b4fc; border-bottom-color: #6366f1; }
.guide-code-tab-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; opacity: 0.55;
}
.guide-code-tab.is-active .guide-code-tab-dot { opacity: 1; }

.guide-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--gd-sans);
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  outline: none;
  transition: all 0.13s;
  white-space: nowrap;
}
.guide-copy-btn:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
  color: #a5b4fc;
}
.guide-copy-btn.is-copied {
  background: rgba(22,163,74,0.12);
  border-color: rgba(22,163,74,0.3);
  color: #86efac;
}
.guide-copy-btn i { font-size: 0.68rem; }

.guide-code-panels { position: relative; }
.guide-code-panel { display: none; }
.guide-code-panel.is-active { display: block; }
.guide-code-panel pre {
  margin: 0; padding: 1.3rem 1.5rem;
  overflow-x: auto; background: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.guide-code-panel pre::-webkit-scrollbar { height: 4px; }
.guide-code-panel pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.guide-code-panel pre::-webkit-scrollbar-track { background: transparent; }
.guide-code-panel pre code {
  font-family: var(--gd-mono); font-size: 0.82rem; line-height: 1.7;
  color: var(--gd-code-text); background: transparent !important; padding: 0;
}

.guide-main code:not(pre code) {
  font-family: var(--gd-mono);
  font-size: 0.83em;
  background: rgba(99,102,241,0.08);
  color: var(--gd-accent);
  padding: 0.1rem 0.36rem;
  border-radius: 4px;
  border: 1px solid var(--gd-accent-bd);
}
.guide-cred-card code {
  font-family: var(--gd-mono);
  font-size: 0.82em;
  background: rgba(99,102,241,0.07);
  color: var(--gd-accent);
  padding: 0.06rem 0.3rem;
  border-radius: 3px;
  border: 1px solid var(--gd-accent-bd);
}

.guide-formula {
  background: var(--gd-code-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.1rem 0 1.35rem;
  font-family: var(--gd-mono);
  font-size: 0.81rem;
  box-shadow: -4px 0 18px rgba(99,102,241,0.12), 0 2px 12px rgba(0,0,0,0.12);
}
.guide-formula-line {
  display: flex; align-items: baseline; gap: 0.6rem; line-height: 2.1;
}
.guide-formula-op    { color: rgba(255,255,255,0.2); font-weight: 700; min-width: 14px; flex-shrink: 0; }
.guide-formula-ns    { color: rgba(255,255,255,0.2); }
.guide-formula-field { color: #a5b4fc; }
.guide-formula-result { margin-top: 0.5rem; padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.07); line-height: 2.1; }
.guide-formula-fn     { color: #7dd3fc; }
.guide-formula-secret { color: #fca5a5; }
.guide-formula-out    { color: #86efac; }

.guide-table-wrap {
  border: 1px solid var(--gd-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 0.7rem 0 1.35rem;
}
.guide-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--gd-sans); font-size: 0.875rem;
}
.guide-table thead tr { background: var(--gd-page); }
.guide-table th {
  text-align: left;
  padding: 0.62rem 1rem;
  font-size: 0.63rem; font-weight: 700;
  color: var(--gd-subtle);
  text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--gd-border); white-space: nowrap;
}
.guide-table td {
  padding: 0.72rem 1rem;
  color: var(--gd-muted);
  border-bottom: 1px solid var(--gd-border);
  vertical-align: middle; line-height: 1.5;
}
.guide-table tbody tr:last-child td { border-bottom: none; }
.guide-table tbody tr:nth-child(even) td { background: rgba(99,102,241,0.018); }
.guide-table tbody tr:hover td { background: rgba(99,102,241,0.05); }
.guide-table td:first-child { color: var(--gd-text-2); font-weight: 500; }
.guide-td-muted { font-size: .8rem; color: var(--gd-subtle); font-family: var(--gd-mono); }
.guide-table code {
  font-family: var(--gd-mono); font-size: 0.8em;
  background: rgba(99,102,241,0.07);
  color: var(--gd-accent);
  padding: 0.06rem 0.32rem; border-radius: 3px;
  border: 1px solid var(--gd-accent-bd);
}

.guide-badge {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.44rem; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700; font-family: var(--gd-sans);
  white-space: nowrap; letter-spacing: 0.02em;
}
.guide-badge--required { background:#fef2f2; border:1px solid rgba(239,68,68,0.3); color:#b91c1c; }
.guide-badge--optional { background:#f8fafc; border:1px solid var(--gd-border-mid); color:var(--gd-subtle); }
.guide-badge--string   { background:rgba(99,102,241,0.07); border:1px solid var(--gd-accent-bd); color:var(--gd-accent); }
.guide-badge--integer  { background:#f5f3ff; border:1px solid rgba(139,92,246,0.25); color:#7c3aed; }
.guide-badge--float    { background:#fffbeb; border:1px solid rgba(245,158,11,0.3); color:#b45309; }
.guide-badge--success  { background:#f0fdf4; border:1px solid rgba(22,163,74,0.25); color:#15803d; }
.guide-badge--warning  { background:#fffbeb; border:1px solid rgba(245,158,11,0.3); color:#92400e; }
.guide-badge--danger   { background:#fef2f2; border:1px solid rgba(239,68,68,0.25); color:#b91c1c; }
.guide-badge--plain    { background:#f8fafc; border:1px solid var(--gd-border-mid); color:var(--gd-muted); }

.guide-steps { list-style:none; margin:.85rem 0; padding:0; display:flex; flex-direction:column; gap:0; }
.guide-step  { display:flex; align-items:flex-start; gap:.85rem; padding:.52rem 0; position: relative; }
.guide-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 30px;
  bottom: -0.52rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gd-accent-bd) 0%, var(--gd-border) 100%);
  border-radius: 1px;
}
.guide-step-num {
  flex-shrink: 0; width: 22px; height: 22px;
  background: var(--gd-accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; font-family: var(--gd-sans);
  color: #fff; margin-top: 0.04rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--gd-accent-dim);
}
.guide-step-body { font-size: 0.9rem; color: var(--gd-muted); line-height: 1.65; font-family: var(--gd-sans); }
.guide-step-body strong { color: var(--gd-text-2); font-weight: 600; }
.guide-step-body code {
  font-family: var(--gd-mono); font-size: 0.82em;
  background: rgba(99,102,241,0.07); color: var(--gd-accent);
  padding: .08rem .34rem; border-radius: 4px; border: 1px solid var(--gd-accent-bd);
}

.guide-response-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:.8rem; margin:.85rem 0 1.35rem; }
.guide-response-card { background:var(--gd-code-bg); border:1px solid rgba(255,255,255,0.07); border-radius:8px; overflow:hidden; }
.guide-response-card-head {
  display:flex; align-items:center; gap:.45rem;
  padding:.48rem 1rem; background:rgba(255,255,255,0.04); border-bottom:1px solid rgba(255,255,255,0.07);
  font-size:.68rem; font-weight:700; font-family:var(--gd-sans); text-transform:uppercase; letter-spacing:.06em;
}
.guide-response-card-head--ok  { color:#86efac; }
.guide-response-card-head--err { color:#fca5a5; }
.guide-response-card pre { margin:0; padding:1rem 1.1rem; }
.guide-response-card pre code { font-family:var(--gd-mono); font-size:.78rem; line-height:1.68; background:transparent !important; padding:0; color:var(--gd-code-text); }

.guide-gateway-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:.5rem; margin:.7rem 0 1.1rem; }
.guide-gateway-pill {
  display:flex; align-items:center; gap:.6rem;
  background:var(--gd-page); border:1px solid var(--gd-border);
  border-radius:7px; padding:.5rem .85rem;
  font-family:var(--gd-sans); transition:border-color .13s,box-shadow .13s;
}
.guide-gateway-pill:hover { border-color:var(--gd-accent-bd); box-shadow:0 2px 8px rgba(99,102,241,0.06); }
.guide-gateway-pill-code {
  font-family:var(--gd-mono); font-size:.72rem; font-weight:700;
  color:var(--gd-accent); background:rgba(99,102,241,0.08);
  border:1px solid var(--gd-accent-bd); padding:.07rem .38rem; border-radius:4px; flex-shrink:0;
}
.guide-gateway-pill-name { font-size:.8rem; color:var(--gd-muted); }

.guide-info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(215px,1fr)); gap:.7rem; margin:.85rem 0; }
.guide-info-card { background:var(--gd-page); border:1px solid var(--gd-border); border-radius:8px; padding:1rem 1.05rem; font-family:var(--gd-sans); }
.guide-info-card-label { font-size:.62rem; font-weight:700; color:var(--gd-subtle); text-transform:uppercase; letter-spacing:.14em; margin-bottom:.38rem; }
.guide-info-card-value { font-size:.845rem; color:var(--gd-text-2); font-weight:500; word-break:break-all; line-height:1.45; }
.guide-info-card-value code {
  font-family:var(--gd-mono); font-size:.8em;
  background:rgba(99,102,241,0.07); color:var(--gd-accent);
  padding:.06rem .32rem; border-radius:3px; border:1px solid var(--gd-accent-bd);
}

.guide-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.guide-ref-group {
  background: var(--gd-page);
  border: 1px solid var(--gd-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.guide-ref-group:hover {
  border-color: var(--gd-accent-bd);
  box-shadow: 0 2px 16px rgba(99,102,241,0.07);
}
.guide-ref-group-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gd-accent);
  padding: .75rem 1.1rem;
  background: rgba(99,102,241,.06);
  border-bottom: 1px solid var(--gd-border);
}
.guide-ref-row {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem 1.1rem;
  border-bottom: 1px solid var(--gd-border);
}
.guide-ref-row:last-child { border-bottom: none; }
.guide-ref-label {
  font-size: .63rem;
  font-weight: 700;
  color: var(--gd-subtle);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.guide-ref-val {
  font-size: .855rem;
  color: var(--gd-text-2);
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
}
.guide-ref-val code {
  font-family: var(--gd-mono);
  font-size: .82em;
  background: rgba(99,102,241,.07);
  color: var(--gd-accent);
  padding: .07rem .38rem;
  border-radius: 3px;
  border: 1px solid var(--gd-accent-bd);
  white-space: nowrap;
}
.guide-badge--success-sm {
  display: inline-flex;
  align-items: center;
  padding: .12rem .45rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.25);
}

.guide-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0 2.5rem;
  gap: 1rem;
}
.guide-page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--gd-page);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-r);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--gd-sans);
  color: var(--gd-muted);
  text-decoration: none;
  transition: border-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.guide-page-nav-btn:hover {
  border-color: var(--gd-accent-bd);
  color: var(--gd-accent);
  box-shadow: 0 2px 10px rgba(99,102,241,0.08);
}
.guide-page-nav-btn-label { font-size: 0.67rem; color: var(--gd-subtle); font-weight: 400; }
.guide-page-nav-btn-title { color: var(--gd-text-2); font-weight: 600; font-size: 0.88rem; }

.guide-mobile-nav-toggle {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1050;
  width: 46px; height: 46px; background: var(--gd-accent);
  border: none; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transition: transform .18s, background .18s;
}
.guide-mobile-nav-toggle:hover { background: #4f46e5; transform: translateY(-1px); }

.hljs { background:transparent !important; padding:0 !important; font-size:.82rem !important; line-height:1.7 !important; }

@media (max-width: 1199.98px) {
  .guide-page-wrap, .guide-breadcrumb { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 991.98px) {
  .guide-wrap { flex-direction: column; min-height: auto; }
  .guide-sidebar {
    width: 100%; min-width: unset; position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--gd-border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
  }
  .guide-sidebar.is-open { max-height: 600px; overflow-y: auto; }
  .guide-sidebar-brand { cursor: pointer; }
  .guide-nav-list { display: flex; flex-wrap: wrap; gap: .2rem; padding: .25rem .75rem .75rem; }
  .guide-nav-item a { padding: .38rem .75rem; border-left: none; border-radius: 6px; border-bottom: 2px solid transparent; }
  .guide-nav-item.is-active a { border-left: none; border-bottom-color: var(--gd-accent); }
  .guide-mobile-nav-toggle { display: flex; }
  .guide-page-wrap, .guide-breadcrumb { padding-left: 1.25rem; padding-right: 1.25rem; }
  .guide-cred-grid { grid-template-columns: repeat(5, 1fr); }
  .guide-response-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .guide-page-wrap, .guide-breadcrumb { padding-left: 1rem; padding-right: 1rem; }
  .guide-section-title { font-size: 1.4rem; }
  .guide-cred-grid { grid-template-columns: 1fr; }
  .guide-code-panel pre { padding: 1rem; }
  .guide-table th, .guide-table td { padding: .5rem .7rem; font-size: .82rem; }
  .guide-info-grid { grid-template-columns: 1fr; }
  .guide-ref-grid { grid-template-columns: 1fr; }
  .guide-gateway-grid { grid-template-columns: 1fr 1fr; }
}
