/* ================================================================
   集核云软盘 · 使用手册 / 帮助文档（桌面端）
   纯自定义样式表，无第三方依赖（不使用 Tailwind、iconify 等）。
   设计语言：浅灰底 + 白色卡片 + 蓝色强调。
   样式随 Markdown 结构自适应：
     - 顶层章节（h1~h4 任意级别）自动成为卡片；
     - 嵌套子标题、步骤段落、权限条目、图片、列表、表格通用适配。
   ================================================================ */

:root {
    /* 页面底色 */
    --manual-bg: #F8FAFC;
    /* 卡片 */
    --manual-card: #FFFFFF;
    --manual-card-border: #E2E8F0;
    --manual-card-soft: #F1F5F9;
    /* 文字 */
    --manual-text-strong: #0F172A;
    --manual-text: #1E293B;
    --manual-text-sub: #64748B;
    --manual-text-light: #94A3B8;
    /* 主强调（蓝） */
    --manual-blue: #2563EB;
    --manual-blue-deep: #1D4ED8;
    --manual-blue-lite: #DBEAFE;
    --manual-blue-mist: #EFF6FF;
    --manual-blue-grad: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    /* 品牌橙（登录/下载等既有入口沿用） */
    --manual-orange: #FF6F08;
    /* 阴影 */
    --manual-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --manual-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* 圆角 */
    --manual-radius-xl: 24px;
    --manual-radius-lg: 16px;
    --manual-radius-md: 12px;
    --manual-radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 1280px;
    background: var(--manual-bg);
    margin: 0;
    font-size: 15px;
    font-family: Helvetica, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', Arial, sans-serif;
    color: var(--manual-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--manual-blue);
    text-decoration: none;
}

/* ===================== 顶部导航（沿用站点原有样式） ===================== */
.navigator, .navigator .title, .menu-item {
    color: #111111;
    text-decoration: none;
}

/* 导航内容垂直居中，保证 logo 标题与菜单项在同一条中心线上
   （本页 body 行高被紧凑化调整，导航元素需恢复原行高） */
.navigator {
    align-items: center;
}

.navigator .logo {
    align-items: center;
}

.navigator .menu {
    align-items: center;
}

.navigator .language-switcher {
    display: flex;
    align-items: center;
}

.navigator .language-switcher form {
    display: flex !important; /* 覆盖页面内联 style="display:inline"，消除基线偏移 */
    align-items: center;
}

.navigator .menu-item {
    margin-bottom: 0;
    line-height: var(--line-height-normal);
}

.navigator .title {
    line-height: var(--line-height-normal);
}

.navigator .menu .guide-link {
    border-bottom: 2px #FF6F08 solid;
}

.lang-btn {
    border: 1px solid #000000;
}

.lang-btn.active {
    background-color: #000000;
    color: #ffffff;
}

/* ===================== 横幅（内敛圆角卡片） ===================== */
.banner {
    max-width: 1320px;
    margin: 28px auto 0;
    padding: 0 40px;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--manual-radius-xl);
    box-shadow: var(--manual-shadow-card);
}

/* ===================== 主布局（保留原 TOC 定位机制） ===================== */
.main-wrapper {
    display: flex;
    position: relative;
    margin-bottom: 56px;
}

/* ---------------- 左侧目录卡片 ---------------- */
.left-toc {
    position: relative;
}

.toc-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 196px;
    background: var(--manual-card);
    border: 1px solid var(--manual-card-border);
    border-radius: var(--manual-radius-lg);
    box-shadow: var(--manual-shadow-card);
    padding: 12px 6px 10px;
}

.toc-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--manual-text-strong);
    margin: 0 0 8px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toc-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--manual-blue-grad);
}

.toc-wrapper ul,
.toc-wrapper ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-right: none;
}

