/* 帮助中心 /jc 与教程详情页(2026-09-08 重构)
   - 只服务 SinglePage/Jc.html 与 SinglePage/JcDetail.html,类名全部 hc- 前缀,不与站点全局样式重名
   - 颜色全部取站点既有 token:唯一红 #E60027、行动按钮近黑 #242424、页面底 #F1F1F2
   - 旧的 jc.css 仍被 Policy.html 使用,不动它 */

.hc-page {
    --hc-red: #e60027;
    --hc-black: #050505;
    --hc-btn: #242424;
    --hc-btn-hover: #353535;
    --hc-text: #1a1a1a;
    --hc-text-2: #333;
    --hc-text-3: #666;
    --hc-text-4: #999;
    --hc-text-5: #aaa;
    --hc-line: #f0f0f0;
    --hc-border: #d8d8d8;
    --hc-card: #fff;
    --hc-chip: #f1f1f2;
    --hc-sticky: 122px;
    --hc-anchor: 128px;
    color: var(--hc-text);
    line-height: 1.5;
}

.hc-page *,
.hc-page *::before,
.hc-page *::after { box-sizing: border-box; }

.hc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ───── 黑带:承接站点黑色头部,全页唯一的重色块 ───── */

.hc-hero {
    background: var(--hc-black);
    color: #fff;
    padding: 30px 0 28px;
}

.hc-hero-crumbs {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.hc-hero-crumbs a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .15s;
}

.hc-hero-crumbs a:hover { color: #fff; }

.hc-hero-crumbs span[aria-hidden] { margin: 0 6px; color: rgba(255, 255, 255, .3); }

.hc-hero-title {
    margin: 8px 0 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0;
}

.hc-hero-lead {
    max-width: 640px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}

/* 搜索框与站点桌面头部的搜索框同一制式:灰底输入 + 右侧红色方块按钮 */
.hc-search {
    display: flex;
    width: min(560px, 100%);
    height: 44px;
    margin: 18px 0 0;
}

.hc-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 6px 0 0 6px;
    background: var(--hc-chip);
    color: var(--hc-text);
    font: inherit;
    font-size: 14px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

.hc-search input::placeholder { color: #767676; }

.hc-search input:focus-visible { box-shadow: inset 0 0 0 2px var(--hc-red); }

.hc-search input::-webkit-search-cancel-button { cursor: pointer; }

.hc-search button {
    flex: 0 0 48px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--hc-red);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: filter .15s;
}

.hc-search button:hover { filter: brightness(1.1); }

.hc-search button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 平台胶囊:只在没有侧栏的窄屏出现,是手机上的唯一导航 */
.hc-chips {
    display: none;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0 0 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.hc-chips::-webkit-scrollbar { display: none; }

.hc-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px 0 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background-color .15s, border-color .15s;
}

.hc-chip i {
    width: 14px;
    margin-right: 7px;
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, .9);
}

.hc-chip span {
    margin-left: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.hc-chip:hover { color: #fff; background: rgba(255, 255, 255, .18); }

.hc-chip.is-active {
    border-color: transparent;
    background: var(--hc-red);
    color: #fff;
}

.hc-chip.is-active span { color: rgba(255, 255, 255, .85); }

.hc-chip.is-empty { opacity: .45; }

.hc-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ───── 主体:站点首页同款「侧栏 + 内容」栅格 ───── */

.hc-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding-top: 20px;
    padding-bottom: 40px;
}

.hc-side {
    position: sticky;
    top: var(--hc-sticky);
    max-height: calc(100vh - var(--hc-sticky) - 12px);
    overflow-y: auto;
    scrollbar-width: none;
}

.hc-side::-webkit-scrollbar { display: none; }

.hc-side-card {
    background: var(--hc-card);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* 侧栏行:与首页分类侧栏同一规格(46px 行高 / 24px 图标 / 选中红底白字) */
.hc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc-nav li { margin: 0 0 3px; }

.hc-nav li:last-child { margin-bottom: 0; }

.hc-nav a {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--hc-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .12s, color .12s;
}

.hc-nav .ico {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    font-size: 17px;
    color: var(--hc-accent, #8f95a3);
    transition: color .12s;
}

.hc-nav .name {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hc-nav .num {
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: 12px;
    color: var(--hc-text-5);
}

.hc-nav .more {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    font-size: 10px;
    color: #c6cad2;
}

.hc-nav a:hover { color: var(--hc-text); background: rgba(230, 0, 39, .08); }

.hc-nav a.is-active { color: #fff; background: var(--hc-red); }

.hc-nav a.is-active .ico,
.hc-nav a.is-active .more { color: #fff; }

.hc-nav a.is-active .num { color: rgba(255, 255, 255, .85); }

.hc-nav a.is-empty { opacity: .45; }

.hc-nav a:focus-visible { outline: 2px solid var(--hc-red); outline-offset: 2px; }

.hc-side-help {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f1f7;
}

.hc-side-help-title {
    margin: 0 0 2px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #9aa0ab;
}

.hc-side-help a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: #555764;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.hc-side-help .ico {
    width: 18px;
    margin-right: 10px;
    font-size: 13px;
    text-align: center;
    color: #b0b4bd;
    transition: color .15s;
}

.hc-side-help .arrow {
    margin-left: auto;
    font-size: 10px;
    color: #ccd0d8;
    transition: color .15s;
}

.hc-side-help a:hover { color: var(--hc-red); background: rgba(230, 0, 39, .08); }

.hc-side-help a:hover .ico,
.hc-side-help a:hover .arrow { color: var(--hc-red); }

/* ───── 内容:按平台分组的教程列表 ───── */

.hc-main { min-width: 0; }

.hc-result {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--hc-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    font-size: 14px;
    color: var(--hc-text-3);
}

.hc-result strong { color: var(--hc-text); font-weight: 600; }

.hc-link {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hc-red);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.hc-link:hover { text-decoration: underline; }

.hc-empty {
    padding: 28px 24px;
    border-radius: 12px;
    background: var(--hc-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.hc-empty strong {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hc-text);
}

.hc-empty p {
    max-width: 560px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--hc-text-3);
}

.hc-empty p a { color: var(--hc-red); text-decoration: underline; text-underline-offset: 3px; }

.hc-group {
    margin: 0 0 28px;
    scroll-margin-top: var(--hc-anchor);
}

.hc-group:last-child { margin-bottom: 0; }

.hc-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin: 0 0 6px;
}

/* 区块标题:站点详情页的「红色竖条 + 粗标题」制式 */
.hc-group-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hc-text);
}

.hc-group-title::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: 16px;
    margin-right: 10px;
    border-radius: 2px;
    background: var(--hc-red);
}

.hc-group-count {
    font-size: 13px;
    color: var(--hc-text-4);
}

.hc-group-shop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-size: 14px;
    color: #767676;
    text-decoration: none;
    transition: color .15s;
}

