/* 拉起小程序提醒容器 - 从上向下滑出 */
.launch-miniprogram-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30vh; /* 占屏幕30%高度 */
    background: linear-gradient(180deg, rgba(7, 193, 96, 0.95) 0%, rgba(6, 174, 86, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: block;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top)); /* 适配刘海屏 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.launch-miniprogram-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

/* 关闭按钮 */
.launch-miniprogram-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    line-height: 1;
}

.launch-miniprogram-info {
    margin-bottom: 20px;
}

.launch-miniprogram-title {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

.launch-miniprogram-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 拉起小程序按钮 */
.launch-miniprogram-btn-wrapper {
    flex-shrink: 0;
}

/* 微信开放标签样式 */
wx-open-launch-weapp {
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* 内部按钮样式 */
.launch-btn-inner {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #07c160, #06ae56);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

/* 小程序图标 */
.mp-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 占位元素（顶部提醒不需要占位） */
.launch-miniprogram-placeholder {
    display: none;
}

/* 小程序按钮样式 - 白色版 */
.launch-miniprogram-btn {
    display: inline-block;
    padding: 12px 32px !important;
    background: #fff !important;
    color: #07c160 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 25px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

.launch-miniprogram-btn:active {
    transform: scale(0.95);
}

/* 小图标 */
.mp-icon-text {
    font-size: 18px;
    margin-right: 6px;
}

/* 非微信浏览器提示 */
.not-wechat-tip {
    padding: 10px 15px;
    text-align: center;
    color: #999;
    font-size: 12px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
}