.toc-wrapper a {
    display: block;
    padding: 5px 9px;
    border-radius: var(--manual-radius-sm);
    text-decoration: none;
    color: var(--manual-text-sub) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.toc-wrapper a:hover {
    background: var(--manual-blue-mist);
    color: var(--manual-blue) !important;
}

.toc-wrapper .title-item.active a,
.toc-wrapper .secondary-title-item.active a,
.toc-wrapper .tertiary-title-item.active a {
    color: var(--manual-blue) !important;
    background: var(--manual-blue-lite);
    font-weight: 700;
}

.toc-wrapper .secondary-title-item a {
    font-size: 13px;
    padding-left: 20px;
}

ol.secondary-title-list,
ol.tertiary-title-list {
    display: none;
    margin: 2px 0 6px 12px;
    padding: 0 0 0 8px;
    border-left: 1px solid var(--manual-card-border);
}

/* ---------------- 右侧正文 ---------------- */
.main-content {
    /* 具体边距按下方三档媒体查询设置 */
}

/* 帮助文档（manual.html）无目录时使用居中版式 */
.main-content-full {
    max-width: 1024px;
    margin: 20px auto 56px !important;
}

/* ------------------------------------------------------------------
   正文排版：所有规则面向 Markdown 渲染结果，按层级通用适配
   ------------------------------------------------------------------ */

.manual-section {
    background: var(--manual-card);
    border: 1px solid var(--manual-card-border);
    border-radius: var(--manual-radius-xl);
    box-shadow: var(--manual-shadow-card);
    padding: 22px 26px;
    margin-bottom: 14px;
}

.manual-section:last-child {
    margin-bottom: 0;
}

/* 章节卡内的通用标题色 */
.manual-section h1,
.manual-section h2,
.manual-section h3,
.manual-section h4,
.manual-section h5,
.manual-section h6 {
    color: var(--manual-text-strong);
    font-weight: 700;
}

/* 嵌套子标题：左侧竖线强调（非顶层时生效） */
.manual-section h2,
.manual-section h3,
.manual-section h4,
.manual-section h5,
.manual-section h6 {
    font-size: 16px;
    margin: 16px 0 8px;
    padding-left: 12px;
    border-left: 4px solid var(--manual-blue);
    border-radius: 2px;
}

.manual-section h2 {
    font-size: 17px;
}

.manual-section h5,
.manual-section h6 {
    font-size: 14px;
}

/* 顶层章节头：图标方块 + 序号 + 标题 + 底部分隔线
   （JS 将顶层标题包裹为 .manual-section 的首个子元素，
    因此这里用子选择器覆盖上面的“嵌套”样式；具体层级自适应） */
.manual-section > h1,
.manual-section > h2,
.manual-section > h3,
.manual-section > h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-left: none;
    padding-left: 0;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--manual-card-soft);
}

.manual-section > h1 {
    font-size: 28px;
}

.manual-section > h2 {
    font-size: 22px;
}

.manual-section > h3 {
    font-size: 19px;
}

.manual-section > h4 {
    font-size: 17px;
}

.manual-section > h1 strong,
.manual-section > h2 strong,
.manual-section > h3 strong,
.manual-section > h4 strong,
.manual-section > h5 strong,
.manual-section > h6 strong {
    color: inherit;
}

/* 章节图标块（由 JS 注入） */
.manual-section-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--manual-blue-grad);
    color: #ffffff;
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.50);
}

.manual-section-chip svg {
    width: 17px;
    height: 17px;
}

.manual-section > h3 .manual-section-chip,
.manual-section > h4 .manual-section-chip {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.manual-section > h3 .manual-section-chip svg,
.manual-section > h4 .manual-section-chip svg {
    width: 14px;
    height: 14px;
}

/* 章节序号丸（由 JS 按顺序注入，内容变化自动跟随） */
.manual-section-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--manual-blue);
    background: var(--manual-blue-mist);
    border: 1px solid var(--manual-blue-lite);
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   子卡片（JS 将章节内的 “### / ####” 子标题及其内容包裹为
   .manual-subsection，生成 “1.1 / 1.2…” 式编号，贴近卡片式正文）
   ------------------------------------------------------------------ */
.manual-subsection {
    background: var(--manual-card);
    border: 1px solid var(--manual-card-border);
    border-radius: var(--manual-radius-lg);
    box-shadow: var(--manual-shadow-card);
    padding: 16px 18px;
    margin: 12px 0;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.manual-subsection:hover {
    box-shadow: var(--manual-shadow-hover);
    transform: translateY(-2px);
}

.manual-subsection > h2,
.manual-subsection > h3,
.manual-subsection > h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px dashed var(--manual-blue-lite);
    font-size: 16px;
    color: var(--manual-text-strong);
}

