/* 重置样式 */
._ios-pwa-hint-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

._ios-pwa-hint-body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 主内容区域模拟 */
._ios-pwa-hint-main-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin-top: 60px;
    z-index: 1;
}

._ios-pwa-hint-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #7a41db, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

._ios-pwa-hint-tagline {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

._ios-pwa-hint-story-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(122, 65, 219, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

._ios-pwa-hint-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7a41db, transparent);
}

._ios-pwa-hint-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

._ios-pwa-hint-card-desc {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

._ios-pwa-hint-action-btn {
    background: linear-gradient(135deg, #7a41db, #9d5fe9);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

._ios-pwa-hint-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 65, 219, 0.4);
}

/* PWA提示弹窗样式 */
._ios-pwa-hint-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

._ios-pwa-hint-overlay._ios-pwa-hint-active {
    opacity: 1;
    visibility: visible;
}

._ios-pwa-hint-container {
    height: 100%;
    background: linear-gradient(145deg, #111, #0a0a0a);
    width: 95%;
    max-width: 500px;
    /*border-radius: 20px 20px 0 0;*/
    /*padding: 0 25px 25px 25px;*/
    padding: 0;
    box-shadow: 0 -10px 30px rgba(122, 65, 219, 0.15);
    border-top: 2px solid #7a41db;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

._ios-pwa-hint-overlay._ios-pwa-hint-active ._ios-pwa-hint-container {
    transform: translateY(0);
}

._ios-pwa-hint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    /*padding-top: 25px;*/
}

._ios-pwa-hint-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

._ios-pwa-hint-title i {
    color: #7a41db;
    font-size: 1.3rem;
}

._ios-pwa-hint-close-btn {
    /*background: rgba(255, 255, 255, 0.5);*/
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;

    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

._ios-pwa-hint-close-btn i {
    /*color: #aaa;*/
    color: #fff;
}

._ios-pwa-hint-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

._ios-pwa-hint-content {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

._ios-pwa-hint-content strong {
    color: #7a41db;
}

/* 样机图样式 */
._ios-pwa-hint-device-mockup {
    margin-top: 20px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(122, 65, 219, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

._ios-pwa-hint-device-mockup img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

._ios-pwa-hint-device-mockup:hover img {
    transform: scale(1.03);
}

._ios-pwa-hint-tap-indicator {
    position: absolute;
    top: 80%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: _ios-pwa-hint-pulseTap 1.5s infinite ease-in-out;
}

._ios-pwa-hint-tap-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(122, 65, 219, 0.3);
    border: 2px solid #7a41db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

._ios-pwa-hint-tap-circle i {
    color: #fff;
    font-size: 1.3rem;
}

._ios-pwa-hint-tap-text {
    color: #7a41db;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 8px;
    border-radius: 6px;
}

/* 步骤指示器 */
._ios-pwa-hint-steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

._ios-pwa-hint-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    border-left: 3px solid #7a41db;
}

._ios-pwa-hint-step-number {
    background: #7a41db;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

._ios-pwa-hint-step-text {
    color: #eee;
    font-size: 0.95rem;
}

._ios-pwa-hint-step-text i {
    color: #7a41db;
    margin: 0 5px;
}

/* 底部向下箭头 */
._ios-pwa-hint-down-arrow-container {
    display: flex;
    justify-content: center;
    /*margin-top: 10px;*/
    /*padding: 15px 0;*/

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
}

._ios-pwa-hint-down-arrow {
    width: 40px;
    height: 40px;
    position: relative;
    animation: _ios-pwa-hint-bounceDown 2s infinite ease-in-out;
}

._ios-pwa-hint-down-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 15px;
    height: 15px;
    border-right: 3px solid #7a41db;
    border-bottom: 3px solid #7a41db;
    border-radius: 2px;
}

/* 动画效果 */
@keyframes _ios-pwa-hint-pulseTap {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes _ios-pwa-hint-bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    ._ios-pwa-hint-container {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 0 20px 20px 20px;
    }

    ._ios-pwa-hint-device-mockup {
        margin-bottom: 20px;
    }

    ._ios-pwa-hint-tap-indicator {
        top: 85%;
        right: 10px;
    }

    ._ios-pwa-hint-tap-circle {
        width: 40px;
        height: 40px;
    }
}

/* 模拟iOS状态栏 */
._ios-pwa-hint-ios-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

._ios-pwa-hint-ios-time {
    font-weight: 600;
    font-size: 0.95rem;
}

._ios-pwa-hint-ios-icons {
    display: flex;
    gap: 5px;
}

._ios-pwa-hint-ios-icons i {
    font-size: 0.9rem;
}

/* 触发按钮样式 */
._ios-pwa-hint-trigger-btn {
    margin-top: 30px;
    background: rgba(122, 65, 219, 0.15);
    border: 1px solid rgba(122, 65, 219, 0.4);
    color: #a855f7;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

._ios-pwa-hint-trigger-btn:hover {
    background: rgba(122, 65, 219, 0.25);
}