:root {
  --g-bg: #060513;
  --g-paper: rgba(14, 15, 31, 0.76);
  --g-paper-solid: #0d0e21;
  --g-paper-soft: rgba(21, 23, 46, 0.7);
  --g-line: rgba(150, 165, 220, 0.16);
  --g-line-strong: rgba(150, 180, 255, 0.3);
  --g-ink: #f5f6ff;
  --g-muted: #a5aac5;
  --g-faint: #777d9c;
  --g-cyan: #38bdf8;
  --g-blue: #3b82f6;
  --g-violet: #8b5cf6;
  --g-green: #34d399;
  --g-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --g-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --g-header-h: 64px;
  --g-content: 1232px;
  --g-radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--g-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: var(--g-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -4%;
  content: "";
  background-image: url("/theme/assets/fluid-bg.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.48;
  filter: saturate(0.9) brightness(0.9);
  transform: scale(1.04);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(80, 95, 220, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(6, 5, 19, 0.24) 0%, rgba(6, 5, 19, 0.82) 48%, #060513 100%);
}

.guide-skip {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--g-cyan);
  color: #07111c;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.guide-skip:focus {
  transform: translateY(0);
}

.guide-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--g-header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-header.is-scrolled,
.guide-header.is-menu-open {
  border-bottom-color: var(--g-line);
  background: rgba(6, 5, 19, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--g-content);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.guide-brand,
.guide-brand:hover {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.guide-brand img {
  width: 29px;
  height: 29px;
  border-radius: 50%;
}

.guide-brand strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.guide-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.guide-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.guide-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.guide-nav-link.is-active {
  color: #fff;
  background: rgba(56, 189, 248, 0.11);
}

.guide-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 10px;
  background: linear-gradient(135deg, #0891c9, #0369a1);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.24);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.guide-login:hover {
  background: linear-gradient(135deg, #06a7e4, #0284c7);
}

.guide-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--g-line);
  border-radius: 9px;
  background: rgba(16, 17, 36, 0.64);
  color: #fff;
  cursor: pointer;
}

.guide-menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.guide-mobile-menu {
  display: none;
  padding: 10px 16px 18px;
  border-bottom: 1px solid var(--g-line);
  background: var(--g-bg);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.guide-mobile-menu.is-open {
  display: block;
}

.guide-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 9px;
  color: var(--g-muted);
  font-size: 14px;
  text-decoration: none;
}

.guide-mobile-menu a:hover,
.guide-mobile-menu a.is-active {
  background: rgba(56, 189, 248, 0.09);
  color: #fff;
}

.guide-main {
  width: 100%;
  max-width: var(--g-content);
  margin: 0 auto;
  padding: calc(var(--g-header-h) + 34px) 16px 80px;
}

.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 38px 40px;
  border: 1px solid var(--g-line);
  border-radius: 28px;
  background:
    linear-gradient(125deg, rgba(22, 24, 52, 0.92) 0%, rgba(11, 12, 29, 0.86) 58%, rgba(17, 19, 43, 0.9) 100%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
}

.guide-hero::before {
  position: absolute;
  top: -160px;
  left: 22%;
  width: 520px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 68%);
  content: "";
  filter: blur(6px);
  pointer-events: none;
}

.guide-hero::after {
  position: absolute;
  right: -100px;
  bottom: -190px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 67%);
  content: "";
  pointer-events: none;
}

.guide-hero-copy,
.guide-quick-card {
  position: relative;
  z-index: 1;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.07);
  color: #9bdcff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.guide-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g-cyan);
  box-shadow: 0 0 12px var(--g-cyan);
}

.guide-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.guide-hero h1 span {
  background: linear-gradient(105deg, #7dd3fc 4%, #a78bfa 48%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guide-hero-copy > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--g-muted);
  font-size: 16px;
  line-height: 1.8;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.guide-btn:hover {
  transform: translateY(-1px);
}

.guide-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.27);
  color: #fff;
}

.guide-btn-ghost {
  border-color: var(--g-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #e7eaff;
}

.guide-btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.44);
  background: rgba(56, 189, 248, 0.08);
}

.guide-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  color: var(--g-faint);
  font-size: 12px;
}

.guide-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-hero-meta b {
  color: #dce5ff;
  font-weight: 700;
}

