* {
    -webkit-user-drag: none;
}

.desktop {
    /* 统一缩放因子：屏幕比设计稿(16:9)更宽更矮时按高度收缩，左侧内容不溢出/不裁切 */
    --s: min(1vw, 1.78vh);
    /* 背景 cover 缩放因子：跟随 bg 实际显示尺寸，用于把元素钉在背景图案（爱心）上 */
    --c: max(1vw, 1.78vh);
    color: #fff;
    width: 100%;
    height: 100%;
    font-size: 0;
    overflow: hidden;
}

.desktop .fixed-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    object-position: center center;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 顶部：左 logo+品牌文案，右 商务合作/官方群组/官方客服 */
.top {
    padding: calc(1.6 * var(--s)) calc(3.5 * var(--s));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.brand {
    display: flex;
    align-items: center;
    gap: calc(1.2 * var(--s));
}

.brand .logo {
    width: calc(4.4 * var(--s));
    border-radius: calc(1 * var(--s));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: calc(0.5 * var(--s));
}

.brand-name {
    font-size: calc(1.8 * var(--s));
    font-weight: 700;
    line-height: 1;
}

.brand-slogan {
    font-size: calc(1.05 * var(--s));
    color: #c9c9c9;
    line-height: 1;
}

.desktop .contact {
    display: flex;
    align-items: center;
    gap: calc(1.4 * var(--s));
}

.desktop .contact img {
    width: calc(10.7 * var(--s));
    cursor: pointer;
}

/* 左列：标题 + 下载卡片 */
.hero {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: calc(3 * var(--s));
    padding: 0 0 calc(2 * var(--s)) calc(4 * var(--s));
    box-sizing: border-box;
    z-index: 2;
}

.hero .title {
    width: calc(36 * var(--s));
}

/* 下载卡片：半透明圆角面板，左二维码右按钮 */
.download-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(1.9 * var(--s));
    width: calc(36 * var(--s));
    padding: calc(1.4 * var(--s));
    box-sizing: border-box;
    border-radius: calc(1.2 * var(--s));
    /* Figma: fill 红→白渐变（alpha 压暗到不遮背景）+ 两道内阴影（底部红晕/顶部白高光） */
    background: linear-gradient(180deg, rgba(240, 49, 54, 0.14), rgba(255, 255, 255, 0.10));
    backdrop-filter: blur(4px);
    box-shadow:
        inset 0 -4px 8px rgba(201, 71, 71, 0.25),
        inset 0 4px 4px rgba(255, 255, 255, 0.25);
}

/* Figma: 1px 渐变描边 rgba(255,168,168,1)→rgba(255,255,255,.3)→rgba(255,236,236,.7)，用 mask 兼容圆角 */
.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 168, 168, 1), rgba(255, 255, 255, 0.3), rgba(255, 236, 236, 0.7));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(0.9 * var(--s));
    flex-shrink: 0;
}

.qrcode-box {
    width: calc(10 * var(--s));
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: calc(1 * var(--s));
    padding: calc(0.7 * var(--s));
    box-sizing: border-box;
    /* 白盒外圈：贴边红环 + 大范围红晕 */
    box-shadow:
        0 0 0 2px rgba(255, 100, 120, 0.9),
        0 0 calc(1.8 * var(--s)) rgba(255, 55, 85, 0.75);
}

.qrcode-target {
    width: 100%;
    height: 100%;
}

.qrcode-target img,
.qrcode-target canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.qr-caption {
    font-size: calc(0.95 * var(--s));
    color: #f2dee4;
    white-space: nowrap;
    padding: calc(0.35 * var(--s)) calc(0.8 * var(--s));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: calc(0.45 * var(--s));
}

.dl-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(1 * var(--s));
    min-width: 0;
    padding-left: calc(1.7 * var(--s));
}

/* 二维码列与按钮列之间的竖分隔线 */
.dl-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 1.5px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.dl-col .btn_android,
.dl-col .btn_ios {
    width: calc(15 * var(--s));
    cursor: pointer;
}

.dl-col .dl-tip {
    font-size: calc(0.85 * var(--s));
    line-height: 1.5;
    color: #e0aab6;
}

/* 人物立绘：中偏右，贴底 */
.desktop .renwu {
    position: absolute;
    right: calc(3 * var(--s));
    bottom: 0;
    height: calc(52 * var(--s));
    max-height: 94%;
    object-fit: contain;
    object-position: bottom right;
    z-index: 0;
}

/* 心形里的金色文案（无切图，字体近似） */
.desktop .heart-text {
    position: absolute;
    /* 钉在 bg 爱心内：bg 居中 cover，文字中心 = bg 图 (85.4%, 29%) 处 */
    left: calc(50% + 35.4 * var(--c));
    top: calc(50% - 11.8 * var(--c));
    transform: translate(-50%, -50%) rotate(-3deg);
    font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'PingFang SC', serif;
    font-size: calc(2.3 * var(--c));
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffe9b8 0%, #f0c26a 55%, #d89a3e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 calc(0.8 * var(--s)) rgba(255, 200, 120, 0.45));
    z-index: 1;
}

/* 标签：右下叠在人物腿部 */
.desktop .tag {
    position: absolute;
    right: calc(4 * var(--s));
    bottom: calc(2.5 * var(--s));
    width: calc(33 * var(--s));
    z-index: 2;
}
