/* PWA 安装提示界面样式（对齐 launch.js 的 PG logo：黑底、白色像素字、彩色点缀） */

#installPrompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 32px 24px 80px;
    text-align: center;
    overflow-y: auto;
}

/* PG logo（像素字母，彩色点缀） */
.install-logo {
    width: 170px;
    margin-bottom: 34px;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.12));
}

.install-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.install-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 6px;
    padding-left: 6px;
    margin-bottom: 14px;
}

.install-subtitle {
    color: #a8a8a8;
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 38px;
}

/* 安装按钮：白底黑字，呼应 PG 的白色像素字 */
.install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 46px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 255, 255, 0.18);
}

.install-btn:active {
    transform: translateY(0);
}

/* 安装中：按钮不可点，保持可见以显示进度文案 */
.install-btn:disabled {
    cursor: default;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.install-btn svg {
    width: 22px;
    height: 22px;
    fill: #000;
}

/* iOS 安装指引 */
.ios-guide {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 22px 20px;
    max-width: 330px;
    text-align: left;
}

.ios-guide-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-align: center;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ios-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

/* 步骤序号取 PG logo 的点缀色 */
.ios-step:nth-child(2) .step-number { background: #ffb919; }
.ios-step:nth-child(3) .step-number { background: #19bee6; }
.ios-step:nth-child(4) .step-number { background: #e619dc; }

.step-content {
    color: #b0b0b0;
    font-size: 13.5px;
    line-height: 1.6;
}

.step-content strong {
    color: #fff;
    font-weight: 700;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 0 4px;
    vertical-align: middle;
}

.step-icon svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

/* 底部提示 */
.install-footer {
    position: absolute;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    color: #666;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* 小屏适配，避免内容超出可视区域 */
@media (max-height: 700px) {
    #installPrompt {
        padding-top: 24px;
        padding-bottom: 60px;
    }

    .install-logo {
        width: 120px;
        margin-bottom: 20px;
    }

    .install-title {
        font-size: 22px;
    }

    .install-subtitle {
        margin-bottom: 24px;
    }
}
