/* ============================================================
   帮助中心共用样式（静态页 help/*.html）
   2026-11-06 建立，对应 doc/验收交付-20261106/方案书-03
   只放两类规则：① 配图 .hp-figure ② 顶栏回首页 .sd-home
   —— 不引入整份 css/side-drawer.css（会把抽屉遮罩/菜单规则带进静态页）
   ============================================================ */

/* ---------- ① 实拍配图 / 操作动画 ---------- */
.hp-figure {
    margin: 16px 0 20px;
    text-align: center;
}
.hp-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--hp-border, #dee2e6);
    border-radius: 8px;
    background: #fff;
}
.hp-figure figcaption {
    font-size: 12px;
    color: var(--hp-ink-2, #5c6773);
    line-height: 1.6;
    margin-top: 6px;
    text-align: center;
}
/* 手机竖屏实拍：保持 390px 原始尺寸，不与桌面截图同宽 */
.hp-figure-mobile img { width: 390px; }
/* 动画：单独给一点底色，避免 GIF 白边与页面白底混在一起 */
.hp-figure-gif img { box-shadow: 0 2px 10px rgba(13, 110, 253, .08); }

@media (max-width: 576px) {
    .hp-figure { margin: 12px 0 16px; }
    .hp-figure figcaption { text-align: left; padding: 0 2px; }
    .hp-figure-mobile img { width: 100%; }
}

@media print {
    .hp-figure { break-inside: avoid; page-break-inside: avoid; }
    .hp-figure img { max-width: 100% !important; border: 1px solid #bbb; }
    /* GIF 打印无意义：隐藏动图，保留图注并补一行说明 */
    .hp-figure-gif img { display: none; }
    .hp-figure-gif figcaption::after {
        content: "（操作动画请在线查看）";
        display: block;
        margin-top: 2px;
        font-size: 11px;
        color: #666;
    }
}

/* ---------- ② 顶栏左上角「回首页」：与抽屉 .sd-home 同款 ----------
   逐条对齐 css/side-drawer.css:118-136，图标为 bi-house-door-fill。
   注意：help/*.html 首屏内联 <style> 里另有一份同款规则，
   用于外链 CSS 到达前不出现无底色裸图标，改这里时两处同步。 */
.main-topbar .sd-home {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.main-topbar .sd-home:active { background: rgba(255, 255, 255, .26); }
/* 抽屉里没有键盘焦点样式，静态帮助页补上，无障碍不倒退 */
.main-topbar .sd-home:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 576px) {
    .main-topbar .sd-home { width: 34px; height: 34px; font-size: 18px; }  /* 对应 side-drawer.css:817-821 */
}
