/* ====================================================================
   刷机教程统一版式（Help1 ~ Help5）
   --------------------------------------------------------------------
   改版目标只有一个：让教程「好读」。
     * 每页开头一句话说清「这篇解决什么问题」；
     * 步骤不再是挤在一起的大段文字，而是一步一张卡片（左边圆号）；
     * 重要提醒用四种颜色的提示块区分「注意 / 警告 / 危险 / 成功」；
     * 左侧常驻教程目录，随时能在 5 篇之间跳，底部有上一篇 / 下一篇。
   设计上沿用站内的浅蓝 + 浅紫配色，不引入新的视觉语言；
   类名统一 help- 前缀，避免与 main.css / rom.css 的既有类名冲突。
   ==================================================================== */

/* ---------------------------- 顶部导语 ---------------------------- */
.help-hero {
    border: 1px solid #c0ddff;
    background: linear-gradient(135deg, #eef6ff, #f7f3ff);
    padding: 22px 28px 20px;
}

    .help-hero .kicker {
        font-size: 12px;
        letter-spacing: 2px;
        color: #7c5cff;
    }

    .help-hero h2 {
        margin: 8px 0 10px;
        font-size: 25px;
        font-weight: normal;
        line-height: 1.5;
        color: #2b2b4b;
    }

    .help-hero .lead {
        margin: 0;
        font-size: 14px;
        line-height: 2.05;
        color: #4a4a4a;
    }

    .help-hero .chips {
        margin-top: 12px;
    }

    .help-hero .chip {
        display: inline-block;
        margin: 4px 8px 0 0;
        padding: 3px 12px;
        border: 1px solid #c0ddff;
        border-radius: 20px;
        background: #fff;
        font-size: 12px;
        color: #4a6fa5;
    }

/* ------------------------ 左侧目录 + 正文两栏 ------------------------ */
.help-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 14px;
}

