/* =========================================================
   MQL5 中文参考 · 清爽科技蓝（浅色主题）
   珍珠白/浅灰蓝 底 + 科技蓝主色；代码块保留深色高对比
   ========================================================= */
:root {
  --bg0: #f3f7fc;              /* 页面底 */
  --bg1: #f7fafd;
  --bg2: #ffffff;              /* 卡片/面板 */
  --panel: #ffffff;
  --panel2: #eef4fb;
  --line: rgba(27, 84, 150, 0.12);
  --line2: rgba(27, 84, 150, 0.26);

  --txt: #23344b;
  --txt-2: #5a6f8a;
  --txt-3: #8ba0ba;

  --brand: #1a6bd6;            /* 科技蓝主色 */
  --brand-deep: #0d4fb3;
  --brand-soft: rgba(26, 107, 214, 0.10);

  --up: #128fa8;               /* 强调青(激活/高亮用，清新不抢眼) */
  --cyan: #0f9bd8;
  --gold: #d99a24;
  --down: #d64550;

  --link: #0b63d4;
  --link-hover: #0a4a9e;
  --head-accent: #1a6bd6;

  --code-bg: #0b101c;          /* 深色代码块 */

  --serif-fb: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
  --disp: "Bahnschrift", "Arial Narrow", "Segoe UI", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --shadow-1: 0 1px 2px rgba(15, 55, 100, 0.06);
  --shadow-2: 0 16px 44px -18px rgba(20, 66, 120, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef4fb 0, rgba(238, 244, 251, 0) 300px),
    var(--bg1);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(26, 107, 214, 0.22); color: #06233f; }

a { color: var(--link); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--link-hover); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4d5e8; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a7bfd9; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 布局（PC 端整体限宽 1280 居中） ---------- */
.app {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh;
  width: 100%; max-width: 1280px; margin: 0 auto;
  box-shadow: 0 0 42px rgba(20, 66, 120, 0.10);
}
.main { min-width: 0; display: flex; flex-direction: column; }
.main > main { flex: 1 0 auto; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 60;
  display: flex; flex-direction: column;
  background: #fbfdff;
  border-right: 1px solid var(--line);
}
.sb-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--txt); }
.brand:hover { color: var(--txt); }
.brand-logo { width: 34px; height: 34px; flex: none; }
.brand-logo .c0 { fill: #8fb7e8; }
.brand-logo .c1 { fill: var(--brand); }
.brand-logo .c2 { fill: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-family: var(--disp); font-weight: 700; font-size: 21px; letter-spacing: 2px; color: var(--brand-deep); }
.brand-text b i { color: var(--brand); font-style: normal; }
.brand-text i { font-style: normal; color: var(--txt-2); font-size: 11px; letter-spacing: 3px; margin-top: 3px; }

.sb-search { position: relative; margin: 12px 14px 6px; }
.sb-search .icon {
  position: absolute; left: 11px; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%); fill: var(--txt-3); pointer-events: none;
}
.sb-search input {
  width: 100%; background: #fff; border: 1px solid var(--line2);
  color: var(--txt); border-radius: 8px; padding: 8px 34px 8px 32px; outline: none;
  font: 500 13.5px var(--sans); box-shadow: var(--shadow-1);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sb-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sb-search input::placeholder { color: var(--txt-3); }
.sb-search .kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font: 11px var(--mono); color: var(--txt-3); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; background: #fff;
}

.sb-scroll { flex: 1 1 auto; overflow-y: auto; padding: 6px 10px 20px; }
.sb-foot { padding: 12px 18px 18px; border-top: 1px solid var(--line); display: flex; gap: 18px; }
.sb-foot a { color: var(--txt-2); font-size: 13px; }
.sb-foot a:hover { color: var(--brand); }

/* 目录树 */
.toc { list-style: none; margin: 0; padding: 0; }
.toc .toc { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 9px; }
.toc li { margin: 1px 0; }
.toc a {
  display: flex; gap: 8px; align-items: baseline;
  color: var(--txt-2); padding: 5px 9px; border-radius: 7px;
  font-size: 13.5px; line-height: 1.5; border-left: 2px solid transparent;
}
.toc a:hover { color: var(--brand-deep); background: rgba(26, 107, 214, 0.05); }
.toc a.is-page {
  color: var(--brand-deep); font-weight: 600;
  background: linear-gradient(90deg, rgba(26,107,214,0.12), rgba(26,107,214,0.02));
  border-left-color: var(--brand);
}
.toc a.is-page:hover { color: var(--brand-deep); }
.toc a .ic { font-family: var(--mono); font-size: 11px; opacity: 0.7; color: var(--txt-3); flex: none; transform: translateY(1px); }

