/* 微信遮罩层样式已移除，改为 HTML 直接内联样式控制 */

/* 容器布局 */
.guide-container {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px; /* 留出底部按钮空间 */
    position: relative;
    z-index: 5;
}

/* 顶部导航栏 */
.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background: rgba(255, 255, 255, 0.3); /* 更高的透明度 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.guide-header h1 {
    font-size: 16px; /* 稍微加大 */
    color: #4b5865;
    font-weight: 800;
    margin: 0;
    /* 移除绝对定位 */
    position: static;
    transform: none;
    flex: 1; /* 让标题占据剩余空间 */
    text-align: left; /* 左对齐 */
}

.note-btn {
    color: #e67e22;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-btn:active {
    transform: scale(0.95);
    background: rgba(230, 126, 34, 0.2);
}


.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    border-radius: 50%;
    transition: background 0.3s;
}

.back-btn:active {
    background: rgba(0,0,0,0.05);
}

.header-placeholder {
    width: 40px; /* 与返回按钮等宽，保持标题居中 */
}

/* 步骤时间轴列表 */
.step-timeline {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 单个步骤卡片 */
.step-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    /* 卡片入场动画 */
    animation: slideUpFade 0.6s ease backwards;
}

/* 依次延迟 */
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 步骤序号徽章 */
.step-badge {
    position: absolute;
    top: 0;
    left: 0; /* 改为左侧 */
    background: #007aff; 
    color: #fff; 
    font-size: 14px; 
    font-weight: 800;
    padding: 8px 16px; 
    border-bottom-right-radius: 20px; /* 改为右下圆角 */
    letter-spacing: 1px;
    box-shadow: 2px 2px 10px rgba(0, 122, 255, 0.2); /* 阴影方向调整 */
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 20px; /* 加大标题字号 */
    color: #1a1a1a; /* 加深标题颜色 */
    margin-bottom: 10px;
    font-weight: 800; /* 加粗 */
    margin-top: 20px; /* 增加顶部间距，避开左上角的步骤标 */
}

.step-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 步骤内的下载按钮 */
.step-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-download-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

/* 图片容器 */
.step-image-box {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f2f6;
    border: 1px solid rgba(0,0,0,0.02);
}

/* 图片占位符 */
.img-placeholder {
    width: 100%;
    /* 16:9 比例或其他合适的高度 */
    height: 180px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    gap: 10px;
}

.img-placeholder i {
    font-size: 40px;
}

.img-placeholder span {
    font-size: 12px;
}

/* 底部悬浮安装按钮 */
.guide-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    z-index: 200;
    /* 限制最大宽度，适配桌面 */
    /* 由于 position fixed 是相对于视口的，我们需要更巧妙的处理居中 */
}

/* 为了在宽屏下按钮也居中在容器内，我们可以让 footer 内容单独居中 */
@media (min-width: 768px) {
    .guide-footer {
        left: 50%;
        transform: translateX(-50%);
        max-width: 750px;
        bottom: 20px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        width: calc(100% - 40px);
        padding: 15px;
    }
}

.install-btn {
    width: 100%;
    max-width: 400px;
    height: 56px;
    background: #2c3e50;
    color: #fff;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
    transition: transform 0.2s;
}

.install-btn:active {
    transform: scale(0.96);
}