/* mb11：全屏背景轮播 + 下方约 2/3 区域半透明按钮 */
:root {
    --mb11-safe: env(safe-area-inset-bottom, 0px);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 15px;
    color: #fff;
    background: #000;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: var(--mb11-safe);
}

/* 整页：全屏轮播 */
.mb11 {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.mb11-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mb11-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mb11-track::-webkit-scrollbar { display: none; }

.mb11-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #000;
}

/* 铺满视口，按宽高比裁切，无上下/左右黑边 */
.mb11-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* 下方 2/3：底栏渐变 + 中间放半透明卡片 */
.mb11-panel {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    top: 33.33%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px calc(16px + var(--mb11-safe));
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.5) 100%);
}

.mb11-card {
    pointer-events: auto;
    width: 100%;
    max-width: 360px;
    padding: 18px 16px 16px;
    border-radius: 20px;
    background: rgba(12, 12, 14, 0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mb11-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    width: auto;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}
.mb11-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
}

.mb11-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* 卡片内按钮：略透明条，不再重复强模糊 */
.mb11-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mb11-dl:active {
    transform: scale(0.98);
    opacity: 0.92;
}

.mb11-dl--ios {
    background: rgba(30, 30, 32, 0.75);
}

.mb11-dl--android {
    background: rgba(0, 130, 60, 0.78);
}

.mb11-dl__ico {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.mb11-dl__txt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.25;
}
.mb11-dl__sub {
    font-size: 11px;
    opacity: 0.88;
    font-weight: 500;
}
.mb11-dl__tit {
    font-size: 17px;
    font-weight: 700;
}

.mb11-dl.hidden {
    display: none !important;
}

.mb11-meta {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* —— 弹窗（精简）—— */
.modal-overlay,
.error-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.error-modal { z-index: 10000; }
.modal-overlay.is-active,
.error-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    background: #fff;
    color: #333;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 18px;
    cursor: pointer;
}

.modal-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 28px;
}
.modal-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}
.modal-title {
    font-size: 17px;
    font-weight: 700;
}
.modal-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.modal-steps p {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.step-number {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007aff;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.modal-divider {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 14px 0;
}

.modal-copy {
    display: flex;
    gap: 8px;
}
.modal-copy input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}
.modal-copy button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #007aff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.error-panel {
    width: 100%;
    max-width: 320px;
    padding: 24px;
    background: linear-gradient(135deg, #5b6be8, #7b4ba2);
    color: #fff;
    border-radius: 16px;
    text-align: center;
}
.error-title {
    font-size: 18px;
    margin-bottom: 8px;
}
.error-description {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 16px;
}
.error-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    background: #fff;
    color: #5b6be8;
    cursor: pointer;
}