.hc-group-shop i { font-size: 10px; }

.hc-group-shop:hover { color: var(--hc-red); }

.hc-group-intro {
    margin: 0 0 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--hc-text-3);
}

.hc-list {
    overflow: hidden;
    border-radius: 12px;
    background: var(--hc-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.hc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--hc-line);
    color: inherit;
    text-decoration: none;
    transition: background-color .15s;
}

.hc-row:first-child { border-top: 0; }

.hc-row:hover { color: inherit; background: #fafafa; }

.hc-row:focus-visible { outline: 2px solid var(--hc-red); outline-offset: -2px; }

.hc-row-main {
    flex: 1 1 auto;
    min-width: 0;
}

.hc-row-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--hc-text);
    transition: color .15s;
}

.hc-row:hover .hc-row-title { color: var(--hc-red); }

.hc-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.hc-kind {
    font-size: 12px;
    color: var(--hc-text-4);
}

.hc-kind + .hc-tag { margin-left: 2px; }

.hc-tag {
    display: inline-block;
    padding: 0 7px;
    border-radius: 4px;
    background: var(--hc-chip);
    color: var(--hc-text-3);
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
}

.hc-row-more {
    flex: 0 0 auto;
    font-size: 12px;
    color: #c6cad2;
    transition: color .15s;
}

.hc-row:hover .hc-row-more { color: var(--hc-red); }

.hc-row.is-hidden,
.hc-group.is-hidden { display: none; }

/* 行动按钮:站点规矩,主按钮是近黑不是红 */
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--hc-btn);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s;
}

.hc-btn:hover { color: #fff; background: var(--hc-btn-hover); }

.hc-btn:focus-visible { outline: 2px solid var(--hc-red); outline-offset: 2px; }

/* ───── 详情页 ───── */

.hc-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
    padding-top: 20px;
    padding-bottom: 40px;
}

.hc-article {
    padding: 28px 32px 30px;
    border-radius: 14px;
    background: var(--hc-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.hc-crumbs {
    font-size: 12px;
    color: var(--hc-text-4);
}

.hc-crumbs a {
    color: var(--hc-text-3);
    text-decoration: none;
    transition: color .15s;
}

.hc-crumbs a:hover { color: var(--hc-red); }

.hc-crumbs span[aria-hidden] { margin: 0 6px; color: #c6cad2; }

.hc-article-title {
    margin: 12px 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hc-text);
}

.hc-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--hc-line);
    font-size: 12px;
    color: var(--hc-text-4);
}

.hc-article-meta .hc-tag + .hc-date { margin-left: 4px; }

.hc-video { margin: 0 0 22px; }

.hc-video h2,
.hc-side-title {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hc-text);
}

.hc-video h2::before,
.hc-side-title::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--hc-red);
}

.hc-video video,
.hc-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.hc-video video { object-fit: contain; }