.guide-quick-card {
  align-self: center;
  padding: 21px;
  border: 1px solid var(--g-line);
  border-radius: 19px;
  background: rgba(6, 8, 22, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.guide-quick-card > span {
  display: block;
  margin-bottom: 15px;
  color: #cdd6f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-quick-step {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid rgba(150, 165, 220, 0.1);
}

.guide-quick-step:first-of-type {
  border-top: 0;
}

.guide-quick-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.09);
  color: #8bdcff;
  font-family: var(--g-mono);
  font-size: 11px;
}

.guide-quick-step strong {
  display: block;
  color: #f1f4ff;
  font-size: 13px;
  font-weight: 650;
}

.guide-quick-step small {
  display: block;
  margin-top: 2px;
  color: var(--g-faint);
  font-size: 11px;
  line-height: 1.5;
}

.guide-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: calc(var(--g-header-h) + 22px);
  max-height: calc(100vh - var(--g-header-h) - 44px);
  overflow: auto;
  padding: 13px;
  border: 1px solid var(--g-line);
  border-radius: 19px;
  background: rgba(10, 11, 27, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 143, 196, 0.35) transparent;
}

.guide-sidebar::-webkit-scrollbar {
  width: 5px;
}

.guide-sidebar::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(126, 143, 196, 0.35);
}

.guide-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 9px 10px;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.guide-search:focus-within {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.guide-search svg {
  flex: 0 0 auto;
  color: var(--g-faint);
}

.guide-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef1ff;
  font: inherit;
  font-size: 12px;
}

.guide-search input::placeholder {
  color: #747b99;
}

.guide-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--g-line);
}

.guide-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 7px;
  border: 1px solid rgba(150, 165, 220, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--g-muted);
  font-size: 11px;
  text-decoration: none;
}

.guide-quick-links a:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.07);
  color: #fff;
}

.guide-group + .guide-group {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--g-line);
}

.guide-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 8px 9px;
  color: #e0e5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.guide-group-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  color: var(--g-faint);
  font-family: var(--g-mono);
  font-size: 9px;
  font-weight: 500;
}

.guide-toc-list {
  display: grid;
  gap: 3px;
}

.guide-toc-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 37px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9ba1c0;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.guide-toc-link .num {
  width: 19px;
  flex: 0 0 auto;
  color: #696f8d;
  font-family: var(--g-mono);
  font-size: 9px;
}

.guide-toc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.guide-toc-link.is-active {
  border-color: rgba(56, 189, 248, 0.2);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(124, 58, 237, 0.09));
  color: #fff;
  font-weight: 650;
}

.guide-toc-link.is-active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -1px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(#38bdf8, #8b5cf6);
  content: "";
}

.guide-toc-link.is-active .num {
  color: #89dcff;
}

.guide-toc-link.is-hidden {
  display: none;
}

.guide-no-results {
  display: none;
  padding: 14px 8px;
  color: var(--g-faint);
  font-size: 12px;
  text-align: center;
}

.guide-no-results.is-visible {
  display: block;
}

.guide-document {
  min-width: 0;
}

.guide-doc-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 27px 30px;
  border: 1px solid var(--g-line);
  border-radius: 21px;
  background:
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(23, 25, 54, 0.92), rgba(11, 12, 29, 0.9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
}

.guide-doc-hero::after {
  position: absolute;
  top: 50%;
  right: 26px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 20px rgba(56, 189, 248, 0.025), 0 0 0 42px rgba(139, 92, 246, 0.02);
  pointer-events: none;
  transform: translateY(-50%);
}

.guide-doc-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #8ddeff;
  font-family: var(--g-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-doc-kicker .badge {
  padding: 2px 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.09);
  color: #7ff0c8;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.guide-doc-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f7f8ff;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.guide-doc-hero > p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 11px 0 0;
  color: var(--g-muted);
  font-size: 14px;
  line-height: 1.75;
}

.guide-doc-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.guide-doc-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(150, 165, 220, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #b8bfdc;
  font-size: 10px;
}

.guide-doc-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.13);
  color: #8ddfff;
  font-family: var(--g-mono);
  font-size: 8px;
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
  animation: guide-panel-in 0.28s ease both;
}

@keyframes guide-panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-source h2,
.guide-source h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--g-ink);
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.guide-source h3 span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  font-size: 17px;
}

.guide-source h4 {
  margin: 22px 0 11px;
  color: #eef1ff;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.guide-source h4 > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  font-family: var(--g-mono);
  font-size: 10px;
  vertical-align: 1px;
}

.guide-source h5 {
  margin: 18px 0 8px;
  color: #eef1ff;
  font-size: 14px;
}

