/* 四象ERP 使用指南 · 苹果风定制 (custom.css) */
:root{
  --sx-blue:#0071e1; --sx-ink:#1d1d1f; --sx-ink2:#414143; --sx-gray:#86868b;
  --sx-bg:#f5f5f7; --sx-line:#e8e8ed; --sx-line2:#d2d2d7;
}
html,body,.book,.book-body,.body-inner,.markdown-section,.book-summary,.book-header,
.book-summary input,.book-header a,.book-header h1,button{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","PingFang SC","Microsoft YaHei",Arial,sans-serif !important;
  -webkit-font-smoothing:antialiased;
}

/* ===== 内容区 ===== */
.book,.book-body,.body-inner,.page-wrapper{ background:#fff !important; }
.markdown-section{
  color:var(--sx-ink); font-size:16px; line-height:1.85;
  max-width:920px; margin:0 auto; padding:28px 46px 80px;
}
.markdown-section a{ color:var(--sx-blue); text-decoration:none; border-bottom:0; }
.markdown-section a:hover{ text-decoration:underline; }
.markdown-section h1,.markdown-section h2,.markdown-section h3,.markdown-section h4{
  color:var(--sx-ink); font-weight:700; letter-spacing:-.015em; line-height:1.3;
  margin:34px 0 14px; border-bottom:0 !important; padding-bottom:0 !important;
}
.markdown-section h1{ font-size:30px; margin-top:8px; }
.markdown-section h2{ font-size:23px; }
.markdown-section h3{ font-size:19px; }
.markdown-section p{ margin:0 0 16px; color:var(--sx-ink2); }
.markdown-section strong{ color:var(--sx-ink); }
.markdown-section ul,.markdown-section ol{ margin:0 0 16px; padding-left:24px; }
.markdown-section li{ margin:4px 0; color:var(--sx-ink2); }
.markdown-section img{
  display:block; max-width:100%; height:auto; margin:16px auto;
  border-radius:12px; border:1px solid var(--sx-line); box-shadow:0 6px 22px rgba(0,0,0,.07);
}
.markdown-section [id]{ scroll-margin-top:76px; }
.markdown-section blockquote{ border-left:3px solid var(--sx-blue); background:var(--sx-bg); color:var(--sx-ink2); border-radius:0 10px 10px 0; }
.markdown-section table{ border-collapse:collapse; width:100%; }
.markdown-section table th,.markdown-section table td{ border:1px solid var(--sx-line); }
.markdown-section table th{ background:var(--sx-bg); }
.markdown-section code,.markdown-section pre{ border-radius:8px; background:var(--sx-bg); font-family:"SF Mono",Menlo,Consolas,monospace; }

/* ===== 左侧目录 ===== */
.book.book-summary{ background:var(--sx-bg) !important; }
.book-summary{ background:var(--sx-bg) !important; border-right:1px solid var(--sx-line) !important; }
.book-summary ul.summary{ padding:8px 10px 40px; }
.book-summary ul.summary li{ position:relative; }
.book-summary ul.summary li a,.book-summary ul.summary li span{
  color:var(--sx-ink); font-size:14px; line-height:1.4; padding:9px 14px; border-radius:10px;
  text-overflow:ellipsis; white-space:nowrap; overflow:hidden; transition:background .15s ease,color .15s ease;
}
.book-summary ul.summary li a:hover{ background:#e6e6ea; color:var(--sx-ink); }
.book-summary ul.summary li.active>a{ background:var(--sx-blue) !important; color:#fff !important; font-weight:700 !important; }
.book-summary ul.summary li.divider{ background:var(--sx-line); margin:10px 6px; height:1px; }
#book-search-input{ padding:14px 12px 8px; background:transparent; }
#book-search-input input{
  height:38px; border-radius:10px; border:1px solid var(--sx-line2); background:#fff;
  font-size:14px; padding:0 12px; box-shadow:none;
}
#book-search-input input:focus{ border-color:var(--sx-blue); box-shadow:0 0 0 3px rgba(0,113,225,.15); outline:none; }

/* 多级菜单折叠 + 按层缩进 */
.book-summary ul.summary li ul.articles{ padding-left:0 !important; }
.book-summary ul.summary li.sx-d1 > a{ padding-left:28px !important; font-weight:700; }
.book-summary ul.summary li.sx-d2 > a{ padding-left:42px !important; font-weight:600; }
.book-summary ul.summary li.sx-d3 > a{ padding-left:58px !important; font-weight:400; }
.book-summary ul.summary li.sx-d4 > a{ padding-left:74px !important; font-weight:400; }
.book-summary ul.summary li.sx-d5 > a{ padding-left:90px !important; font-weight:400; }
.book-summary ul.summary li span.sx-chev{
  position:absolute; display:flex; padding:0; background:transparent;
  top:10px; width:18px; height:18px; margin:0; border-radius:0; text-overflow:clip;
  align-items:center; justify-content:center; cursor:pointer; z-index:3;
  color:var(--sx-gray); font-size:18px; line-height:1; white-space:normal; overflow:visible; user-select:none;
  transition:transform .18s ease;
}
li.sx-d1 > .sx-chev{ left:6px; }
li.sx-d2 > .sx-chev{ left:20px; }
li.sx-d3 > .sx-chev{ left:36px; }
li.sx-d4 > .sx-chev{ left:52px; }
li.sx-d5 > .sx-chev{ left:68px; }
.sx-collapsible.sx-open > .sx-chev{ transform:rotate(90deg); }

/* ===== 顶栏 ===== */
.book-header{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter:saturate(180%) blur(14px); backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--sx-line) !important; box-shadow:none !important;
}
.book-header h1{ font-size:16px; font-weight:600; color:var(--sx-ink); letter-spacing:-.01em; }
.book-header h1 a{ color:var(--sx-ink); }
.book-header .fa-circle-o-notch,.book-header .fa-spin{ display:none !important; }

/* 去掉右上角图标（字号设置 / 分享 / 页面目录 等） */
.book-header .pull-right,
#font-settings-wrapper,
.book-header .sharing,
.book-header .dropdown,
.book-header .dropdown-toc,
.book-header .buttons,
.book-header-actions,
.book-header .js-dropdown,
.book-header [class*="toggle-sidebar"]:not(.pull-left){ display:none !important; }

/* 返回主站 */
.sx-back-home{
  position:absolute; right:18px; top:50%; transform:translateY(-50%);
  height:32px; line-height:32px; padding:0 16px; border-radius:980px;
  background:var(--sx-blue); color:#fff !important; font-size:13px; font-weight:500;
  text-decoration:none; white-space:nowrap; box-shadow:0 4px 14px rgba(0,113,225,.28);
  transition:background .15s ease,transform .15s ease;
}
.sx-back-home:hover{ background:#0077ed; color:#fff !important; text-decoration:none; transform:translateY(-50%) translateY(-1px); }

/* 侧栏底部版权 */
.book-summary ul.summary li.gitbook-link-wrap a,.book-summary a.gitbook-link{
  color:var(--sx-gray) !important; font-size:12px; text-align:center;
}
.book-summary a.gitbook-link:hover{ color:var(--sx-blue) !important; text-decoration:none; background:transparent; }

/* 上下页导航按钮 */
.navigation-next,.navigation-prev,.book-body .navigation{ color:var(--sx-gray); }
.book-body .navigation:hover{ color:var(--sx-blue); }

@media (max-width:600px){
  .markdown-section{ padding:20px 20px 60px; }
  .sx-back-home{ padding:0 12px; }
}
