/* --- 1. 全局重置 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

/* --- 2. 背景容器（固定铺满） --- */
.bg-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background-color: #f5f7fa;
}

/* --- 3. 背景媒体 ---
   双层：底层同一张图模糊铺满（把 contain 留下的空白填成「图自己的延伸色」，
   所以看着不像空白），上层原图完整显示、不裁剪。任何手机比例都自适应。 */
.bg-blur {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.25);                 /* 放大一点，避免模糊后边缘露白 */
    filter: blur(14px) brightness(.92) saturate(1.25);   /* 够亮才像延伸，太暗就像黑边 */
    opacity: 1;
}

.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* 另一种模式：铺满裁剪（不留任何空白，但图和屏幕比例不同时边缘会被裁掉）
   后台 kv.cover_fit = cover 时启用 */
.bg-container.fit-cover .bg-video {
    object-fit: cover;
}
.bg-container.fit-cover .bg-blur {
    display: none;
}

/* --- 4. 卡片 --- */
.loader-card {
    background: #ffffff;
    width: 85%;
    max-width: 360px;
    position: relative;
    z-index: 1;
}
