/* MAXLAKER AIHub guide — page-specific product-document workspace */
.gateway-guide {
  --ink: #10243b;
  --muted: #587086;
  --line: rgba(94, 156, 194, 0.18);
  --surface: #ffffff;
  --canvas: #f6fbfe;
  background:
    radial-gradient(circle at 82% 7%, rgba(36, 179, 237, 0.16), transparent 22rem),
    linear-gradient(180deg, #ecf9ff 0, #f8fcff 520px, #f5faff 100%);
}

.gateway-guide .topbar {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(76, 148, 188, 0.16);
}

.gateway-guide .topbar-inner {
  max-width: 1240px;
  min-height: 64px;
  padding-block: 10px;
}

.gateway-guide .topbar img { height: 34px; }

.gateway-guide .topbar a.back {
  border-color: rgba(0, 119, 182, 0.2);
  background: rgba(255, 255, 255, 0.65);
  padding: 6px 14px;
}

.gateway-guide .topbar-actions a:nth-child(2) {
  color: #fff;
  background: #087eb6;
  border-color: #087eb6;
}

.gateway-guide .hero-split {
  position: relative;
  isolation: isolate;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 62px;
  padding: 62px 54px 68px;
  margin: 32px auto 0;
  border: 1px solid rgba(89, 185, 231, 0.26);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(112deg, #04233c 0%, #063d63 55%, #075782 100%);
  box-shadow: 0 24px 60px rgba(5, 76, 116, 0.16);
}

.gateway-guide .hero-split::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(142, 225, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 225, 255, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.gateway-guide .hero-split::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 490px;
  height: 490px;
  right: -180px;
  bottom: -260px;
  border: 1px solid rgba(103, 219, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(103, 219, 255, 0.05), 0 0 0 112px rgba(103, 219, 255, 0.035);
}

.gateway-guide .guide-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #78ddf6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gateway-guide .guide-eyebrow span {
  width: 24px;
  height: 1px;
  background: #70dcf4;
}

.gateway-guide .hero .mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.gateway-guide .hero .mark svg { width: 38px; height: 38px; }
.gateway-guide .hero h1 { color: #fff; font-size: clamp(30px, 3vw, 40px); font-weight: 650; letter-spacing: -0.035em; }
.gateway-guide .hero h1 .zh { color: rgba(220, 244, 253, 0.72); font-size: 17px; }
.gateway-guide .hero .tagline { color: rgba(223, 245, 254, 0.7); font-size: 15px; }
.gateway-guide .badge { background-image: linear-gradient(135deg, #17b6ec, #49d5e4); box-shadow: 0 5px 13px rgba(9, 199, 241, 0.16); }
.gateway-guide .badge.ghost { color: #bff1ff; background: rgba(154, 232, 255, 0.1); border-color: rgba(166, 234, 255, 0.32); }

.gateway-guide .lead {
  max-width: 650px;
  margin-top: 28px;
  padding-left: 18px;
  color: rgba(237, 249, 255, 0.86);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  border-left-color: #35c9ef;
}

.gateway-guide .hero-cta { margin-top: 26px; }
.gateway-guide .hero-cta a.btn { background: #fff; color: #086b9c; box-shadow: none; }
.gateway-guide .hero-cta a.btn:hover { color: #065e8b; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.gateway-guide .hero-cta a.outline { color: #d8f7ff; border-color: rgba(203, 246, 255, 0.42); }
.gateway-guide .hero-cta a.outline:hover { background: rgba(208, 245, 255, 0.12); }

.gateway-guide .hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(172, 234, 255, 0.2);
  color: rgba(221, 247, 255, 0.72);
  font-size: 12px;
}

.gateway-guide .hero-signals span { white-space: nowrap; }
.gateway-guide .hero-signals b { color: #fff; font-weight: 700; }

.gateway-guide .hero-console { align-self: center; position: relative; }
.gateway-guide .console-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 11px 10px;
  color: rgba(184, 239, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.gateway-guide .console-label span { width: 6px; height: 6px; border-radius: 50%; background: #39dc91; box-shadow: 0 0 10px #39dc91; }
.gateway-guide .demo-card { border-color: rgba(125, 220, 250, 0.22); border-radius: 18px; background: linear-gradient(155deg, #082a46 0%, #061a2c 100%); box-shadow: 0 28px 44px rgba(0, 0, 0, 0.28); }
.gateway-guide .dc-bar { padding: 13px 17px; }
.gateway-guide .dc-code { padding: 20px 19px; font-size: 12px; line-height: 2; }
.gateway-guide .dc-status { padding: 12px 18px; }

.gateway-guide .doc-layout {
  max-width: 1240px;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 42px;
  padding: 46px 24px 76px;
}

.gateway-guide .toc {
  top: 84px;
  padding: 18px 12px 14px;
  border: 1px solid rgba(73, 148, 189, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(32, 113, 158, 0.07);
}

.gateway-guide .toc-kicker {
  margin: 0 10px 3px;
  color: #1084ba;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gateway-guide .toc .toc-title { padding-bottom: 12px; color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; }
.gateway-guide .toc a { position: relative; padding: 6px 10px 6px 15px; color: #5d7487; font-size: 12.5px; border-left: 0; }
.gateway-guide .toc a::before { content: ''; position: absolute; left: 2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #b8cbd7; transform: translateY(-50%); }
.gateway-guide .toc a:hover, .gateway-guide .toc a.active { color: #087fb7; background: rgba(12, 174, 233, 0.08); border-left: 0; }
.gateway-guide .toc a.active::before { width: 5px; height: 5px; background: #16b8e8; box-shadow: 0 0 0 3px rgba(22, 184, 232, 0.14); }
.gateway-guide .toc-foot { display: flex; align-items: center; gap: 7px; margin: 12px 8px 1px; padding-top: 12px; border-top: 1px solid var(--line); color: #8294a2; font-size: 10px; }
.gateway-guide .toc-foot span { width: 6px; height: 6px; border-radius: 50%; background: #41c982; }

.gateway-guide .doc { min-width: 0; }
.gateway-guide .doc > section { margin-bottom: 54px; }
.gateway-guide section h2 { margin-bottom: 20px; padding-bottom: 14px; color: var(--ink); font-size: 23px; border-bottom-color: rgba(61, 156, 203, 0.18); }
.gateway-guide section h2 .no { width: 29px; height: 29px; border-radius: 8px; background: #e6f7fd; color: #078ac1; font-size: 11px; box-shadow: inset 0 0 0 1px rgba(10, 164, 220, 0.18); }
.gateway-guide section h3 { margin-top: 16px; color: #087eb6; }
.gateway-guide .doc p, .gateway-guide .doc li { color: #405e73; font-size: 15px; line-height: 1.9; }
.gateway-guide .doc strong { color: var(--ink); }

.gateway-guide .facts {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid rgba(80, 156, 198, 0.18);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(39, 129, 179, 0.05);
}
.gateway-guide .fact { min-height: 96px; padding: 17px 18px; border-right: 1px solid rgba(80, 156, 198, 0.16); border-bottom: 1px solid rgba(80, 156, 198, 0.16); }
.gateway-guide .fact:nth-child(3n) { border-right: 0; }
.gateway-guide .fact:nth-child(n + 4) { border-bottom: 0; }
.gateway-guide .fact dt { margin-bottom: 6px; color: #7790a1; font-size: 11px; }
.gateway-guide .fact dd { color: var(--ink); font-size: 14px; line-height: 1.5; }

.gateway-guide .pos-callout { padding: 21px 24px; border: 0; border-radius: 14px; background: linear-gradient(118deg, #e7f8ff, #f7fdff); box-shadow: inset 4px 0 #16b9e8; color: #1c536f; font-size: 16px; line-height: 1.8; }
.gateway-guide .pos-grid { gap: 14px; }
.gateway-guide .pos-item, .gateway-guide .value-card, .gateway-guide .audience-card { border-color: rgba(75, 151, 191, 0.18); border-radius: 14px; box-shadow: 0 8px 18px rgba(33, 118, 164, 0.035); }
.gateway-guide .pos-item { padding: 18px; }
.gateway-guide .pos-item strong, .gateway-guide .value-card h3 { color: #087eb6; }
.gateway-guide .pos-item p, .gateway-guide .value-card p, .gateway-guide .audience-card p { font-size: 13px; line-height: 1.75; }
.gateway-guide .value-grid { gap: 14px; }
.gateway-guide .value-card { min-height: 148px; padding: 20px; }
.gateway-guide .value-card:hover { border-color: rgba(8, 152, 208, 0.32); box-shadow: 0 15px 28px rgba(29, 128, 180, 0.12); }

.gateway-guide table { overflow: hidden; border-color: rgba(75, 151, 191, 0.2); border-radius: 14px; box-shadow: 0 8px 20px rgba(33, 118, 164, 0.035); }
.gateway-guide th { padding: 13px 16px; background: #eaf8fe; color: #087eb6; font-size: 13px; }
.gateway-guide td { padding: 14px 16px; color: #405e73; line-height: 1.7; }
.gateway-guide tr:nth-child(even) td { background: #f8fcfe; }
.gateway-guide figure.shot { border-radius: 16px; box-shadow: 0 12px 28px rgba(33, 118, 164, 0.07); }
.gateway-guide figure.shot figcaption { padding: 12px 16px; background: #f7fcfe; }

.gateway-guide .chips { gap: 9px; }
.gateway-guide .chip { padding: 6px 14px; border-color: rgba(75, 151, 191, 0.17); background: #fff; color: #4b6b80; box-shadow: 0 3px 8px rgba(36, 126, 174, 0.035); }
.gateway-guide .adv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.gateway-guide .adv-list li { margin: 0; padding: 12px 4px 12px 26px; font-size: 14px; line-height: 1.75; }
.gateway-guide .audience-grid { gap: 14px; }
.gateway-guide .audience-card { border-top: 3px solid #29bfe8; padding: 18px; }
.gateway-guide .steps li { padding: 14px 0 14px 54px; }
.gateway-guide .steps li::before { top: 12px; width: 34px; height: 34px; border-radius: 10px; }
.gateway-guide details { border-color: rgba(75, 151, 191, 0.18); box-shadow: 0 4px 12px rgba(32, 119, 166, 0.03); }

.gateway-guide .footer-note { max-width: 1240px; padding: 22px 26px; border-color: rgba(75, 151, 191, 0.18); border-radius: 16px; background: #f3fbfe; }

@media (max-width: 1000px) {
  .gateway-guide .hero-split { grid-template-columns: 1fr; gap: 36px; padding: 46px 38px; margin-inline: 24px; }
  .gateway-guide .hero-console { max-width: 560px; width: 100%; }
  .gateway-guide .doc-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
  .gateway-guide .topbar-inner { padding-inline: 18px; }
  .gateway-guide .topbar-actions a.back:first-child { display: none; }
  .gateway-guide .hero-split { margin: 16px 14px 0; padding: 34px 24px 36px; border-radius: 22px; min-width: 0; }
  .gateway-guide .hero-split > div, .gateway-guide .hero, .gateway-guide .hero > div, .gateway-guide .hero-console, .gateway-guide .demo-card { min-width: 0; }
  .gateway-guide .hero h1 { font-size: 30px; }
  .gateway-guide .hero h1 .zh { display: block; margin: 6px 0 0; }
  .gateway-guide .hero .mark { width: 58px; height: 58px; }
  .gateway-guide .doc-layout { display: block; padding: 34px 18px 56px; }
  .gateway-guide .toc { display: none; }
  .gateway-guide .facts { grid-template-columns: repeat(2, 1fr); }
  .gateway-guide .fact:nth-child(3n) { border-right: 1px solid rgba(80, 156, 198, 0.16); }
  .gateway-guide .fact:nth-child(2n) { border-right: 0; }
  .gateway-guide .fact:nth-child(n + 4) { border-bottom: 1px solid rgba(80, 156, 198, 0.16); }
  .gateway-guide .fact:nth-child(n + 5) { border-bottom: 0; }
  .gateway-guide .pos-grid, .gateway-guide .adv-list { grid-template-columns: 1fr; }
  .gateway-guide .doc > section { margin-bottom: 42px; }
  .gateway-guide section h2 { font-size: 21px; }
  .gateway-guide .footer-note { margin: 0 14px 32px; }
  .gateway-guide table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .gateway-guide .topbar img { height: 29px; }
  .gateway-guide .topbar-actions a.back { padding: 5px 9px; font-size: 11px; }
  .gateway-guide .hero { gap: 13px; }
  .gateway-guide .hero h1 { overflow-wrap: anywhere; }
  .gateway-guide .hero-signals { display: grid; gap: 7px; }
  .gateway-guide .facts { grid-template-columns: 1fr; }
  .gateway-guide .fact, .gateway-guide .fact:nth-child(2n), .gateway-guide .fact:nth-child(3n) { border-right: 0; border-bottom: 1px solid rgba(80, 156, 198, 0.16); }
  .gateway-guide .fact:last-child { border-bottom: 0; }
  .gateway-guide .dc-code { font-size: 10.5px; }
}

/* Keep Gateway's API-specific extension aligned with the shared guide canvas. */
@media (min-width: 761px) {
  .gateway-guide .topbar-inner,
  .gateway-guide .hero-split,
  .gateway-guide .page-head,
  .gateway-guide .doc-layout,
  .gateway-guide .footer-note {
    width: 90vw;
    max-width: 90vw;
  }
}
