/* ============================================================
   付费交付系统后台使用教程 补充样式
   基于 Rocker(Bootstrap 5) 后台模板：仅补充 Rocker 未覆盖的文档组件
   + 侧边目录高亮；响应式侧边栏由 Rocker 的 .wrapper.toggled 机制接管
   ============================================================ */

body {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f7f8fb;
}

/* ---------- 侧边栏品牌 logo（无图片时用文字徽标） ---------- */
.sidebar-header .logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff;
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-header .logo-icon img { width: 100%; height: 100%; border-radius: 10px; display: block; }
.sidebar-header .logo-text { font-weight: 700; font-size: 20px; letter-spacing: .5px; }

/* ---------- 侧边目录（metismenu 文档化） ---------- */
.sidebar-wrapper { overflow-y: auto; overflow-x: hidden; }
.sidebar-wrapper .metismenu { margin-top: 70px; padding: 0 12px 30px; }
.sidebar-wrapper .metismenu .menu-label {
  color: #9aa1ab; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: .9rem .7rem .35rem;
}
.sidebar-wrapper .metismenu a {
  display: flex; align-items: center;
  color: #4c5258; border-radius: 8px; padding: .5rem .7rem; gap: 10px;
  transition: all .15s ease;
}
.sidebar-wrapper .metismenu a .parent-icon { font-size: 18px; line-height: 1; }
.sidebar-wrapper .metismenu a .menu-title { font-size: 14px; }
.sidebar-wrapper .metismenu a:hover { background: #eef4ff; color: #008cff; }
.sidebar-wrapper .metismenu a.active {
  background: #eef4ff; color: #008cff; font-weight: 600;
}
/* 当前所在文档：用左侧色条强调 */
.sidebar-wrapper .metismenu a.current {
  background: #e6f0ff; color: #0b5ed7; font-weight: 700;
}

/* ---------- 顶栏标题 ---------- */
.topbar .navbar .page-title { font-weight: 600; font-size: 16px; color: #1c2b3a; }
.topbar .navbar .doc-badge {
  font-size: 12px; font-weight: 600; padding: .25rem .6rem; border-radius: 20px;
}

/* ---------- 内容区 ---------- */
.page-content { max-width: 1100px; margin-left: auto; margin-right: auto; }
.page-content section { scroll-margin-top: 84px; padding-top: 1.4rem; }
.page-content h2 {
  font-size: 1.45rem; font-weight: 700; color: #1c2b3a;
  border-left: 4px solid #008cff; padding-left: 12px; margin-bottom: 1rem;
}
.page-content h3 { font-size: 1.15rem; font-weight: 600; color: #243244; margin: 1.6rem 0 .8rem; }
.page-content .lead { color: #6c757d; }
.page-content p { color: #3a4654; line-height: 1.75; }
.page-content a { color: #0b5ed7; }
.page-content ul.page-content-list { padding-left: 1.1rem; }
.page-content ul.page-content-list li { color: #3a4654; line-height: 1.8; margin-bottom: .25rem; }

/* 文档专用卡片 */
.card.radius-10 { border-radius: 12px; box-shadow: 0 2px 14px rgba(20,30,60,.06); }
.doc-hero {
  border: none; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #2f6bff 0%, #0fb5a6 100%);
  box-shadow: 0 10px 30px rgba(47,107,255,.25);
}
.doc-hero h1 { font-weight: 700; }
.doc-hero p { color: rgba(255,255,255,.88); }

/* 角色卡片 */
.role-card .role-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: .25rem .6rem; border-radius: 20px;
  background: #eef4ff; color: #008cff;
}
.role-card .entry-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; background: #f1f3fb; color: #243244;
  padding: .15rem .45rem; border-radius: 6px;
}

/* ---------- 面包屑（Rocker page-breadcrumb 文档化） ---------- */
.page-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  background: #fff; border: 1px solid #edf0f5; border-radius: 10px;
  padding: .6rem 1rem; margin-bottom: 1.2rem;
  box-shadow: 0 1px 6px rgba(20,30,60,.04);
}
.page-breadcrumb .breadcrumb-title { font-weight: 700; color: #1c2b3a; font-size: 15px; }
.page-breadcrumb .breadcrumb { margin: 0; padding: 0; background: transparent; font-size: 13px; }
.page-breadcrumb .breadcrumb-item a { color: #0b5ed7; text-decoration: none; }
.page-breadcrumb .breadcrumb-item.active { color: #6c757d; }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #b6bec9; }

/* ---------- 步骤流 ---------- */
.steps { counter-reset: s; list-style: none; padding-left: 0; }
.steps > li {
  position: relative; padding: 0 0 1.2rem 2.8rem;
  border-left: 2px solid #e4e4e4; margin-left: 1rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: -15px; top: -2px;
  width: 28px; height: 28px; background: #008cff; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.steps .where { color: #008cff; font-size: .9em; font-weight: 600; }
.steps b { color: #111; }
.steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: #f1f3fb; padding: .1rem .4rem; border-radius: 5px; color: #243244;
}

/* ---------- 竖向时间线（文档上手路径） ---------- */
.tl { position: relative; list-style: none; padding: 0; margin: 0 0 0 .2rem; }
.tl::before {
  content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px;
  width: 2px; background: #e3e8f1;
}
.tl-item { position: relative; padding: 0 0 1.6rem 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 4px; top: 0; width: 28px; height: 28px;
  border-radius: 50%; background: #fff; border: 2px solid #008cff; color: #008cff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; z-index: 1;
}
.tl-item.done .tl-dot { background: #008cff; color: #fff; }
.tl-item.warn .tl-dot { border-color: #ff9f43; color: #ff9f43; }
.tl-item.warn.done .tl-dot { background: #ff9f43; color: #fff; }
.tl-time { font-size: 12px; color: #8a95a3; margin-bottom: 2px; }
.tl-title { font-weight: 600; color: #1c2b3a; }
.tl-desc { font-size: .9rem; color: #5b6776; margin-top: 2px; line-height: 1.65; }

/* ---------- 列表组（菜单清单，带图标 + 用途） ---------- */
.doc-list { display: flex; flex-direction: column; gap: .5rem; padding-left: 0; list-style: none; margin-bottom: 0; }
.doc-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem .9rem; background: #fff; border: 1px solid #edf0f5; border-radius: 10px;
}
.doc-list .d-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  background: #eef4ff; color: #008cff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.doc-list .d-body { flex: 1 1 auto; }
.doc-list .d-t { font-weight: 600; color: #1c2b3a; font-size: .95rem; }
.doc-list .d-x { font-size: .85rem; color: #6c757d; margin-top: 2px; line-height: 1.55; }
.doc-list .d-badge { flex: 0 0 auto; align-self: center; }

/* 原两栏菜单清单（仍保留用于对照） */
.menulist { columns: 2; column-gap: 2rem; padding-left: 0; list-style: none; margin-bottom: 0; }
.menulist li { break-inside: avoid; padding: 3px 0 3px 16px; position: relative; font-size: 14px; color: #2b3543; }
.menulist li::before { content: "›"; position: absolute; left: 2px; color: #008cff; }
.menulist li.group { font-weight: 700; margin-top: .55rem; color: #111; }
.menulist li.group::before { content: ""; }
.menulist li .hidden-tag {
  font-size: 11px; font-weight: 600; color: #b8860b;
  background: #fff4d6; padding: 0 .35rem; border-radius: 10px; margin-left: 4px;
}
@media (max-width: 640px) { .menulist { columns: 1; } }

/* ---------- 进度条 ---------- */
.pg-row { margin-bottom: 1rem; }
.pg-row .pg-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .4rem; color: #3a4654; }
.pg-row .pg-head .pg-val { color: #008cff; font-weight: 600; }
.progress.doc-progress { height: 8px; border-radius: 20px; background: #eef0f5; }
.progress.doc-progress .progress-bar { border-radius: 20px; }

/* ---------- 手风琴 FAQ：对齐 Rocker 原生 faq.html / component-accordions.html（干净无蓝条） ---------- */
.accordion.doc-accordion { border: none; background: transparent; }
.accordion.doc-accordion .accordion-item {
  background: transparent; border: none; border-bottom: 1px solid #edf0f5;
  border-radius: 0; margin-bottom: 0;
}
.accordion.doc-accordion .accordion-item:last-child { border-bottom: none; }
.accordion.doc-accordion .accordion-button {
  font-weight: 600; font-size: .95rem; color: #1c2b3a; background: #fff;
  box-shadow: none; padding: .95rem 1rem;
}
.accordion.doc-accordion .accordion-button:focus { box-shadow: none; }
/* 展开态：仅极淡灰底 + 同色文字，不再出现蓝条/蓝底 */
.accordion.doc-accordion .accordion-button:not(.collapsed) { color: #1c2b3a; background: #f7f9fc; }
.accordion.doc-accordion .accordion-button::after { background-size: 1rem; }
.accordion.doc-accordion .accordion-body { color: #4a5663; font-size: .92rem; line-height: 1.7; padding: 0 1rem 1.1rem; }
.accordion.doc-accordion .accordion-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: #f1f3fb; padding: .1rem .35rem; border-radius: 5px; color: #243244;
}

/* ---------- 标签页 ---------- */
.doc-tabs .nav-tabs { border-bottom: 2px solid #edf0f5; gap: .25rem; }
.doc-tabs .nav-tabs .nav-link {
  border: none; border-bottom: 2px solid transparent; font-weight: 600;
  color: #6c757d; padding: .6rem 1rem; border-radius: 0;
}
.doc-tabs .nav-tabs .nav-link.active { color: #0b5ed7; border-bottom-color: #0b5ed7; background: transparent; }
.doc-tabs .tab-content { padding-top: 1rem; }

/* ---------- 特性网格（系统优势 / 能力） ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.feat { background: #fff; border: 1px solid #edf0f5; border-radius: 12px; padding: 1.1rem; height: 100%; }
.feat .feat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin-bottom: .7rem;
}
.feat .feat-t { font-weight: 600; color: #1c2b3a; margin-bottom: .25rem; }
.feat .feat-x { font-size: .85rem; color: #6c757d; line-height: 1.6; margin-bottom: 0; }

/* 版本对比卡 */
.edition-card { border: 1px solid #edf0f5; border-radius: 14px; padding: 0; overflow: hidden; height: 100%; background: #fff; }
.edition-card .ec-head { padding: 1.1rem 1.2rem; color: #fff; }
.edition-card.is-ent .ec-head { background: linear-gradient(135deg,#2f6bff,#3f8bff); }
.edition-card.is-team .ec-head { background: linear-gradient(135deg,#0fb5a6,#21c6b8); }
.edition-card .ec-head h5 { margin: 0; font-weight: 700; }
.edition-card .ec-head small { opacity: .9; }
.edition-card .ec-body { padding: 1.1rem 1.2rem; }
.edition-card .ec-body ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.edition-card .ec-body li { display: flex; gap: .5rem; padding: .4rem 0; font-size: .9rem; color: #3a4654; border-bottom: 1px dashed #eef0f5; }
.edition-card .ec-body li:last-child { border-bottom: none; }
.edition-card .ec-body li i { color: #008cff; margin-top: 3px; }

/* 闭环流程（横向步骤条） */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: .4rem; }
.flow .flow-step {
  flex: 1 1 140px; background: #fff; border: 1px solid #edf0f5; border-radius: 10px;
  padding: .8rem .9rem; position: relative;
}
.flow .flow-step .fs-n { font-size: 12px; font-weight: 700; color: #008cff; }
.flow .flow-step .fs-t { font-weight: 600; color: #1c2b3a; font-size: .92rem; margin-top: 2px; }
.flow .flow-step .fs-x { font-size: .8rem; color: #6c757d; margin-top: 2px; }
@media (min-width: 768px) {
  .flow .flow-step:not(:last-child)::after {
    content: "›"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
    color: #b6bec9; font-size: 22px; font-weight: 700;
  }
}

/* ---------- 截图占位（历史占位样式，保留兼容） ---------- */
.shot {
  border: 1px dashed #c4cede; border-radius: 12px;
  background: repeating-linear-gradient(45deg, #fafbff, #fafbff 10px, #f1f3fb 10px, #f1f3fb 20px);
  min-height: 190px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #5b6776;
  font-size: 13px; text-align: center; padding: 22px; margin: 1.1rem 0;
}
.shot .shot-cap { margin-top: 8px; font-size: 12px; color: #8a95a3; }

/* ---------- 真实后台截图卡片 ---------- */
figure.shot-real {
  margin: 1.15rem 0; border: 1px solid #e3e8ef; border-radius: 12px;
  background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,50,.06), 0 8px 28px rgba(20,30,50,.05);
}
figure.shot-real .win-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px;
  background: #f6f8fb; border-bottom: 1px solid #e8ecf2;
}
figure.shot-real .win-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
figure.shot-real .win-dot.r { background: #ff6b6b; }
figure.shot-real .win-dot.y { background: #ffc043; }
figure.shot-real .win-dot.g { background: #3ecf8e; }
figure.shot-real .win-title { margin-left: 8px; font-size: 12px; color: #7b8797; }
figure.shot-real .win-badge {
  margin-left: auto; font-size: 11px; font-weight: 600; color: #3b6fd4;
  background: #eaf1ff; padding: 2px 9px; border-radius: 20px;
}
figure.shot-real img { display: block; width: 100%; height: auto; }
figure.shot-real figcaption {
  padding: 9px 14px; font-size: 12.5px; color: #5b6776;
  background: #fcfdff; border-top: 1px solid #eef1f6;
}
figure.shot-real figcaption b { color: #2c3a4b; }

/* ---------- 截图相册（三套界面） ---------- */
.gallery-tabs .nav-tabs { gap: .3rem; border-bottom: 2px solid #edf0f5; }
.gallery-tabs .nav-tabs .nav-link {
  border: none; border-bottom: 2px solid transparent; font-weight: 600;
  font-size: .9rem; color: #6c757d; padding: .5rem .95rem; border-radius: 0;
}
.gallery-tabs .nav-tabs .nav-link.active { color: #2f6bdb; border-bottom-color: #2f6bdb; background: transparent; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-card {
  border: 1px solid #e3e8ef; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 3px rgba(20,30,50,.05);
}
.gallery-card .gc-head {
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: #34435a;
  background: #f6f8fb; border-bottom: 1px solid #e8ecf2;
  display: flex; align-items: center; gap: 6px;
}
.gallery-card .gc-head .gc-tag {
  margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px;
}
.gc-tag.a { color: #2f6bdb; background: #eaf1ff; }
.gc-tag.b { color: #1a8f5a; background: #e6f7ef; }
.gc-tag.m { color: #b45309; background: #fff3e0; }
.gallery-card img { display: block; width: 100%; height: auto; background: #f4f6f9; }
.gallery-card.mobile img { max-height: 520px; object-fit: top; object-position: top; }
.gallery-card .gc-cap { padding: 8px 12px; font-size: 12px; color: #6b7685; }
.gallery-note {
  font-size: 12.5px; color: #6b7685; background: #f7f9fc;
  border-left: 3px solid #2f6bdb; padding: 9px 14px; border-radius: 0 8px 8px 0; margin: .8rem 0 1rem;
}

/* ---------- 版本差异表 ---------- */
.menu-cell code { font-size: 13px; }
table.doc-table th { white-space: nowrap; }
table.doc-table td, table.doc-table th { vertical-align: middle; }

/* ---------- 提示框微调 ---------- */
.alert.doc-tip { border-left: 4px solid #0d6efd; }
.alert.doc-tip i.bx { font-size: 1.05rem; }

/* ---------- 页脚 ---------- */
.doc-footer { border-top: 1px solid #e4e4e4; margin-top: 2.5rem; padding-top: 1rem; }

/* ---------- 三种后台界面（UI-A / UI-B / UI-M） ---------- */
.ui-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .9rem; }
.ui-card { border: 1px solid #edf0f5; border-radius: 14px; padding: 0; overflow: hidden; height: 100%; background: #fff; box-shadow: 0 2px 14px rgba(20,30,60,.06); }
.ui-card .ui-head { padding: 1.1rem 1.2rem 1rem; color: #fff; position: relative; }
.ui-card.is-a .ui-head { background: linear-gradient(135deg,#2f6bff,#3f8bff); }
.ui-card.is-b .ui-head { background: linear-gradient(135deg,#0fb5a6,#21c6b8); }
.ui-card.is-m .ui-head { background: linear-gradient(135deg,#7c5cff,#9b6bff); }
.ui-card .ui-head .ui-icon { font-size: 26px; opacity: .95; }
.ui-card .ui-head h5 { margin: .35rem 0 0; font-weight: 700; font-size: 1.05rem; }
.ui-card .ui-head .ui-sub { font-size: 12px; opacity: .92; }
.ui-card .ui-head .device-badge {
  position: absolute; top: 1rem; right: 1rem; font-size: 11px; font-weight: 700;
  padding: .2rem .55rem; border-radius: 20px; background: rgba(255,255,255,.22); color: #fff;
}
.ui-card .ui-body { padding: 1.1rem 1.2rem; }
.ui-card .ui-body p { font-size: .9rem; color: #4a5663; line-height: 1.65; margin-bottom: .7rem; }
.ui-card .ui-body ul { list-style: none; padding-left: 0; margin-bottom: .8rem; }
.ui-card .ui-body li { display: flex; gap: .45rem; font-size: .85rem; color: #3a4654; padding: .25rem 0; align-items: flex-start; }
.ui-card .ui-body li i { color: #008cff; margin-top: 3px; font-size: 14px; flex: 0 0 auto; }
.ui-card .ui-entry {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: #f1f3fb; color: #243244; padding: .15rem .45rem; border-radius: 6px;
}
/* 入口矩阵表头强调 */
table.doc-table thead.ent-head th { background: #f4f8ff; color: #1c2b3a; font-weight: 700; }
.badge-ent { background: #eef4ff; color: #0b5ed7; }
.badge-team { background: #e6faf6; color: #0a8f82; }
