/* Android 应用投屏手册 — 品牌入口等扩展样式 */
.help-brand-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

@media (min-width: 640px) {
    .help-brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .help-brand-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.help-brand-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.help-brand-card:hover {
    border-color: #ffb066;
    box-shadow: 0 8px 24px -8px rgba(255, 122, 0, 0.2);
    transform: translateY(-2px);
}

.help-brand-card--soon {
    border-style: dashed;
    background: #fafafa;
}

.help-brand-card--soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #d1d5db;
}

.help-brand-card--ref {
    border-color: #e5e7eb;
    background: #fff;
}

.help-brand-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #15803d;
}

.help-brand-card__badge--soon {
    background: #f3f4f6;
    color: #6b7280;
}

.help-brand-card__badge--ref {
    background: #fff5eb;
    color: #c2410c;
}

.help-cast-xiaomi-cta {
    margin: 1.25rem 0 1.5rem;
}

.help-cast-xiaomi-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.625rem 1.125rem;
    border-radius: 9999px;
    background: #ff7a00;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.help-cast-xiaomi-cta__btn:hover {
    background: #cc6200;
    color: #fff;
}

.help-brand-card__name {
    font-weight: 800;
    font-size: 1.125rem;
    color: #111827;
    margin-bottom: 0.35rem;
}

.help-brand-card__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.help-flow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.help-flow-steps span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #92400e;
    background: #fff5eb;
    border: 1px solid #ffe6cc;
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
}

.help-flow-steps.justify-center {
    justify-content: center;
}

.help-cast-checklist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 480px) {
    .help-cast-checklist {
        grid-template-columns: 1fr;
    }
}

.help-cast-checklist li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
}

.help-cast-checklist__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #fff5eb;
    color: #ff7a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.help-cast-checklist__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.help-cast-note {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
}

/* 投屏总览 — 顶部轮播 Banner */
.help-cast-banner {
    max-width: 56rem;
    margin: -0.5rem auto 1.75rem;
    padding: 0 1rem;
}

.help-cast-banner__frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 12px 40px -12px rgba(17, 24, 39, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.help-cast-banner__viewport {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.help-cast-banner__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.help-cast-banner__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.help-cast-banner__slide img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    user-select: none;
    -webkit-user-drag: none;
}

.help-cast-banner__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.help-cast-banner__frame:hover .help-cast-banner__btn,
.help-cast-banner__frame:focus-within .help-cast-banner__btn {
    opacity: 1;
}

@media (max-width: 639px) {
    .help-cast-banner__btn {
        opacity: 1;
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

.help-cast-banner__btn:hover {
    background: #fff;
    color: #ff7a00;
}

.help-cast-banner__btn--prev {
    left: 0.5rem;
}

.help-cast-banner__btn--next {
    right: 0.5rem;
}

.help-cast-banner__dots {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 0 0;
}

.help-cast-banner__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    padding: 0;
    background: #d1d5db;
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
}

.help-cast-banner__dot.is-active {
    width: 1.25rem;
    background: #ff7a00;
}

/* 投屏教程：章内辅编号「步骤 一、二…」；h3 为 4.1、4.2 式小节 */
@counter-style help-substep-cjk {
    system: fixed;
    symbols: 一 二 三 四 五 六 七 八 九 十 十一 十二 十三 十四 十五 十六 十七 十八 十九 二十;
    suffix: "";
}

.help-article--cast .help-steps {
    counter-reset: cast-substep;
}

.help-article--cast .help-steps > li {
    counter-increment: cast-substep;
    padding-left: 5.35rem;
}

.help-article--cast .help-steps > li::before {
    content: '步骤 ' counter(cast-substep, help-substep-cjk);
    width: auto;
    min-width: 4.85rem;
    padding: 0 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.help-article--cast .help-steps > li > .help-figure {
    margin-top: 1rem;
}

.help-article--cast h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 1.75rem 0 0.75rem;
}
