/* PWA 安装提示横幅 */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 12px 12px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    pointer-events: none;
}

.pwa-install-banner--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.pwa-install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pwa-install-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.pwa-install-banner-icon img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pwa-install-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwa-install-banner-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.pwa-install-banner-text span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.pwa-install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: #0D9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: #0f766e;
}

.pwa-install-btn:active {
    transform: scale(0.96);
}

.pwa-install-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.pwa-install-dismiss:hover {
    background: #f1f5f9;
    color: #475569;
}

/* 安全区域适配（iPhone 底部横条） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pwa-install-banner {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* 已安装（standalone 模式）隐藏 */
@media all and (display-mode: standalone) {
    .pwa-install-banner {
        display: none !important;
    }
}
