:root {
  color-scheme: light;
  --bg: #f4f8ff;
  --panel: rgba(255, 255, 255, 0.9);
  --line: #dfe8f8;
  --text: #172033;
  --muted: #697791;
  --muted-strong: #40506d;
  --accent: #2368ff;
  --accent-2: #00bbff;
  --accent-3: #7f6dff;
  --accent-soft: #ebf3ff;
  --accent-border: rgba(132, 173, 255, 0.72);
  --shadow-soft: 0 18px 42px rgba(19, 35, 69, 0.08);
  --shadow-glow: 0 26px 70px rgba(35, 104, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-width: 320px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(35, 104, 255, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 187, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% -10%, rgba(127, 109, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 180px);
  color: var(--text);
  min-width: 320px;
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

.docs-shell {
  min-height: 100vh;
  position: relative;
}

.docs-shell::before,
.docs-shell::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.docs-shell::before {
  top: -160px;
  left: -130px;
  background: rgba(35, 104, 255, 0.18);
}

.docs-shell::after {
  top: 150px;
  right: -160px;
  background: rgba(0, 187, 255, 0.14);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 12% 0%, rgba(35, 104, 255, 0.12), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(0, 187, 255, 0.1), transparent 24%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 232, 248, 0.8);
  box-shadow:
    0 12px 30px rgba(19, 35, 69, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45);
}

.topbar-inner {
  width: min(1440px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 520px) 180px;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  margin-left: 8px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.24) 38%, transparent 58%),
    linear-gradient(135deg, rgba(35, 104, 255, 0.14), rgba(0, 187, 255, 0.14));
  border: 1px solid rgba(132, 173, 255, 0.72);
  box-shadow:
    0 14px 30px rgba(35, 104, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at center, rgba(35, 104, 255, 0.18), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

.brand-mark:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(35, 104, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.52) inset;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(35, 104, 255, 0.18))
    drop-shadow(0 10px 18px rgba(35, 104, 255, 0.14));
  position: relative;
  z-index: 1;
}

.search-wrap {
  position: relative;
}

.search-box {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.9)),
    linear-gradient(135deg, rgba(35, 104, 255, 0.05), rgba(0, 187, 255, 0.04));
  border: 1px solid rgba(205, 221, 246, 0.9);
  border-radius: 12px;
  padding: 0 14px;
  box-shadow:
    0 8px 22px rgba(18, 31, 64, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.search-box svg {
  color: #9aa5b7;
  width: 18px;
  height: 18px;
}

.search-box input {
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
}

.search-box input::placeholder {
  color: #9aa5b7;
}

.search-box:focus-within {
  border-color: var(--accent-border);
  box-shadow:
    0 12px 28px rgba(18, 31, 64, 0.06),
    0 0 0 4px rgba(35, 104, 255, 0.08),
    0 16px 32px rgba(35, 104, 255, 0.1);
  transform: translateY(-1px);
}

.search-hint {
  color: #8c97aa;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  font-size: 0.77rem;
  font-weight: 600;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.search-result {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.search-result:first-child {
  border-top: 0;
}

.search-result:hover {
  background: var(--accent-soft);
}

.search-result strong {
  display: block;
  font-size: 0.95rem;
}

.search-result span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
}

.docs-layout {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
  display: grid;
  grid-template-columns: 248px minmax(0, 820px);
  gap: 38px;
  position: relative;
  z-index: 1;
}

.sidebar-card,
.page-card {
  background: var(--panel);
  border: 1px solid rgba(223, 232, 248, 0.88);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.sidebar-card::before,
.page-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(35, 104, 255, 0.32), rgba(0, 187, 255, 0.22), transparent 76%);
  pointer-events: none;
}

.sidebar-card::after,
.page-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(35, 104, 255, 0.06), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(0, 187, 255, 0.05), transparent 26%);
  pointer-events: none;
}

.sidebar-heading,
.content-eyebrow {
  color: var(--muted-strong);
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
}

.sidebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(47, 109, 255, 0.08);
}

.sidebar-card {
  padding: 18px 14px 14px;
  box-shadow:
    var(--shadow-soft),
    0 18px 40px rgba(35, 104, 255, 0.06);
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.sidebar-link {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sidebar-link:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(35, 104, 255, 0.07), rgba(0, 187, 255, 0.05));
  transform: translateX(2px);
}

.sidebar-link.active {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(35, 104, 255, 0.1), rgba(0, 187, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px var(--accent-border),
    0 14px 28px rgba(35, 104, 255, 0.1);
}

.sidebar-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
}

