/* 狐狸视频静态落地页样式：页面框架、横幅、导航、内容与下载入口。 */

:root {
    --desktop-bg: #130609;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--desktop-bg);
}

.page-shell {
    position: relative;
    width: min(100vw, 430px);
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--desktop-bg);
}

.tjs-kuai-a .m-main { z-index: 5; }
.tjs-kuai-a .m-tabs { z-index: 10; }
.tjs-kuai-a .m-bottom { z-index: 20; }

* {
    margin: 0;
    padding: 0;
    -webkit-user-drag: none;
    user-select: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    width: 100%;
    height: 100%;
}

.mobile.tjs-kuai-a {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #FFF7EE;
    font-size: 0;
    container-type: inline-size;
    container-name: page;
}

/* —— 顶栏 —— */
.tjs-kuai-a .m-top {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
}

/* —— 顶部下载横幅：由 HTML/CSS 组成，不依赖整张切图 —— */
.app-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 21cqw;
    margin: 2% 2% 0;
    padding: 2.1cqw 3cqw;
    overflow: hidden;
    border-radius: 5.4cqw;
    background: linear-gradient(105deg, #b1060a 0%, #8f0105 100%);
    box-shadow:
        0 0 0 1px rgba(255, 167, 184, 0.28) inset,
        0 10px 20px rgba(73, 0, 20, 0.28);
    color: #FFF7EE;
    cursor: pointer;
}

.app-banner::before,
.app-banner::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.app-banner::before {
    right: 24%;
    bottom: -65%;
    width: 28cqw;
    height: 28cqw;
    border: 1.8cqw solid rgba(255, 128, 151, 0.15);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.app-banner::after {
    top: -50%;
    right: 10%;
    width: 18cqw;
    height: 180%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: rotate(23deg);
}

.app-banner__brand,
.app-banner__action {
    position: relative;
    z-index: 1;
}

.app-banner__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 2.2cqw;
}

.app-banner__icon {
    display: block;
    width: 13.2cqw;
    min-width: 56px;
    max-width: 60px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0.45cqw solid #FFE5B2;
    border-radius: 9px;
    box-shadow:
        0 0 0 0.8cqw rgba(255, 229, 178, 0.12) inset,
        0 2px 7px rgba(95, 53, 0, 0.28);
    object-fit: cover;
}

.app-banner__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
    transform: skewX(-6deg);
    transform-origin: left center;
    margin-left: 1.4cqw;
    white-space: nowrap;
}

.app-banner__title {
    color: #FFF7EE;
    font-size: 6.7cqw;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 2px rgba(94, 0, 28, 0.22);
}

.app-banner__subtitle {
    margin-top: 1.15cqw;
    color: #ffbd28;
    font-size: 4cqw;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(95, 20, 0, 0.28);
}