.toc summary {
  cursor: pointer; list-style: none; user-select: none;
  color: var(--txt-2); padding: 5px 9px; border-radius: 7px; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before {
  content: ""; width: 0; height: 0; flex: none;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 6px solid var(--txt-3);
  transition: transform 0.15s;
}
.toc details[open] > summary::before { transform: rotate(90deg); }
.toc summary:hover { color: var(--brand-deep); background: rgba(26, 107, 214, 0.05); }
.toc summary.is-open { color: var(--brand); }
.toc details[open] > summary { color: var(--txt); }
.toc .cnt {
  margin-left: auto; font: 10px var(--mono); color: var(--txt-3);
  border: 1px solid var(--line); border-radius: 20px; padding: 0 6px; flex: none;
}

/* 搜索结果面板 */
.search-hint { padding: 10px 12px; color: var(--txt-3); font-size: 12px; }
.search-item { display: block; padding: 7px 10px; border-radius: 8px; margin-bottom: 3px; }
.search-item b { color: var(--brand); }
.search-item small { display: block; color: var(--txt-3); font-size: 11.5px; margin-top: 1px; }
.search-item:hover { background: rgba(26, 107, 214, 0.06); }

/* 遮罩 */
.backdrop { position: fixed; inset: 0; background: rgba(18, 38, 62, 0.35); z-index: 55; backdrop-filter: blur(2px); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(14px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: 34px; height: 34px; flex: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--txt-2);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-1);
  transition: all 0.15s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.icon-btn .icon { width: 17px; height: 17px; fill: currentColor; }
#btnTree { display: none; }

.crumbs { flex: 1; min-width: 0; }
.crumbs ol { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; gap: 4px; overflow: hidden; white-space: nowrap; }
.crumbs li { font-size: 13px; color: var(--txt-3); flex: none; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--txt-3); opacity: 0.5; }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--txt-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs .crumb-here { color: var(--brand-deep); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; flex: none; }

/* ---------- 文章 ---------- */
.article {
  width: min(100% - clamp(28px, 7vw, 110px), 920px);
  margin: 0 auto; padding: 46px 0 56px;
}
.article > * { min-width: 0; }

