:root {
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --card-bg: #1a1a1f;
    --primary: #8A2BE2;
    --text-main: #ffffff;
    --text-sub: #b0b0b0;
    --ios-blue: #007aff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
    background-color: #000;
    height: 100vh;
    overflow: hidden;
}

/* 引导层容器 */
#ios-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 内容靠下，接近操作区 */
    align-items: center;
    padding-bottom: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}
/* 显示状态 */
#ios-guide.active {
    opacity: 1;
    visibility: visible;
}

/* 引导卡片 */
.guide-card {
    width: 90%;
    max-width: 360px;
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

#ios-guide.active .guide-card {
    transform: translateY(0);
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

/* App Icon 展示 */
.app-icon-preview {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2a1810 0%, #1a1a1f 100%);
    border-radius: 14px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}
.app-icon-preview img{
    width: 100%;
    display: block;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}
.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.guide-desc {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 步骤列表 */
.steps-list {
    text-align: left;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
}

.step-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ddd;
    margin-bottom: 12px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item i {
    font-size: 20px;
    margin: 0 8px;
    vertical-align: middle;
}

/* iOS 系统图标模拟 */
.ios-icon-share {
    color: var(--ios-blue);
}

.ios-icon-add {
    display: inline-block;
    background: #333;
    border-radius: 4px;
    padding: 2px;
}

/* 底部动态箭头 */
.pointer-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    animation: bounce 2s infinite;
    margin-bottom: 10px; /* 适配 iPhone 底部安全区 */
}

.pointer-text {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* 箭头 SVG 样式 */
.arrow-svg {
    width: 40px;
    height: 40px;
    fill: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* 模拟页面背景（仅用于演示，实际使用时去掉这部分） */
.demo-bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #fff;
    text-align: center;
}
.demo-btn {
    padding: 15px 30px;
    background: #8A2BE2;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
}
.demo-bg .app-ios-logo{
    position: absolute;
    width: 80%;
    top:50%;
    margin-top: -180px;
}
.demo-bg .app-ios-logo img{
    width: 100%;
    display: block;
}