/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 768px;
  --sidebar-width: 288px;
  --page-width: 100vw;
  --logo-height: 24px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


:root {
  --accent-1: #090a04;
  --accent-2: #16180d;
  --accent-3: #23260e;
  --accent-4: #2d320a;
  --accent-5: #383f09;
  --accent-6: #454c12;
  --accent-7: #545d1e;
  --accent-8: #687325;
  --accent-9: #e7ff3f;
  --accent-10: #def52f;
  --accent-11: #d1e745;
  --accent-12: #e8f5b1;

  --accent-a1: #88890002;
  --accent-a2: #e8f91c10;
  --accent-a3: #e7f81c1f;
  --accent-a4: #e4fd012b;
  --accent-a5: #e3ff0038;
  --accent-a6: #e7fd2246;
  --accent-a7: #e5fd4158;
  --accent-a8: #e6ff466e;
  --accent-a9: #e7ff3f;
  --accent-a10: #e7ff31f5;
  --accent-a11: #e6fe4be7;
  --accent-a12: #f1ffb8f5;

  --accent-contrast: #20240c;
  --accent-surface: #24270e80;
  --accent-indicator: #e7ff3f;
  --accent-track: #e7ff3f;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --accent-1: oklch(14% 0.0149 116.8);
      --accent-2: oklch(20.2% 0.0197 116.8);
      --accent-3: oklch(25.9% 0.0414 116.8);
      --accent-4: oklch(30.4% 0.0596 116.8);
      --accent-5: oklch(34.8% 0.0734 116.8);
      --accent-6: oklch(39.8% 0.0801 116.8);
      --accent-7: oklch(45.8% 0.087 116.8);
      --accent-8: oklch(52.9% 0.1019 116.8);
      --accent-9: oklch(95.1% 0.2018 116.8);
      --accent-10: oklch(92.3% 0.2018 116.8);
      --accent-11: oklch(88.3% 0.1799 116.8);
      --accent-12: oklch(94.4% 0.0877 116.8);

      --accent-a1: color(display-p3 0.8157 0.8196 0 / 0.005);
      --accent-a2: color(display-p3 0.9294 1 0.1765 / 0.061);
      --accent-a3: color(display-p3 0.9647 1 0.2157 / 0.118);
      --accent-a4: color(display-p3 0.9255 1 0.1647 / 0.167);
      --accent-a5: color(display-p3 0.9059 1 0.1922 / 0.22);
      --accent-a6: color(display-p3 0.9255 0.9961 0.2784 / 0.273);
      --accent-a7: color(display-p3 0.9294 1 0.3686 / 0.342);
      --accent-a8: color(display-p3 0.9216 1 0.3922 / 0.431);
      --accent-a9: color(display-p3 0.9255 1 0.3961 / 0.996);
      --accent-a10: color(display-p3 0.9255 1 0.3686 / 0.956);
      --accent-a11: color(display-p3 0.9255 1 0.4235 / 0.899);
      --accent-a12: color(display-p3 0.9569 1 0.7529 / 0.96);

      --accent-contrast: #20240c;
      --accent-surface: color(display-p3 0.1412 0.149 0.0627 / 0.5);
      --accent-indicator: oklch(95.1% 0.2018 116.8);
      --accent-track: oklch(95.1% 0.2018 116.8);
    }
  }
}


:root {
  --grayscale-1: #111113;
  --grayscale-2: #18191b;
  --grayscale-3: #212225;
  --grayscale-4: #272a2d;
  --grayscale-5: #2e3135;
  --grayscale-6: #363a3f;
  --grayscale-7: #43484e;
  --grayscale-8: #5a6169;
  --grayscale-9: #696e77;
  --grayscale-10: #777b84;
  --grayscale-11: #b0b4ba;
  --grayscale-12: #edeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #d8f4f609;
  --grayscale-a3: #ddeaf814;
  --grayscale-a4: #d3edf81d;
  --grayscale-a5: #d9edfe25;
  --grayscale-a6: #d6ebfd30;
  --grayscale-a7: #d9edff40;
  --grayscale-a8: #d9edff5d;
  --grayscale-a9: #dfebfd6d;
  --grayscale-a10: #e5edfd7b;
  --grayscale-a11: #f1f7feb5;
  --grayscale-a12: #fcfdffef;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #696e77;
  --grayscale-track: #696e77;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --grayscale-1: color(display-p3 0.067 0.067 0.074);
      --grayscale-2: color(display-p3 0.095 0.098 0.105);
      --grayscale-3: color(display-p3 0.13 0.135 0.145);
      --grayscale-4: color(display-p3 0.156 0.163 0.176);
      --grayscale-5: color(display-p3 0.183 0.191 0.206);
      --grayscale-6: color(display-p3 0.215 0.226 0.244);
      --grayscale-7: color(display-p3 0.265 0.28 0.302);
      --grayscale-8: color(display-p3 0.357 0.381 0.409);
      --grayscale-9: color(display-p3 0.415 0.431 0.463);
      --grayscale-10: color(display-p3 0.469 0.483 0.514);
      --grayscale-11: color(display-p3 0.692 0.704 0.728);
      --grayscale-12: color(display-p3 0.93 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #d8f4f609;
      --grayscale-a3: #ddeaf814;
      --grayscale-a4: #d3edf81d;
      --grayscale-a5: #d9edfe25;
      --grayscale-a6: #d6ebfd30;
      --grayscale-a7: #d9edff40;
      --grayscale-a8: #d9edff5d;
      --grayscale-a9: #dfebfd6d;
      --grayscale-a10: #e5edfd7b;
      --grayscale-a11: #f1f7feb5;
      --grayscale-a12: #fcfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.415 0.431 0.463);
      --grayscale-track: color(display-p3 0.415 0.431 0.463);
    }
  }
}