.hc-prose {
    font-size: 15px;
    line-height: 1.9;
    color: var(--hc-text-2);
    overflow-wrap: anywhere;
}

.hc-prose:empty::before {
    content: "这篇教程以视频或截图为主,文字步骤还没整理。看完仍有疑问,直接联系客服。";
    color: var(--hc-text-4);
}

.hc-prose p { margin: 0 0 14px; }

/* 正文小标题:上游标题里常夹着链接和 emoji,不能用 flex(会把文字拆成多段错位),
   红条改绝对定位,标题按普通块级文本换行 */
.hc-prose h2 {
    position: relative;
    margin: 26px 0 12px;
    padding-left: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hc-text);
}

.hc-prose h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(.7em - 8px);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--hc-red);
}

.hc-prose h3 {
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--hc-text);
}

.hc-prose h4 {
    margin: 16px 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--hc-text);
}

.hc-prose img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 14px auto;
    border-radius: 8px;
    background: var(--hc-chip);
}

.hc-prose video,
.hc-prose iframe { max-width: 100%; border-radius: 8px; }

.hc-prose a {
    color: var(--hc-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s;
}

.hc-prose a:hover { color: var(--hc-red); }

.hc-prose ul,
.hc-prose ol { margin: 0 0 14px; padding-left: 22px; }

.hc-prose li { margin: 0 0 4px; }

.hc-prose table {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

.hc-prose th,
.hc-prose td {
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.hc-prose th { background: #f7f7f8; font-weight: 600; }

.hc-prose code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--hc-chip);
    font-size: 13px;
}

.hc-prose pre {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--hc-chip);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}

/* 提示块:沿用站点详情页的米黄提示条制式 */
.hc-prose blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid #a75600;
    border-radius: 6px;
    background: #f6f3eb;
    color: #a75600;
}

.hc-prose blockquote p:last-child { margin-bottom: 0; }

.hc-shop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin: 26px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--hc-line);
    border-radius: 12px;
    background: #fafafa;
}

.hc-shop-text {
    flex: 1 1 240px;
    min-width: 0;
}

.hc-shop-text strong {
    display: block;
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hc-text);
}

.hc-shop-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--hc-text-3);
}

.hc-shop-text a {
    color: var(--hc-text-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-shop-text a:hover { color: var(--hc-red); }

.hc-article-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    margin: 22px 0 0;
    font-size: 13px;
}

.hc-article-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hc-text-3);
    text-decoration: none;
    transition: color .15s;
}

.hc-article-actions a i { font-size: 10px; }

.hc-article-actions a:hover { color: var(--hc-red); }

.hc-detail-side {
    position: sticky;
    top: var(--hc-sticky);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - var(--hc-sticky) - 12px);
    overflow-y: auto;
    scrollbar-width: none;
}

.hc-detail-side::-webkit-scrollbar { display: none; }

.hc-detail-side .hc-side-title {
    margin: 4px 0 8px;
    padding: 0 4px;
    font-size: 15px;
}

.hc-related a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--hc-text-2);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.hc-related a:hover { color: var(--hc-red); background: rgba(230, 0, 39, .08); }

.hc-side-empty {
    margin: 0;
    padding: 6px 10px 10px;
    font-size: 13px;
    color: var(--hc-text-4);
}

/* ───── 响应式 ───── */

@media (max-width: 1199.98px) {
    .hc-body { grid-template-columns: 230px minmax(0, 1fr); }
    .hc-detail { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 991.98px) {
    .hc-page { --hc-anchor: 150px; }

    .hc-body,
    .hc-detail { display: block; }

    .hc-side { display: none; }

    .hc-chips { display: flex; }

    .hc-detail-side {
        position: static;
        max-height: none;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .hc-page { --hc-anchor: 118px; }

    .hc-hero { padding: 18px 0 18px; }

    /* 手机头部已有「‹ 首页」返回栏,黑带里的面包屑是重复信息 */
    .hc-hero-crumbs { display: none; }

    .hc-hero-title { font-size: 22px; margin-top: 0; }

    .hc-hero-lead { font-size: 13px; }

    .hc-search { height: 42px; margin-top: 14px; }

    .hc-search input { font-size: 16px; } /* iOS 聚焦不放大 */

    .hc-body { padding-top: 14px; padding-bottom: 28px; }

    .hc-group { margin-bottom: 22px; }

    .hc-group-title { font-size: 18px; }

    .hc-group-intro { margin-left: 0; font-size: 13px; }

    .hc-row { gap: 10px; padding: 13px 14px; }

    .hc-row-title { font-size: 14px; }

    .hc-article { padding: 18px 16px 22px; border-radius: 12px; }

    .hc-article-title { font-size: 20px; }

    .hc-prose { font-size: 14px; line-height: 1.85; }

    .hc-prose table { display: block; overflow-x: auto; }

    .hc-shop { padding: 14px; }

    .hc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hc-page *,
    .hc-page *::before,
    .hc-page *::after { transition: none !important; }
}