.guide-source p,
.guide-source li {
  color: var(--g-muted);
  font-size: 13.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.guide-source p {
  margin: 9px 0;
}

.guide-source ol,
.guide-source ul {
  margin: 10px 0 15px;
  padding-left: 21px;
}

.guide-source li {
  padding-left: 3px;
}

.guide-source li::marker {
  color: #7783a8;
}

.guide-source a {
  color: #7dd3fc;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.guide-source a:hover {
  color: #b9edff;
  text-decoration: underline;
}

.guide-source code {
  padding: 2px 6px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.07);
  color: #b8e9ff;
  font-family: var(--g-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.guide-source pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.guide-source pre {
  overflow-x: auto;
  margin: 13px 0 18px;
  border: 1px solid #243149;
  border-radius: 11px;
  background: #0a111d;
  color: #d6e5ec;
  font-family: var(--g-mono);
  font-size: 11.5px;
  line-height: 1.75;
  tab-size: 2;
}

.guide-source blockquote {
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-left: 3px solid rgba(52, 211, 153, 0.62);
  border-radius: 0 10px 10px 0;
  background: rgba(52, 211, 153, 0.055);
}

.guide-core-section {
  display: block;
}

.guide-platform-chapter {
  display: grid;
  gap: 15px;
}

.guide-platform-chapter > h3,
.guide-platform-chapter > div:first-of-type,
.guide-subchapter,
.guide-selected-client {
  margin: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 19, 40, 0.83), rgba(10, 11, 27, 0.78));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
}

.guide-platform-chapter > h3 {
  margin: 0;
  font-size: 21px;
}

.guide-platform-chapter > div:first-of-type {
  padding-bottom: 18px;
}

.guide-subchapter-list {
  display: grid;
  gap: 15px;
}

.guide-selected-client > div:first-child {
  display: none;
}

.guide-code-block {
  overflow: hidden;
  margin: 14px 0 19px;
  border: 1px solid #22304a;
  border-radius: 11px;
  background: #0a111d;
}

.guide-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid #1c2940;
  background: #101a2b;
  color: #93a6c8;
  font-family: var(--g-mono);
  font-size: 10px;
}

.guide-code-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-copy {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.07);
  color: #9ccbe6;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.guide-copy:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #fff;
}

.guide-code-block pre {
  margin: 0;
  padding: 17px 19px;
  border: 0;
  border-radius: 0;
  background: #0a111d;
}

.guide-source table {
  width: 100%;
  margin: 14px 0 19px;
  border-collapse: collapse;
  font-size: 12px;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 14px 0 19px;
  border: 1px solid var(--g-line);
  border-radius: 11px;
}

.guide-table-wrap table {
  min-width: 620px;
  margin: 0;
}

.guide-source th {
  background: rgba(56, 189, 248, 0.07);
  color: #dce9ff;
  font-weight: 650;
  text-align: left;
}

.guide-source th,
.guide-source td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--g-line);
  border-left: 1px solid var(--g-line);
}

.guide-source th:first-child,
.guide-source td:first-child {
  border-left: 0;
}

.guide-source tr:last-child td {
  border-bottom: 0;
}

.guide-source td {
  color: var(--g-muted);
}

.guide-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 17px;
}

.guide-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid rgba(56, 189, 248, 0.17);
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.055);
  color: #c3dff1;
  font-size: 11px;
}

.guide-dsh-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 19, 40, 0.83), rgba(10, 11, 27, 0.78));
}

.guide-dsh-intro p {
  margin: 0;
}

.guide-note {
  padding: 13px 15px;
  border: 1px solid rgba(56, 189, 248, 0.17);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.045);
  color: #b7c6e4;
  font-size: 12.5px;
  line-height: 1.75;
}

.guide-note strong {
  color: #eaf7ff;
}

.dsh-config {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 15px 0 20px;
  border: 1px solid var(--g-line);
  border-radius: 12px;
  background: var(--g-line);
}

.dsh-config > div {
  padding: 10px 12px;
  background: #0d1022;
  color: var(--g-muted);
  font-size: 12px;
}

.dsh-config > div:nth-child(odd) {
  color: #dce3ff;
  font-weight: 600;
}

.dsh-config code {
  overflow-wrap: anywhere;
}

.dsh-steps {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.dsh-phase {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed rgba(150, 165, 220, 0.16);
}

.dsh-phase span {
  align-self: center;
  padding: 3px 8px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.06);
  color: #9de5ff;
  font-family: var(--g-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.dsh-phase strong {
  color: #f2f5ff;
  font-size: 16px;
}

.dsh-phase small {
  color: var(--g-faint);
  font-size: 12px;
}

.dsh-step {
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 19, 40, 0.9), rgba(9, 10, 24, 0.86));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.19);
}