.manual-subsection > h3 {
    font-size: 16px;
}

.manual-subsection > h2 {
    font-size: 17px;
}

.manual-subsection > h4 {
    font-size: 16px;
}

.manual-subsection > h2 strong,
.manual-subsection > h3 strong,
.manual-subsection > h4 strong {
    color: inherit;
}

/* 子卡片序号（“2.1” 式） */
.manual-subsection-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--manual-blue);
    background: var(--manual-blue-mist);
    border: 1px solid var(--manual-blue-lite);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* > 标记行：md 中「<hr class="manual-grid" />」声明子卡片成组，此线不显示 */
hr.manual-grid {
    display: none !important;
}

/* > 标记行：md 中「<hr class="manual-bento" />」声明其后的子卡片为
   栅格式布局（首卡整行、其余并排，例如 (1,(2,3))），此线不显示 */
hr.manual-bento {
    display: none !important;
}

/* 栅格式：首卡占满整行，其余两两并排 */
.manual-subsection-grid.manual-bento {
    grid-template-columns: repeat(2, 1fr);
}

.manual-subsection-grid.manual-bento > .manual-subsection:first-child {
    grid-column: 1 / -1;
}

/* > 标记行：md 中「<hr class="manual-split" />」声明左右分栏，此线不显示 */
hr.manual-split {
    display: none !important;
}

hr.manual-cta {
    display: none !important;
}

/* 左右分栏（如：操作步骤 | 权限说明） */
.manual-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 14px;
}

.manual-split-left,
.manual-split-right {
    min-width: 0;
}

/* 分栏中的 CTA（如日常使用技巧右侧）：参考示范稿样式优化 */
.manual-split-right .manual-cta {
    margin: 0;
    padding: 0;
    max-width: none;
}

.manual-split-right .manual-cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    justify-content: center;
}

.manual-split-right .manual-cta-title {
    font-size: 21px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
}

.manual-split-right .manual-cta-text {
    font-size: 13px;
    line-height: 1.8;
    color: #DBEAFE;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
}

/* 按钮块：全宽白底按钮 + 支持说明 */
.manual-split-right .manual-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.manual-split-right .manual-cta-btn-white {
    display: block;
    width: 100%;
    padding: 11px 0;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--manual-blue);
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
}

.manual-split-right .manual-cta-btn-white:hover {
    background: #EFF6FF;
    color: var(--manual-blue-deep);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
    transform: none;
}

.manual-split-right .manual-cta-support {
    font-size: 11px;
    color: #BFDBFE;
    text-align: center;
    margin: 0;
}

.manual-split-right .manual-cta-deco {
    width: 200px;
    height: 200px;
    right: -32px;
    bottom: -32px;
    color: #60A5FA;
    opacity: 0.20;
}

/* CTA 分栏：右栏 CTA 与左栏内容等高，卡片撑满整列 */
.manual-split:has(.manual-cta) {
    align-items: stretch;
}

.manual-split:has(.manual-cta) .manual-split-right {
    display: flex;
}

.manual-split:has(.manual-cta) .manual-split-right .manual-cta {
    flex: 1;
    display: flex;
}

.manual-split:has(.manual-cta) .manual-split-right .manual-cta-inner {
    flex: 1;
    justify-content: center;
}

/* > 标记行：md 中「<hr class="manual-imgs" />」声明其后的连续图片并排，此线不显示 */
hr.manual-imgs {
    display: none !important;
}

/* 图片并排（默认两列） */
.manual-img-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 14px 0;
}

.manual-img-row .manual-img-container {
    margin: 0;
}

.manual-img-row .manual-img-container img {
    max-width: 92%;
}

/* 图片分页器（帮助文档页）：连续图片横向滚动 + 圆点指示 */
.manual-img-swiper-wrap {
    position: relative;
}

.manual-img-swiper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 14px 0;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

.manual-img-swiper::-webkit-scrollbar {
    display: none;
}

