.powell-app-download-page {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - var(--ls-header-height));
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 56px 0 28px;
    overflow: hidden;
    color: var(--ls-text);
}

.powell-app-download-showcase {
    position: relative;
    overflow: visible;
    padding: 16px 20px 18px;
    text-align: center;
}

.powell-app-download-sprite {
    position: absolute;
    top: -24px;
    left: 50%;
    z-index: 0;
    display: block;
    width: min(960px, 100%);
    height: 560px;
    opacity: .78;
    pointer-events: none;
    transform: translateX(-50%);
}

.powell-app-download-showcase h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ls-text);
    font-size: 40px;
    line-height: 1.45;
    letter-spacing: 0;
}

.powell-app-download-showcase p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 12px auto 0;
    color: var(--ls-text-secondary);
    font-size: 20px;
    line-height: 1.6;
}

.powell-app-download-preview {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    height: 430px;
    margin: 32px auto 0;
    overflow: visible;
}

.powell-app-download-preview-item {
    position: absolute;
    top: 22px;
    left: 50%;
    flex: 0 0 auto;
    margin: 0;
    opacity: 0;
    transition: transform .45s ease, opacity .45s ease;
}

.powell-app-download-preview-item img {
    display: block;
    width: auto;
    height: 390px;
    object-fit: contain;
}

.powell-app-download-preview-item.is-pos-0 {
    z-index: 2;
    opacity: 1;
    transform: translate(-166%, 44px) scale(.88);
}

.powell-app-download-preview-item.is-pos-1 {
    z-index: 4;
    opacity: 1;
    transform: translate(-50%, 0) scale(1.08);
}

.powell-app-download-preview-item.is-pos-2 {
    z-index: 2;
    opacity: 1;
    transform: translate(70%, 44px) scale(.88);
}

.powell-app-download-preview-item.is-pos-3 {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(190%, 72px) scale(.76);
}

.powell-app-download-preview-item.is-pos-0 img {
    height: 360px;
}

.powell-app-download-preview-item.is-pos-3 img {
    height: 330px;
}

.powell-app-download-preview-item.is-pos-2 img {
    height: 360px;
}

.powell-app-download-preview-item.is-wide {
    margin: 0;
}

.powell-app-download-preview-item.is-wide img {
    width: min(780px, 100%);
    height: auto;
    max-height: 390px;
}

.powell-app-download-client {
    position: relative;
    z-index: 8;
    padding: 8px 20px 0;
    text-align: center;
}

.powell-app-download-section-head h2 {
    margin: 0;
    color: var(--ls-text);
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0;
}

.powell-app-download-section-head p {
    max-width: 760px;
    margin: 8px auto 0;
    color: var(--ls-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.powell-app-download-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-top: 42px;
    overflow: visible;
}

.powell-app-download-card {
    position: relative;
    display: flex;
    width: 160px;
    min-height: 208px;
    padding: 28px 18px 20px;
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    background: var(--ls-card-bg);
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease;
}

.powell-app-download-card:hover {
    z-index: 12;
    border-color: var(--ls-primary-light);
    transform: translateY(-4px) scale(1.03);
}

.powell-app-download-card.has-qrcode {
    cursor: default;
}

.powell-app-download-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
}

.powell-app-download-card-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.powell-app-download-card-icon i {
    font-size: 32px;
}

.powell-app-download-card h3 {
    margin: 0;
    color: var(--ls-text);
    font-size: 16px;
    line-height: 1.45;
}

.powell-app-download-card p {
    min-height: 20px;
    margin: 2px 0 10px;
    color: var(--ls-text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.powell-app-download-qrcode-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    padding: 12px;
    border: 1px solid var(--ls-border);
    border-radius: var(--ls-radius);
    background: var(--ls-card-bg);
    color: var(--ls-text-secondary);
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
}

.powell-app-download-qrcode-panel::after {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 1px solid var(--ls-border);
    border-bottom: 1px solid var(--ls-border);
    background: var(--ls-card-bg);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.powell-app-download-card.has-qrcode:hover .powell-app-download-qrcode-panel {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.powell-app-download-qrcode-panel img {
    display: block;
    width: 118px;
    height: 118px;
    object-fit: contain;
}

.powell-app-download-qrcode-panel span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.powell-app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    min-height: 30px;
    margin-top: auto;
    padding: 0 12px;
    border: 1px solid var(--ls-primary);
    border-radius: var(--ls-radius);
    background: var(--ls-primary);
    color: var(--ls-bg-white);
    font-size: 13px;
    line-height: 30px;
    text-decoration: none;
    cursor: pointer;
}

.powell-app-download-btn i {
    display: none;
}

.powell-app-download-btn:disabled {
    border-color: var(--ls-border);
    background: var(--ls-bg-hover);
    color: var(--ls-text-muted);
    cursor: not-allowed;
}

.powell-app-download-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(1040px, calc(100% - 40px));
    margin: 42px auto 0;
    padding: 0 20px;
    color: var(--ls-text-secondary);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.powell-app-download-notice h2 {
    display: inline;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
}

.powell-app-download-notice p {
    display: inline;
    margin: 0;
    color: var(--ls-text-secondary);
}

@media (max-width: 980px) {
    .powell-app-download-page {
        padding-top: 38px;
    }

    .powell-app-download-preview {
        height: 400px;
    }

    .powell-app-download-preview-item img {
        height: 330px;
    }

    .powell-app-download-preview-item.is-pos-0 img {
        height: 300px;
    }

    .powell-app-download-preview-item.is-pos-3 img {
        height: 280px;
    }

    .powell-app-download-preview-item.is-pos-2 img {
        height: 300px;
    }

    .powell-app-download-grid {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .powell-app-download-showcase h1 {
        font-size: 28px;
    }

    .powell-app-download-showcase p {
        font-size: 15px;
    }

    .powell-app-download-preview {
        height: 330px;
        overflow: hidden;
        padding-bottom: 8px;
    }

    .powell-app-download-preview-item {
        top: 8px;
    }

    .powell-app-download-preview-item img {
        height: 280px;
    }

    .powell-app-download-preview-item.is-pos-0 {
        transform: translate(-128%, 26px) scale(.84);
    }

    .powell-app-download-preview-item.is-pos-1 {
        transform: translate(-50%, 0) scale(.98);
    }

    .powell-app-download-preview-item.is-pos-2 {
        transform: translate(30%, 26px) scale(.84);
    }

    .powell-app-download-preview-item.is-pos-3 {
        opacity: 0;
        transform: translate(120%, 44px) scale(.74);
    }

    .powell-app-download-grid {
        gap: 14px;
        margin-top: 28px;
    }

    .powell-app-download-card {
        width: calc(50% - 8px);
        min-width: 150px;
    }
}
