/*
 * DEEPV_IOS_HOME_V1 — H5 ONLY
 * 所有选择器均使用 deepv-ios-home 前缀，禁止改成影响业务页面的全局样式。
 * 普通页面只加载本文件但不会生成任何 DOM；显式安装入口才显示引导。
 */
html.deepv-ios-home-guide-open,
html.deepv-ios-home-guide-open body {
    overflow: hidden;
}

/*
 * 苹果桌面 Web App 会把页面延伸到 Home Indicator 区域。
 * DeepV 通用 tabbar 为兼容旧壳关闭了组件自带安全区，这里只在
 * Safari 独立桌面模式把系统底部安全区补回，避免按钮可见但触摸被系统手势吃掉。
 */
html.deepv-ios-home-standalone .custom-tabbar--deepv .u-tabbar__content.u-tabbar--fixed {
    padding-bottom: constant(safe-area-inset-bottom) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
}

.deepv-ios-home-guide {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.deepv-ios-home-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 6, 14, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.deepv-ios-home-sheet {
    position: relative;
    width: min(100%, 460px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    box-sizing: border-box;
    padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: #fff;
    box-shadow: 0 -20px 60px rgba(10, 6, 35, .28);
    color: #111426;
}

.deepv-ios-home-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f0f7;
    color: #5b5870;
    font-size: 24px;
    line-height: 1;
}

.deepv-ios-home-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(145deg, #7257ff, #5d24da 55%, #30127f);
    box-shadow: 0 12px 30px rgba(93, 36, 218, .32);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.deepv-ios-home-eyebrow {
    margin: 18px 0 6px;
    color: #6b35e8;
    font-size: 13px;
    font-weight: 700;
}

.deepv-ios-home-sheet h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

.deepv-ios-home-summary {
    margin: 10px 0 18px;
    color: #68677a;
    font-size: 15px;
    line-height: 1.65;
}

.deepv-ios-home-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.deepv-ios-home-steps li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #eceaf6;
    border-radius: 14px;
    background: #faf9ff;
}

.deepv-ios-home-steps span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #6c3bea;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.deepv-ios-home-steps p {
    margin: 0;
    color: #282638;
    font-size: 15px;
    line-height: 1.45;
}

.deepv-ios-home-feedback {
    min-height: 22px;
    margin: 10px 2px 4px;
    color: #5f36c9;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
}

.deepv-ios-home-primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(100deg, #6b45ff, #7430db);
    box-shadow: 0 12px 24px rgba(102, 54, 225, .24);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.deepv-ios-home-status {
    margin: 12px 0 0;
    color: #9896a5;
    font-size: 12px;
    text-align: center;
}

@media (min-width: 700px) {
    .deepv-ios-home-guide {
        align-items: center;
        padding: 24px;
        box-sizing: border-box;
    }

    .deepv-ios-home-sheet {
        border-radius: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .deepv-ios-home-guide *,
    .deepv-ios-home-guide *::before,
    .deepv-ios-home-guide *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