.manual-img-swiper-slide {
    flex: 0 0 92%;
    scroll-snap-align: center;
    min-width: 0;
}

.manual-img-swiper-slide .manual-img-container {
    margin: 0;
}

.manual-img-swiper-slide .manual-img-container img {
    max-width: 88%;
}

/* 分页器内禁用 hover 悬浮放大（避免翻页时误触发放大），放大走点击灯箱 */
.manual-img-swiper .manual-img-container:hover img {
    position: static;
    z-index: auto;
    transform: none;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.08);
}

/* 左右箭头 */
.manual-img-swiper-arrow {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--manual-card-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--manual-blue);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--manual-shadow-card);
    transition: background 0.2s ease, color 0.2s ease;
}

.manual-img-swiper-arrow:hover {
    background: var(--manual-blue);
    color: #ffffff;
}

.manual-img-swiper-arrow.prev {
    left: 4px;
}

.manual-img-swiper-arrow.next {
    right: 4px;
}

.manual-img-swiper-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 2px 0 10px;
}

.manual-img-swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--manual-blue-lite);
    cursor: pointer;
    transition: all 0.25s ease;
}

.manual-img-swiper-dot.active {
    width: 18px;
    border-radius: 999px;
    background: var(--manual-blue);
}

/* > 标记行：md 中「<hr class="manual-steps" />」声明其后步骤按 3 列网格展示，此线不显示 */
hr.manual-steps {
    display: none !important;
}

/* 步骤成组（PC 端每行 3 个）：步骤 + 紧跟图片配对为一张步骤卡 */
.manual-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 14px 0 4px;
}

.manual-step-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--manual-card);
    border: 1px solid var(--manual-card-border);
    border-radius: var(--manual-radius-lg);
    box-shadow: var(--manual-shadow-card);
    padding: 16px;
    min-width: 0;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.manual-step-cell:hover {
    box-shadow: var(--manual-shadow-hover);
    transform: translateY(-2px);
}

/* 步骤卡内的步骤条目：简化底色，避免与步骤卡双重边框；不显示时间线 */
.manual-step-cell .step-item {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.manual-step-cell .step-item::before {
    display: none;
}

.manual-step-cell .step-no {
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.45);
}

/* 步骤卡内的图片：更小、去掉外层卡片式边框 */
.manual-step-cell .manual-img-container {
    margin: 0;
    padding: 6px;
    box-shadow: none;
    background: transparent;
    border: none;
}

.manual-step-cell .manual-img-container img {
    max-width: 90%;
}

/* md 中标记成组的连续子卡片 → 横向网格（随 Markdown 自适应） */
.manual-subsection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.manual-subsection-grid > .manual-subsection {
    margin: 0;
    min-width: 0;
}

/* 段落与行内强调 */
.manual-section p {
    color: var(--manual-text);
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.75;
}

.manual-section p:last-child {
    margin-bottom: 0;
}

.manual-section strong {
    color: var(--manual-blue);
    font-weight: 700;
}

/* Markdown 中整行为加粗的“小标题”段落（由 JS 标记为 .step-title） */
.manual-section p.step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--manual-text-strong);
    margin: 14px 0 8px !important;
}

.manual-section p.step-title::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--manual-blue);
    box-shadow: 0 0 0 4px var(--manual-blue-lite);
}

.manual-section p.step-title strong {
    color: var(--manual-text-strong);
}

/* 正文链接 */
.manual-section a {
    color: var(--manual-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--manual-blue-lite);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.manual-section a:hover {
    color: var(--manual-blue-deep);
    border-bottom-color: var(--manual-blue);
}

/* 列表 */
.manual-section ul,
.manual-section ol {
    margin: 0 0 10px;
    padding-left: 18px;
}

.manual-section li {
    margin-bottom: 4px;
    line-height: 1.7;
}

.manual-section ul li::marker {
    color: var(--manual-blue);
}

/* 分隔线 */
.manual-section hr {
    border: none;
    height: 1px;
    background: var(--manual-card-soft);
    margin: 14px 0;
}

/* 引用 */
.manual-section blockquote {
    margin: 12px 0;
    padding: 8px 12px;
    background: var(--manual-blue-mist);
    border-left: 4px solid var(--manual-blue);
    border-radius: 0 var(--manual-radius-md) var(--manual-radius-md) 0;
    color: var(--manual-text);
}

/* 行内代码 / 代码块 */
.manual-section code {
    background: var(--manual-card-soft);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #BE123C;
}

.manual-section pre {
    background: #0F172A;
    color: #E2E8F0;
    border-radius: var(--manual-radius-md);
    padding: 12px 16px;
    overflow-x: auto;
    margin: 12px 0;
}

.manual-section pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 表格：通用渲染 */
.manual-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 12px 0;
    border: 1px solid var(--manual-card-border);
    border-radius: var(--manual-radius-md);
    overflow: hidden;
    font-size: 13px;
}

