/* ========== 小程序入口模块样式 ========== */

/* 蒙层 */
.mini-program__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mini-program__overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 面板 */
.mini-program__panel {
    background: var(--color-bg-white, #fff);
    border-radius: 16px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 40px 32px;
    position: relative;
}

/* 关闭按钮 */
.mini-program__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mini-program__close:hover {
    background: #e0e0e0;
}

.mini-program__close svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary, #666);
    stroke-width: 2;
}

/* 图标 */
.mini-program__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fdf6e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mini-program__icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-brand-gold, #d4af37);
    stroke-width: 2;
}

/* 标题 */
.mini-program__title {
    font-size: var(--font-size-xl, 20px);
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 8px;
}

/* 描述 */
.mini-program__desc {
    font-size: var(--font-size-sm, 13px);
    color: var(--text-secondary, #666);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* 二维码区域 */
.mini-program__qrcode {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm, 12px);
    color: #bbb;
}

.mini-program__qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 提示 */
.mini-program__tip {
    font-size: 12px;
    color: #999;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mini-program__panel {
        width: 90vw;
        padding: 32px 24px;
    }
}