.app-banner__action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.app-banner__support {
    display: grid;
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    aspect-ratio: 1;
    place-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #FFE5B2;
    text-decoration: none;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.app-banner__support:active {
    transform: scale(0.96);
}

.app-banner__support:focus-visible {
    outline: 2px solid #FFF7EE;
    outline-offset: 3px;
}

.app-banner__support-icon {
    width: 42px;
    height: 42px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 360px) {
    .app-banner {
        min-height: 22cqw;
        padding-right: 2.3cqw;
        padding-left: 2.3cqw;
    }

    .app-banner__brand { gap: 1.6cqw; }

    .app-banner__title { font-size: 6.35cqw; }

    .app-banner__subtitle { font-size: 3.8cqw; }

    .app-banner__support {
        width: 12.5cqw;
        min-width: 44px;
    }
}

/* —— 分类导航：三个独立的代码化按钮 —— */
.tjs-kuai-a .m-tabs {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45cqw;
    flex-shrink: 0;
    width: calc(100% - 4%);
    margin: 1.6cqw 2% 7px;
    padding: 0.5cqw 1.4cqw;
    border-radius: 2.4cqw;
    background: linear-gradient(100deg, #5d0100, #4a0000);
}

.m-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 8.5cqw;
    gap: 0.9cqw;
    padding: 0.5cqw;
    border: 1px solid transparent;
    border-radius: 2cqw;
    background: transparent;
    color: #ffe5b2;
    cursor: pointer;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 3.7cqw;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(38, 0, 0, 0.46);
    transition: background 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.m-tab.is-active {
    border-color: rgba(255, 115, 108, 0.78);
    background: linear-gradient(105deg, #b1060a, #8f0105);
    box-shadow: 0 0 12px rgba(227, 35, 41, 0.14) inset;
}

.m-tab:active { transform: scale(0.97); }

.m-tab:focus-visible {
    outline: 2px solid #FFF7EE;
    outline-offset: 2px;
}

.m-tab__icon {
    width: 4.5cqw;
    height: 4.5cqw;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 360px) {
    .tjs-kuai-a .m-tabs {
        gap: 0.35cqw;
        padding: 0.45cqw 1.2cqw;
    }

    .m-tab {
        gap: 0.8cqw;
        font-size: 3.55cqw;
    }
}

/* —— 主区：可滚动 —— */
.tjs-kuai-a .m-main {
    position: relative;
    z-index: 5;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 calc(118px + env(safe-area-inset-bottom, 0px));
}

.m-page__scroller {
    width: 100%;
}

.m-panel {
    display: none;
    width: 100%;
}

.m-panel.is-active {
    display: block;
}

.m-panel__figure {
    position: relative;
    width: 100%;
    line-height: 0;
    padding: 0 2%;
    opacity: 1;
    transition: opacity 120ms ease;
}

.m-panel__figure.is-switching {
    opacity: 0.62;
}

.m-panel__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    pointer-events: none;
}

/* —— 底部下载按钮：距视口底部 30px 悬浮 —— */
.tjs-kuai-a .m-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 14;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.m-bottom .download {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 44px);
    min-height: 58px;
    padding: 10px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(105deg, #d90008 0%, #9e0406 100%);
    box-shadow:
        0 0 0 1px rgba(255, 224, 216, 0.52) inset,
        0 0 18px rgba(224, 30, 20, 0.9),
        0 0 38px rgba(160, 6, 10, 0.68),
        0 12px 24px rgba(85, 2, 4, 0.4);
    color: #FFF7EE;
    cursor: pointer;
    transform-origin: center bottom;
    transition: filter 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
    animation: cta-glow 2.25s ease-in-out infinite;
}

.m-bottom .download::before {
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.23), transparent 28%, transparent 70%, rgba(255, 255, 255, 0.16));
    content: "";
    pointer-events: none;
}

.m-bottom .download__inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
}

.m-bottom .download__text {
    color: #FFF7EE;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    font-size: clamp(14px, 4vw, 17px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(62, 2, 2, 0.48);
    white-space: nowrap;
}

.m-bottom .download:active {
    filter: brightness(0.98);
    transform: scale(0.97);
}

.m-bottom .download:focus-visible {
    outline: 3px solid #ffd0cb;
    outline-offset: 3px;
}

@keyframes cta-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 232, 225, 0.56) inset,
            0 0 28px rgba(235, 42, 28, 1),
            0 0 56px rgba(169, 8, 12, 0.78),
            0 12px 26px rgba(85, 2, 4, 0.44);
        transform: scale(1.055);
    }

    50% {
        box-shadow:
            0 0 0 1px rgba(255, 232, 225, 0.4) inset,
            0 0 12px rgba(224, 30, 20, 0.6),
            0 0 24px rgba(160, 6, 10, 0.44),
            0 8px 18px rgba(85, 2, 4, 0.32);
        transform: scale(0.945);
    }
}

@media (max-width: 390px) {
    .m-bottom .download {
        width: calc(100% - 34px);
        min-height: 54px;
        padding: 8px 15px;
    }

    .m-bottom .download__text {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .m-bottom .download {
        animation: none;
    }
}