.manual-section th {
    background: var(--manual-blue-mist);
    color: var(--manual-text-strong);
    font-weight: 700;
    padding: 8px 12px;
    text-align: left;
}

.manual-section td {
    padding: 8px 12px;
    border-top: 1px solid var(--manual-card-soft);
    color: var(--manual-text);
}

/* 图片卡片（markdown-style-adjuster.js 自动包裹 <p><img>）
   默认缩小居中；放大用 transform 悬浮（不参与布局，页面不跳动）；
   点按/点击打开全屏灯箱 */
.manual-img-container {
    background: var(--manual-card);
    border: 1px solid var(--manual-card-border);
    border-radius: var(--manual-radius-lg);
    box-shadow: var(--manual-shadow-card);
    padding: 8px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.manual-img-container:hover {
    box-shadow: var(--manual-shadow-hover);
}

.manual-img-container img {
    display: block;
    width: auto;
    max-width: 66%;
    height: auto;
    max-height: 68vh;
    margin: 0 auto;
    border-radius: var(--manual-radius-sm);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.08);
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬浮放大：仅 transform 缩放 + 层级提升，不改变布局流 */
.manual-img-container:hover img {
    position: relative;
    z-index: 30;
    transform: scale(1.32);
    box-shadow: 0 24px 48px -12px rgba(2, 6, 23, 0.40);
}

/* 全屏灯箱（点按 / 点击放大查看） */
.manual-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.manual-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.manual-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    cursor: zoom-out;
}

.manual-lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.manual-lightbox-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.24);
}

/* 兜底：未包裹的图片（不影响 .manual-img-container img 的缩放规则） */
.main-content img:not(.manual-img-container img) {
    max-width: 100%;
}

/* 步骤条目（JS 识别「步骤一：」等前缀自动生成，数量自适应）
   独立步骤（不在步骤卡内）呈纵向时间线 */
.step-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
    padding: 10px 12px;
    background: var(--manual-bg);
    border: 1px solid var(--manual-card-soft);
    border-radius: var(--manual-radius-md);
}

/* 时间线：左侧竖线连接各步骤圆点 */
.step-item::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--manual-blue-lite);
}

.step-item:last-child::before {
    bottom: auto;
    height: 50%;
}

.step-item .step-no {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--manual-card);
}

.step-no {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--manual-blue-grad);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.45);
}

.step-content {
    font-size: 13px;
    line-height: 1.7;
    color: var(--manual-text);
    min-width: 0;
}

.step-content strong {
    color: var(--manual-blue);
}

.step-content a {
    color: var(--manual-blue);
    border-bottom: 1px solid var(--manual-blue-lite);
}

/* 权限条目（JS 识别「拒绝查看/只读/可修改/可管理：」自动生成徽章） */
.perm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    padding: 8px 12px;
    background: var(--manual-bg);
    border: 1px solid var(--manual-card-soft);
    border-radius: var(--manual-radius-md);
}

