/* Home only. Desktop keeps its existing hero, carousel and scroll animation. */
@media (max-width: 767px) {
    .home-page {
        background: #f5f5f5;
    }

    /* 切换条：移动端样式与应用场景页 Tabs 保持一致（纯黑底、文档流、蓝色下划线激活态）。 */
    .home-page #header-placeholder { height: 56px; }
    html.app-mode .home-page #header-placeholder { height: 0; }
    .home-page #detail-tabbar {
        display: block;
        position: sticky;
        top: 56px;
        background: #000;
        border: 0;
        backdrop-filter: none;
    }
    html.app-mode .home-page #detail-tabbar { top: 0; }
    .home-page #detail-tabbar > div { padding: 0 8px; }
    .home-page #detail-tabbar > div > div { justify-content: flex-start; gap: 4px; height: auto; overflow-x: auto; }
    .home-page #detail-tabbar button {
        flex: 1 0 auto;
        color: #aaa;
        min-height: 48px;
        padding: 10px 8px;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .home-page #detail-tabbar button.text-white,
    .home-page #detail-tabbar button[aria-pressed="true"] { color: #fff; }
    .home-page main { padding-top: 0; }
    html.app-mode .home-page main { padding-top: 0; }

    /* 技术参数 / 语音指令：内容贴近切换条（减少手机端顶部留白）。 */
    .home-page #specs,
    .home-page #voice-commands { padding-top: 16px; }
    .home-page #specs > div > div:first-child { padding-top: 8px; }
    /* 语音指令大标题：与切换条间距 24px，与「设备控制指令」间距 24px。 */
    .home-page #voice-commands .voice-title-block { padding-top: 8px; padding-bottom: 12px; }

    /* Keep navigation usable, including 320px phones. */
    .home-page #site-nav > div:first-child { padding-inline: 16px; }
    .home-page #header-logo { height: 20px; max-width: 86px; }
    .home-page #lang-toggle { padding-inline: 8px; gap: 0; }
    .home-page #lang-toggle svg { display: none; }
    .home-page #mobile-menu-btn { margin-left: 8px; }

    .home-page .detail-hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 750 / 924;
        padding: 0;
    }
    .home-page .detail-hero-video { object-position: 40% center; }
    .home-page .home-hero-shade { display: block; background: rgb(0 0 0 / 40%); }
    .home-page .home-hero-copy {
        position: absolute;
        inset: 40% 16px auto;
    }
    .home-page .home-hero-copy h1 {
        margin: 0;
        font-size: clamp(24px, 8vw, 32px);
        line-height: 1.2;
        font-weight: 600;
        letter-spacing: 0;
    }
    .home-page .home-hero-copy p {
        margin: 16px 0 0;
        font-size: 22px;
        line-height: 30px;
        font-weight: 400;
    }
    .home-page .home-hero-copy a {
        min-height: 44px;
        min-width: 140px;
        margin: 36px 0 0;
        padding: 9px 32px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        border-color: #fff;
        box-shadow: none;
        background: rgb(255 255 255 / 7%);
    }

    .home-page #intro {
        padding: 24px 16px;
        background: #f5f5f5;
    }
    .home-page .home-feature-tabs,
    .home-page .home-feature-description { display: none; }
    .home-page #aiqa-carousel {
        margin-top: 0;
        overflow: visible;
        scroll-behavior: auto;
    }
    .home-page #aiqa-track {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        padding: 0;
    }
    .home-page .aiqa-card {
        width: 100%;
        aspect-ratio: auto;
        opacity: 1;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 6px rgb(0 0 0 / 6%);
    }
    .home-page .aiqa-card > img,
    .home-page .aiqa-card > video {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 0;
    }
    .home-page #aiqa-video-mute { display: none; }
    .home-page .home-feature-copy[hidden] {
        display: block;
        padding: 16px;
    }
    .home-page .home-feature-copy h2 {
        font-size: 17px;
        font-weight: 600;
        line-height: 26px;
        color: #333;
    }
    .home-page .home-feature-copy p {
        margin-top: 8px;
        font-size: 14px;
        font-weight: 400;
        line-height: 24px;
        color: #444;
        overflow-wrap: break-word;
    }

    .home-page .home-product-story { padding: 28px 16px 0; }
    .home-page .home-product-story h2 { font-size: 18px; line-height: 28px; }
    .home-page .home-product-story p {
        margin-top: 16px;
        font-size: 14px;
        line-height: 24px;
        font-weight: 400;
    }
    .home-page .home-hands-free {
        margin: 20px -16px 0;
        border-radius: 0;
    }
    .home-page .home-hands-free img { display: block; aspect-ratio: 16 / 9; }
    .home-page .home-wide-title { margin-top: 24px; }
    .home-page .home-packaging { padding: 32px 0; }
    .home-page .home-packaging h2 { font-size: 18px; line-height: 28px; }
    .home-page .home-packaging img { margin-top: 20px; border-radius: 16px; }
    .home-page .wide-angle-stage {
        /* Animate on entry in normal flow, without an extra black scroll spacer. */
        height: auto;
        width: auto;
        margin: 8px -16px 0;
        padding: 0;
    }
    .home-page .wide-angle-stage::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(to bottom, transparent 5%, #fff 75%);
        opacity: var(--wide-stage-white, 0);
    }
    .home-page .wide-angle-sticky {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 1.75 / 1;
        z-index: 1;
    }
    html.app-mode .home-page .wide-angle-sticky { top: 0; }
    .home-page .wide-angle-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 64%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        transform: translate3d(-50%, -50%, 0);
        transform-origin: center center;
        will-change: width;
    }
    .home-page .wide-angle-mask { display: block; pointer-events: none; }
    .home-page .wide-angle-counter {
        display: flex;
        font-size: clamp(36px, 12vw, 56px);
        line-height: 1;
        font-variant-numeric: tabular-nums;
        text-shadow: 0 3px 14px rgb(0 0 0 / 35%);
        pointer-events: none;
    }

    /* 技术参数 / 语音指令两个视图的大标题：移动端加大字号（高于内联基础规则）。 */
    .home-page h2.home-section-title.view-section-title {
        font-size: 30px;
        line-height: 1.35;
    }

    /* 语音指令表格：移动端转为卡片列表（隐藏表头行，每行一张白色卡片）。 */
    .home-page #voice-commands h3 {
        font-size: 20px;
        line-height: 28px;
    }
    .home-page #voice-commands h3 + p {
        font-size: 14px;
        line-height: 24px;
    }
    .home-page #voice-commands h4 {
        font-size: 18px;
        line-height: 26px;
    }
    .home-page #voice-commands .overflow-x-auto {
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }
    .home-page #voice-commands table { display: block; min-width: 0; }
    .home-page #voice-commands thead { display: none; }
    .home-page #voice-commands tbody { display: block; }
    .home-page #voice-commands tbody tr {
        display: block;
        padding: 14px 18px;
        margin: 0 0 20px;
        border-radius: 12px;
        border-top: 0;
        background-color: #fff;
        box-shadow: 0 1px 3px rgb(17 24 39 / 6%);
    }
    .home-page #voice-commands tbody tr:last-child { margin-bottom: 0; }
    .home-page #voice-commands tbody td { display: block; padding: 0; }
    .home-page #voice-commands tbody td:nth-child(1) {
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        color: #111827;
    }
    .home-page #voice-commands tbody td:nth-child(2) {
        margin-top: 6px;
        font-size: 15px;
        line-height: 24px;
    }
    .home-page #voice-commands tbody td:nth-child(3),
    .home-page #voice-commands tbody td:nth-child(4) {
        margin-top: 4px;
        font-size: 13px;
        line-height: 22px;
        color: #6b7280;
    }

    .home-page footer { padding: 28px 0 32px; border: 0; }
    .home-page footer > div { padding: 0 16px; }
    .home-page .site-footer-main { gap: 24px; margin-bottom: 0; }
    .home-page #footer-logo { height: 30px; }
    .home-page .site-footer-links { gap: 16px 20px; font-size: 13px; line-height: 22px; }
    .home-page .site-footer-links a[href="shop.html"] { display: none; }
    .home-page .site-footer-links a[href="support.html"] { flex-basis: 100%; text-align: center; }
    .home-page .site-footer-social {
        width: 100%;
        padding-top: 20px;
        border-top: 1px solid #272727;
        justify-content: center;
        gap: 20px;
    }
    /* Keep the edge social QR popovers inside a narrow viewport. */
    .home-page .site-footer-social > .group:first-child > .absolute { left: 0; }
    .home-page .site-footer-social > .group:last-child > .absolute { right: 0; }
    .home-page .site-footer-main + div { display: none; }
    .home-page .site-footer-legal {
        margin-top: 40px;
        font-size: 12px;
        line-height: 22px;
        text-align: center;
    }
    .home-page .site-footer-policy { flex-direction: column; gap: 16px; margin-top: 20px; }
    .home-page .site-footer-policy > * { margin: 0; }
}

@media (max-width: 359px) {
    .home-page .site-footer-links { gap: 16px 12px; }
    .home-page .site-footer-social { gap: 14px; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .home-page .wide-angle-stage { height: auto; }
    .home-page .wide-angle-sticky { position: relative; top: 0; }
    .home-page .wide-angle-frame { width: 100%; will-change: auto; }
}