.help-aside {
    flex: 0 0 258px;
    position: sticky;
    top: 10px;
    border: 1px solid #c0ddff;
    background: linear-gradient(180deg, #f7fbff, #fff);
}

    .help-aside .t {
        padding: 8px 0 8px 18px;
        background: linear-gradient(90deg, #cbe3ff, rgba(203, 227, 255, .15));
        font-size: 15px;
        color: #33507e;
    }

    .help-aside ol {
        margin: 0;
        padding: 8px 12px 8px 34px;
        list-style-type: decimal;
    }

        .help-aside ol li {
            margin: 2px 0;
            padding: 6px 8px;
            font-size: 13px;
            line-height: 1.7;
            border-radius: 6px;
        }

            .help-aside ol li.on {
                background: #efe9ff;
                border: 1px solid #d3c0ff;
                font-weight: bold;
            }

                .help-aside ol li.on a {
                    color: #5b32c9;
                }

    .help-aside .pager {
        border-top: 1px solid #e2ecf8;
        padding: 10px 14px;
        font-size: 12.5px;
        line-height: 2.1;
        color: #666;
    }

        .help-aside .pager a {
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.help-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------------------------- 正文分节 ---------------------------- */
.help-section {
    border: 1px solid #d3c0ff;
    background: #fff;
    margin-bottom: 14px;
}

    .help-section > h3 {
        margin: 0;
        padding: 10px 20px;
        background: linear-gradient(90deg, #e6ddff, #f8f5ff);
        border-bottom: 1px solid #e6ddff;
        font-size: 17px;
        font-weight: normal;
        color: #4a2e8a;
    }

    .help-section > .inner {
        padding: 14px 22px 18px;
        font-size: 14px;
        line-height: 2.1;
        color: #383838;
    }

    .help-section > .inner > :first-child {
        margin-top: 0;
    }

    .help-section > .inner > :last-child {
        margin-bottom: 0;
    }

    .help-section > .inner p {
        margin: 10px 0;
    }

    .help-section > .inner ul,
    .help-section > .inner ol {
        margin: 10px 0;
        padding-left: 24px;
    }

    .help-section > .inner li {
        margin: 6px 0;
    }

/* ---------------------------- 步骤卡片 ---------------------------- */
.help-steps {
    padding: 2px 20px 16px;
}

.help-step {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed #e6e2f5;
}

    .help-step:last-child {
        border-bottom: 0;
        padding-bottom: 6px;
    }

    .help-step .no {
        flex: 0 0 38px;
        height: 38px;
        margin-top: 2px;
        border-radius: 50%;
        background: linear-gradient(135deg, #7c5cff, #b18cff);
        color: #fff;
        font: bold 17px/38px 'Microsoft YaHei';
        text-align: center;
    }

    .help-step .body {
        flex: 1 1 auto;
        min-width: 0;
    }

        .help-step .body h4 {
            margin: 4px 0 6px;
            font-size: 16px;
            font-weight: bold;
            color: #2b2b4b;
        }

        .help-step .body p {
            margin: 6px 0;
            font-size: 14px;
            line-height: 2.1;
            color: #383838;
        }

        .help-step .body ul,
        .help-step .body ol {
            margin: 6px 0;
            padding-left: 22px;
        }

        .help-step .body li {
            margin: 4px 0;
            line-height: 2.05;
        }

/* ---------------------------- 图片 ---------------------------- */
.help-fig {
    margin: 12px 0 4px;
}

    .help-fig a {
        display: inline-block;
        padding: 4px;
        border: 1px solid #ddd;
        background: #fff;
    }

        .help-fig a:hover {
            border-color: #9365ff;
        }

    .help-fig img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .help-fig .cap {
        margin-top: 6px;
        font-size: 12px;
        color: #888;
    }

/* ---------------------------- 提示块 ---------------------------- */
.help-callout {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 5px solid #6aa9ff;
    font-size: 14px;
    line-height: 2.05;
}

    .help-callout .t {
        display: block;
        margin-bottom: 4px;
        font-weight: bold;
    }

    .help-callout.info {
        border-color: #6aa9ff;
        background: #f2f7ff;
        color: #2b4a7a;
    }

    .help-callout.ok {
        border-color: #37c07a;
        background: #f1fbf6;
        color: #0d7a51;
    }

    .help-callout.warn {
        border-color: #ffb300;
        background: #fffaea;
        color: #7a5b00;
    }

    .help-callout.danger {
        border-color: #ff5b4a;
        background: #fff1ef;
        color: #a32b1e;
    }

    .help-callout ul,
    .help-callout ol {
        margin: 6px 0 0;
        padding-left: 22px;
    }

/* ---------------------------- 表格 ---------------------------- */
.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

    .help-table th,
    .help-table td {
        border: 1px solid #e2e6f0;
        padding: 9px 12px;
        text-align: left;
        line-height: 1.95;
        vertical-align: top;
    }

    .help-table th {
        background: #f2f6ff;
        color: #33507e;
        font-weight: bold;
        white-space: nowrap;
    }

    .help-table tr:nth-child(even) td {
        background: #fbfcff;
    }

/* ------------------------ 下载按钮 / 重点数字 ------------------------ */
.help-dl {
    display: inline-block;
    margin: 4px 8px 4px 0;
    padding: 5px 16px;
    border: 1px solid #c0ddff;
    border-radius: 6px;
    background: linear-gradient(180deg, #f7fbff, #fff);
    font-size: 13px;
    color: #2951d6;
}

    .help-dl:hover {
        border-color: #9365ff;
        background: #f3edff;
        text-decoration: none;
    }

.help-key {
    padding: 1px 6px;
    border-radius: 4px;
    background: #fff3d6;
    border: 1px solid #ffd066;
    color: #8a5a00;
    font-weight: bold;
}

/* ---------------------------- 底部翻页 ---------------------------- */
.help-pager-bottom {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

    .help-pager-bottom a {
        flex: 1 1 0;
        padding: 12px 16px;
        border: 1px solid #c0ddff;
        background: linear-gradient(180deg, #f7fbff, #fff);
        font-size: 13px;
        line-height: 1.9;
    }

        .help-pager-bottom a:hover {
            border-color: #9365ff;
            text-decoration: none;
        }

        .help-pager-bottom a .dir {
            display: block;
            font-size: 12px;
            color: #888;
        }

        .help-pager-bottom a.next {
            text-align: right;
        }

    .help-pager-bottom .disabled {
        flex: 1 1 0;
        border: 1px dashed #e2e6f0;
    }

/* ---------------------------- 窄屏 ---------------------------- */
@media (max-width: 1000px) {
    .help-layout {
        display: block;
    }

    .help-aside {
        position: static;
        margin-bottom: 14px;
    }

    .help-pager-bottom {
        display: block;
    }

        .help-pager-bottom .disabled {
            display: none;
        }

        .help-pager-bottom a {
            display: block;
            margin-bottom: 10px;
        }
}