.perm-badge {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.perm-red {
    background: #FEE2E2;
    color: #991B1B;
}

.perm-yellow {
    background: #FEF9C3;
    color: #854D0E;
}

.perm-green {
    background: #DCFCE7;
    color: #166534;
}

.perm-blue {
    background: var(--manual-blue-lite);
    color: #1E40AF;
}

.perm-text {
    font-size: 13px;
    color: var(--manual-text);
    line-height: 1.7;
}

/* 首个章节前的零散内容（如 Markdown 开头的 <hr>） */
.manual-lead {
    text-align: center;
    padding: 14px 0 4px;
}

.manual-lead hr {
    max-width: 120px;
    margin: 0 auto;
    border: none;
    height: 3px;
    border-radius: 2px;
    background: var(--manual-blue-lite);
}

/* ===================== 首页横幅（帮助文档 hero） ===================== */
.manual-hero {
    margin: 18px auto 0;
    padding: 0 40px;
}

.manual-hero-inner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 60%, #DBEAFE 130%);
    border: 1px solid #DBEAFE;
    border-radius: var(--manual-radius-xl);
    padding: 32px 28px 28px;
    text-align: center;
}

.manual-hero-inner::before,
.manual-hero-inner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.manual-hero-inner::before {
    width: 320px;
    height: 320px;
    left: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
}

.manual-hero-inner::after {
    width: 380px;
    height: 380px;
    right: -140px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(255, 111, 8, 0.12) 0%, transparent 70%);
}

.manual-hero-title {
    position: relative;
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--manual-text-strong);
}

.manual-hero-sub {
    position: relative;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--manual-text-sub);
}

.manual-hero-badges {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.manual-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #DBEAFE;
    color: #1E40AF;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--manual-shadow-card);
}

.manual-hero-badge svg {
    width: 15px;
    height: 15px;
}

/* ===================== 底部行动号召（CTA） ===================== */
.manual-cta {
    max-width: 1320px;
    margin: 0 auto 26px;
    padding: 0 40px;
}

.manual-cta-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 26px 30px;
    border-radius: var(--manual-radius-xl);
    background: var(--manual-blue-grad);
    color: #ffffff;
    box-shadow: 0 24px 48px -18px rgba(37, 99, 235, 0.45);
}

.manual-cta-deco {
    position: absolute;
    right: -36px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    color: #93C5FD;
    opacity: 0.28;
    pointer-events: none;
}

.manual-cta-copy {
    position: relative;
    min-width: 0;
}