h1, h2, h3, h4, h5 { font-family: var(--disp); color: #123a63; line-height: 1.35; scroll-margin-top: 84px; }
h1 {
  font-size: clamp(27px, 4vw, 38px); font-weight: 800; letter-spacing: 0.3px;
  margin: 6px 0 14px; position: relative; padding-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
h1::before {
  content: ""; width: 6px; height: 34px; border-radius: 4px; flex: none;
  background: linear-gradient(180deg, var(--brand), rgba(26, 107, 214, 0.15));
  box-shadow: 0 0 0 1px rgba(26, 107, 214, 0.12);
}
h1::after { content: ""; position: absolute; left: 18px; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }

h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 42px 0 14px; padding-left: 13px; border-left: 4px solid var(--brand); letter-spacing: 0.3px; }
h3 { font-size: 19px; margin: 30px 0 10px; color: #1c4d80; }
h4, h5 { font-size: 16.5px; margin: 24px 0 8px; color: #245a92; }

p { margin: 14px 0; }
.article li { margin: 6px 0; }
ul, ol { padding-left: 26px; }
.article > ul, .article > ol { margin: 12px 0; }

strong, b { color: #123a63; font-weight: 650; }
em { color: #b26a00; }

img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 1px 6px rgba(20, 66, 120, 0.10); }
figure { margin: 18px 0; }
.img-caption { text-align: center; color: var(--txt-3); font-size: 13px; margin: 6px 0 20px; }
.see-also { color: var(--txt-2); border-left: 3px solid var(--line2); padding-left: 12px; }

.anchor { display: block; position: relative; top: -96px; visibility: hidden; height: 0; width: 0; }

/* ---------- 代码块（深色保留） ---------- */
.codeblock {
  margin: 20px 0; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(40, 90, 170, 0.25);
  background: linear-gradient(180deg, #0d1424, var(--code-bg));
  box-shadow: 0 14px 34px -22px rgba(15, 55, 100, 0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.cb-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: linear-gradient(90deg, #0f1830, #12203e); border-bottom: 1px solid rgba(110, 160, 235, 0.18);
}
.cb-light { width: 10px; height: 10px; border-radius: 50%; background: #243149; }
.cb-light:nth-child(1) { background: #ff5f56; }
.cb-light:nth-child(2) { background: #ffbd2e; }
.cb-light:nth-child(3) { background: #27c93f; }
.cb-lang {
  margin-left: 10px; font: 700 11px var(--mono); letter-spacing: 1px;
  color: #4be0b4; background: rgba(75, 224, 180, 0.10); border: 1px solid rgba(75, 224, 180, 0.32);
  padding: 2px 8px; border-radius: 20px;
}
.cb-copy {
  margin-left: auto; background: rgba(255,255,255,0.06); color: #b7c7e2;
  border: 1px solid rgba(150,190,240,0.28); border-radius: 6px; padding: 3px 11px;
  font: 500 12px var(--sans); cursor: pointer; transition: all 0.15s;
}
.cb-copy:hover { color: #fff; border-color: #4be0b4; background: rgba(75,224,180,0.14); }
.cb-copy.done { color: #4be0b4; border-color: #4be0b4; }

.code {
  margin: 0; padding: 15px 17px; overflow-x: auto;
  font: 400 13.2px/1.65 var(--mono); color: #d7e0f0;
  tab-size: 4;
}
.code code { font: inherit; color: inherit; white-space: pre; }

.t-kw { color: #8ab9ff; font-weight: 500; }
.t-fn { color: #cfa8ff; }
.t-cm { color: #5b6d89; font-style: italic; }
.t-pa { color: #ffbe7d; font-style: italic; }
.t-st { color: #83e5a9; }

/* ---------- 表格 ---------- */
.doc-table {
  width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--line2); border-radius: var(--r-sm); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-1);
  display: table; border-spacing: 0;
}
.doc-table th {
  text-align: left; background: linear-gradient(180deg, #e7f0fb, #ddeaf8);
  color: #0d3d6d; font-weight: 650; padding: 10px 13px;
  border-bottom: 1px solid var(--line2);
  font-family: var(--disp); letter-spacing: 0.2px;
}
.doc-table td { padding: 9px 13px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--txt); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tbody tr:nth-child(even) { background: #f8fbfe; }
.doc-table tbody tr:hover { background: #eef6ff; }
.doc-table td { font-size: 13.5px; }
.doc-table p { margin: 4px 0; }
.doc-table a { color: var(--link); }
.doc-table-plain { border: 1px solid var(--line); }
.doc-table-plain td, .doc-table-plain th { border-bottom: 1px solid var(--line); }

/* ---------- 前后页 ---------- */
.pager {
  width: min(100% - clamp(28px, 7vw, 110px), 920px); margin: 4px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 0 30px;
}
.pager-cell {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  transition: all 0.18s; min-width: 0;
}
.pager-cell:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 10px 26px -16px rgba(26,107,214,0.35); }
.pager-cell.next { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.pager-arrow { color: var(--brand); font-size: 20px; line-height: 1; flex: none; }
.pager-label { display: block; font-size: 12px; color: var(--txt-3); margin-bottom: 3px; }
.pager-title {
  display: block; font-size: 14.5px; color: #123a63; font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pager-cell:hover .pager-title { color: var(--brand-deep); }
.pager-cell.is-empty { border-style: dashed; background: transparent; opacity: 0; pointer-events: none; }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid var(--line); background: #eef4fb; }
.foot-inner { width: min(100% - 48px, 900px); margin: 0 auto; padding: 22px 0 26px; }
.foot-inner p { margin: 6px 0; color: var(--txt-2); font-size: 13px; }
.foot-dim { color: var(--txt-3) !important; font-size: 12px !important; }

/* ---------- 首页模块 ---------- */
.home-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px;
  margin: 24px 0 6px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 8px;
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-1);
}
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: 0.9; }
.stat b { display: block; font: 700 22px var(--disp); color: var(--brand); letter-spacing: 1px; }
.stat span { font-size: 12px; color: var(--txt-3); }

.home-guide { margin-top: 42px; }
.guide-sub { color: var(--txt-2); margin: -4px 0 20px; font-size: 14.5px; }
.gcard-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px;
  counter-reset: g;
}
.gcard {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 15px 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.gcard::after {
  content: ""; position: absolute; inset: auto -30% -80% auto; width: 90%; height: 120%;
  background: radial-gradient(circle, rgba(26, 107, 214, 0.10), transparent 62%);
  opacity: 0; transition: opacity 0.2s;
}
.gcard:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-2); }
.gcard:hover::after { opacity: 1; }
.gcard-no {
  font: 600 13px var(--mono); color: var(--gold); opacity: 0.9; flex: none;
  border: 1px solid rgba(217, 154, 36, 0.35); border-radius: 6px; padding: 1px 6px; background: #fffdf5;
}
.gcard-name { color: #123a63; font-weight: 600; font-size: 15px; flex: 1; }
.gcard-cnt { font: 500 11.5px var(--sans); color: var(--txt-3); flex: none; }

/* 提示信息用内联高亮 */
h2:first-child { margin-top: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(90px);
  background: #0d3d6d; color: #fff; border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px; border-radius: 40px; font-size: 14px; z-index: 300;
  box-shadow: 0 10px 40px rgba(15, 55, 100, 0.3); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1060px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 86vw);
    transform: translateX(-104%); transition: transform 0.26s ease;
    box-shadow: 0 8px 40px rgba(15, 55, 100, 0.25);
  }
  .sidebar.open { transform: translateX(0); }
  .sb-foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  #btnTree { display: inline-flex; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .article { width: calc(100% - 40px); padding-top: 30px; }
  .crumbs li:not(:last-child) { display: none; }
  .crumbs .crumb-here { max-width: 62vw; }
  .pager { grid-template-columns: 1fr; width: calc(100% - 40px); }
  .pager-cell.next { grid-row: auto; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .gcard-grid { grid-template-columns: 1fr; }
  .sb-search .kbd { display: none; }
}

@media print {
  .sidebar, .topbar, .pager, .site-foot, .cb-copy { display: none !important; }
  body { background: #fff; color: #111; }
  .app { display: block; }
  .codeblock, pre, code { background: #f5f5f5 !important; color: #111 !important; border: 1px solid #ddd; }
  .code, .t-kw, .t-fn, .t-cm, .t-pa, .t-st { color: #111 !important; }
  .code .t-kw { color: #0000d0 !important; }
  .code .t-fn { color: #7a00c9 !important; }
  .code .t-cm { color: #008000 !important; }
  .code .t-pa { color: #8a5a00 !important; }
  .code .t-st { color: #006767 !important; }
  a { color: #0645ad !important; }
  h1, h2, h3, h4 { color: #000 !important; break-after: avoid-page; }
  h1::before { background: #000; }
  .doc-table { border-color: #999; }
}

/* =========================================================
   业务服务页（services.html）+ 首页业务横幅
   ========================================================= */

/* ---------- 首页业务横幅 ---------- */
.biz-banner {
  position: relative; overflow: hidden; margin: 34px 0 8px;
  border: 1px solid rgba(26, 107, 214, 0.30); border-radius: var(--r-md);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(15, 155, 216, 0.16), transparent 55%),
    radial-gradient(90% 140% at 0% 100%, rgba(217, 154, 36, 0.12), transparent 50%),
    linear-gradient(135deg, #eaf3fd 0%, #f6fafe 55%, #fdf9ef 100%);
  padding: clamp(20px, 3.4vw, 34px) clamp(18px, 3.4vw, 36px);
  box-shadow: var(--shadow-1);
}
.biz-banner::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan) 45%, var(--gold));
}
.biz-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px var(--sans); letter-spacing: 1px; color: var(--brand-deep);
  background: #fff; border: 1px solid rgba(26, 107, 214, 0.35);
  border-radius: 20px; padding: 3px 12px; margin-bottom: 12px;
}
.biz-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.biz-title {
  margin: 0 0 8px; font-family: var(--disp); font-weight: 800;
  font-size: clamp(21px, 3vw, 28px); color: #0d3d6d; line-height: 1.3;
}
.biz-title em { font-style: normal; color: var(--brand); }
.biz-desc { margin: 0 0 14px; color: var(--txt-2); font-size: 14.5px; max-width: 62em; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.biz-chips li {
  font: 500 12.5px var(--sans); color: #123a63;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 4px 11px;
  box-shadow: var(--shadow-1);
}
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.biz-banner .sv-btn-primary { box-shadow: 0 8px 20px -10px rgba(13, 79, 179, 0.55); }
.biz-banner .sv-btn-ghost { color: var(--brand-deep); border: 1px solid rgba(26, 107, 214, 0.45); }
.biz-banner .sv-btn-ghost:hover { background: rgba(26, 107, 214, 0.08); color: var(--brand-deep); }

/* ---------- Hero ---------- */
.sv-article { width: min(100% - clamp(28px, 7vw, 110px), 920px); }
.sv-hero {
  position: relative; overflow: hidden;
  margin: 26px 0 6px; padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 46px);
  border-radius: 14px;
  border: 1px solid rgba(26, 107, 214, 0.30);
  background:
    radial-gradient(130% 170% at 100% 0%, rgba(15, 155, 216, 0.30), transparent 55%),
    radial-gradient(90% 150% at 0% 100%, rgba(217, 154, 36, 0.18), transparent 50%),
    linear-gradient(135deg, #0f4fb0 0%, #1a6bd6 58%, #2f86e6 100%);
  color: #fff; box-shadow: var(--shadow-2);
}
.sv-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; pointer-events: none;
}
.sv-hero-badge {
  display: inline-block; font: 600 12.5px var(--sans); letter-spacing: 1.5px;
  color: #ffe9bd; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 224, 150, 0.45);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 14px;
}
.sv-title {
  margin: 0 0 10px; padding: 0; border: none;
  font-family: var(--disp); font-weight: 800; letter-spacing: 1px;
  font-size: clamp(28px, 4.6vw, 42px); color: #fff; display: block;
  line-height: 1.28;
}
.sv-title::before, .sv-title::after { display: none; }
.sv-title .gold {
  font-style: normal;
  background: linear-gradient(92deg, #ffe9a8 10%, #ffc24b 60%, #ffd88a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 194, 75, 0.35));
}
.sv-title-line2 {
  display: block; margin-top: 10px;
  font-size: clamp(19px, 2.9vw, 27px); font-weight: 800; letter-spacing: 1.5px;
  color: #ffe9bd; text-shadow: 0 2px 10px rgba(15, 55, 100, 0.35);
}
.sv-title-line2 i { font-style: normal; color: rgba(255, 233, 189, 0.55); margin: 0 4px; }
.sv-sub { margin: 0 0 18px; color: rgba(255, 255, 255, 0.88); font-size: 14.5px; line-height: 1.9; }
.sv-hero-keys {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px;
  position: relative; z-index: 1;
}
.sv-hero-keys li {
  font: 650 13px var(--sans); letter-spacing: 0.5px; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07));
  border: 1px solid rgba(255, 224, 150, 0.55);
  border-radius: 999px; padding: 6px 15px;
  backdrop-filter: blur(3px);
  box-shadow: 0 3px 10px rgba(10, 40, 80, 0.18), inset 0 1px 0 rgba(255,255,255,0.18);
}
.sv-hero-keys li::before { content: "✦"; color: #ffe9bd; margin-right: 6px; font-size: 11px; }
.sv-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.sv-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border-radius: 10px; padding: 10px 24px; font: 650 14.5px var(--sans);
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, color 0.16s;
}
.sv-btn:hover { transform: translateY(-2px); }
.sv-btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 8px 22px -8px rgba(4, 30, 66, 0.55); }
.sv-btn-primary:hover { background: #f2f8ff; color: var(--brand-deep); }
.sv-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.sv-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sv-hero-feats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  position: relative; z-index: 1;
}
.sv-hero-feats li {
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px; padding: 10px 8px; text-align: center; backdrop-filter: blur(4px);
}
.sv-hero-feats b { display: block; font: 700 17px var(--disp); color: #ffe9bd; letter-spacing: 1px; }
.sv-hero-feats span { font-size: 12px; color: rgba(255, 255, 255, 0.85); }

/* ---------- 服务总览卡片 ---------- */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.sv-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px 18px 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden; counter-increment: g;
}
.sv-card::after {
  content: ""; position: absolute; inset: auto -30% -80% auto; width: 90%; height: 120%;
  background: radial-gradient(circle, rgba(26, 107, 214, 0.12), transparent 62%);
  opacity: 0; transition: opacity 0.2s;
}
.sv-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-2); }
.sv-card:hover::after { opacity: 1; }
.sv-card-top { display: flex; align-items: center; gap: 10px; }
.sv-no {
  font: 600 12.5px var(--mono); color: var(--gold);
  border: 1px solid rgba(217, 154, 36, 0.35); border-radius: 6px;
  padding: 1px 7px; background: #fffdf5; flex: none;
}
.sv-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(26, 107, 214, 0.14), rgba(15, 155, 216, 0.10));
  border: 1px solid rgba(26, 107, 214, 0.25);
}
.sv-ico svg { width: 19px; height: 19px; fill: var(--brand); }
.sv-name { color: #123a63; font-weight: 700; font-size: 15.5px; line-height: 1.45; }
.sv-desc { color: var(--txt-2); font-size: 13px; line-height: 1.7; position: relative; z-index: 1; }

/* ---------- 服务详情区块 ---------- */
.sv-detail {
  margin: 38px 0 8px; padding: 24px clamp(16px, 2.6vw, 28px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); scroll-margin-top: 84px;
}
.sv-dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.sv-dno {
  font: 700 15px var(--mono); color: #fff; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  border-radius: 8px; padding: 3px 10px;
  box-shadow: 0 4px 12px -4px rgba(26, 107, 214, 0.5);
}
.sv-detail h2 { margin: 0; border-left: none; padding-left: 0; }
.sv-detail > p { color: var(--txt); }
.sv-detail ul { margin: 10px 0; }
.sv-chips {
  list-style: none; padding: 0; margin: 14px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sv-chips li {
  font: 500 13px var(--sans); color: #0d3d6d;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 14px;
}
.sv-note {
  margin: 16px 0 4px; padding: 12px 16px;
  background: #fffdf5; border: 1px solid rgba(217, 154, 36, 0.35);
  border-left: 4px solid var(--gold); border-radius: 8px;
}
.sv-note b { display: block; margin-bottom: 4px; color: #8a5f10; }
.sv-note p { margin: 0; color: var(--txt-2); font-size: 14px; }

.sv-table { margin-top: 16px; }

/* ---------- 服务流程 ---------- */
.sv-flow {
  list-style: none; margin: 18px 0 8px; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  counter-reset: step;
}
.sv-flow li {
  position: relative; counter-increment: step;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 40px 14px 14px; box-shadow: var(--shadow-1); text-align: center;
  transition: transform 0.16s, border-color 0.16s;
}
.sv-flow li:hover { transform: translateY(-2px); border-color: var(--brand); }
.sv-flow li::before {
  content: counter(step);
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 700 12.5px var(--mono); color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
}
.sv-flow b { display: block; font-size: 14.5px; color: #123a63; margin-bottom: 5px; }
.sv-flow span { display: block; font-size: 12px; color: var(--txt-3); line-height: 1.65; }

/* ---------- FAQ ---------- */
.sv-faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0; margin: 10px 0; box-shadow: var(--shadow-1); overflow: hidden;
}
.sv-faq summary {
  cursor: pointer; list-style: none; user-select: none;
  padding: 13px 16px; font-weight: 600; font-size: 14.5px; color: #123a63;
  display: flex; align-items: center; gap: 10px;
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::before {
  content: "+"; font: 700 16px var(--mono); color: var(--brand); flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  transition: transform 0.15s;
}
.sv-faq[open] summary::before { content: "−"; }
.sv-faq[open] summary { border-bottom: 1px dashed var(--line); }
.sv-faq p { margin: 12px 16px 14px; color: var(--txt-2); font-size: 14px; }
.sv-faq code {
  font: 500 12.5px var(--mono); color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 4px; padding: 1px 5px;
}

/* ---------- 联系区块 ---------- */
.sv-contact {
  position: relative; overflow: hidden; margin: 40px 0 10px;
  padding: clamp(24px, 3.6vw, 38px) clamp(18px, 3.6vw, 40px);
  border-radius: 14px; text-align: center;
  border: 1px solid rgba(26, 107, 214, 0.32);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(15, 155, 216, 0.22), transparent 55%),
    radial-gradient(100% 150% at 0% 100%, rgba(217, 154, 36, 0.14), transparent 50%),
    linear-gradient(135deg, #0f4fb0 0%, #1a6bd6 60%, #2f86e6 100%);
  box-shadow: var(--shadow-2);
}
.sv-contact h2 {
  margin: 0 0 6px; padding: 0; border: none;
  color: #fff; font-size: clamp(22px, 3vw, 28px); display: block;
}
.sv-contact h2::before { display: none; }
.sv-ct-sub { margin: 0 0 22px; color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.sv-ct-cards {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px;
}
.sv-ct-card {
  min-width: 180px; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 10px;
  padding: 12px 22px; backdrop-filter: blur(4px);
}
.sv-ct-label { display: block; font-size: 12px; letter-spacing: 2px; color: #ffe9bd; margin-bottom: 3px; }
.sv-ct-val { display: flex; align-items: center; gap: 9px; font: 650 15.5px var(--sans); color: #fff; }
.sv-ct-link { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.45); }
a.sv-ct-link:hover { border-bottom-style: solid; border-color: #ffe9bd; color: #ffe9bd; }
.sv-ct-copy {
  flex: none; font: 600 11px var(--sans); color: #ffe9bd; cursor: pointer;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.35);
  padding: 2px 9px; border-radius: 999px; transition: background .15s, border-color .15s;
}
.sv-ct-copy:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
.sv-ct-tip { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }

/* ---------- 侧边栏业务入口（docs.js 注入） ---------- */
.sb-foot .biz-link, .site-foot .biz-foot-link { color: var(--brand); font-weight: 600; }
.sb-foot .biz-link:hover { color: var(--brand-deep); }
.site-foot .biz-foot-link { color: var(--brand); }
.site-foot .biz-foot-link:hover { color: var(--brand-deep); }

/* ---------- 业务页响应式 ---------- */
.sv-sep {
  margin: 48px 0 26px; border: none;
  border-top: 1px dashed var(--line);
  position: relative; overflow: visible;
}
.sv-sep::before {
  content: "DOC"; position: absolute; left: 0; top: -9px;
  font: 700 11px var(--mono); letter-spacing: 2px; color: var(--txt-3);
  background: var(--bg0); padding-right: 10px;
}
@media (max-width: 900px) {
  .sv-flow { grid-template-columns: repeat(2, 1fr); }
  .sv-hero-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .sv-flow { grid-template-columns: 1fr; }
  .sv-hero { padding: 22px 18px; }
  .sv-hero-cta .sv-btn { flex: 1; justify-content: center; }
  .sv-ct-card { min-width: 100%; }
  .sv-detail { padding: 18px 14px; }
  .sv-article { width: calc(100% - 40px); }
}

/* ---------- 搜索：加载/空态/结果列表 ---------- */
.search-state {
  padding: 12px 12px; color: var(--txt-2); font-size: 12.5px; line-height: 1.7;
}
.search-state b { color: var(--brand-deep); }
.search-state code {
  font: 500 12px var(--mono); color: var(--brand-deep);
  background: var(--brand-soft); border-radius: 4px; padding: 1px 5px;
}
.search-count {
  padding: 8px 12px 4px; color: var(--txt-3); font-size: 12px;
  border-bottom: 1px dashed var(--line); margin-bottom: 6px;
}
.search-count b { color: var(--brand); font-weight: 700; }
.search-item {
  position: relative; display: block; padding: 7px 10px; margin: 0 0 2px;
  border-radius: 8px; border-left: 2px solid transparent;
}
.search-item:hover { background: rgba(26, 107, 214, 0.06); }
.search-item.is-top { border-left-color: var(--brand); }
.search-item.is-active { background: var(--brand-soft); border-left-color: var(--brand); }
.si-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.search-item:hover .si-title,
.search-item.is-active .si-title { color: var(--brand-deep); }
.si-sub {
  display: block; margin-top: 2px; font-size: 11.5px; color: var(--txt-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