.sidebar-link-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.content-head {
  margin-bottom: 14px;
}

.content-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(47, 109, 255, 0.08);
}

.page-card {
  padding: 28px 30px;
  box-shadow:
    var(--shadow-glow),
    0 20px 48px rgba(0, 187, 255, 0.06);
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.page-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: 0 0 28px;
  filter: drop-shadow(0 6px 18px rgba(47, 109, 255, 0.18));
}

.page-icon svg {
  width: 100%;
  height: 100%;
}

#page-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-body {
  color: #2f3949;
}

.page-body > * + * {
  margin-top: 18px;
}

.page-body ul,
.page-body ol {
  padding-left: 1.35rem;
}

.page-body li + li {
  margin-top: 10px;
}

.page-body p {
  color: var(--muted-strong);
}

.page-body strong {
  color: var(--text);
}

.page-body code {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
}

.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.page-body .lead-list > li {
  margin-top: 16px;
}

.page-body .guide-line {
  color: var(--muted-strong);
  margin-top: 6px;
  padding-left: 12px;
}

.page-body .payment-methods {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
}

.page-body .payment-methods li {
  position: relative;
  padding-left: 18px;
}

.page-body .payment-methods li::before {
  content: "->";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.page-body .section-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.92)),
    radial-gradient(circle at top right, rgba(35, 104, 255, 0.08), transparent 36%);
  border: 1px solid rgba(205, 221, 246, 0.9);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 14px 28px rgba(35, 104, 255, 0.06);
}

.page-body .section-label {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-body .flow-list {
  display: grid;
  gap: 16px;
  padding-left: 1.35rem;
}

.page-body .flow-step {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.88)),
    radial-gradient(circle at top right, rgba(0, 187, 255, 0.06), transparent 34%);
  border: 1px solid rgba(205, 221, 246, 0.86);
  border-radius: 16px;
  margin-left: 0.15rem;
  padding: 16px 18px;
  box-shadow: 0 14px 30px rgba(19, 35, 69, 0.05);
}

.page-body .step-title {
  color: var(--text);
  margin-bottom: 4px;
  font-size: 1.02rem;
  font-weight: 800;
}

.page-body .notice-card,
.page-body .warning-card {
  border-radius: 14px;
  margin-top: 12px;
  padding: 12px 14px;
}

.page-body .notice-card {
  color: var(--muted-strong);
  background: linear-gradient(135deg, rgba(35, 104, 255, 0.08), rgba(0, 187, 255, 0.06));
  border: 1px solid rgba(168, 201, 255, 0.88);
}

.page-body .warning-card {
  color: #7b2228;
  background: linear-gradient(135deg, rgba(255, 113, 113, 0.14), rgba(255, 183, 77, 0.14));
  border: 1px solid rgba(255, 159, 159, 0.82);
  box-shadow: 0 14px 30px rgba(255, 113, 113, 0.08);
  font-weight: 700;
}

.page-body .detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.page-body .detail-grid > div {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(205, 221, 246, 0.82);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}

.page-body .detail-grid strong {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-body .code-pill {
  color: #1545c7;
  background: rgba(35, 104, 255, 0.1);
  border: 1px solid rgba(132, 173, 255, 0.72);
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.4;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.pager-link {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 247, 255, 0.94)),
    radial-gradient(circle at top right, rgba(35, 104, 255, 0.06), transparent 32%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pager-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.96)),
    radial-gradient(circle at top right, rgba(35, 104, 255, 0.08), transparent 34%);
  box-shadow:
    var(--shadow-soft),
    0 18px 36px rgba(35, 104, 255, 0.08);
}

.pager-meta {
  display: grid;
  gap: 4px;
}

.pager-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.pager-title {
  color: var(--text);
  font-weight: 700;
}

.pager-arrow {
  color: #9aa5b7;
  font-size: 1.2rem;
}

@media (width <= 1180px) {
  .topbar-inner {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .docs-layout {
    grid-template-columns: 228px minmax(0, 1fr);
  }
}

@media (width <= 820px) {
  .topbar-inner,
  .docs-layout {
    width: min(100% - 24px, 100%);
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-sidebar {
    order: 2;
  }

  .docs-content {
    order: 1;
  }

  .page-card {
    padding: 22px 20px;
  }

  .page-body .flow-step,
  .page-body .section-block {
    padding: 14px;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  #page-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}