:root {
  color-scheme: dark;
  --accent: rgba(231, 255, 63, 1);
  --background: rgba(8, 9, 12, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #08090c;
}

.dark { color-scheme: dark; --background: rgba(8, 9, 12, 1); }

.fixed.left-1\/2.top-0.z-50.-translate-x-1\/2.animate-slide-down {
  display: none !important;
}

.fern-header-logo-container a[data-fern-logo] {
  display: block !important;
  flex: 0 0 100.4px !important;
  width: 100.4px !important;
  min-width: 100.4px !important;
  height: 24px !important;
  margin: 0 !important;
  background-image: url("https://joytoken-docs-assets-dev-071273296626.s3.ap-southeast-1.amazonaws.com/joytoken-docs/joytoken-logo-white-20260720.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

.fern-header-logo-container a[data-fern-logo] img {
  visibility: hidden !important;
  opacity: 0 !important;
}

.fern-layout-content h1,
article h1 {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

/* 侧边栏:消除"用户指南/概览"分组与下方"个人用户"分组之间的多余间距。
   顶层 ul.fern-sidebar-group.space-y-6 给相邻 <li> 加了较大上间距。
   含 fern-sidebar-heading("用户指南"标题)的顶层 <li> 就是概览分组,
   将其后的同级 <li> 上间距清零,不影响其他分组。 */
/* 侧边栏间距微调:
   1) 清除"用户指南/概览"分组 <li> 自身的下外边距,
      使"概览"与下方"个人用户"分组紧贴(去掉多余空隙)。
   2) 给"用��指南"分组 <li> 增加上外边距,
      使它与上方"快速开始/故障排查"分组之间保持足够间隔。 */
ul.fern-sidebar-group.space-y-6 > li:has(a[href*="/user-guide/overview"]) {
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 1.5rem !important;
  margin-top: 1.5rem !important;
}

/* 正文二级标题:仅保留间距,不画分隔线。 */
.fern-prose h2 {
  padding-top: 2.5rem !important;
  margin-top: 2rem !important;
  border-top: none !important;
}

/* 加大"用户指南"面包屑与"概览"标题之间的间距 */
article > header > *:first-child {
  margin-bottom: 0.75rem !important;
}

/* 头部(标题区)与正文之间只保留间距,不画分隔线。 */
article > header {
  padding-bottom: 2rem !important;
  margin-bottom: 2rem !important;
  border-bottom: none !important;
}

/* Agent 工作台中英文页：收紧页面标题与首个正文标题之间的留白。 */
article:has(.fern-prose h2:is(
  [id="快速开始进入工作台并开始对话"],
  [id="quick-start-open-the-workbench-and-complete-a-conversation"]
)) > header {
  padding-bottom: 0 !important;
  margin-bottom: 0.5rem !important;
}

article .fern-prose h2:is(
  [id="快速开始进入工作台并开始对话"],
  [id="quick-start-open-the-workbench-and-complete-a-conversation"]
) {
  padding-top: 0 !important;
  margin-top: 0.75rem !important;
}

/* Agent 工作台中英文页：目录仍可滚动，但不显示与页面滚动条并排的第二条滚动条。 */
body:has(article .fern-prose h2:is(
  [id="快速开始进入工作台并开始对话"],
  [id="quick-start-open-the-workbench-and-complete-a-conversation"]
)) #fern-toc > div {
  scrollbar-width: none;
}

body:has(article .fern-prose h2:is(
  [id="快速开始进入工作台并开始对话"],
  [id="quick-start-open-the-workbench-and-complete-a-conversation"]
)) #fern-toc > div::-webkit-scrollbar {
  display: none;
}

/* Agent 工作台 FAQ：问题和回答分行呈现，仅影响当前页面的问答列表。 */
.fern-prose .agent-faq {
  display: grid;
  gap: 0.875rem;
  margin: 1.5rem 0 2rem;
}

.fern-prose .agent-faq-item {
  padding: 1.125rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #e7ff3f;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fern-prose .agent-faq-item dt {
  margin: 0 0 0.5rem;
  color: #e7ff3f;
  font-weight: 600;
  line-height: 1.5;
}

.fern-prose .agent-faq-item dd {
  margin: 0;
  color: #d1d5db;
  line-height: 1.75;
}

/* 正文表格样式优化:加大行高、统一边框,让表格更舒展清晰
   仅作用于普通数据表格,排除代码块(代码高亮用 <table> 渲染行号)。 */
.fern-prose > table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.fern-prose > table th,
.fern-prose > table td {
  padding: 1.4rem 1.25rem !important;
  line-height: 1.7 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  vertical-align: middle !important;
}

.fern-prose > table thead th {
  background: rgba(255, 255, 255, 0.06) !important;
  font-weight: 600 !important;
}

.fern-prose > table tbody tr:last-child td {
  border-bottom: none !important;
}

.fern-prose > table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}
.fern-prose > table tbody tr:focus-within td {
  background: rgba(255, 255, 255, 0.03) !important;
}