.manual-cta-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.manual-cta-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.manual-cta-buttons {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.manual-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.manual-cta-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.manual-cta-btn-white {
    background: #ffffff;
    color: var(--manual-blue);
}

.manual-cta-btn-white:hover {
    color: var(--manual-blue-deep);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}

.manual-cta-btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.manual-cta-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* ===================== 右侧悬浮咨询按钮（保留原机制） ===================== */
.contact {
    display: flex;
    flex-flow: column;
    position: sticky;
    z-index: 999;
}

.purchase-consultation,
.telephone-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contact1 {
    display: flex;
    border-radius: 36px;
    text-orientation: upright;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    flex-direction: column;
    text-align: center;
}

.purchase {
    background: #FE661A;
    color: #FFFFFF;
}

.phone {
    background: #FFFFFF;
    color: var(--manual-orange);
    box-shadow: 0 0 6px 0 rgba(196, 196, 196, 0.40);
}

.promo-qrcode {
    background-image: url(face/images/manual/popup.png);
    background-size: 100% auto;
    background-repeat: no-repeat;
}

.promo-qrcode,
.phone-number {
    display: none;
}

.phone-number {
    display: none;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    background-image: url(face/images/manual/popup.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.number {
    font-weight: bold;
}

/* ================================================================
   三档响应式断点（沿用项目既有 1920 / 1280-1920 / <1280 体系）
   ================================================================ */

/* ---------- ≥1920px ---------- */
@media screen and (min-width: 1920px) {
    .banner {
        margin-top: 30px;
    }

    .main-content {
        margin-left: 18%;
        margin-right: 8%;
        margin-top: 42px;
    }

    .toc-wrapper {
        margin-top: 74px;
        margin-left: 2%;
    }

    .left-toc {
        margin-left: 2%;
    }

    .manual-section {
        padding: 24px 28px;
    }

    .manual-section > h1 {
        font-size: 28px;
    }

    .manual-section > h2 {
        font-size: 23px;
    }

    .manual-section > h3 {
        font-size: 20px;
    }

    .manual-section > h4 {
        font-size: 18px;
    }

    .manual-section p {
        font-size: 14px;
        line-height: 1.75;
    }

    .manual-section li {
        font-size: 14px;
    }

    .contact {
        padding-right: 50px;
        top: 50%;
        left: 75%;
    }

    .purchase-consultation,
    .telephone-contact {
        width: 242px;
        margin-top: 40px;
    }

    .contact1 {
        width: 64px;
        height: 168px;
        font-size: 18px;
        letter-spacing: 10px;
        line-height: 1.5;
        padding: 22px;
    }

    .purchase img,
    .phone img {
        width: 20px;
        margin: 0;
    }

    .promo-qrcode,
    .phone-number {
        width: 160px;
        margin-right: 10px;
    }

    .promo-qrcode img {
        width: 94%;
        height: auto;
    }

    .phone-number {
        width: 160px;
        height: 104px;
    }

    .number {
        font-size: 16px;
        margin: 0;
        line-height: 2;
        letter-spacing: 1px;
    }

    .time {
        font-size: 12px;
        margin: 0;
        letter-spacing: 1px;
    }
}

/* ---------- 1280px ~ 1920px ---------- */
@media screen and (min-width: 1280px) and (max-width: 1920px) {
    .banner {
        margin-top: 1.6vw;
    }

    .main-content {
        margin-left: 18vw;
        margin-right: 8vw;
        margin-top: 2.2vw;
    }

    .toc-wrapper {
        margin-top: 4vw;
        margin-left: 2%;
    }

    .left-toc {
        margin-left: 2%;
    }

    .manual-section p,
    .manual-section li {
        font-size: 0.75vw;
    }

    .contact {
        padding-right: 2.60vw;
        top: 50%;
        left: 75%;
    }

    .purchase-consultation,
    .telephone-contact {
        width: 12.60vw;
        margin-top: 2.08vw;
    }

    .contact1 {
        width: 3.33vw;
        height: 8.75vw;
        font-size: 0.94vw;
        letter-spacing: 0.52vw;
        line-height: 1.5;
        padding: 1.15vw;
    }

    .purchase img,
    .phone img {
        width: 1.04vw;
        margin: 0;
    }

    .promo-qrcode,
    .phone-number {
        width: 8.33vw;
        margin-right: 0.52vw;
    }

    .promo-qrcode img {
        width: 94%;
        height: auto;
    }

    .phone-number {
        width: 8.33vw;
        height: 5.42vw;
    }

    .number {
        font-size: 0.83vw;
        margin: 0;
        line-height: 2;
        letter-spacing: 0.05vw;
    }

    .time {
        font-size: 0.63vw;
        margin: 0;
        letter-spacing: 0.05vw;
    }
}

/* ---------- <1280px ---------- */
@media screen and (max-width: 1280px) {
    .banner {
        margin-top: 13px;
    }

    .main-content {
        margin-left: 230px;
        margin-right: 100px;
        margin-top: 28px;
    }

    .toc-wrapper {
        margin-top: 54px;
        margin-left: 2%;
        width: 200px;
    }

    .left-toc {
        margin-left: 2%;
    }

    .manual-section > h2 {
        font-size: 19px;
    }

    .manual-section > h3 {
        font-size: 17px;
    }

    .manual-section > h4 {
        font-size: 16px;
    }

    .manual-section p,
    .manual-section li {
        font-size: 12px;
    }

    .contact {
        padding-right: 33px;
        top: 50%;
        left: 75%;
    }

    .purchase-consultation,
    .telephone-contact {
        width: 161px;
        margin-top: 27px;
    }

    .contact1 {
        width: 43px;
        height: 112px;
        font-size: 12px;
        letter-spacing: 7px;
        line-height: 1.5;
        padding: 15px;
    }

    .purchase img,
    .phone img {
        width: 13px;
        margin: 0;
    }

    .promo-qrcode,
    .phone-number {
        width: 107px;
        margin-right: 7px;
    }

    .promo-qrcode img {
        width: 94%;
        height: auto;
    }

    .phone-number {
        width: 107px;
        height: 69px;
    }

    .number {
        font-size: 11px;
        margin: 0;
        line-height: 2;
        letter-spacing: 1px;
    }

    .time {
        font-size: 8px;
        margin: 0;
        letter-spacing: 1px;
    }
}