.dsh-step-head {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 20px;
}

.dsh-step-head > div {
  min-width: 0;
}

.dsh-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.09));
  color: #9de5ff;
  font-family: var(--g-mono);
  font-size: 11px;
  font-weight: 700;
}

.dsh-step-head h4 {
  margin: 1px 0 4px;
  color: #f2f5ff;
  font-size: 15px;
}

.dsh-step-head p {
  margin: 0;
  color: var(--g-muted);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.dsh-shot {
  position: relative;
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 165, 220, 0.16);
  border-radius: 11px;
  background: #05070f;
  cursor: zoom-in;
}

.dsh-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.dsh-shot-compact {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.dsh-shot::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(5, 7, 15, 0.82);
  color: #c7d0e8;
  content: "点击放大";
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.dsh-shot:hover::after {
  opacity: 1;
}

.dsh-finish {
  margin-top: 18px;
  padding: 19px 21px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.045);
}

.dsh-finish h4 {
  margin: 0 0 6px;
  color: #dfffef;
  font-size: 15px;
}

.dsh-finish p {
  margin: 0;
  font-size: 12.5px;
}

.guide-footer {
  width: 100%;
  max-width: var(--g-content);
  margin: 0 auto;
  padding: 24px 16px 34px;
  border-top: 1px solid var(--g-line);
}

.guide-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--g-faint);
  font-size: 11px;
}

.guide-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce2f7;
  font-size: 12px;
  font-weight: 650;
}

.guide-footer-brand img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
}

.guide-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.guide-footer-links a {
  color: var(--g-faint);
  text-decoration: none;
}

.guide-footer-links a:hover {
  color: #fff;
}

.guide-lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(3, 4, 12, 0.94);
}

.guide-lightbox.is-open {
  display: flex;
}

.guide-lightbox img {
  display: block;
  max-width: min(1600px, 95vw);
  max-height: 90vh;
  border: 1px solid rgba(150, 180, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
}

.guide-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .guide-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 32px;
  }

  .guide-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .guide-nav-links,
  .guide-nav-right .guide-login {
    display: none;
  }

  .guide-menu-toggle {
    display: block;
  }

  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-quick-card {
    max-width: 520px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
    max-height: none;
  }

  .guide-toc-list {
    grid-template-columns: 1fr 1fr;
  }

  .guide-group + .guide-group {
    margin-top: 12px;
    padding-top: 12px;
  }
}

@media (max-width: 620px) {
  .guide-main {
    padding: calc(var(--g-header-h) + 18px) 12px 54px;
  }

  .guide-hero {
    margin-bottom: 18px;
    padding: 25px 20px;
    border-radius: 20px;
  }

  .guide-hero h1 {
    font-size: 36px;
  }

  .guide-hero h1 span {
    display: inline-block;
  }

  .guide-hero-copy > p {
    font-size: 14px;
  }

  .guide-hero-actions {
    margin-top: 20px;
  }

  .guide-btn {
    flex: 1 1 100%;
  }

  .guide-quick-card {
    padding: 16px;
  }

  .guide-toc-list {
    grid-template-columns: 1fr;
  }

  .guide-quick-links {
    grid-template-columns: 1fr;
  }

  .guide-doc-hero {
    padding: 22px 18px;
    border-radius: 17px;
  }

  .guide-doc-hero::after {
    display: none;
  }

  .guide-platform-chapter > h3,
  .guide-platform-chapter > div:first-of-type,
  .guide-subchapter,
  .guide-selected-client {
    padding: 18px 16px 20px;
    border-radius: 14px;
  }

  .guide-source p,
  .guide-source li {
    font-size: 13px;
  }

  .guide-code-block pre,
  .guide-source pre {
    padding: 14px;
    font-size: 10.5px;
  }

  .dsh-step-head {
    padding: 15px;
  }

  .dsh-step-head h4 {
    font-size: 14px;
  }

  .dsh-shot {
    width: calc(100% - 16px);
    margin: 0 8px 8px;
  }

  .dsh-shot::after {
    display: block;
    content: "轻点放大";
    opacity: 1;
  }

  .dsh-config {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .guide-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .guide-lightbox {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding: 56px 12px 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .guide-lightbox img {
    width: min(1600px, 300vw);
    max-width: none;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
